Home
last modified time | relevance | path

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

/linux-4.4.14/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()
551 static int mmc_sdio_init_card(struct mmc_host *host, u32 ocr, in mmc_sdio_init_card() argument
558 u32 ocr_card = ocr; in mmc_sdio_init_card()
565 ocr |= R4_18V_PRESENT; in mmc_sdio_init_card()
570 ocr &= ~R4_18V_PRESENT; in mmc_sdio_init_card()
577 err = mmc_send_io_op_cond(host, ocr, &rocr); in mmc_sdio_init_card()
601 mmc_sd_get_cid(host, ocr & rocr, card->raw_cid, NULL) == 0) { in mmc_sdio_init_card()
631 if (!powered_resume && (rocr & ocr & R4_18V_PRESENT)) { in mmc_sdio_init_card()
642 ocr &= ~R4_18V_PRESENT; in mmc_sdio_init_card()
[all …]
Dcore.h45 u32 mmc_select_voltage(struct mmc_host *host, u32 ocr);
46 int mmc_set_signal_voltage(struct mmc_host *host, int signal_voltage, u32 ocr);
52 void mmc_power_up(struct mmc_host *host, u32 ocr);
54 void mmc_power_cycle(struct mmc_host *host, u32 ocr);
Dsd.c694 int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr) in mmc_sd_get_cid() argument
699 u32 pocr = ocr; in mmc_sd_get_cid()
703 ocr &= ~SD_OCR_S18R; in mmc_sd_get_cid()
721 err = mmc_send_if_cond(host, ocr); in mmc_sd_get_cid()
723 ocr |= SD_OCR_CCS; in mmc_sd_get_cid()
731 ocr |= SD_OCR_S18R; in mmc_sd_get_cid()
739 ocr |= SD_OCR_XPC; in mmc_sd_get_cid()
741 err = mmc_send_app_op_cond(host, ocr, rocr); in mmc_sd_get_cid()
892 static int mmc_sd_init_card(struct mmc_host *host, u32 ocr, in mmc_sd_init_card() argument
903 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.c1511 u32 mmc_select_voltage(struct mmc_host *host, u32 ocr) in mmc_select_voltage() argument
1519 if (ocr & 0x7F) { in mmc_select_voltage()
1522 ocr &= ~0x7F; in mmc_select_voltage()
1525 ocr &= host->ocr_avail; in mmc_select_voltage()
1526 if (!ocr) { in mmc_select_voltage()
1532 bit = ffs(ocr) - 1; in mmc_select_voltage()
1533 ocr &= 3 << bit; in mmc_select_voltage()
1534 mmc_power_cycle(host, ocr); in mmc_select_voltage()
1536 bit = fls(ocr) - 1; in mmc_select_voltage()
1537 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.h17 int mmc_send_io_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr);
Dmmc.c1367 static int mmc_init_card(struct mmc_host *host, u32 ocr, in mmc_init_card() argument
1392 err = mmc_send_op_cond(host, ocr | (1 << 30), &rocr); in mmc_init_card()
1432 card->ocr = ocr; in mmc_init_card()
1880 mmc_power_up(host, host->card->ocr); in _mmc_resume()
1881 err = mmc_init_card(host, host->card->ocr, host->card); in _mmc_resume()
1991 return mmc_init_card(host, card->ocr, card); in mmc_reset()
2012 u32 ocr, rocr; in mmc_attach_mmc() local
2021 err = mmc_send_op_cond(host, 0, &ocr); in mmc_attach_mmc()
2033 err = mmc_spi_read_ocr(host, 1, &ocr); in mmc_attach_mmc()
2038 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.c184 int mmc_send_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr) in mmc_send_op_cond() argument
192 cmd.arg = mmc_host_is_spi(host) ? 0 : ocr; in mmc_send_op_cond()
201 if (ocr == 0) in mmc_send_op_cond()
/linux-4.4.14/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.c635 priv->ocr = PEAK_PCI_OCR; in peak_pci_probe()
/linux-4.4.14/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.4.14/include/linux/can/platform/
Dsja1000.h31 u8 ocr; /* output control register */ member
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/
Defuse.h86 u8 ocr[3]; member
/linux-4.4.14/include/linux/mmc/
Dsh_mmcif.h44 u32 ocr; member
Dcard.h251 u32 ocr; /* the current OCR setting */ member
/linux-4.4.14/arch/arm/mach-omap2/
Dpdata-quirks.c330 card->ocr = 0x80; in pandora_wl1251_init_card()
/linux-4.4.14/arch/sh/boards/
Dboard-sh7757lcr.c231 .ocr = MMC_VDD_32_33 | MMC_VDD_33_34,
/linux-4.4.14/arch/arm/boot/dts/
Dimx6qdl-nit6xlite.dtsi618 ocr-limit = <0x180>; /* 1.65v - 2.1v */
/linux-4.4.14/drivers/mmc/host/
Dsh_mmcif.c1461 mmc->ocr_avail = pd->ocr; in sh_mmcif_init_ocr()
1462 else if (pd->ocr) in sh_mmcif_init_ocr()
/linux-4.4.14/arch/sh/boards/mach-ecovec24/
Dsetup.c970 .ocr = MMC_VDD_32_33 | MMC_VDD_33_34,
/linux-4.4.14/drivers/scsi/megaraid/
Dmegaraid_sas_base.c100 int megasas_transition_to_ready(struct megasas_instance *instance, int ocr);
3445 megasas_transition_to_ready(struct megasas_instance *instance, int ocr) in megasas_transition_to_ready() argument
3466 if (ocr) { in megasas_transition_to_ready()
Dmegaraid_sas_fusion.c83 int megasas_transition_to_ready(struct megasas_instance *instance, int ocr);