Lines Matching refs:ocr
1110 u32 mmc_select_voltage(struct mmc_host *host, u32 ocr) in mmc_select_voltage() argument
1118 if (ocr & 0x7F) { in mmc_select_voltage()
1121 ocr &= ~0x7F; in mmc_select_voltage()
1124 ocr &= host->ocr_avail; in mmc_select_voltage()
1125 if (!ocr) { in mmc_select_voltage()
1131 bit = ffs(ocr) - 1; in mmc_select_voltage()
1132 ocr &= 3 << bit; in mmc_select_voltage()
1133 mmc_power_cycle(host, ocr); in mmc_select_voltage()
1135 bit = fls(ocr) - 1; in mmc_select_voltage()
1142 ocr &= 3 << (bit - 1); in mmc_select_voltage()
1147 return ocr; in mmc_select_voltage()
1200 int mmc_set_uhs_voltage(struct mmc_host *host, u32 ocr) in mmc_set_uhs_voltage() argument
1259 mmc_power_cycle(host, ocr); in mmc_set_uhs_voltage()
1327 void mmc_power_up(struct mmc_host *host, u32 ocr) in mmc_power_up() argument
1334 host->ios.vdd = fls(ocr) - 1; in mmc_power_up()
1383 void mmc_power_cycle(struct mmc_host *host, u32 ocr) in mmc_power_cycle() argument
1388 mmc_power_up(host, ocr); in mmc_power_cycle()