Home
last modified time | relevance | path

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

12

/linux-2.6.39/drivers/net/can/sja1000/
Dsja1000_isa.c48 static char __devinitdata ocr[MAXDEV] = {[0 ... (MAXDEV - 1)] = -1}; variable
71 module_param_array(ocr, byte, NULL, S_IRUGO);
72 MODULE_PARM_DESC(ocr, "Output control register "
192 if (ocr[idx] != -1) in sja1000_isa_probe()
193 priv->ocr = ocr[idx] & 0xff; in sja1000_isa_probe()
194 else if (ocr[0] != -1) in sja1000_isa_probe()
195 priv->ocr = ocr[0] & 0xff; in sja1000_isa_probe()
197 priv->ocr = OCR_DEFAULT; in sja1000_isa_probe()
Dsja1000_of_platform.c146 priv->ocr |= *prop & OCR_MODE_MASK; in sja1000_ofp_probe()
148 priv->ocr |= OCR_MODE_NORMAL; /* default */ in sja1000_ofp_probe()
152 priv->ocr |= (*prop << OCR_TX_SHIFT) & OCR_TX_MASK; in sja1000_ofp_probe()
154 priv->ocr |= OCR_TX0_PULLDOWN; /* default */ in sja1000_ofp_probe()
180 priv->ocr, priv->cdr); in sja1000_ofp_probe()
Dsja1000_platform.c116 priv->ocr = pdata->ocr; in sp_probe()
Dplx_pci.c143 u8 ocr; /* output control register */ member
529 priv->ocr = ci->ocr; in plx_pci_add_card()
Dsja1000.h173 u8 ocr; /* output control register */ member
Dtscan1.c141 priv->ocr = OCR_TX0_PUSHPULL; in tscan1_probe()
/linux-2.6.39/drivers/mmc/core/
Dsd.c403 int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid) in mmc_sd_get_cid() argument
421 err = mmc_send_if_cond(host, ocr); in mmc_sd_get_cid()
423 ocr |= 1 << 30; in mmc_sd_get_cid()
425 err = mmc_send_app_op_cond(host, ocr, NULL); in mmc_sd_get_cid()
550 static int mmc_sd_init_card(struct mmc_host *host, u32 ocr, in mmc_sd_init_card() argument
560 err = mmc_sd_get_cid(host, ocr, cid); in mmc_sd_init_card()
720 err = mmc_sd_init_card(host, host->ocr, host->card); in mmc_sd_resume()
732 ret = mmc_sd_init_card(host, host->ocr, host->card); in mmc_sd_power_restore()
771 u32 ocr; in mmc_attach_sd() local
776 err = mmc_send_app_op_cond(host, 0, &ocr); in mmc_attach_sd()
[all …]
Dsdio.c330 static int mmc_sdio_init_card(struct mmc_host *host, u32 ocr, in mmc_sdio_init_card() argument
343 err = mmc_send_io_op_cond(host, host->ocr, &ocr); in mmc_sdio_init_card()
366 if (ocr & R4_MEMORY_PRESENT in mmc_sdio_init_card()
367 && mmc_sd_get_cid(host, host->ocr & ocr, card->raw_cid) == 0) { in mmc_sdio_init_card()
649 err = mmc_sdio_init_card(host, host->ocr, host->card, in mmc_sdio_resume()
693 ret = mmc_sdio_init_card(host, host->ocr, host->card, in mmc_sdio_power_restore()
717 u32 ocr; in mmc_attach_sdio() local
723 err = mmc_send_io_op_cond(host, 0, &ocr); in mmc_attach_sdio()
735 if (ocr & 0x7F) { in mmc_attach_sdio()
739 ocr &= ~0x7F; in mmc_attach_sdio()
[all …]
Dmmc.c417 static int mmc_init_card(struct mmc_host *host, u32 ocr, in mmc_init_card() argument
438 err = mmc_send_op_cond(host, ocr | (1 << 30), &rocr); in mmc_init_card()
760 err = mmc_init_card(host, host->ocr, host->card); in mmc_resume()
772 ret = mmc_init_card(host, host->ocr, host->card); in mmc_power_restore()
845 u32 ocr; in mmc_attach_mmc() local
850 err = mmc_send_op_cond(host, 0, &ocr); in mmc_attach_mmc()
862 err = mmc_spi_read_ocr(host, 1, &ocr); in mmc_attach_mmc()
871 if (ocr & 0x7F) { in mmc_attach_mmc()
875 ocr &= ~0x7F; in mmc_attach_mmc()
878 host->ocr = mmc_select_voltage(host, ocr); in mmc_attach_mmc()
[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
161 cmd.arg = ocr & (1 << 30); /* SPI only defines one bit */ in mmc_send_app_op_cond()
163 cmd.arg = ocr; in mmc_send_app_op_cond()
172 if (ocr == 0) in mmc_send_app_op_cond()
195 int mmc_send_if_cond(struct mmc_host *host, u32 ocr) in mmc_send_if_cond() argument
208 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
32 cmd.arg = ocr; in mmc_send_io_op_cond()
41 if (ocr == 0) in mmc_send_io_op_cond()
Dcore.c924 u32 mmc_select_voltage(struct mmc_host *host, u32 ocr) in mmc_select_voltage() argument
928 ocr &= host->ocr_avail; in mmc_select_voltage()
930 bit = ffs(ocr); in mmc_select_voltage()
934 ocr &= 3 << bit; in mmc_select_voltage()
941 ocr = 0; in mmc_select_voltage()
944 return ocr; in mmc_select_voltage()
972 if (host->ocr) in mmc_power_up()
973 bit = ffs(host->ocr) - 1; in mmc_power_up()
1017 host->ocr = 1 << (fls(host->ocr_avail) - 1); in mmc_power_off()
1769 mmc_select_voltage(host, host->ocr); in mmc_resume_host()
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);
Dmmc_ops.h18 int mmc_send_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr);
Dcore.h43 u32 mmc_select_voltage(struct mmc_host *host, u32 ocr);
Dmmc_ops.c136 int mmc_send_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr) in mmc_send_op_cond() argument
146 cmd.arg = mmc_host_is_spi(host) ? 0 : ocr; in mmc_send_op_cond()
155 if (ocr == 0) in mmc_send_op_cond()
/linux-2.6.39/arch/arm/plat-mxc/
Diomux-v1.c92 unsigned int port, unsigned int pin, unsigned int ocr) in imx_iomuxv1_set_ocr() argument
96 unsigned long value = ocr << shift; in imx_iomuxv1_set_ocr()
128 unsigned int ocr = (gpio_mode & GPIO_OCR_MASK) >> GPIO_OCR_SHIFT; in mxc_gpio_mode() local
147 imx_iomuxv1_set_ocr(port, pin, ocr); in mxc_gpio_mode()
/linux-2.6.39/include/linux/can/platform/
Dsja1000.h31 u8 ocr; /* output control register */ member
/linux-2.6.39/drivers/net/wireless/rtlwifi/
Defuse.h96 u8 ocr[3]; member
/linux-2.6.39/arch/arm/mach-imx/
Dpcm970-baseboard.c203 .ocr = OCR_TX1_PULLDOWN | OCR_TX0_PUSHPULL,
/linux-2.6.39/include/linux/mmc/
Dsh_mmcif.h47 u32 ocr; member
Dhost.h201 u32 ocr; /* the current OCR setting */ member
/linux-2.6.39/include/linux/
Daudit.h576 #define audit_log_bprm_fcaps(b, ncr, ocr) ({ 0; }) argument
577 #define audit_log_capset(pid, ncr, ocr) ((void)0) argument

12