/linux/drivers/mmc/core/ |
A D | sdio.c | 33 MMC_DEV_ATTR(ocr, "0x%08x\n", card->ocr); 147 int uhs = ocr & R4_18V_PRESENT; in sdio_read_cccr() 633 mmc_send_if_cond(host, ocr); in mmc_sdio_pre_init() 650 u32 ocr_card = ocr; in mmc_sdio_init_card() 656 ocr |= R4_18V_PRESENT; in mmc_sdio_init_card() 661 ocr &= ~R4_18V_PRESENT; in mmc_sdio_init_card() 729 ocr &= ~R4_18V_PRESENT; in mmc_sdio_init_card() 795 err = sdio_read_cccr(card, ocr); in mmc_sdio_init_card() 798 if (ocr & R4_18V_PRESENT) { in mmc_sdio_init_card() 823 card->ocr = ocr_card; in mmc_sdio_init_card() [all …]
|
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_bits, &resp); in mmc_send_if_cond_pcie()
|
A D | sd.c | 707 MMC_DEV_ATTR(ocr, "0x%08x\n", card->ocr); 814 u32 pocr = ocr; in mmc_sd_get_cid() 818 ocr &= ~SD_OCR_S18R; in mmc_sd_get_cid() 836 err = mmc_send_if_cond(host, ocr); in mmc_sd_get_cid() 838 ocr |= SD_OCR_CCS; in mmc_sd_get_cid() 846 ocr |= SD_OCR_S18R; in mmc_sd_get_cid() 854 ocr |= SD_OCR_XPC; in mmc_sd_get_cid() 1421 card->ocr = ocr; in mmc_sd_init_card() 1490 mmc_power_cycle(host, ocr); in mmc_sd_init_card() 1808 u32 ocr, rocr; in mmc_attach_sd() local [all …]
|
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);
|
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);
|
A D | core.c | 1117 if (ocr & 0x7F) { in mmc_select_voltage() 1120 ocr &= ~0x7F; in mmc_select_voltage() 1123 ocr &= host->ocr_avail; in mmc_select_voltage() 1124 if (!ocr) { in mmc_select_voltage() 1130 bit = ffs(ocr) - 1; in mmc_select_voltage() 1131 ocr &= 3 << bit; in mmc_select_voltage() 1132 mmc_power_cycle(host, ocr); in mmc_select_voltage() 1134 bit = fls(ocr) - 1; in mmc_select_voltage() 1135 ocr &= 3 << bit; in mmc_select_voltage() 1140 return ocr; in mmc_select_voltage() [all …]
|
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()
|
A D | mmc.c | 805 MMC_DEV_ATTR(ocr, "0x%08x\n", card->ocr); 1571 static int mmc_init_card(struct mmc_host *host, u32 ocr, in mmc_init_card() argument 1595 err = mmc_send_op_cond(host, ocr | (1 << 30), &rocr); in mmc_init_card() 1634 card->ocr = ocr; in mmc_init_card() 2131 mmc_power_up(host, host->card->ocr); in _mmc_resume() 2232 mmc_power_cycle(host, card->ocr); in _mmc_hw_reset() 2235 return mmc_init_card(host, card->ocr, card); in _mmc_hw_reset() 2258 u32 ocr, rocr; in mmc_attach_mmc() local 2266 err = mmc_send_op_cond(host, 0, &ocr); in mmc_attach_mmc() 2278 err = mmc_spi_read_ocr(host, 1, &ocr); in mmc_attach_mmc() [all …]
|
A D | sd.h | 12 int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr);
|
A D | sdio_ops.h | 18 int mmc_send_io_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr);
|
A D | mmc_ops.h | 29 int mmc_send_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr);
|
A D | mmc_ops.c | 176 int mmc_send_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr) in mmc_send_op_cond() argument 182 cmd.arg = mmc_host_is_spi(host) ? 0 : ocr; in mmc_send_op_cond() 210 if (!ocr && !mmc_host_is_spi(host)) in mmc_send_op_cond()
|
/linux/drivers/staging/greybus/ |
A D | sdio.c | 93 static u32 _gb_sdio_get_host_ocr(u32 ocr) in _gb_sdio_get_host_ocr() argument 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() 111 ((ocr & GB_SDIO_VDD_35_36) ? MMC_VDD_35_36 : 0) in _gb_sdio_get_host_ocr() 121 u32 ocr; in gb_sdio_get_caps() local 146 ocr = _gb_sdio_get_host_ocr(le32_to_cpu(response.ocr)); in gb_sdio_get_caps() [all …]
|
/linux/drivers/net/can/sja1000/ |
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 = OCR_DEFAULT; in sja1000_isa_probe()
|
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()
|
A D | plx_pci.c | 156 u8 ocr; /* output control register */ member 691 priv->ocr = ci->ocr; in plx_pci_add_card()
|
A D | sja1000.h | 171 u8 ocr; /* output control register */ member
|
A D | tscan1.c | 129 priv->ocr = OCR_TX0_PUSHPULL; in tscan1_probe()
|
A D | f81601.c | 169 priv->ocr = OCR_TX0_PUSHPULL | OCR_TX1_PUSHPULL; in f81601_pci_probe()
|
A D | ems_pcmcia.c | 217 priv->ocr = EMS_PCMCIA_OCR; in ems_pcmcia_add_card()
|
/linux/include/linux/can/platform/ |
A D | sja1000.h | 32 u8 ocr; /* output control register */ member
|
/linux/drivers/staging/rtl8723bs/include/ |
A D | rtw_eeprom.h | 113 u32 ocr; member
|
/linux/drivers/net/wireless/realtek/rtlwifi/ |
A D | efuse.h | 64 u8 ocr[3]; member
|
/linux/include/linux/mmc/ |
A D | sh_mmcif.h | 35 u32 ocr; member
|
A D | card.h | 269 u32 ocr; /* the current OCR setting */ member
|