Home
last modified time | relevance | path

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

/linux-4.1.27/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()
582 static int mmc_sdio_init_card(struct mmc_host *host, u32 ocr, in mmc_sdio_init_card() argument
589 u32 ocr_card = ocr; in mmc_sdio_init_card()
596 ocr |= R4_18V_PRESENT; in mmc_sdio_init_card()
601 ocr &= ~R4_18V_PRESENT; in mmc_sdio_init_card()
608 err = mmc_send_io_op_cond(host, ocr, &rocr); in mmc_sdio_init_card()
632 mmc_sd_get_cid(host, ocr & rocr, card->raw_cid, NULL) == 0) { in mmc_sdio_init_card()
662 if (!powered_resume && (rocr & ocr & R4_18V_PRESENT)) { in mmc_sdio_init_card()
673 ocr &= ~R4_18V_PRESENT; in mmc_sdio_init_card()
[all …]
Dcore.h48 u32 mmc_select_voltage(struct mmc_host *host, u32 ocr);
49 int mmc_set_signal_voltage(struct mmc_host *host, int signal_voltage, u32 ocr);
53 void mmc_power_up(struct mmc_host *host, u32 ocr);
55 void mmc_power_cycle(struct mmc_host *host, u32 ocr);
Dsd.c729 int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr) in mmc_sd_get_cid() argument
734 u32 pocr = ocr; in mmc_sd_get_cid()
738 ocr &= ~SD_OCR_S18R; in mmc_sd_get_cid()
756 err = mmc_send_if_cond(host, ocr); in mmc_sd_get_cid()
758 ocr |= SD_OCR_CCS; in mmc_sd_get_cid()
766 ocr |= SD_OCR_S18R; in mmc_sd_get_cid()
774 ocr |= SD_OCR_XPC; in mmc_sd_get_cid()
776 err = mmc_send_app_op_cond(host, ocr, rocr); in mmc_sd_get_cid()
913 static int mmc_sd_init_card(struct mmc_host *host, u32 ocr, in mmc_sd_init_card() argument
924 err = mmc_sd_get_cid(host, ocr, cid, &rocr); in mmc_sd_init_card()
[all …]
Dsd_ops.h16 int mmc_send_app_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr);
17 int mmc_send_if_cond(struct mmc_host *host, u32 ocr);
Dsd_ops.c150 int mmc_send_app_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr) in mmc_send_app_op_cond() argument
159 cmd.arg = ocr & (1 << 30); /* SPI only defines one bit */ in mmc_send_app_op_cond()
161 cmd.arg = ocr; in mmc_send_app_op_cond()
170 if (ocr == 0) in mmc_send_app_op_cond()
196 int mmc_send_if_cond(struct mmc_host *host, u32 ocr) in mmc_send_if_cond() argument
209 cmd.arg = ((ocr & 0xFF8000) != 0) << 8 | test_pattern; in mmc_send_if_cond()
Dsdio_ops.c22 int mmc_send_io_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr) in mmc_send_io_op_cond() argument
30 cmd.arg = ocr; in mmc_send_io_op_cond()
39 if (ocr == 0) in mmc_send_io_op_cond()
Dcore.c1438 u32 mmc_select_voltage(struct mmc_host *host, u32 ocr) in mmc_select_voltage() argument
1446 if (ocr & 0x7F) { in mmc_select_voltage()
1449 ocr &= ~0x7F; in mmc_select_voltage()
1452 ocr &= host->ocr_avail; in mmc_select_voltage()
1453 if (!ocr) { in mmc_select_voltage()
1459 bit = ffs(ocr) - 1; in mmc_select_voltage()
1460 ocr &= 3 << bit; in mmc_select_voltage()
1461 mmc_power_cycle(host, ocr); in mmc_select_voltage()
1463 bit = fls(ocr) - 1; in mmc_select_voltage()
1464 ocr &= 3 << bit; in mmc_select_voltage()
[all …]
Dsd.h8 int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr);
Dsdio_ops.h15 int mmc_send_io_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr);
Dmmc.c1201 static int mmc_init_card(struct mmc_host *host, u32 ocr, in mmc_init_card() argument
1226 err = mmc_send_op_cond(host, ocr | (1 << 30), &rocr); in mmc_init_card()
1266 card->ocr = ocr; in mmc_init_card()
1709 mmc_power_up(host, host->card->ocr); in _mmc_resume()
1710 err = mmc_init_card(host, host->card->ocr, host->card); in _mmc_resume()
1797 ret = mmc_init_card(host, host->card->ocr, host->card); in mmc_power_restore()
1862 u32 ocr, rocr; in mmc_attach_mmc() local
1871 err = mmc_send_op_cond(host, 0, &ocr); in mmc_attach_mmc()
1883 err = mmc_spi_read_ocr(host, 1, &ocr); in mmc_attach_mmc()
1888 rocr = mmc_select_voltage(host, ocr); in mmc_attach_mmc()
Dmmc_ops.h19 int mmc_send_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr);
Dmmc_ops.c183 int mmc_send_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr) in mmc_send_op_cond() argument
191 cmd.arg = mmc_host_is_spi(host) ? 0 : ocr; in mmc_send_op_cond()
200 if (ocr == 0) in mmc_send_op_cond()
/linux-4.1.27/drivers/net/can/sja1000/
Dsja1000_isa.c47 static unsigned char ocr[MAXDEV] = {[0 ... (MAXDEV - 1)] = 0xff}; variable
71 module_param_array(ocr, byte, NULL, S_IRUGO);
72 MODULE_PARM_DESC(ocr, "Output control register "
194 if (ocr[idx] != 0xff) in sja1000_isa_probe()
195 priv->ocr = ocr[idx]; in sja1000_isa_probe()
196 else if (ocr[0] != 0xff) in sja1000_isa_probe()
197 priv->ocr = ocr[0]; in sja1000_isa_probe()
199 priv->ocr = OCR_DEFAULT; in sja1000_isa_probe()
Dsja1000_platform.c79 priv->ocr = pdata->ocr; in sp_populate()
131 priv->ocr |= prop & OCR_MODE_MASK; in sp_populate_of()
133 priv->ocr |= OCR_MODE_NORMAL; /* default */ in sp_populate_of()
137 priv->ocr |= (prop << OCR_TX_SHIFT) & OCR_TX_MASK; in sp_populate_of()
139 priv->ocr |= OCR_TX0_PULLDOWN; /* default */ in sp_populate_of()
Dplx_pci.c157 u8 ocr; /* output control register */ member
586 priv->ocr = ci->ocr; in plx_pci_add_card()
Dsja1000.h171 u8 ocr; /* output control register */ member
Dtscan1.c141 priv->ocr = OCR_TX0_PUSHPULL; in tscan1_probe()
Dems_pcmcia.c226 priv->ocr = EMS_PCMCIA_OCR; in ems_pcmcia_add_card()
Dems_pci.c322 priv->ocr = EMS_PCI_OCR; in ems_pci_add_card()
Dkvaser_pci.c260 priv->ocr = KVASER_PCI_OCR; in kvaser_pci_add_chan()
Dpeak_pcmcia.c569 priv->ocr = PCC_OCR; in pcan_add_channels()
Dsja1000.c201 priv->write_reg(priv, SJA1000_OCR, priv->ocr | OCR_MODE_NORMAL); in chipset_init()
Dpeak_pci.c634 priv->ocr = PEAK_PCI_OCR; in peak_pci_probe()
/linux-4.1.27/arch/arm/mach-imx/
Diomux-v1.c93 unsigned int port, unsigned int pin, unsigned int ocr) in imx_iomuxv1_set_ocr() argument
97 unsigned long value = ocr << shift; in imx_iomuxv1_set_ocr()
129 unsigned int ocr = (gpio_mode & GPIO_OCR_MASK) >> GPIO_OCR_SHIFT; in mxc_gpio_mode() local
148 imx_iomuxv1_set_ocr(port, pin, ocr); in mxc_gpio_mode()
Dmach-pcm037.c516 .ocr = OCR_TX1_PULLDOWN | OCR_TX0_PUSHPULL,
/linux-4.1.27/include/linux/can/platform/
Dsja1000.h31 u8 ocr; /* output control register */ member
/linux-4.1.27/drivers/net/wireless/rtlwifi/
Defuse.h86 u8 ocr[3]; member
/linux-4.1.27/include/linux/mmc/
Dsh_mmcif.h44 u32 ocr; member
Dcard.h250 u32 ocr; /* the current OCR setting */ member
/linux-4.1.27/arch/sh/boards/
Dboard-sh7757lcr.c231 .ocr = MMC_VDD_32_33 | MMC_VDD_33_34,
/linux-4.1.27/arch/arm/mach-shmobile/
Dboard-kzm9g.c366 .ocr = MMC_VDD_165_195,
/linux-4.1.27/drivers/mmc/host/
Dsh_mmcif.c1373 mmc->ocr_avail = pd->ocr; in sh_mmcif_init_ocr()
1374 else if (pd->ocr) in sh_mmcif_init_ocr()
/linux-4.1.27/arch/sh/boards/mach-ecovec24/
Dsetup.c970 .ocr = MMC_VDD_32_33 | MMC_VDD_33_34,
/linux-4.1.27/drivers/scsi/megaraid/
Dmegaraid_sas_base.c100 int megasas_transition_to_ready(struct megasas_instance *instance, int ocr);
3345 megasas_transition_to_ready(struct megasas_instance *instance, int ocr) in megasas_transition_to_ready() argument
3366 if (ocr) { in megasas_transition_to_ready()
Dmegaraid_sas_fusion.c81 int megasas_transition_to_ready(struct megasas_instance *instance, int ocr);