Lines Matching refs:cid

88 		card->cid.manfid	= UNSTUFF_BITS(resp, 104, 24);  in mmc_decode_cid()
89 card->cid.prod_name[0] = UNSTUFF_BITS(resp, 96, 8); in mmc_decode_cid()
90 card->cid.prod_name[1] = UNSTUFF_BITS(resp, 88, 8); in mmc_decode_cid()
91 card->cid.prod_name[2] = UNSTUFF_BITS(resp, 80, 8); in mmc_decode_cid()
92 card->cid.prod_name[3] = UNSTUFF_BITS(resp, 72, 8); in mmc_decode_cid()
93 card->cid.prod_name[4] = UNSTUFF_BITS(resp, 64, 8); in mmc_decode_cid()
94 card->cid.prod_name[5] = UNSTUFF_BITS(resp, 56, 8); in mmc_decode_cid()
95 card->cid.prod_name[6] = UNSTUFF_BITS(resp, 48, 8); in mmc_decode_cid()
96 card->cid.hwrev = UNSTUFF_BITS(resp, 44, 4); in mmc_decode_cid()
97 card->cid.fwrev = UNSTUFF_BITS(resp, 40, 4); in mmc_decode_cid()
98 card->cid.serial = UNSTUFF_BITS(resp, 16, 24); in mmc_decode_cid()
99 card->cid.month = UNSTUFF_BITS(resp, 12, 4); in mmc_decode_cid()
100 card->cid.year = UNSTUFF_BITS(resp, 8, 4) + 1997; in mmc_decode_cid()
106 card->cid.manfid = UNSTUFF_BITS(resp, 120, 8); in mmc_decode_cid()
107 card->cid.oemid = UNSTUFF_BITS(resp, 104, 16); in mmc_decode_cid()
108 card->cid.prod_name[0] = UNSTUFF_BITS(resp, 96, 8); in mmc_decode_cid()
109 card->cid.prod_name[1] = UNSTUFF_BITS(resp, 88, 8); in mmc_decode_cid()
110 card->cid.prod_name[2] = UNSTUFF_BITS(resp, 80, 8); in mmc_decode_cid()
111 card->cid.prod_name[3] = UNSTUFF_BITS(resp, 72, 8); in mmc_decode_cid()
112 card->cid.prod_name[4] = UNSTUFF_BITS(resp, 64, 8); in mmc_decode_cid()
113 card->cid.prod_name[5] = UNSTUFF_BITS(resp, 56, 8); in mmc_decode_cid()
114 card->cid.prv = UNSTUFF_BITS(resp, 48, 8); in mmc_decode_cid()
115 card->cid.serial = UNSTUFF_BITS(resp, 16, 32); in mmc_decode_cid()
116 card->cid.month = UNSTUFF_BITS(resp, 12, 4); in mmc_decode_cid()
117 card->cid.year = UNSTUFF_BITS(resp, 8, 4) + 1997; in mmc_decode_cid()
529 if (card->cid.year < 2010) in mmc_decode_ext_csd()
530 card->cid.year += 16; in mmc_decode_ext_csd()
787 MMC_DEV_ATTR(cid, "%08x%08x%08x%08x\n", card->raw_cid[0], card->raw_cid[1],
791 MMC_DEV_ATTR(date, "%02d/%04d\n", card->cid.month, card->cid.year);
795 MMC_DEV_ATTR(hwrev, "0x%x\n", card->cid.hwrev);
796 MMC_DEV_ATTR(manfid, "0x%06x\n", card->cid.manfid);
797 MMC_DEV_ATTR(name, "%s\n", card->cid.prod_name);
798 MMC_DEV_ATTR(oemid, "0x%04x\n", card->cid.oemid);
799 MMC_DEV_ATTR(prv, "0x%x\n", card->cid.prv);
805 MMC_DEV_ATTR(serial, "0x%08x\n", card->cid.serial);
824 return sysfs_emit(buf, "0x%x\n", card->cid.fwrev); in mmc_fwrev_show()
1605 u32 cid[4]; in mmc_init_card() local
1640 err = mmc_send_cid(host, cid); in mmc_init_card()
1645 if (memcmp(cid, oldcard->raw_cid, sizeof(cid)) != 0) { in mmc_init_card()
1666 memcpy(card->raw_cid, cid, sizeof(card->raw_cid)); in mmc_init_card()