Lines Matching refs:cid

95 	struct mmc_cid cid;	/* cid decoded */
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);
1090 mmc_decode_cid_sd(uint32_t *raw_cid, struct mmc_cid *cid)
1095 memset(cid, 0, sizeof(*cid));
1096 cid->mid = mmc_get_bits(raw_cid, 128, 120, 8);
1097 cid->oid = mmc_get_bits(raw_cid, 128, 104, 16);
1099 cid->pnm[i] = mmc_get_bits(raw_cid, 128, 96 - i * 8, 8);
1100 cid->pnm[5] = 0;
1101 cid->prv = mmc_get_bits(raw_cid, 128, 56, 8);
1102 cid->psn = mmc_get_bits(raw_cid, 128, 24, 32);
1103 cid->mdt_year = mmc_get_bits(raw_cid, 128, 12, 8) + 2000;
1104 cid->mdt_month = mmc_get_bits(raw_cid, 128, 8, 4);
1108 mmc_decode_cid_mmc(uint32_t *raw_cid, struct mmc_cid *cid, bool is_4_41p)
1113 memset(cid, 0, sizeof(*cid));
1114 cid->mid = mmc_get_bits(raw_cid, 128, 120, 8);
1115 cid->oid = mmc_get_bits(raw_cid, 128, 104, 8);
1117 cid->pnm[i] = mmc_get_bits(raw_cid, 128, 96 - i * 8, 8);
1118 cid->pnm[6] = 0;
1119 cid->prv = mmc_get_bits(raw_cid, 128, 48, 8);
1120 cid->psn = mmc_get_bits(raw_cid, 128, 16, 32);
1121 cid->mdt_month = mmc_get_bits(raw_cid, 128, 12, 4);
1122 cid->mdt_year = mmc_get_bits(raw_cid, 128, 8, 4);
1124 cid->mdt_year += 2013;
1126 cid->mdt_year += 1997;
1152 c1 = (ivar->cid.oid >> 8) & 0x0ff;
1153 c2 = ivar->cid.oid & 0x0ff;
1157 snprintf(oidstr, sizeof(oidstr), "0x%04x", ivar->cid.oid);
1159 "%08X", ivar->cid.psn);
1163 ivar->cid.pnm, ivar->cid.prv >> 4, ivar->cid.prv & 0x0f,
1164 ivar->cid.psn, ivar->cid.mdt_month, ivar->cid.mdt_year,
1165 ivar->cid.mid, oidstr);
1643 mmc_decode_cid_sd(ivar->raw_cid, &ivar->cid);
1892 mmc_decode_cid_mmc(ivar->raw_cid, &ivar->cid, rev >= 5);
1897 quirk->mid == ivar->cid.mid) &&
1899 quirk->oid == ivar->cid.oid) &&
1900 strncmp(quirk->pnm, ivar->cid.pnm,
1901 sizeof(ivar->cid.pnm)) == 0) {