Lines Matching refs:cid
122 uint8_t cid[16]; member
442 sd->cid[0] = MID; /* Fake card manufacturer ID (MID) */ in sd_set_cid()
443 sd->cid[1] = OID[0]; /* OEM/Application ID (OID) */ in sd_set_cid()
444 sd->cid[2] = OID[1]; in sd_set_cid()
445 sd->cid[3] = PNM[0]; /* Fake product name (PNM) */ in sd_set_cid()
446 sd->cid[4] = PNM[1]; in sd_set_cid()
447 sd->cid[5] = PNM[2]; in sd_set_cid()
448 sd->cid[6] = PNM[3]; in sd_set_cid()
449 sd->cid[7] = PNM[4]; in sd_set_cid()
450 sd->cid[8] = PRV; /* Fake product revision (PRV) */ in sd_set_cid()
451 stl_be_p(&sd->cid[9], 0xdeadbeef); /* Fake serial number (PSN) */ in sd_set_cid()
452 sd->cid[13] = 0x00 | /* Manufacture date (MDT) */ in sd_set_cid()
454 sd->cid[14] = ((MDT_YR % 10) << 4) | MDT_MON; in sd_set_cid()
455 sd->cid[15] = (sd_crc7(sd->cid, 15) << 1) | 1; in sd_set_cid()
460 sd->cid[0] = MID; /* Fake card manufacturer ID (MID) */ in emmc_set_cid()
461 sd->cid[1] = 0b01; /* CBX: soldered BGA */ in emmc_set_cid()
462 sd->cid[2] = OID[0]; /* OEM/Application ID (OID) */ in emmc_set_cid()
463 sd->cid[3] = PNM[0]; /* Fake product name (PNM) */ in emmc_set_cid()
464 sd->cid[4] = PNM[1]; in emmc_set_cid()
465 sd->cid[5] = PNM[2]; in emmc_set_cid()
466 sd->cid[6] = PNM[3]; in emmc_set_cid()
467 sd->cid[7] = PNM[4]; in emmc_set_cid()
468 sd->cid[8] = PNM[4]; in emmc_set_cid()
469 sd->cid[9] = PRV; /* Fake product revision (PRV) */ in emmc_set_cid()
470 stl_be_p(&sd->cid[10], 0xdeadbeef); /* Fake serial number (PSN) */ in emmc_set_cid()
471 sd->cid[14] = (MDT_MON << 4) | (MDT_YR - 1997); /* Manufacture date (MDT) */ in emmc_set_cid()
472 sd->cid[15] = (sd_crc7(sd->cid, 15) << 1) | 1; in emmc_set_cid()
962 VMSTATE_UINT8_ARRAY(cid, SDState, 16),
1593 sd->cid, 16); in spi_cmd_SEND_CID()
1768 return sd_cmd_to_receivingdata(sd, req, 0, sizeof(sd->cid)); in emmc_cmd_PROGRAM_CID()
2261 memcpy(response, sd->cid, sizeof(sd->cid)); in sd_do_command()
2415 for (i = 0; i < sizeof(sd->cid); i ++) in sd_write_byte()
2416 if ((sd->cid[i] | 0x00) != sd->data[i]) in sd_write_byte()
2420 for (i = 0; i < sizeof(sd->cid); i ++) { in sd_write_byte()
2421 sd->cid[i] |= 0x00; in sd_write_byte()
2422 sd->cid[i] &= sd->data[i]; in sd_write_byte()