/drivers/media/tuners/ |
D | tda827x.c | 350 u8 scr; member 356 { .lomax = 56875000, .svco = 3, .spd = 4, .scr = 0, .sbs = 0, .gc3 = 1}, 357 { .lomax = 67250000, .svco = 0, .spd = 3, .scr = 0, .sbs = 0, .gc3 = 1}, 358 { .lomax = 81250000, .svco = 1, .spd = 3, .scr = 0, .sbs = 0, .gc3 = 1}, 359 { .lomax = 97500000, .svco = 2, .spd = 3, .scr = 0, .sbs = 0, .gc3 = 1}, 360 { .lomax = 113750000, .svco = 3, .spd = 3, .scr = 0, .sbs = 1, .gc3 = 1}, 361 { .lomax = 134500000, .svco = 0, .spd = 2, .scr = 0, .sbs = 1, .gc3 = 1}, 362 { .lomax = 154000000, .svco = 1, .spd = 2, .scr = 0, .sbs = 1, .gc3 = 1}, 363 { .lomax = 162500000, .svco = 1, .spd = 2, .scr = 0, .sbs = 1, .gc3 = 1}, 364 { .lomax = 183000000, .svco = 2, .spd = 2, .scr = 0, .sbs = 1, .gc3 = 1}, [all …]
|
/drivers/mfd/ |
D | tc6393xb.c | 92 void __iomem *scr; member 133 tmio_iowrite8(0xff, tc6393xb->scr + SCR_GPI_BCR(1)); in tc6393xb_nand_enable() 231 ccr = tmio_ioread16(tc6393xb->scr + SCR_CCR); in tc6393xb_ohci_enable() 233 tmio_iowrite16(ccr, tc6393xb->scr + SCR_CCR); in tc6393xb_ohci_enable() 235 fer = tmio_ioread8(tc6393xb->scr + SCR_FER); in tc6393xb_ohci_enable() 237 tmio_iowrite8(fer, tc6393xb->scr + SCR_FER); in tc6393xb_ohci_enable() 253 fer = tmio_ioread8(tc6393xb->scr + SCR_FER); in tc6393xb_ohci_disable() 255 tmio_iowrite8(fer, tc6393xb->scr + SCR_FER); in tc6393xb_ohci_disable() 257 ccr = tmio_ioread16(tc6393xb->scr + SCR_CCR); in tc6393xb_ohci_disable() 259 tmio_iowrite16(ccr, tc6393xb->scr + SCR_CCR); in tc6393xb_ohci_disable() [all …]
|
D | t7l66xb.c | 70 void __iomem *scr; member 94 dev_ctl = tmio_ioread8(t7l66xb->scr + SCR_DEV_CTL); in t7l66xb_mmc_enable() 96 tmio_iowrite8(dev_ctl, t7l66xb->scr + SCR_DEV_CTL); in t7l66xb_mmc_enable() 100 tmio_core_mmc_enable(t7l66xb->scr + 0x200, 0, in t7l66xb_mmc_enable() 115 dev_ctl = tmio_ioread8(t7l66xb->scr + SCR_DEV_CTL); in t7l66xb_mmc_disable() 117 tmio_iowrite8(dev_ctl, t7l66xb->scr + SCR_DEV_CTL); in t7l66xb_mmc_disable() 131 tmio_core_mmc_pwr(t7l66xb->scr + 0x200, 0, state); in t7l66xb_mmc_pwr() 139 tmio_core_mmc_clk_div(t7l66xb->scr + 0x200, 0, state); in t7l66xb_mmc_clk_div() 196 while ((isr = tmio_ioread8(t7l66xb->scr + SCR_ISR) & in t7l66xb_irq() 197 ~tmio_ioread8(t7l66xb->scr + SCR_IMR))) in t7l66xb_irq() [all …]
|
D | tc6387xb.c | 27 void __iomem *scr; member 69 tmio_core_mmc_resume(tc6387xb->scr + 0x200, 0, in tc6387xb_resume() 86 tmio_core_mmc_pwr(tc6387xb->scr + 0x200, 0, state); in tc6387xb_mmc_pwr() 94 tmio_core_mmc_clk_div(tc6387xb->scr + 0x200, 0, state); in tc6387xb_mmc_clk_div() 105 tmio_core_mmc_enable(tc6387xb->scr + 0x200, 0, in tc6387xb_mmc_enable() 179 tc6387xb->scr = ioremap(rscr->start, resource_size(rscr)); in tc6387xb_probe() 180 if (!tc6387xb->scr) { in tc6387xb_probe() 199 iounmap(tc6387xb->scr); in tc6387xb_probe() 215 iounmap(tc6387xb->scr); in tc6387xb_remove()
|
/drivers/mmc/core/ |
D | sd_ops.c | 243 int mmc_app_send_scr(struct mmc_card *card, u32 *scr) in mmc_app_send_scr() argument 254 BUG_ON(!scr); in mmc_app_send_scr() 288 memcpy(scr, data_buf, sizeof(card->raw_scr)); in mmc_app_send_scr() 296 scr[0] = be32_to_cpu(scr[0]); in mmc_app_send_scr() 297 scr[1] = be32_to_cpu(scr[1]); in mmc_app_send_scr()
|
D | sd.c | 190 struct sd_scr *scr = &card->scr; in mmc_decode_scr() local 204 scr->sda_vsn = UNSTUFF_BITS(resp, 56, 4); in mmc_decode_scr() 205 scr->bus_widths = UNSTUFF_BITS(resp, 48, 4); in mmc_decode_scr() 206 if (scr->sda_vsn == SCR_SPEC_VER_2) in mmc_decode_scr() 208 scr->sda_spec3 = UNSTUFF_BITS(resp, 47, 1); in mmc_decode_scr() 215 if (scr->sda_spec3) in mmc_decode_scr() 216 scr->cmds = UNSTUFF_BITS(resp, 32, 2); in mmc_decode_scr() 257 if (au <= 9 || card->scr.sda_spec3) { in mmc_read_ssr() 283 if (card->scr.sda_vsn < SCR_SPEC_VER_1) in mmc_read_switch() 326 if (card->scr.sda_spec3) { in mmc_read_switch() [all …]
|
D | sd_ops.h | 19 int mmc_app_send_scr(struct mmc_card *card, u32 *scr);
|
D | sdio.c | 154 card->scr.sda_spec3 = 0; in sdio_read_cccr() 158 card->scr.sda_spec3 = 1; in sdio_read_cccr() 302 (card->scr.bus_widths & SD_SCR_BUS_WIDTH_4)) { in sdio_enable_4bit_bus() 520 if (!card->scr.sda_spec3) in mmc_sdio_init_uhs_card()
|
/drivers/ide/ |
D | tc86c001.c | 20 u16 mode, scr = inw(scr_port); in tc86c001_set_mode() local 40 scr &= (speed < XFER_MW_DMA_0) ? 0xf8ff : 0xff0f; in tc86c001_set_mode() 41 scr |= mode; in tc86c001_set_mode() 42 outw(scr, scr_port); in tc86c001_set_mode()
|
/drivers/ata/ |
D | pata_pdc2027x.c | 607 u32 scr; in pdc_detect_pll_input_clock() local 613 scr = ioread32(mmio_base + PDC_SYS_CTL); in pdc_detect_pll_input_clock() 614 PDPRINTK("scr[%X]\n", scr); in pdc_detect_pll_input_clock() 615 iowrite32(scr | (0x01 << 14), mmio_base + PDC_SYS_CTL); in pdc_detect_pll_input_clock() 630 scr = ioread32(mmio_base + PDC_SYS_CTL); in pdc_detect_pll_input_clock() 631 PDPRINTK("scr[%X]\n", scr); in pdc_detect_pll_input_clock() 632 iowrite32(scr & ~(0x01 << 14), mmio_base + PDC_SYS_CTL); in pdc_detect_pll_input_clock()
|
D | sata_via.c | 89 static int vt8251_scr_read(struct ata_link *link, unsigned int scr, u32 *val); 90 static int vt8251_scr_write(struct ata_link *link, unsigned int scr, u32 val); 215 static int vt8251_scr_read(struct ata_link *link, unsigned int scr, u32 *val) in vt8251_scr_read() argument 223 switch (scr) { in vt8251_scr_read() 264 static int vt8251_scr_write(struct ata_link *link, unsigned int scr, u32 val) in vt8251_scr_write() argument 270 switch (scr) { in vt8251_scr_write()
|
D | sata_dwc_460ex.c | 407 static int sata_dwc_scr_read(struct ata_link *link, unsigned int scr, u32 *val) in sata_dwc_scr_read() argument 409 if (scr > SCR_NOTIFICATION) { in sata_dwc_scr_read() 411 __func__, scr); in sata_dwc_scr_read() 415 *val = sata_dwc_readl(link->ap->ioaddr.scr_addr + (scr * 4)); in sata_dwc_scr_read() 417 link->ap->print_id, scr, *val); in sata_dwc_scr_read() 422 static int sata_dwc_scr_write(struct ata_link *link, unsigned int scr, u32 val) in sata_dwc_scr_write() argument 425 link->ap->print_id, scr, val); in sata_dwc_scr_write() 426 if (scr > SCR_NOTIFICATION) { in sata_dwc_scr_write() 428 __func__, scr); in sata_dwc_scr_write() 431 sata_dwc_writel(link->ap->ioaddr.scr_addr + (scr * 4), val); in sata_dwc_scr_write()
|
D | sata_uli.c | 119 static void uli_scr_cfg_write(struct ata_link *link, unsigned int scr, u32 val) in uli_scr_cfg_write() argument 122 unsigned int cfg_addr = get_scr_cfg_addr(link->ap, scr); in uli_scr_cfg_write()
|
/drivers/tty/serial/ |
D | omap-serial.c | 149 unsigned char scr; member 304 if (up->scr & OMAP_UART_SCR_TX_EMPTY) { in serial_omap_stop_tx() 312 up->scr &= ~OMAP_UART_SCR_TX_EMPTY; in serial_omap_stop_tx() 313 serial_out(up, UART_OMAP_SCR, up->scr); in serial_omap_stop_tx() 331 up->scr |= OMAP_UART_SCR_TX_EMPTY; in serial_omap_stop_tx() 332 serial_out(up, UART_OMAP_SCR, up->scr); in serial_omap_stop_tx() 420 up->scr &= ~OMAP_UART_SCR_TX_EMPTY; in serial_omap_start_tx() 421 serial_out(up, UART_OMAP_SCR, up->scr); in serial_omap_start_tx() 944 up->scr = 0; in serial_omap_set_termios() 968 up->scr |= OMAP_UART_SCR_RX_TRIG_GRANU1_MASK; in serial_omap_set_termios() [all …]
|
D | sh-sci.c | 579 u16 new, scr = serial_port_in(port, SCSCR); in sci_start_tx() local 581 new = scr | SCSCR_TDRQE; in sci_start_tx() 583 new = scr & ~SCSCR_TDRQE; in sci_start_tx() 584 if (new != scr) in sci_start_tx() 1360 u16 scr; in rx_timer_fn() local 1413 scr = serial_port_in(port, SCSCR); in rx_timer_fn() 1415 scr &= ~SCSCR_RDRQE; in rx_timer_fn() 1418 serial_port_out(port, SCSCR, scr | SCSCR_RIE); in rx_timer_fn() 1576 u16 scr = serial_port_in(port, SCSCR); in sci_rx_interrupt() local 1582 scr |= SCSCR_RDRQE; in sci_rx_interrupt() [all …]
|
/drivers/atm/ |
D | horizon.c | 2276 int scr = pcr/2; // just for fun in hrz_open() 2292 if (!scr) { in hrz_open() 2298 scr = dev->tx_avail; in hrz_open() 2299 } else if (scr < 0) { in hrz_open() 2301 scr = -scr; in hrz_open() 2305 error = make_rate_with_tolerance (dev, scr, sr, 10, in hrz_open() 2320 bucket = mbs*(pcr-scr)/pcr; in hrz_open() 2321 if (bucket*pcr != mbs*(pcr-scr)) in hrz_open() 2389 int scr = 1<<16; // just for fun in hrz_open() 2390 if (!scr) { in hrz_open() [all …]
|
/drivers/spi/ |
D | spi-ppc4xx.c | 173 int scr; in spi_ppc4xx_setupxfer() local 204 scr = (hw->opb_freq / speed) - 1; in spi_ppc4xx_setupxfer() 205 if (scr > 0) in spi_ppc4xx_setupxfer() 206 cdm = min(scr, 0xff); in spi_ppc4xx_setupxfer()
|
D | spi-ep93xx.c | 202 int cpsr, scr; in ep93xx_spi_calc_divisors() local 220 for (scr = 0; scr <= 255; scr++) { in ep93xx_spi_calc_divisors() 221 if ((spi_clk_rate / (cpsr * (scr + 1))) <= rate) { in ep93xx_spi_calc_divisors() 222 *div_scr = (u8)scr; in ep93xx_spi_calc_divisors()
|
D | spi-pl022.c | 1717 static inline u32 spi_rate(u32 rate, u16 cpsdvsr, u16 scr) in spi_rate() argument 1719 return rate / (cpsdvsr * (1 + scr)); in spi_rate() 1726 u16 cpsdvsr = CPSDVR_MIN, scr = SCR_MIN; in calculate_effective_freq() local 1753 while (scr <= SCR_MAX) { in calculate_effective_freq() 1754 tmp = spi_rate(rate, cpsdvsr, scr); in calculate_effective_freq() 1758 scr++; in calculate_effective_freq() 1769 best_scr = scr; in calculate_effective_freq() 1781 scr = SCR_MIN; in calculate_effective_freq() 1788 clk_freq->scr = (u8) (best_scr & 0xFF); in calculate_effective_freq() 1793 clk_freq->cpsdvsr, clk_freq->scr); in calculate_effective_freq() [all …]
|
/drivers/misc/sgi-gru/ |
D | grumain.c | 479 int i, scr; in gru_prefetch_context() local 484 for_each_cbr_in_allocation_map(i, &cbrmap, scr) { in gru_prefetch_context() 498 int i, scr; in gru_load_context_data() local 506 for_each_cbr_in_allocation_map(i, &cbrmap, scr) { in gru_load_context_data() 533 int i, scr; in gru_unload_context_data() local 541 for_each_cbr_in_allocation_map(i, &cbrmap, scr) in gru_unload_context_data() 547 for_each_cbr_in_allocation_map(i, &cbrmap, scr) { in gru_unload_context_data()
|
D | grukdump.c | 51 int i, scr; in gru_dump_context_data() local 58 for_each_cbr_in_allocation_map(i, &cch->cbr_allocation_map, scr) { in gru_dump_context_data()
|
/drivers/tty/serial/8250/ |
D | 8250_omap.c | 99 u8 scr; member 240 if (old_scr == priv->scr) in omap8250_update_scr() 248 if (priv->scr & OMAP_UART_SCR_DMAMODE_MASK) in omap8250_update_scr() 250 priv->scr & ~OMAP_UART_SCR_DMAMODE_MASK); in omap8250_update_scr() 251 serial_out(up, UART_OMAP_SCR, priv->scr); in omap8250_update_scr() 436 priv->scr = OMAP_UART_SCR_RX_TRIG_GRANU1_MASK | OMAP_UART_SCR_TX_EMPTY | in omap_8250_set_termios() 440 priv->scr |= OMAP_UART_SCR_DMAMODE_1 | in omap_8250_set_termios()
|
/drivers/mtd/spi-nor/ |
D | atmel-quadspi.c | 546 u32 mr, scr, scbr; in atmel_qspi_init() local 563 scr = QSPI_SCR_SCBR(scbr); in atmel_qspi_init() 564 qspi_writel(aq, QSPI_SCR, scr); in atmel_qspi_init()
|
/drivers/dma/ |
D | stm32-dma.c | 409 u32 scr = stm32_dma_read(dmadev, STM32_DMA_SCR(chan->id)); in stm32_dma_dump_reg() local 416 dev_dbg(chan2dev(chan), "SCR: 0x%08x\n", scr); in stm32_dma_dump_reg() 530 u32 status, scr, sfcr; in stm32_dma_chan_irq() local 535 scr = stm32_dma_read(dmadev, STM32_DMA_SCR(chan->id)); in stm32_dma_chan_irq() 538 if ((status & STM32_DMA_TCI) && (scr & STM32_DMA_SCR_TCIE)) { in stm32_dma_chan_irq()
|
/drivers/hwtracing/intel_th/ |
D | gth.c | 527 u32 scr = 0xfc0000, scrpd; in intel_th_gth_enable() local 537 scr |= 0xff; in intel_th_gth_enable() 546 iowrite32(scr, gth->base + REG_GTH_SCR); in intel_th_gth_enable()
|