/drivers/mmc/core/ |
D | sdio.c | 106 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 …]
|
D | sd.c | 729 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 …]
|
D | core.h | 47 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);
|
D | sd_ops.c | 150 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()
|
D | sd_ops.h | 16 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);
|
D | sdio_ops.c | 22 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()
|
D | core.c | 1433 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 …]
|
D | mmc.c | 1259 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()
|
D | sdio_ops.h | 15 int mmc_send_io_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr);
|
D | sd.h | 8 int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr);
|
D | mmc_ops.h | 19 int mmc_send_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr);
|
D | mmc_ops.c | 153 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/ |
D | sja1000_isa.c | 47 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()
|
D | sja1000_platform.c | 79 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()
|
D | plx_pci.c | 157 u8 ocr; /* output control register */ member 586 priv->ocr = ci->ocr; in plx_pci_add_card()
|
D | sja1000.h | 171 u8 ocr; /* output control register */ member
|
D | tscan1.c | 141 priv->ocr = OCR_TX0_PUSHPULL; in tscan1_probe()
|
D | ems_pcmcia.c | 226 priv->ocr = EMS_PCMCIA_OCR; in ems_pcmcia_add_card()
|
D | ems_pci.c | 322 priv->ocr = EMS_PCI_OCR; in ems_pci_add_card()
|
D | kvaser_pci.c | 260 priv->ocr = KVASER_PCI_OCR; in kvaser_pci_add_chan()
|
D | peak_pcmcia.c | 569 priv->ocr = PCC_OCR; in pcan_add_channels()
|
D | peak_pci.c | 634 priv->ocr = PEAK_PCI_OCR; in peak_pci_probe()
|
D | sja1000.c | 201 priv->write_reg(priv, SJA1000_OCR, priv->ocr | OCR_MODE_NORMAL); in chipset_init()
|
/drivers/net/wireless/rtlwifi/ |
D | efuse.h | 92 u8 ocr[3]; member
|
/drivers/mmc/host/ |
D | sh_mmcif.c | 1367 mmc->ocr_avail = pd->ocr; in sh_mmcif_init_ocr() 1368 else if (pd->ocr) in sh_mmcif_init_ocr()
|