Lines Matching full:scr

195  * Given a 64-bit response, decode to our card SCR structure.
199 struct sd_scr *scr = &card->scr; in mmc_decode_scr() local
208 pr_err("%s: unrecognised SCR structure version %d\n", in mmc_decode_scr()
213 scr->sda_vsn = unstuff_bits(resp, 56, 4); in mmc_decode_scr()
214 scr->bus_widths = unstuff_bits(resp, 48, 4); in mmc_decode_scr()
215 if (scr->sda_vsn == SCR_SPEC_VER_2) in mmc_decode_scr()
217 scr->sda_spec3 = unstuff_bits(resp, 47, 1); in mmc_decode_scr()
219 if (scr->sda_spec3) { in mmc_decode_scr()
220 scr->sda_spec4 = unstuff_bits(resp, 42, 1); in mmc_decode_scr()
221 scr->sda_specx = unstuff_bits(resp, 38, 4); in mmc_decode_scr()
229 if (scr->sda_spec4) in mmc_decode_scr()
230 scr->cmds = unstuff_bits(resp, 32, 4); in mmc_decode_scr()
231 else if (scr->sda_spec3) in mmc_decode_scr()
232 scr->cmds = unstuff_bits(resp, 32, 2); in mmc_decode_scr()
235 if (!(scr->bus_widths & SD_SCR_BUS_WIDTH_1) || in mmc_decode_scr()
236 !(scr->bus_widths & SD_SCR_BUS_WIDTH_4)) { in mmc_decode_scr()
283 if (au <= 9 || card->scr.sda_spec3) { in mmc_read_ssr()
303 card->erase_arg = (card->scr.sda_specx && discard_support) ? in mmc_read_ssr()
317 if (card->scr.sda_vsn < SCR_SPEC_VER_1) in mmc_read_switch()
354 if (card->scr.sda_spec3) { in mmc_read_switch()
375 if (card->scr.sda_vsn < SCR_SPEC_VER_1) in mmc_sd_switch_hs()
687 MMC_DEV_ATTR(scr, "%08x%08x\n", card->raw_scr[0], card->raw_scr[1]);
924 * Fetch SCR from card. in mmc_sd_setup_card()
1239 if (!(card->scr.cmds & SD_SCR_CMD48_SUPPORT)) in sd_read_ext_regs()
1525 (card->scr.bus_widths & SD_SCR_BUS_WIDTH_4)) { in mmc_sd_init_card()