Lines Matching refs:cid
185 static inline void sdmmc_decode_cid(struct sd_cid *cid, uint32_t *raw_cid) in sdmmc_decode_cid() argument
187 cid->manufacturer = (uint8_t)((raw_cid[3U] & 0xFF000000U) >> 24U); in sdmmc_decode_cid()
188 cid->application = (uint16_t)((raw_cid[3U] & 0xFFFF00U) >> 8U); in sdmmc_decode_cid()
190 cid->name[0U] = (uint8_t)((raw_cid[3U] & 0xFFU)); in sdmmc_decode_cid()
191 cid->name[1U] = (uint8_t)((raw_cid[2U] & 0xFF000000U) >> 24U); in sdmmc_decode_cid()
192 cid->name[2U] = (uint8_t)((raw_cid[2U] & 0xFF0000U) >> 16U); in sdmmc_decode_cid()
193 cid->name[3U] = (uint8_t)((raw_cid[2U] & 0xFF00U) >> 8U); in sdmmc_decode_cid()
194 cid->name[4U] = (uint8_t)((raw_cid[2U] & 0xFFU)); in sdmmc_decode_cid()
196 cid->version = (uint8_t)((raw_cid[1U] & 0xFF000000U) >> 24U); in sdmmc_decode_cid()
198 cid->ser_num = (uint32_t)((raw_cid[1U] & 0xFFFFFFU) << 8U); in sdmmc_decode_cid()
199 cid->ser_num |= (uint32_t)((raw_cid[0U] & 0xFF000000U) >> 24U); in sdmmc_decode_cid()
201 cid->date = (uint16_t)((raw_cid[0U] & 0xFFF00U) >> 8U); in sdmmc_decode_cid()
286 uint32_t cid[4]; in card_read_cid() local
294 ret = sdmmc_spi_read_cxd(card, SD_SEND_CID, cid); in card_read_cid()
296 ret = sdmmc_read_cxd(card, SD_ALL_SEND_CID, 0, cid); in card_read_cid()
313 sdmmc_decode_cid(&card_cid, cid); in card_read_cid()