Home
last modified time | relevance | path

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

12

/drivers/media/tuners/
Dtda827x.c350 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/
Dtc6393xb.c92 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 …]
Dt7l66xb.c70 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 …]
Dtc6387xb.c27 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/s390/crypto/
Dzcrypt_pcica.c145 struct type4_scr *scr = ap_msg->message; in ICACRT_msg_to_type4CRT_msg() local
146 memset(scr, 0, sizeof(*scr)); in ICACRT_msg_to_type4CRT_msg()
147 ap_msg->length = sizeof(*scr); in ICACRT_msg_to_type4CRT_msg()
148 scr->header.msg_type_code = TYPE4_TYPE_CODE; in ICACRT_msg_to_type4CRT_msg()
149 scr->header.request_code = TYPE4_REQU_CODE; in ICACRT_msg_to_type4CRT_msg()
150 scr->header.msg_fmt = TYPE4_SCR_FMT; in ICACRT_msg_to_type4CRT_msg()
151 scr->header.msg_len = sizeof(*scr); in ICACRT_msg_to_type4CRT_msg()
152 p = scr->p + sizeof(scr->p) - long_len; in ICACRT_msg_to_type4CRT_msg()
153 q = scr->q + sizeof(scr->q) - short_len; in ICACRT_msg_to_type4CRT_msg()
154 dp = scr->dp + sizeof(scr->dp) - long_len; in ICACRT_msg_to_type4CRT_msg()
[all …]
/drivers/mmc/core/
Dsd_ops.c248 int mmc_app_send_scr(struct mmc_card *card, u32 *scr) in mmc_app_send_scr() argument
259 BUG_ON(!scr); in mmc_app_send_scr()
293 memcpy(scr, data_buf, sizeof(card->raw_scr)); in mmc_app_send_scr()
301 scr[0] = be32_to_cpu(scr[0]); in mmc_app_send_scr()
302 scr[1] = be32_to_cpu(scr[1]); in mmc_app_send_scr()
Dsd.c192 struct sd_scr *scr = &card->scr; in mmc_decode_scr() local
206 scr->sda_vsn = UNSTUFF_BITS(resp, 56, 4); in mmc_decode_scr()
207 scr->bus_widths = UNSTUFF_BITS(resp, 48, 4); in mmc_decode_scr()
208 if (scr->sda_vsn == SCR_SPEC_VER_2) in mmc_decode_scr()
210 scr->sda_spec3 = UNSTUFF_BITS(resp, 47, 1); in mmc_decode_scr()
217 if (scr->sda_spec3) in mmc_decode_scr()
218 scr->cmds = UNSTUFF_BITS(resp, 32, 2); in mmc_decode_scr()
258 if (au <= 9 || card->scr.sda_spec3) { in mmc_read_ssr()
285 if (card->scr.sda_vsn < SCR_SPEC_VER_1) in mmc_read_switch()
328 if (card->scr.sda_spec3) { in mmc_read_switch()
[all …]
Dsd_ops.h19 int mmc_app_send_scr(struct mmc_card *card, u32 *scr);
Dsdio.c155 card->scr.sda_spec3 = 0; in sdio_read_cccr()
159 card->scr.sda_spec3 = 1; in sdio_read_cccr()
304 (card->scr.bus_widths & SD_SCR_BUS_WIDTH_4)) { in sdio_enable_4bit_bus()
549 if (!card->scr.sda_spec3) in mmc_sdio_init_uhs_card()
/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.c606 u32 scr; in pdc_detect_pll_input_clock() local
612 scr = ioread32(mmio_base + PDC_SYS_CTL); in pdc_detect_pll_input_clock()
613 PDPRINTK("scr[%X]\n", scr); in pdc_detect_pll_input_clock()
614 iowrite32(scr | (0x01 << 14), mmio_base + PDC_SYS_CTL); in pdc_detect_pll_input_clock()
629 scr = ioread32(mmio_base + PDC_SYS_CTL); in pdc_detect_pll_input_clock()
630 PDPRINTK("scr[%X]\n", scr); in pdc_detect_pll_input_clock()
631 iowrite32(scr & ~(0x01 << 14), mmio_base + PDC_SYS_CTL); in pdc_detect_pll_input_clock()
Dsata_via.c79 static int vt8251_scr_read(struct ata_link *link, unsigned int scr, u32 *val);
80 static int vt8251_scr_write(struct ata_link *link, unsigned int scr, u32 val);
203 static int vt8251_scr_read(struct ata_link *link, unsigned int scr, u32 *val) in vt8251_scr_read() argument
211 switch (scr) { in vt8251_scr_read()
252 static int vt8251_scr_write(struct ata_link *link, unsigned int scr, u32 val) in vt8251_scr_write() argument
258 switch (scr) { in vt8251_scr_write()
Dsata_dwc_460ex.c813 static int sata_dwc_scr_read(struct ata_link *link, unsigned int scr, u32 *val) in sata_dwc_scr_read() argument
815 if (scr > SCR_NOTIFICATION) { in sata_dwc_scr_read()
817 __func__, scr); in sata_dwc_scr_read()
821 *val = in_le32((void *)link->ap->ioaddr.scr_addr + (scr * 4)); in sata_dwc_scr_read()
823 __func__, link->ap->print_id, scr, *val); in sata_dwc_scr_read()
828 static int sata_dwc_scr_write(struct ata_link *link, unsigned int scr, u32 val) in sata_dwc_scr_write() argument
831 __func__, link->ap->print_id, scr, val); in sata_dwc_scr_write()
832 if (scr > SCR_NOTIFICATION) { in sata_dwc_scr_write()
834 __func__, scr); in sata_dwc_scr_write()
837 out_le32((void *)link->ap->ioaddr.scr_addr + (scr * 4), val); in sata_dwc_scr_write()
[all …]
Dsata_uli.c119 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()
Dsata_sil.c242 unsigned long scr; /* SATA control register block */ member
790 ioaddr->scr_addr = mmio_base + sil_port[i].scr; in sil_init_one()
/drivers/tty/serial/
Domap-serial.c148 unsigned char scr; member
320 if (up->scr & OMAP_UART_SCR_TX_EMPTY) { in serial_omap_stop_tx()
328 up->scr &= ~OMAP_UART_SCR_TX_EMPTY; in serial_omap_stop_tx()
329 serial_out(up, UART_OMAP_SCR, up->scr); in serial_omap_stop_tx()
345 up->scr |= OMAP_UART_SCR_TX_EMPTY; in serial_omap_stop_tx()
346 serial_out(up, UART_OMAP_SCR, up->scr); in serial_omap_stop_tx()
434 up->scr &= ~OMAP_UART_SCR_TX_EMPTY; in serial_omap_start_tx()
435 serial_out(up, UART_OMAP_SCR, up->scr); in serial_omap_start_tx()
952 up->scr = 0; in serial_omap_set_termios()
976 up->scr |= OMAP_UART_SCR_RX_TRIG_GRANU1_MASK; in serial_omap_set_termios()
[all …]
Dsh-sci.c907 u16 scr = serial_port_in(port, SCSCR); in sci_rx_interrupt() local
913 scr |= SCSCR_RDRQE; in sci_rx_interrupt()
915 scr &= ~SCSCR_RIE; in sci_rx_interrupt()
917 serial_port_out(port, SCSCR, scr); in sci_rx_interrupt()
1498 u16 new, scr = serial_port_in(port, SCSCR); in sci_start_tx() local
1500 new = scr | SCSCR_TDRQE; in sci_start_tx()
1502 new = scr & ~SCSCR_TDRQE; in sci_start_tx()
1503 if (new != scr) in sci_start_tx()
1608 u16 scr = serial_port_in(port, SCSCR); in rx_timer_fn() local
1611 scr &= ~SCSCR_RDRQE; in rx_timer_fn()
[all …]
/drivers/atm/
Dhorizon.c2300 int scr = pcr/2; // just for fun in hrz_open()
2316 if (!scr) { in hrz_open()
2322 scr = dev->tx_avail; in hrz_open()
2323 } else if (scr < 0) { in hrz_open()
2325 scr = -scr; in hrz_open()
2329 error = make_rate_with_tolerance (dev, scr, sr, 10, in hrz_open()
2344 bucket = mbs*(pcr-scr)/pcr; in hrz_open()
2345 if (bucket*pcr != mbs*(pcr-scr)) in hrz_open()
2413 int scr = 1<<16; // just for fun in hrz_open()
2414 if (!scr) { in hrz_open()
[all …]
/drivers/spi/
Dspi-ppc4xx.c173 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()
Dspi-ep93xx.c202 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()
Dspi-pl022.c1712 static inline u32 spi_rate(u32 rate, u16 cpsdvsr, u16 scr) in spi_rate() argument
1714 return rate / (cpsdvsr * (1 + scr)); in spi_rate()
1721 u16 cpsdvsr = CPSDVR_MIN, scr = SCR_MIN; in calculate_effective_freq() local
1748 while (scr <= SCR_MAX) { in calculate_effective_freq()
1749 tmp = spi_rate(rate, cpsdvsr, scr); in calculate_effective_freq()
1753 scr++; in calculate_effective_freq()
1764 best_scr = scr; in calculate_effective_freq()
1776 scr = SCR_MIN; in calculate_effective_freq()
1783 clk_freq->scr = (u8) (best_scr & 0xFF); in calculate_effective_freq()
1788 clk_freq->cpsdvsr, clk_freq->scr); in calculate_effective_freq()
[all …]
Dspi-sh-msiof.c244 unsigned short scr; member
277 sh_msiof_write(p, TSCR, sh_msiof_spi_clk_table[k].scr); in sh_msiof_spi_set_clk_regs()
279 sh_msiof_write(p, RSCR, sh_msiof_spi_clk_table[k].scr); in sh_msiof_spi_set_clk_regs()
/drivers/misc/sgi-gru/
Dgrumain.c479 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()
Dgrukdump.c51 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/scsi/bfa/
Dbfa_fcbuild.c1136 fc_scr_build(struct fchs_s *fchs, struct fc_scr_s *scr, in fc_scr_build() argument
1143 memset(scr, 0, sizeof(struct fc_scr_s)); in fc_scr_build()
1144 scr->command = FC_ELS_SCR; in fc_scr_build()
1145 scr->reg_func = FC_SCR_REG_FUNC_FULL; in fc_scr_build()
1147 scr->vu_reg_func = FC_VU_SCR_REG_FUNC_FABRIC_NAME_CHANGE; in fc_scr_build()

12