Lines Matching refs:raw_cid
86 uint32_t raw_cid[4]; /* Raw bits of the CID */ member
178 static void mmc_decode_cid_mmc(uint32_t *raw_cid, struct mmc_cid *cid,
180 static void mmc_decode_cid_sd(uint32_t *raw_cid, struct mmc_cid *cid);
1085 mmc_decode_cid_sd(uint32_t *raw_cid, struct mmc_cid *cid) in mmc_decode_cid_sd() argument
1091 cid->mid = mmc_get_bits(raw_cid, 128, 120, 8); in mmc_decode_cid_sd()
1092 cid->oid = mmc_get_bits(raw_cid, 128, 104, 16); in mmc_decode_cid_sd()
1094 cid->pnm[i] = mmc_get_bits(raw_cid, 128, 96 - i * 8, 8); in mmc_decode_cid_sd()
1096 cid->prv = mmc_get_bits(raw_cid, 128, 56, 8); in mmc_decode_cid_sd()
1097 cid->psn = mmc_get_bits(raw_cid, 128, 24, 32); in mmc_decode_cid_sd()
1098 cid->mdt_year = mmc_get_bits(raw_cid, 128, 12, 8) + 2000; in mmc_decode_cid_sd()
1099 cid->mdt_month = mmc_get_bits(raw_cid, 128, 8, 4); in mmc_decode_cid_sd()
1103 mmc_decode_cid_mmc(uint32_t *raw_cid, struct mmc_cid *cid, bool is_4_41p) in mmc_decode_cid_mmc() argument
1109 cid->mid = mmc_get_bits(raw_cid, 128, 120, 8); in mmc_decode_cid_mmc()
1110 cid->oid = mmc_get_bits(raw_cid, 128, 104, 8); in mmc_decode_cid_mmc()
1112 cid->pnm[i] = mmc_get_bits(raw_cid, 128, 96 - i * 8, 8); in mmc_decode_cid_mmc()
1114 cid->prv = mmc_get_bits(raw_cid, 128, 48, 8); in mmc_decode_cid_mmc()
1115 cid->psn = mmc_get_bits(raw_cid, 128, 16, 32); in mmc_decode_cid_mmc()
1116 cid->mdt_month = mmc_get_bits(raw_cid, 128, 12, 4); in mmc_decode_cid_mmc()
1117 cid->mdt_year = mmc_get_bits(raw_cid, 128, 8, 4); in mmc_decode_cid_mmc()
1586 uint32_t raw_cid[4]; in mmc_discover_cards() local
1603 err = mmc_all_send_cid(sc, raw_cid); in mmc_discover_cards()
1614 if (memcmp(ivar->raw_cid, raw_cid, sizeof(raw_cid)) == in mmc_discover_cards()
1624 raw_cid[0], raw_cid[1], raw_cid[2], raw_cid[3]); in mmc_discover_cards()
1629 memcpy(ivar->raw_cid, raw_cid, sizeof(raw_cid)); in mmc_discover_cards()
1637 mmc_decode_cid_sd(ivar->raw_cid, &ivar->cid); in mmc_discover_cards()
1886 mmc_decode_cid_mmc(ivar->raw_cid, &ivar->cid, rev >= 5); in mmc_discover_cards()