Home
last modified time | relevance | path

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

12

/drivers/mmc/core/
Dsdio.c106 static int sdio_read_cccr(struct mmc_card *card, u32 ocr) in sdio_read_cccr() argument
110 int uhs = ocr & R4_18V_PRESENT; in sdio_read_cccr()
589 static int mmc_sdio_init_card(struct mmc_host *host, u32 ocr, in mmc_sdio_init_card() argument
596 u32 ocr_card = ocr; in mmc_sdio_init_card()
603 ocr |= R4_18V_PRESENT; in mmc_sdio_init_card()
608 ocr &= ~R4_18V_PRESENT; in mmc_sdio_init_card()
615 err = mmc_send_io_op_cond(host, ocr, &rocr); in mmc_sdio_init_card()
639 mmc_sd_get_cid(host, ocr & rocr, card->raw_cid, NULL) == 0) { in mmc_sdio_init_card()
669 if (!powered_resume && (rocr & ocr & R4_18V_PRESENT)) { in mmc_sdio_init_card()
680 ocr &= ~R4_18V_PRESENT; in mmc_sdio_init_card()
[all …]
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()
935 static int mmc_sd_init_card(struct mmc_host *host, u32 ocr, in mmc_sd_init_card() argument
946 err = mmc_sd_get_cid(host, ocr, cid, &rocr); in mmc_sd_init_card()
[all …]
Dcore.h47 u32 mmc_select_voltage(struct mmc_host *host, u32 ocr);
48 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_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()
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);
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.c1433 u32 mmc_select_voltage(struct mmc_host *host, u32 ocr) in mmc_select_voltage() argument
1441 if (ocr & 0x7F) { in mmc_select_voltage()
1444 ocr &= ~0x7F; in mmc_select_voltage()
1447 ocr &= host->ocr_avail; in mmc_select_voltage()
1448 if (!ocr) { in mmc_select_voltage()
1454 bit = ffs(ocr) - 1; in mmc_select_voltage()
1455 ocr &= 3 << bit; in mmc_select_voltage()
1456 mmc_power_cycle(host, ocr); in mmc_select_voltage()
1458 bit = fls(ocr) - 1; in mmc_select_voltage()
1459 ocr &= 3 << bit; in mmc_select_voltage()
[all …]
Dmmc.c1259 static int mmc_init_card(struct mmc_host *host, u32 ocr, in mmc_init_card() argument
1285 err = mmc_send_op_cond(host, ocr | (1 << 30), &rocr); in mmc_init_card()
1325 card->ocr = ocr; in mmc_init_card()
1771 mmc_power_up(host, host->card->ocr); in _mmc_resume()
1772 err = mmc_init_card(host, host->card->ocr, host->card); in _mmc_resume()
1859 ret = mmc_init_card(host, host->card->ocr, host->card); in mmc_power_restore()
1883 u32 ocr, rocr; in mmc_attach_mmc() local
1892 err = mmc_send_op_cond(host, 0, &ocr); in mmc_attach_mmc()
1904 err = mmc_spi_read_ocr(host, 1, &ocr); in mmc_attach_mmc()
1909 rocr = mmc_select_voltage(host, ocr); in mmc_attach_mmc()
Dsdio_ops.h15 int mmc_send_io_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr);
Dsd.h8 int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr);
Dmmc_ops.h19 int mmc_send_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr);
Dmmc_ops.c153 int mmc_send_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr) in mmc_send_op_cond() argument
161 cmd.arg = mmc_host_is_spi(host) ? 0 : ocr; in mmc_send_op_cond()
170 if (ocr == 0) in mmc_send_op_cond()
/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()
Dpeak_pci.c634 priv->ocr = PEAK_PCI_OCR; in peak_pci_probe()
Dsja1000.c201 priv->write_reg(priv, SJA1000_OCR, priv->ocr | OCR_MODE_NORMAL); in chipset_init()
/drivers/net/wireless/rtlwifi/
Defuse.h92 u8 ocr[3]; member
/drivers/mmc/host/
Dsh_mmcif.c1367 mmc->ocr_avail = pd->ocr; in sh_mmcif_init_ocr()
1368 else if (pd->ocr) in sh_mmcif_init_ocr()

12