Lines Matching refs:raw_scr
21 static inline void sdmmc_decode_scr(struct sd_scr *scr, uint32_t *raw_scr, uint8_t *version) in sdmmc_decode_scr() argument
26 scr->scr_structure = (uint8_t)((raw_scr[0U] & 0xF0000000U) >> 28U); in sdmmc_decode_scr()
27 scr->sd_spec = (uint8_t)((raw_scr[0U] & 0xF000000U) >> 24U); in sdmmc_decode_scr()
28 if ((uint8_t)((raw_scr[0U] & 0x800000U) >> 23U)) { in sdmmc_decode_scr()
31 scr->sd_sec = (uint8_t)((raw_scr[0U] & 0x700000U) >> 20U); in sdmmc_decode_scr()
32 scr->sd_width = (uint8_t)((raw_scr[0U] & 0xF0000U) >> 16U); in sdmmc_decode_scr()
33 if ((uint8_t)((raw_scr[0U] & 0x8000U) >> 15U)) { in sdmmc_decode_scr()
36 scr->sd_ext_sec = (uint8_t)((raw_scr[0U] & 0x7800U) >> 10U); in sdmmc_decode_scr()
37 scr->cmd_support = (uint8_t)(raw_scr[0U] & 0x3U); in sdmmc_decode_scr()
38 scr->rsvd = raw_scr[1U]; in sdmmc_decode_scr()
165 uint32_t raw_scr[2]; in sdmmc_read_scr() local
190 raw_scr[0] = sys_be32_to_cpu(scr[0]); in sdmmc_read_scr()
191 raw_scr[1] = sys_be32_to_cpu(scr[1]); in sdmmc_read_scr()
192 sdmmc_decode_scr(&card_scr, raw_scr, &card->sd_version); in sdmmc_read_scr()