Lines Matching refs:cid
81 card->cid.manfid = UNSTUFF_BITS(resp, 120, 8); in mmc_decode_cid()
82 card->cid.oemid = UNSTUFF_BITS(resp, 104, 16); in mmc_decode_cid()
83 card->cid.prod_name[0] = UNSTUFF_BITS(resp, 96, 8); in mmc_decode_cid()
84 card->cid.prod_name[1] = UNSTUFF_BITS(resp, 88, 8); in mmc_decode_cid()
85 card->cid.prod_name[2] = UNSTUFF_BITS(resp, 80, 8); in mmc_decode_cid()
86 card->cid.prod_name[3] = UNSTUFF_BITS(resp, 72, 8); in mmc_decode_cid()
87 card->cid.prod_name[4] = UNSTUFF_BITS(resp, 64, 8); in mmc_decode_cid()
88 card->cid.hwrev = UNSTUFF_BITS(resp, 60, 4); in mmc_decode_cid()
89 card->cid.fwrev = UNSTUFF_BITS(resp, 56, 4); in mmc_decode_cid()
90 card->cid.serial = UNSTUFF_BITS(resp, 24, 32); in mmc_decode_cid()
91 card->cid.year = UNSTUFF_BITS(resp, 12, 8); in mmc_decode_cid()
92 card->cid.month = UNSTUFF_BITS(resp, 8, 4); in mmc_decode_cid()
94 card->cid.year += 2000; /* SD cards year offset */ in mmc_decode_cid()
664 MMC_DEV_ATTR(cid, "%08x%08x%08x%08x\n", card->raw_cid[0], card->raw_cid[1],
677 MMC_DEV_ATTR(date, "%02d/%04d\n", card->cid.month, card->cid.year);
680 MMC_DEV_ATTR(fwrev, "0x%x\n", card->cid.fwrev);
681 MMC_DEV_ATTR(hwrev, "0x%x\n", card->cid.hwrev);
682 MMC_DEV_ATTR(manfid, "0x%06x\n", card->cid.manfid);
683 MMC_DEV_ATTR(name, "%s\n", card->cid.prod_name);
684 MMC_DEV_ATTR(oemid, "0x%04x\n", card->cid.oemid);
685 MMC_DEV_ATTR(serial, "0x%08x\n", card->cid.serial);
732 int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr) in mmc_sd_get_cid() argument
801 err = mmc_send_cid(host, cid); in mmc_sd_get_cid()
803 err = mmc_all_send_cid(host, cid); in mmc_sd_get_cid()
957 u32 cid[4]; in mmc_sd_init_card() local
963 err = mmc_sd_get_cid(host, ocr, cid, &rocr); in mmc_sd_init_card()
968 if (memcmp(cid, oldcard->raw_cid, sizeof(cid)) != 0) in mmc_sd_init_card()
982 memcpy(card->raw_cid, cid, sizeof(card->raw_cid)); in mmc_sd_init_card()