/kernel/linux/linux-5.10/drivers/mmc/core/ |
H A D | sdio.c | 33 MMC_DEV_ATTR(ocr, "0x%08x\n", card->ocr); 143 static int sdio_read_cccr(struct mmc_card *card, u32 ocr) in sdio_read_cccr() argument 147 int uhs = ocr & R4_18V_PRESENT; in sdio_read_cccr() 608 static int mmc_sdio_pre_init(struct mmc_host *host, u32 ocr, in mmc_sdio_pre_init() argument 633 mmc_send_if_cond(host, ocr); in mmc_sdio_pre_init() 643 static int mmc_sdio_init_card(struct mmc_host *host, u32 ocr, in mmc_sdio_init_card() argument 650 u32 ocr_card = ocr; in mmc_sdio_init_card() 656 ocr |= R4_18V_PRESENT; in mmc_sdio_init_card() 661 ocr in mmc_sdio_init_card() 1195 u32 ocr, rocr; mmc_attach_sdio() local [all...] |
H A D | sd.c | 696 MMC_DEV_ATTR(ocr, "0x%08x\n", card->ocr); 798 int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr) in mmc_sd_get_cid() argument 803 u32 pocr = ocr; in mmc_sd_get_cid() 807 ocr &= ~SD_OCR_S18R; in mmc_sd_get_cid() 822 * of the ocr to indicate that we can handle in mmc_sd_get_cid() 825 err = mmc_send_if_cond(host, ocr); in mmc_sd_get_cid() 827 ocr |= SD_OCR_CCS; in mmc_sd_get_cid() 835 ocr |= SD_OCR_S18R; in mmc_sd_get_cid() 843 ocr | in mmc_sd_get_cid() 1007 mmc_sd_init_card(struct mmc_host *host, u32 ocr, struct mmc_card *oldcard) mmc_sd_init_card() argument 1335 u32 ocr, rocr; mmc_attach_sd() local [all...] |
H A D | core.h | 47 u32 mmc_select_voltage(struct mmc_host *host, u32 ocr); 48 int mmc_set_uhs_voltage(struct mmc_host *host, u32 ocr); 56 void mmc_power_up(struct mmc_host *host, u32 ocr); 58 void mmc_power_cycle(struct mmc_host *host, u32 ocr);
|
H A D | sd_ops.c | 117 int mmc_send_app_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr) in mmc_send_app_op_cond() argument 124 cmd.arg = ocr & (1 << 30); /* SPI only defines one bit */ in mmc_send_app_op_cond() 126 cmd.arg = ocr; in mmc_send_app_op_cond() 135 if (ocr == 0) in mmc_send_app_op_cond() 161 int mmc_send_if_cond(struct mmc_host *host, u32 ocr) in mmc_send_if_cond() argument 174 cmd.arg = ((ocr & 0xFF8000) != 0) << 8 | test_pattern; in mmc_send_if_cond()
|
H A D | sd_ops.h | 17 int mmc_send_app_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr); 18 int mmc_send_if_cond(struct mmc_host *host, u32 ocr);
|
H A D | sdio_ops.c | 18 int mmc_send_io_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr) in mmc_send_io_op_cond() argument 24 cmd.arg = ocr; in mmc_send_io_op_cond() 33 if (ocr == 0) in mmc_send_io_op_cond()
|
H A D | core.c | 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 in mmc_select_voltage() 1200 mmc_set_uhs_voltage(struct mmc_host *host, u32 ocr) mmc_set_uhs_voltage() argument 1327 mmc_power_up(struct mmc_host *host, u32 ocr) mmc_power_up() argument 1383 mmc_power_cycle(struct mmc_host *host, u32 ocr) mmc_power_cycle() argument [all...] |
H A D | sd.h | 12 int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr);
|
H A D | mmc.c | 802 MMC_DEV_ATTR(ocr, "0x%08x\n", card->ocr); 1575 static int mmc_init_card(struct mmc_host *host, u32 ocr, in mmc_init_card() argument 1599 err = mmc_send_op_cond(host, ocr | (1 << 30), &rocr); in mmc_init_card() 1638 card->ocr = ocr; in mmc_init_card() 1703 * ocr register has bit 30 set for sector addressing. in mmc_init_card() 2119 mmc_power_up(host, host->card->ocr); in _mmc_resume() 2120 err = mmc_init_card(host, host->card->ocr, host->card); in _mmc_resume() 2220 mmc_power_cycle(host, card->ocr); in _mmc_hw_reset() 2245 u32 ocr, rocr; mmc_attach_mmc() local [all...] |
/kernel/linux/linux-6.6/drivers/mmc/core/ |
H A D | sdio.c | 34 MMC_DEV_ATTR(ocr, "0x%08x\n", card->ocr); 144 static int sdio_read_cccr(struct mmc_card *card, u32 ocr) in sdio_read_cccr() argument 148 int uhs = ocr & R4_18V_PRESENT; in sdio_read_cccr() 623 static int mmc_sdio_pre_init(struct mmc_host *host, u32 ocr, in mmc_sdio_pre_init() argument 648 mmc_send_if_cond(host, ocr); in mmc_sdio_pre_init() 658 static int mmc_sdio_init_card(struct mmc_host *host, u32 ocr, in mmc_sdio_init_card() argument 665 u32 ocr_card = ocr; in mmc_sdio_init_card() 671 ocr |= R4_18V_PRESENT; in mmc_sdio_init_card() 676 ocr in mmc_sdio_init_card() 1209 u32 ocr, rocr; mmc_attach_sdio() local [all...] |
H A D | sd_ops.c | 118 int mmc_send_app_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr) in mmc_send_app_op_cond() argument 125 cmd.arg = ocr & (1 << 30); /* SPI only defines one bit */ in mmc_send_app_op_cond() 127 cmd.arg = ocr; in mmc_send_app_op_cond() 136 if (ocr == 0) in mmc_send_app_op_cond() 162 static int __mmc_send_if_cond(struct mmc_host *host, u32 ocr, u8 pcie_bits, in __mmc_send_if_cond() argument 176 cmd.arg = ((ocr & 0xFF8000) != 0) << 8 | pcie_bits << 8 | test_pattern; in __mmc_send_if_cond() 197 int mmc_send_if_cond(struct mmc_host *host, u32 ocr) in mmc_send_if_cond() argument 199 return __mmc_send_if_cond(host, ocr, 0, NULL); in mmc_send_if_cond() 202 int mmc_send_if_cond_pcie(struct mmc_host *host, u32 ocr) in mmc_send_if_cond_pcie() argument 216 ret = __mmc_send_if_cond(host, ocr, pcie_bit in mmc_send_if_cond_pcie() [all...] |
H A D | sd_ops.h | 17 int mmc_send_app_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr); 18 int mmc_send_if_cond(struct mmc_host *host, u32 ocr); 19 int mmc_send_if_cond_pcie(struct mmc_host *host, u32 ocr);
|
H A D | sd.c | 715 MMC_DEV_ATTR(ocr, "0x%08x\n", card->ocr); 815 int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr) in mmc_sd_get_cid() argument 820 u32 pocr = ocr; in mmc_sd_get_cid() 824 ocr &= ~SD_OCR_S18R; in mmc_sd_get_cid() 839 * of the ocr to indicate that we can handle in mmc_sd_get_cid() 842 err = mmc_send_if_cond(host, ocr); in mmc_sd_get_cid() 844 ocr |= SD_OCR_CCS; in mmc_sd_get_cid() 852 ocr |= SD_OCR_S18R; in mmc_sd_get_cid() 860 ocr | in mmc_sd_get_cid() 1403 mmc_sd_init_card(struct mmc_host *host, u32 ocr, struct mmc_card *oldcard) mmc_sd_init_card() argument 1830 u32 ocr, rocr; mmc_attach_sd() local [all...] |
H A D | core.h | 48 u32 mmc_select_voltage(struct mmc_host *host, u32 ocr); 49 int mmc_set_uhs_voltage(struct mmc_host *host, u32 ocr); 57 void mmc_power_up(struct mmc_host *host, u32 ocr); 59 void mmc_power_cycle(struct mmc_host *host, u32 ocr);
|
H A D | sdio_ops.c | 18 int mmc_send_io_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr) in mmc_send_io_op_cond() argument 24 cmd.arg = ocr; in mmc_send_io_op_cond() 33 if (ocr == 0) in mmc_send_io_op_cond()
|
H A D | core.c | 1115 u32 mmc_select_voltage(struct mmc_host *host, u32 ocr) in mmc_select_voltage() argument 1123 if (ocr & 0x7F) { in mmc_select_voltage() 1126 ocr &= ~0x7F; in mmc_select_voltage() 1129 ocr &= host->ocr_avail; in mmc_select_voltage() 1130 if (!ocr) { in mmc_select_voltage() 1136 bit = ffs(ocr) - 1; in mmc_select_voltage() 1137 ocr &= 3 << bit; in mmc_select_voltage() 1138 mmc_power_cycle(host, ocr); in mmc_select_voltage() 1140 bit = fls(ocr) - 1; in mmc_select_voltage() 1147 ocr in mmc_select_voltage() 1205 mmc_set_uhs_voltage(struct mmc_host *host, u32 ocr) mmc_set_uhs_voltage() argument 1332 mmc_power_up(struct mmc_host *host, u32 ocr) mmc_power_up() argument 1388 mmc_power_cycle(struct mmc_host *host, u32 ocr) mmc_power_cycle() argument [all...] |
H A D | mmc_ops.c | 65 u32 ocr; member 189 u32 ocr = data->ocr; in __mmc_send_op_cond_cb() local 217 if (!ocr && !mmc_host_is_spi(host)) in __mmc_send_op_cond_cb() 223 int mmc_send_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr) in mmc_send_op_cond() argument 229 .ocr = ocr, in mmc_send_op_cond() 234 cmd.arg = mmc_host_is_spi(host) ? 0 : ocr; in mmc_send_op_cond()
|
H A D | sd.h | 12 int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr);
|
H A D | mmc.c | 813 MMC_DEV_ATTR(ocr, "0x%08x\n", card->ocr); 1600 static int mmc_init_card(struct mmc_host *host, u32 ocr, in mmc_init_card() argument 1624 err = mmc_send_op_cond(host, ocr | (1 << 30), &rocr); in mmc_init_card() 1663 card->ocr = ocr; in mmc_init_card() 1728 * ocr register has bit 30 set for sector addressing. in mmc_init_card() 2164 mmc_power_up(host, host->card->ocr); in _mmc_resume() 2165 err = mmc_init_card(host, host->card->ocr, host->card); in _mmc_resume() 2265 mmc_power_cycle(host, card->ocr); in _mmc_hw_reset() 2291 u32 ocr, rocr; mmc_attach_mmc() local [all...] |
/kernel/linux/linux-5.10/drivers/net/can/sja1000/ |
H A D | sja1000_isa.c | 36 static unsigned char ocr[MAXDEV] = {[0 ... (MAXDEV - 1)] = 0xff}; variable 60 module_param_array(ocr, byte, NULL, 0444); 61 MODULE_PARM_DESC(ocr, "Output control register " 183 if (ocr[idx] != 0xff) in sja1000_isa_probe() 184 priv->ocr = ocr[idx]; in sja1000_isa_probe() 185 else if (ocr[0] != 0xff) in sja1000_isa_probe() 186 priv->ocr = ocr[0]; in sja1000_isa_probe() 188 priv->ocr in sja1000_isa_probe() [all...] |
H A D | sja1000_platform.c | 115 priv->ocr = pdata->ocr; in sp_populate() 167 priv->ocr |= prop & OCR_MODE_MASK; in sp_populate_of() 169 priv->ocr |= OCR_MODE_NORMAL; /* default */ in sp_populate_of() 173 priv->ocr |= (prop << OCR_TX_SHIFT) & OCR_TX_MASK; in sp_populate_of() 175 priv->ocr |= OCR_TX0_PULLDOWN; /* default */ in sp_populate_of()
|
/kernel/linux/linux-6.6/drivers/net/can/sja1000/ |
H A D | sja1000_isa.c | 36 static unsigned char ocr[MAXDEV] = {[0 ... (MAXDEV - 1)] = 0xff}; variable 60 module_param_array(ocr, byte, NULL, 0444); 61 MODULE_PARM_DESC(ocr, "Output control register " 183 if (ocr[idx] != 0xff) in sja1000_isa_probe() 184 priv->ocr = ocr[idx]; in sja1000_isa_probe() 185 else if (ocr[0] != 0xff) in sja1000_isa_probe() 186 priv->ocr = ocr[0]; in sja1000_isa_probe() 188 priv->ocr in sja1000_isa_probe() [all...] |
H A D | sja1000_platform.c | 117 priv->ocr = pdata->ocr; in sp_populate() 171 priv->ocr |= prop & OCR_MODE_MASK; in sp_populate_of() 173 priv->ocr |= OCR_MODE_NORMAL; /* default */ in sp_populate_of() 177 priv->ocr |= (prop << OCR_TX_SHIFT) & OCR_TX_MASK; in sp_populate_of() 179 priv->ocr |= OCR_TX0_PULLDOWN; /* default */ in sp_populate_of()
|
/kernel/linux/linux-5.10/drivers/staging/greybus/ |
H A D | sdio.c | 94 static u32 _gb_sdio_get_host_ocr(u32 ocr) in _gb_sdio_get_host_ocr() argument 96 return (((ocr & GB_SDIO_VDD_165_195) ? MMC_VDD_165_195 : 0) | in _gb_sdio_get_host_ocr() 97 ((ocr & GB_SDIO_VDD_20_21) ? MMC_VDD_20_21 : 0) | in _gb_sdio_get_host_ocr() 98 ((ocr & GB_SDIO_VDD_21_22) ? MMC_VDD_21_22 : 0) | in _gb_sdio_get_host_ocr() 99 ((ocr & GB_SDIO_VDD_22_23) ? MMC_VDD_22_23 : 0) | in _gb_sdio_get_host_ocr() 100 ((ocr & GB_SDIO_VDD_23_24) ? MMC_VDD_23_24 : 0) | in _gb_sdio_get_host_ocr() 101 ((ocr & GB_SDIO_VDD_24_25) ? MMC_VDD_24_25 : 0) | in _gb_sdio_get_host_ocr() 102 ((ocr & GB_SDIO_VDD_25_26) ? MMC_VDD_25_26 : 0) | in _gb_sdio_get_host_ocr() 103 ((ocr & GB_SDIO_VDD_26_27) ? MMC_VDD_26_27 : 0) | in _gb_sdio_get_host_ocr() 104 ((ocr in _gb_sdio_get_host_ocr() 122 u32 ocr; gb_sdio_get_caps() local [all...] |
/kernel/linux/linux-6.6/drivers/staging/greybus/ |
H A D | sdio.c | 93 static u32 _gb_sdio_get_host_ocr(u32 ocr) in _gb_sdio_get_host_ocr() argument 95 return (((ocr & GB_SDIO_VDD_165_195) ? MMC_VDD_165_195 : 0) | in _gb_sdio_get_host_ocr() 96 ((ocr & GB_SDIO_VDD_20_21) ? MMC_VDD_20_21 : 0) | in _gb_sdio_get_host_ocr() 97 ((ocr & GB_SDIO_VDD_21_22) ? MMC_VDD_21_22 : 0) | in _gb_sdio_get_host_ocr() 98 ((ocr & GB_SDIO_VDD_22_23) ? MMC_VDD_22_23 : 0) | in _gb_sdio_get_host_ocr() 99 ((ocr & GB_SDIO_VDD_23_24) ? MMC_VDD_23_24 : 0) | in _gb_sdio_get_host_ocr() 100 ((ocr & GB_SDIO_VDD_24_25) ? MMC_VDD_24_25 : 0) | in _gb_sdio_get_host_ocr() 101 ((ocr & GB_SDIO_VDD_25_26) ? MMC_VDD_25_26 : 0) | in _gb_sdio_get_host_ocr() 102 ((ocr & GB_SDIO_VDD_26_27) ? MMC_VDD_26_27 : 0) | in _gb_sdio_get_host_ocr() 103 ((ocr in _gb_sdio_get_host_ocr() 121 u32 ocr; gb_sdio_get_caps() local [all...] |