Lines Matching defs:cid

92 	struct mmc_cid cid;	/* cid decoded */
151 static void mmc_decode_cid_mmc(uint32_t *raw_cid, struct mmc_cid *cid);
152 static void mmc_decode_cid_sd(uint32_t *raw_cid, struct mmc_cid *cid);
842 mmc_decode_cid_sd(uint32_t *raw_cid, struct mmc_cid *cid)
847 memset(cid, 0, sizeof(*cid));
848 cid->mid = mmc_get_bits(raw_cid, 128, 120, 8);
849 cid->oid = mmc_get_bits(raw_cid, 128, 104, 16);
851 cid->pnm[i] = mmc_get_bits(raw_cid, 128, 96 - i * 8, 8);
852 cid->pnm[5] = 0;
853 cid->prv = mmc_get_bits(raw_cid, 128, 56, 8);
854 cid->psn = mmc_get_bits(raw_cid, 128, 24, 32);
855 cid->mdt_year = mmc_get_bits(raw_cid, 128, 12, 8) + 2000;
856 cid->mdt_month = mmc_get_bits(raw_cid, 128, 8, 4);
860 mmc_decode_cid_mmc(uint32_t *raw_cid, struct mmc_cid *cid)
865 memset(cid, 0, sizeof(*cid));
866 cid->mid = mmc_get_bits(raw_cid, 128, 120, 8);
867 cid->oid = mmc_get_bits(raw_cid, 128, 104, 8);
869 cid->pnm[i] = mmc_get_bits(raw_cid, 128, 96 - i * 8, 8);
870 cid->pnm[6] = 0;
871 cid->prv = mmc_get_bits(raw_cid, 128, 48, 8);
872 cid->psn = mmc_get_bits(raw_cid, 128, 16, 32);
873 cid->mdt_month = mmc_get_bits(raw_cid, 128, 12, 4);
874 cid->mdt_year = mmc_get_bits(raw_cid, 128, 8, 4) + 1997;
897 c1 = (ivar->cid.oid >> 8) & 0x0ff;
898 c2 = ivar->cid.oid & 0x0ff;
902 snprintf(oidstr, sizeof(oidstr), "0x%04x", ivar->cid.oid);
906 ivar->cid.pnm, ivar->cid.prv >> 4, ivar->cid.prv & 0x0f,
907 ivar->cid.psn, ivar->cid.mdt_month, ivar->cid.mdt_year,
908 ivar->cid.mid, oidstr);
1301 mmc_decode_cid_sd(ivar->raw_cid, &ivar->cid);
1384 mmc_decode_cid_mmc(ivar->raw_cid, &ivar->cid);