Home
last modified time | relevance | path

Searched refs:scr (Results 1 – 25 of 45) sorted by relevance

12

/drivers/media/tuners/
Dtda827x.c337 u8 scr; member
343 { .lomax = 56875000, .svco = 3, .spd = 4, .scr = 0, .sbs = 0, .gc3 = 1},
344 { .lomax = 67250000, .svco = 0, .spd = 3, .scr = 0, .sbs = 0, .gc3 = 1},
345 { .lomax = 81250000, .svco = 1, .spd = 3, .scr = 0, .sbs = 0, .gc3 = 1},
346 { .lomax = 97500000, .svco = 2, .spd = 3, .scr = 0, .sbs = 0, .gc3 = 1},
347 { .lomax = 113750000, .svco = 3, .spd = 3, .scr = 0, .sbs = 1, .gc3 = 1},
348 { .lomax = 134500000, .svco = 0, .spd = 2, .scr = 0, .sbs = 1, .gc3 = 1},
349 { .lomax = 154000000, .svco = 1, .spd = 2, .scr = 0, .sbs = 1, .gc3 = 1},
350 { .lomax = 162500000, .svco = 1, .spd = 2, .scr = 0, .sbs = 1, .gc3 = 1},
351 { .lomax = 183000000, .svco = 2, .spd = 2, .scr = 0, .sbs = 1, .gc3 = 1},
[all …]
/drivers/mfd/
Dtc6393xb.c89 void __iomem *scr; member
129 tmio_iowrite8(0xff, tc6393xb->scr + SCR_GPI_BCR(1)); in tc6393xb_nand_enable()
227 ccr = tmio_ioread16(tc6393xb->scr + SCR_CCR); in tc6393xb_ohci_enable()
229 tmio_iowrite16(ccr, tc6393xb->scr + SCR_CCR); in tc6393xb_ohci_enable()
231 fer = tmio_ioread8(tc6393xb->scr + SCR_FER); in tc6393xb_ohci_enable()
233 tmio_iowrite8(fer, tc6393xb->scr + SCR_FER); in tc6393xb_ohci_enable()
249 fer = tmio_ioread8(tc6393xb->scr + SCR_FER); in tc6393xb_ohci_disable()
251 tmio_iowrite8(fer, tc6393xb->scr + SCR_FER); in tc6393xb_ohci_disable()
253 ccr = tmio_ioread16(tc6393xb->scr + SCR_CCR); in tc6393xb_ohci_disable()
255 tmio_iowrite16(ccr, tc6393xb->scr + SCR_CCR); in tc6393xb_ohci_disable()
[all …]
Dt7l66xb.c67 void __iomem *scr; member
93 dev_ctl = tmio_ioread8(t7l66xb->scr + SCR_DEV_CTL); in t7l66xb_mmc_enable()
95 tmio_iowrite8(dev_ctl, t7l66xb->scr + SCR_DEV_CTL); in t7l66xb_mmc_enable()
99 tmio_core_mmc_enable(t7l66xb->scr + 0x200, 0, in t7l66xb_mmc_enable()
113 dev_ctl = tmio_ioread8(t7l66xb->scr + SCR_DEV_CTL); in t7l66xb_mmc_disable()
115 tmio_iowrite8(dev_ctl, t7l66xb->scr + SCR_DEV_CTL); in t7l66xb_mmc_disable()
128 tmio_core_mmc_pwr(t7l66xb->scr + 0x200, 0, state); in t7l66xb_mmc_pwr()
135 tmio_core_mmc_clk_div(t7l66xb->scr + 0x200, 0, state); in t7l66xb_mmc_clk_div()
192 while ((isr = tmio_ioread8(t7l66xb->scr + SCR_ISR) & in t7l66xb_irq()
193 ~tmio_ioread8(t7l66xb->scr + SCR_IMR))) in t7l66xb_irq()
[all …]
Dtc6387xb.c23 void __iomem *scr; member
65 tmio_core_mmc_resume(tc6387xb->scr + 0x200, 0, in tc6387xb_resume()
81 tmio_core_mmc_pwr(tc6387xb->scr + 0x200, 0, state); in tc6387xb_mmc_pwr()
88 tmio_core_mmc_clk_div(tc6387xb->scr + 0x200, 0, state); in tc6387xb_mmc_clk_div()
98 tmio_core_mmc_enable(tc6387xb->scr + 0x200, 0, in tc6387xb_mmc_enable()
171 tc6387xb->scr = ioremap(rscr->start, resource_size(rscr)); in tc6387xb_probe()
172 if (!tc6387xb->scr) { in tc6387xb_probe()
191 iounmap(tc6387xb->scr); in tc6387xb_probe()
207 iounmap(tc6387xb->scr); in tc6387xb_remove()
/drivers/mmc/core/
Dsd.c197 struct sd_scr *scr = &card->scr; in mmc_decode_scr() local
211 scr->sda_vsn = UNSTUFF_BITS(resp, 56, 4); in mmc_decode_scr()
212 scr->bus_widths = UNSTUFF_BITS(resp, 48, 4); in mmc_decode_scr()
213 if (scr->sda_vsn == SCR_SPEC_VER_2) in mmc_decode_scr()
215 scr->sda_spec3 = UNSTUFF_BITS(resp, 47, 1); in mmc_decode_scr()
217 if (scr->sda_spec3) { in mmc_decode_scr()
218 scr->sda_spec4 = UNSTUFF_BITS(resp, 42, 1); in mmc_decode_scr()
219 scr->sda_specx = UNSTUFF_BITS(resp, 38, 4); in mmc_decode_scr()
227 if (scr->sda_spec3) in mmc_decode_scr()
228 scr->cmds = UNSTUFF_BITS(resp, 32, 2); in mmc_decode_scr()
[all …]
Dsd_ops.c217 __be32 *scr; in mmc_app_send_scr() local
228 scr = kmalloc(sizeof(card->raw_scr), GFP_KERNEL); in mmc_app_send_scr()
229 if (!scr) in mmc_app_send_scr()
245 sg_init_one(&sg, scr, 8); in mmc_app_send_scr()
251 card->raw_scr[0] = be32_to_cpu(scr[0]); in mmc_app_send_scr()
252 card->raw_scr[1] = be32_to_cpu(scr[1]); in mmc_app_send_scr()
254 kfree(scr); in mmc_app_send_scr()
Dsdio.c190 card->scr.sda_spec3 = 0; in sdio_read_cccr()
194 card->scr.sda_spec3 = 1; in sdio_read_cccr()
343 if (!(card->scr.bus_widths & SD_SCR_BUS_WIDTH_4)) in sdio_disable_4bit_bus()
365 if (card->scr.bus_widths & SD_SCR_BUS_WIDTH_4) { in sdio_enable_4bit_bus()
580 if (!card->scr.sda_spec3) in mmc_sdio_init_uhs_card()
/drivers/staging/media/atomisp/pci/runtime/binary/src/
Dbinary.c269 struct sh_css_binary_sc_requirements *scr) /* [out] */ in sh_css_binary_get_sc_requirements() argument
461 scr->bayer_scale_hor_ratio_in = (uint32_t)bs_hor_ratio_in; in sh_css_binary_get_sc_requirements()
462 scr->bayer_scale_hor_ratio_out = (uint32_t)bs_hor_ratio_out; in sh_css_binary_get_sc_requirements()
463 scr->bayer_scale_ver_ratio_in = (uint32_t)bs_ver_ratio_in; in sh_css_binary_get_sc_requirements()
464 scr->bayer_scale_ver_ratio_out = (uint32_t)bs_ver_ratio_out; in sh_css_binary_get_sc_requirements()
465 scr->sensor_data_origin_x_bqs_on_internal = (uint32_t)sensor_data_origin_x_bqs_on_internal; in sh_css_binary_get_sc_requirements()
466 scr->sensor_data_origin_y_bqs_on_internal = (uint32_t)sensor_data_origin_y_bqs_on_internal; in sh_css_binary_get_sc_requirements()
469 scr->bayer_scale_hor_ratio_in, in sh_css_binary_get_sc_requirements()
470 scr->bayer_scale_hor_ratio_out, in sh_css_binary_get_sc_requirements()
471 scr->bayer_scale_ver_ratio_in, scr->bayer_scale_ver_ratio_out, in sh_css_binary_get_sc_requirements()
[all …]
/drivers/ide/
Dtc86c001.c20 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/
Dpata_pdc2027x.c601 u32 scr; in pdc_detect_pll_input_clock() local
607 scr = ioread32(mmio_base + PDC_SYS_CTL); in pdc_detect_pll_input_clock()
608 PDPRINTK("scr[%X]\n", scr); in pdc_detect_pll_input_clock()
609 iowrite32(scr | (0x01 << 14), mmio_base + PDC_SYS_CTL); in pdc_detect_pll_input_clock()
624 scr = ioread32(mmio_base + PDC_SYS_CTL); in pdc_detect_pll_input_clock()
625 PDPRINTK("scr[%X]\n", scr); in pdc_detect_pll_input_clock()
626 iowrite32(scr & ~(0x01 << 14), mmio_base + PDC_SYS_CTL); in pdc_detect_pll_input_clock()
Dsata_via.c75 static int vt8251_scr_read(struct ata_link *link, unsigned int scr, u32 *val);
76 static int vt8251_scr_write(struct ata_link *link, unsigned int scr, u32 val);
201 static int vt8251_scr_read(struct ata_link *link, unsigned int scr, u32 *val) in vt8251_scr_read() argument
209 switch (scr) { in vt8251_scr_read()
250 static int vt8251_scr_write(struct ata_link *link, unsigned int scr, u32 val) in vt8251_scr_write() argument
256 switch (scr) { in vt8251_scr_write()
Dsata_dwc_460ex.c408 static int sata_dwc_scr_read(struct ata_link *link, unsigned int scr, u32 *val) in sata_dwc_scr_read() argument
410 if (scr > SCR_NOTIFICATION) { in sata_dwc_scr_read()
412 __func__, scr); in sata_dwc_scr_read()
416 *val = sata_dwc_readl(link->ap->ioaddr.scr_addr + (scr * 4)); in sata_dwc_scr_read()
418 link->ap->print_id, scr, *val); in sata_dwc_scr_read()
423 static int sata_dwc_scr_write(struct ata_link *link, unsigned int scr, u32 val) in sata_dwc_scr_write() argument
426 link->ap->print_id, scr, val); in sata_dwc_scr_write()
427 if (scr > SCR_NOTIFICATION) { in sata_dwc_scr_write()
429 __func__, scr); in sata_dwc_scr_write()
432 sata_dwc_writel(link->ap->ioaddr.scr_addr + (scr * 4), val); in sata_dwc_scr_write()
Dsata_uli.c103 static void uli_scr_cfg_write(struct ata_link *link, unsigned int scr, u32 val) in uli_scr_cfg_write() argument
106 unsigned int cfg_addr = get_scr_cfg_addr(link->ap, scr); in uli_scr_cfg_write()
/drivers/watchdog/
Docteon-wdt-main.c278 u64 scr; in octeon_wdt_nmi_stage3() local
292 scr = cvmx_read_csr_node(0, CVMX_GSERX_SCRATCH(0)); in octeon_wdt_nmi_stage3()
293 scr |= 1 << 11; /* Indicate watchdog in bit 11 */ in octeon_wdt_nmi_stage3()
294 cvmx_write_csr_node(0, CVMX_GSERX_SCRATCH(0), scr); in octeon_wdt_nmi_stage3()
/drivers/spi/
Dspi-ppc4xx.c166 int scr; in spi_ppc4xx_setupxfer() local
192 scr = (hw->opb_freq / speed) - 1; in spi_ppc4xx_setupxfer()
193 if (scr > 0) in spi_ppc4xx_setupxfer()
194 cdm = min(scr, 0xff); in spi_ppc4xx_setupxfer()
Dspi-ep93xx.c117 int cpsr, scr; in ep93xx_spi_calc_divisors() local
134 for (scr = 0; scr <= 255; scr++) { in ep93xx_spi_calc_divisors()
135 if ((spi_clk_rate / (cpsr * (scr + 1))) <= rate) { in ep93xx_spi_calc_divisors()
136 *div_scr = (u8)scr; in ep93xx_spi_calc_divisors()
Dspi-pl022.c1738 static inline u32 spi_rate(u32 rate, u16 cpsdvsr, u16 scr) in spi_rate() argument
1740 return rate / (cpsdvsr * (1 + scr)); in spi_rate()
1747 u16 cpsdvsr = CPSDVR_MIN, scr = SCR_MIN; in calculate_effective_freq() local
1774 while (scr <= SCR_MAX) { in calculate_effective_freq()
1775 tmp = spi_rate(rate, cpsdvsr, scr); in calculate_effective_freq()
1779 scr++; in calculate_effective_freq()
1790 best_scr = scr; in calculate_effective_freq()
1802 scr = SCR_MIN; in calculate_effective_freq()
1809 clk_freq->scr = (u8) (best_scr & 0xFF); in calculate_effective_freq()
1814 clk_freq->cpsdvsr, clk_freq->scr); in calculate_effective_freq()
[all …]
Datmel-quadspi.c155 u32 scr; member
500 aq->scr = QSPI_SCR_SCBR(scbr); in atmel_qspi_setup()
501 atmel_qspi_write(aq->scr, aq, QSPI_SCR); in atmel_qspi_setup()
682 atmel_qspi_write(aq->scr, aq, QSPI_SCR); in atmel_qspi_resume()
/drivers/tty/serial/
Domap-serial.c138 unsigned char scr; member
295 if (up->scr & OMAP_UART_SCR_TX_EMPTY) { in serial_omap_stop_tx()
303 up->scr &= ~OMAP_UART_SCR_TX_EMPTY; in serial_omap_stop_tx()
304 serial_out(up, UART_OMAP_SCR, up->scr); in serial_omap_stop_tx()
323 up->scr |= OMAP_UART_SCR_TX_EMPTY; in serial_omap_stop_tx()
324 serial_out(up, UART_OMAP_SCR, up->scr); in serial_omap_stop_tx()
407 up->scr &= ~OMAP_UART_SCR_TX_EMPTY; in serial_omap_start_tx()
408 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 …]
Dsh-sci.c578 u16 new, scr = serial_port_in(port, SCSCR); in sci_start_tx() local
580 new = scr | SCSCR_TDRQE; in sci_start_tx()
582 new = scr & ~SCSCR_TDRQE; in sci_start_tx()
583 if (new != scr) in sci_start_tx()
1281 u16 scr; in sci_dma_rx_reenable_irq() local
1284 scr = serial_port_in(port, SCSCR); in sci_dma_rx_reenable_irq()
1286 scr &= ~SCSCR_RDRQE; in sci_dma_rx_reenable_irq()
1289 serial_port_out(port, SCSCR, scr | SCSCR_RIE); in sci_dma_rx_reenable_irq()
1702 u16 scr = serial_port_in(port, SCSCR); in sci_rx_interrupt() local
1708 scr |= SCSCR_RDRQE; in sci_rx_interrupt()
[all …]
/drivers/atm/
Dhorizon.c2262 int scr = pcr/2; // just for fun in hrz_open()
2278 if (!scr) { in hrz_open()
2284 scr = dev->tx_avail; in hrz_open()
2285 } else if (scr < 0) { in hrz_open()
2287 scr = -scr; in hrz_open()
2291 error = make_rate_with_tolerance (dev, scr, sr, 10, in hrz_open()
2306 bucket = mbs*(pcr-scr)/pcr; in hrz_open()
2307 if (bucket*pcr != mbs*(pcr-scr)) in hrz_open()
2375 int scr = 1<<16; // just for fun in hrz_open()
2376 if (!scr) { in hrz_open()
[all …]
/drivers/dma/
Dstm32-dma.c516 u32 scr = stm32_dma_read(dmadev, STM32_DMA_SCR(chan->id)); in stm32_dma_dump_reg() local
523 dev_dbg(chan2dev(chan), "SCR: 0x%08x\n", scr); in stm32_dma_dump_reg()
643 u32 status, scr, sfcr; in stm32_dma_chan_irq() local
648 scr = stm32_dma_read(dmadev, STM32_DMA_SCR(chan->id)); in stm32_dma_chan_irq()
653 if (scr & STM32_DMA_SCR_TCIE) in stm32_dma_chan_irq()
665 if (!(scr & STM32_DMA_SCR_EN)) in stm32_dma_chan_irq()
680 if (!(scr & STM32_DMA_SCR_EN)) in stm32_dma_chan_irq()
1456 int id, ret, scr; in stm32_dma_suspend() local
1463 scr = stm32_dma_read(dmadev, STM32_DMA_SCR(id)); in stm32_dma_suspend()
1464 if (scr & STM32_DMA_SCR_EN) { in stm32_dma_suspend()
/drivers/misc/sgi-gru/
Dgrumain.c466 int i, scr; in gru_prefetch_context() local
471 for_each_cbr_in_allocation_map(i, &cbrmap, scr) { in gru_prefetch_context()
485 int i, scr; in gru_load_context_data() local
493 for_each_cbr_in_allocation_map(i, &cbrmap, scr) { in gru_load_context_data()
520 int i, scr; in gru_unload_context_data() local
528 for_each_cbr_in_allocation_map(i, &cbrmap, scr) in gru_unload_context_data()
534 for_each_cbr_in_allocation_map(i, &cbrmap, scr) { in gru_unload_context_data()
Dgrukdump.c41 int i, scr; in gru_dump_context_data() local
48 for_each_cbr_in_allocation_map(i, &cch->cbr_allocation_map, scr) { in gru_dump_context_data()
/drivers/rtc/
Drtc-stm32.c103 u16 scr; member
560 .scr = UNDEF_REG,
582 .scr = UNDEF_REG,
597 writel_relaxed(flags, rtc->base + regs.scr); in stm32mp1_rtc_clear_events()
613 .scr = 0x5C,

12