Lines Matching refs:cid

76 		card->cid.manfid	= UNSTUFF_BITS(resp, 104, 24);  in mmc_decode_cid()
77 card->cid.prod_name[0] = UNSTUFF_BITS(resp, 96, 8); in mmc_decode_cid()
78 card->cid.prod_name[1] = UNSTUFF_BITS(resp, 88, 8); in mmc_decode_cid()
79 card->cid.prod_name[2] = UNSTUFF_BITS(resp, 80, 8); in mmc_decode_cid()
80 card->cid.prod_name[3] = UNSTUFF_BITS(resp, 72, 8); in mmc_decode_cid()
81 card->cid.prod_name[4] = UNSTUFF_BITS(resp, 64, 8); in mmc_decode_cid()
82 card->cid.prod_name[5] = UNSTUFF_BITS(resp, 56, 8); in mmc_decode_cid()
83 card->cid.prod_name[6] = UNSTUFF_BITS(resp, 48, 8); in mmc_decode_cid()
84 card->cid.hwrev = UNSTUFF_BITS(resp, 44, 4); in mmc_decode_cid()
85 card->cid.fwrev = UNSTUFF_BITS(resp, 40, 4); in mmc_decode_cid()
86 card->cid.serial = UNSTUFF_BITS(resp, 16, 24); in mmc_decode_cid()
87 card->cid.month = UNSTUFF_BITS(resp, 12, 4); in mmc_decode_cid()
88 card->cid.year = UNSTUFF_BITS(resp, 8, 4) + 1997; in mmc_decode_cid()
94 card->cid.manfid = UNSTUFF_BITS(resp, 120, 8); in mmc_decode_cid()
95 card->cid.oemid = UNSTUFF_BITS(resp, 104, 16); in mmc_decode_cid()
96 card->cid.prod_name[0] = UNSTUFF_BITS(resp, 96, 8); in mmc_decode_cid()
97 card->cid.prod_name[1] = UNSTUFF_BITS(resp, 88, 8); in mmc_decode_cid()
98 card->cid.prod_name[2] = UNSTUFF_BITS(resp, 80, 8); in mmc_decode_cid()
99 card->cid.prod_name[3] = UNSTUFF_BITS(resp, 72, 8); in mmc_decode_cid()
100 card->cid.prod_name[4] = UNSTUFF_BITS(resp, 64, 8); in mmc_decode_cid()
101 card->cid.prod_name[5] = UNSTUFF_BITS(resp, 56, 8); in mmc_decode_cid()
102 card->cid.prv = UNSTUFF_BITS(resp, 48, 8); in mmc_decode_cid()
103 card->cid.serial = UNSTUFF_BITS(resp, 16, 32); in mmc_decode_cid()
104 card->cid.month = UNSTUFF_BITS(resp, 12, 4); in mmc_decode_cid()
105 card->cid.year = UNSTUFF_BITS(resp, 8, 4) + 1997; in mmc_decode_cid()
499 if (card->cid.year < 2010) in mmc_decode_ext_csd()
500 card->cid.year += 16; in mmc_decode_ext_csd()
711 MMC_DEV_ATTR(cid, "%08x%08x%08x%08x\n", card->raw_cid[0], card->raw_cid[1],
715 MMC_DEV_ATTR(date, "%02d/%04d\n", card->cid.month, card->cid.year);
719 MMC_DEV_ATTR(hwrev, "0x%x\n", card->cid.hwrev);
720 MMC_DEV_ATTR(manfid, "0x%06x\n", card->cid.manfid);
721 MMC_DEV_ATTR(name, "%s\n", card->cid.prod_name);
722 MMC_DEV_ATTR(oemid, "0x%04x\n", card->cid.oemid);
723 MMC_DEV_ATTR(prv, "0x%x\n", card->cid.prv);
724 MMC_DEV_ATTR(serial, "0x%08x\n", card->cid.serial);
738 return sprintf(buf, "0x%x\n", card->cid.fwrev); in mmc_fwrev_show()
1372 u32 cid[4]; in mmc_init_card() local
1409 err = mmc_send_cid(host, cid); in mmc_init_card()
1411 err = mmc_all_send_cid(host, cid); in mmc_init_card()
1416 if (memcmp(cid, oldcard->raw_cid, sizeof(cid)) != 0) { in mmc_init_card()
1435 memcpy(card->raw_cid, cid, sizeof(card->raw_cid)); in mmc_init_card()