Home
last modified time | relevance | path

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

12

/Linux-v5.4/drivers/mmc/core/
Dsdio.c101 static int sdio_read_cccr(struct mmc_card *card, u32 ocr) in sdio_read_cccr() argument
105 int uhs = ocr & R4_18V_PRESENT; in sdio_read_cccr()
561 static int mmc_sdio_init_card(struct mmc_host *host, u32 ocr, in mmc_sdio_init_card() argument
568 u32 ocr_card = ocr; in mmc_sdio_init_card()
574 ocr |= R4_18V_PRESENT; in mmc_sdio_init_card()
579 ocr &= ~R4_18V_PRESENT; in mmc_sdio_init_card()
585 err = mmc_send_io_op_cond(host, ocr, &rocr); in mmc_sdio_init_card()
608 mmc_sd_get_cid(host, ocr & rocr, card->raw_cid, NULL) == 0) { in mmc_sdio_init_card()
646 if (rocr & ocr & R4_18V_PRESENT) { in mmc_sdio_init_card()
653 ocr &= ~R4_18V_PRESENT; in mmc_sdio_init_card()
[all …]
Dsd.c690 MMC_DEV_ATTR(ocr, "0x%08x\n", card->ocr);
738 int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr) in mmc_sd_get_cid() argument
743 u32 pocr = ocr; in mmc_sd_get_cid()
747 ocr &= ~SD_OCR_S18R; in mmc_sd_get_cid()
765 err = mmc_send_if_cond(host, ocr); in mmc_sd_get_cid()
767 ocr |= SD_OCR_CCS; in mmc_sd_get_cid()
775 ocr |= SD_OCR_S18R; in mmc_sd_get_cid()
783 ocr |= SD_OCR_XPC; in mmc_sd_get_cid()
785 err = mmc_send_app_op_cond(host, ocr, rocr); in mmc_sd_get_cid()
943 static int mmc_sd_init_card(struct mmc_host *host, u32 ocr, in mmc_sd_init_card() argument
[all …]
Dsd_ops.c117 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()
Dcore.h46 u32 mmc_select_voltage(struct mmc_host *host, u32 ocr);
47 int mmc_set_uhs_voltage(struct mmc_host *host, u32 ocr);
55 void mmc_power_up(struct mmc_host *host, u32 ocr);
57 void mmc_power_cycle(struct mmc_host *host, u32 ocr);
Dsd_ops.h17 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);
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()
Dcore.c1119 u32 mmc_select_voltage(struct mmc_host *host, u32 ocr) in mmc_select_voltage() argument
1127 if (ocr & 0x7F) { in mmc_select_voltage()
1130 ocr &= ~0x7F; in mmc_select_voltage()
1133 ocr &= host->ocr_avail; in mmc_select_voltage()
1134 if (!ocr) { in mmc_select_voltage()
1140 bit = ffs(ocr) - 1; in mmc_select_voltage()
1141 ocr &= 3 << bit; in mmc_select_voltage()
1142 mmc_power_cycle(host, ocr); in mmc_select_voltage()
1144 bit = fls(ocr) - 1; in mmc_select_voltage()
1145 ocr &= 3 << bit; in mmc_select_voltage()
[all …]
Dmmc.c791 MMC_DEV_ATTR(ocr, "0x%08x\n", card->ocr);
1548 static int mmc_init_card(struct mmc_host *host, u32 ocr, in mmc_init_card() argument
1572 err = mmc_send_op_cond(host, ocr | (1 << 30), &rocr); in mmc_init_card()
1611 card->ocr = ocr; in mmc_init_card()
2074 mmc_power_up(host, host->card->ocr); in _mmc_resume()
2075 err = mmc_init_card(host, host->card->ocr, host->card); in _mmc_resume()
2175 mmc_power_cycle(host, card->ocr); in _mmc_hw_reset()
2178 return mmc_init_card(host, card->ocr, card); in _mmc_hw_reset()
2199 u32 ocr, rocr; in mmc_attach_mmc() local
2207 err = mmc_send_op_cond(host, 0, &ocr); in mmc_attach_mmc()
[all …]
Dsd.h12 int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr);
Dsdio_ops.h18 int mmc_send_io_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr);
Dmmc_ops.h20 int mmc_send_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr);
Dmmc_ops.c169 int mmc_send_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr) in mmc_send_op_cond() argument
175 cmd.arg = mmc_host_is_spi(host) ? 0 : ocr; in mmc_send_op_cond()
203 if (!ocr && !mmc_host_is_spi(host)) in mmc_send_op_cond()
/Linux-v5.4/drivers/net/can/sja1000/
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()
Dsja1000_platform.c115 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()
Dsja1000.h171 u8 ocr; /* output control register */ member
Dplx_pci.c168 u8 ocr; /* output control register */ member
703 priv->ocr = ci->ocr; in plx_pci_add_card()
Dtscan1.c129 priv->ocr = OCR_TX0_PUSHPULL; in tscan1_probe()
Df81601.c169 priv->ocr = OCR_TX0_PUSHPULL | OCR_TX1_PUSHPULL; in f81601_pci_probe()
/Linux-v5.4/drivers/staging/greybus/
Dsdio.c95 static u32 _gb_sdio_get_host_ocr(u32 ocr) in _gb_sdio_get_host_ocr() argument
97 return (((ocr & GB_SDIO_VDD_165_195) ? MMC_VDD_165_195 : 0) | in _gb_sdio_get_host_ocr()
98 ((ocr & GB_SDIO_VDD_20_21) ? MMC_VDD_20_21 : 0) | in _gb_sdio_get_host_ocr()
99 ((ocr & GB_SDIO_VDD_21_22) ? MMC_VDD_21_22 : 0) | in _gb_sdio_get_host_ocr()
100 ((ocr & GB_SDIO_VDD_22_23) ? MMC_VDD_22_23 : 0) | in _gb_sdio_get_host_ocr()
101 ((ocr & GB_SDIO_VDD_23_24) ? MMC_VDD_23_24 : 0) | in _gb_sdio_get_host_ocr()
102 ((ocr & GB_SDIO_VDD_24_25) ? MMC_VDD_24_25 : 0) | in _gb_sdio_get_host_ocr()
103 ((ocr & GB_SDIO_VDD_25_26) ? MMC_VDD_25_26 : 0) | in _gb_sdio_get_host_ocr()
104 ((ocr & GB_SDIO_VDD_26_27) ? MMC_VDD_26_27 : 0) | in _gb_sdio_get_host_ocr()
105 ((ocr & GB_SDIO_VDD_27_28) ? MMC_VDD_27_28 : 0) | in _gb_sdio_get_host_ocr()
[all …]
/Linux-v5.4/arch/arm/mach-imx/
Diomux-v1.c80 unsigned int port, unsigned int pin, unsigned int ocr) in imx_iomuxv1_set_ocr() argument
84 unsigned long value = ocr << shift; in imx_iomuxv1_set_ocr()
116 unsigned int ocr = (gpio_mode & GPIO_OCR_MASK) >> GPIO_OCR_SHIFT; in mxc_gpio_mode() local
135 imx_iomuxv1_set_ocr(port, pin, ocr); in mxc_gpio_mode()
/Linux-v5.4/include/linux/can/platform/
Dsja1000.h32 u8 ocr; /* output control register */ member
/Linux-v5.4/drivers/staging/rtl8723bs/include/
Drtw_eeprom.h115 u32 ocr; member
/Linux-v5.4/drivers/net/wireless/realtek/rtlwifi/
Defuse.h64 u8 ocr[3]; member
/Linux-v5.4/include/linux/mmc/
Dsh_mmcif.h35 u32 ocr; member
Dcard.h246 u32 ocr; /* the current OCR setting */ member

12