Home
last modified time | relevance | path

Searched refs:ocr (Results 1 – 25 of 40) sorted by relevance

12

/linux-6.15/drivers/mmc/core/
H A Dsd_ops.c33 u32 ocr; member
147 u32 ocr = data->ocr; in sd_app_op_cond_cb() local
157 if (ocr == 0) in sd_app_op_cond_cb()
172 int mmc_send_app_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr) in mmc_send_app_op_cond() argument
177 .ocr = ocr, in mmc_send_app_op_cond()
184 cmd.arg = ocr & (1 << 30); /* SPI only defines one bit */ in mmc_send_app_op_cond()
186 cmd.arg = ocr; in mmc_send_app_op_cond()
250 int mmc_send_if_cond(struct mmc_host *host, u32 ocr) in mmc_send_if_cond() argument
252 return __mmc_send_if_cond(host, ocr, 0, NULL); in mmc_send_if_cond()
255 int mmc_send_if_cond_pcie(struct mmc_host *host, u32 ocr) in mmc_send_if_cond_pcie() argument
[all …]
H A Dsdio.c34 MMC_DEV_ATTR(ocr, "0x%08x\n", card->ocr);
148 int uhs = ocr & R4_18V_PRESENT; in sdio_read_cccr()
650 mmc_send_if_cond(host, ocr); in mmc_sdio_pre_init()
667 u32 ocr_card = ocr; in mmc_sdio_init_card()
673 ocr |= R4_18V_PRESENT; in mmc_sdio_init_card()
678 ocr &= ~R4_18V_PRESENT; in mmc_sdio_init_card()
729 card->ocr = ocr_card; in mmc_sdio_init_card()
749 ocr &= ~R4_18V_PRESENT; in mmc_sdio_init_card()
815 err = sdio_read_cccr(card, ocr); in mmc_sdio_init_card()
818 if (ocr & R4_18V_PRESENT) { in mmc_sdio_init_card()
[all …]
H A Dsd_ops.h18 int mmc_send_app_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr);
19 int mmc_send_if_cond(struct mmc_host *host, u32 ocr);
20 int mmc_send_if_cond_pcie(struct mmc_host *host, u32 ocr);
H A Dsd.c715 MMC_DEV_ATTR(ocr, "0x%08x\n", card->ocr);
820 u32 pocr = ocr; in mmc_sd_get_cid()
824 ocr &= ~SD_OCR_S18R; in mmc_sd_get_cid()
844 ocr |= SD_OCR_CCS; in mmc_sd_get_cid()
846 ocr |= SD_OCR_2T; in mmc_sd_get_cid()
855 ocr |= SD_OCR_S18R; in mmc_sd_get_cid()
863 ocr |= SD_OCR_XPC; in mmc_sd_get_cid()
1437 card->ocr = ocr; in mmc_sd_init_card()
1502 mmc_power_cycle(host, ocr); in mmc_sd_init_card()
1839 u32 ocr, rocr; in mmc_attach_sd() local
[all …]
H A Dcore.h48 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 Dsdio_ops.c18 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 Dcore.c1129 if (ocr & 0x7F) { in mmc_select_voltage()
1132 ocr &= ~0x7F; in mmc_select_voltage()
1135 ocr &= host->ocr_avail; in mmc_select_voltage()
1136 if (!ocr) { in mmc_select_voltage()
1142 bit = ffs(ocr) - 1; in mmc_select_voltage()
1143 ocr &= 3 << bit; in mmc_select_voltage()
1144 mmc_power_cycle(host, ocr); in mmc_select_voltage()
1146 bit = fls(ocr) - 1; in mmc_select_voltage()
1153 ocr &= 3 << (bit - 1); in mmc_select_voltage()
1158 return ocr; in mmc_select_voltage()
[all …]
H A Dmmc_ops.c65 u32 ocr; member
197 u32 ocr = data->ocr; in __mmc_send_op_cond_cb() local
225 if (!ocr && !mmc_host_is_spi(host)) in __mmc_send_op_cond_cb()
231 int mmc_send_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr) in mmc_send_op_cond() argument
237 .ocr = ocr, in mmc_send_op_cond()
242 cmd.arg = mmc_host_is_spi(host) ? 0 : ocr; in mmc_send_op_cond()
H A Dsd_uhs2.c868 u32 ocr; in sd_uhs2_legacy_init() local
888 err = mmc_send_app_op_cond(host, 0, &ocr); in sd_uhs2_legacy_init()
892 card->ocr = ocr; in sd_uhs2_legacy_init()
898 ocr &= ~0x7FFF; in sd_uhs2_legacy_init()
899 rocr = mmc_select_voltage(host, ocr); in sd_uhs2_legacy_init()
910 ocr = rocr; in sd_uhs2_legacy_init()
912 err = mmc_send_app_op_cond(host, ocr, &rocr); in sd_uhs2_legacy_init()
H A Dmmc.c810 MMC_DEV_ATTR(ocr, "0x%08x\n", card->ocr);
1598 static int mmc_init_card(struct mmc_host *host, u32 ocr, in mmc_init_card() argument
1622 err = mmc_send_op_cond(host, ocr | (1 << 30), &rocr); in mmc_init_card()
1661 card->ocr = ocr; in mmc_init_card()
2173 mmc_power_up(host, host->card->ocr); in _mmc_resume()
2274 mmc_power_cycle(host, card->ocr); in _mmc_hw_reset()
2277 return mmc_init_card(host, card->ocr, card); in _mmc_hw_reset()
2300 u32 ocr, rocr; in mmc_attach_mmc() local
2308 err = mmc_send_op_cond(host, 0, &ocr); in mmc_attach_mmc()
2320 err = mmc_spi_read_ocr(host, 1, &ocr); in mmc_attach_mmc()
[all …]
H A Dsd.h12 int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr);
H A Dsdio_ops.h18 int mmc_send_io_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr);
H A Dmmc_ops.h30 int mmc_send_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr);
/linux-6.15/drivers/net/can/sja1000/
H A Dsja1000_isa.c36 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()
H A Dsja1000_platform.c117 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()
H A Dsja1000.h173 u8 ocr; /* output control register */ member
H A Dplx_pci.c155 u8 ocr; /* output control register */ member
690 priv->ocr = ci->ocr; in plx_pci_add_card()
H A Dtscan1.c128 priv->ocr = OCR_TX0_PUSHPULL; in tscan1_probe()
H A Df81601.c169 priv->ocr = OCR_TX0_PUSHPULL | OCR_TX1_PUSHPULL; in f81601_pci_probe()
H A Dems_pcmcia.c217 priv->ocr = EMS_PCMCIA_OCR; in ems_pcmcia_add_card()
/linux-6.15/drivers/staging/greybus/
H A Dsdio.c93 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-6.15/include/linux/can/platform/
H A Dsja1000.h32 u8 ocr; /* output control register */ member
/linux-6.15/drivers/staging/rtl8723bs/include/
H A Drtw_eeprom.h113 u32 ocr; member
/linux-6.15/drivers/net/wireless/realtek/rtlwifi/
H A Defuse.h64 u8 ocr[3]; member
/linux-6.15/include/linux/platform_data/
H A Dsh_mmcif.h33 u32 ocr; member

12