Home
last modified time | relevance | path

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

123

/linux-5.19.10/arch/ia64/kernel/
Dsignal.c43 restore_sigcontext (struct sigcontext __user *sc, struct sigscratch *scr) in restore_sigcontext() argument
58 err |= __get_user(scr->pt.ar_unat, &sc->sc_ar_unat); in restore_sigcontext()
59 err |= __get_user(scr->pt.ar_fpsr, &sc->sc_ar_fpsr); in restore_sigcontext()
60 err |= __get_user(scr->pt.ar_pfs, &sc->sc_ar_pfs); in restore_sigcontext()
61 err |= __get_user(scr->pt.pr, &sc->sc_pr); /* predicates */ in restore_sigcontext()
62 err |= __get_user(scr->pt.b0, &sc->sc_br[0]); /* b0 (rp) */ in restore_sigcontext()
63 err |= __get_user(scr->pt.b6, &sc->sc_br[6]); /* b6 */ in restore_sigcontext()
64 err |= __copy_from_user(&scr->pt.r1, &sc->sc_gr[1], 8); /* r1 */ in restore_sigcontext()
65 err |= __copy_from_user(&scr->pt.r8, &sc->sc_gr[8], 4*8); /* r8-r11 */ in restore_sigcontext()
66 err |= __copy_from_user(&scr->pt.r12, &sc->sc_gr[12], 2*8); /* r12-r13 */ in restore_sigcontext()
[all …]
Dprocess.c162 do_notify_resume_user(sigset_t *unused, struct sigscratch *scr, long in_syscall) in do_notify_resume_user() argument
164 if (fsys_mode(current, &scr->pt)) { in do_notify_resume_user()
169 if (!ia64_psr(&scr->pt)->lp) in do_notify_resume_user()
170 ia64_psr(&scr->pt)->lp = 1; in do_notify_resume_user()
178 ia64_do_signal(scr, in_syscall); in do_notify_resume_user()
183 resume_user_mode_work(&scr->pt); in do_notify_resume_user()
/linux-5.19.10/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 …]
/linux-5.19.10/sound/soc/mxs/
Dmxs-saif.c81 u32 scr; in mxs_saif_set_clk() local
102 scr = __raw_readl(master_saif->base + SAIF_CTRL); in mxs_saif_set_clk()
103 scr &= ~BM_SAIF_CTRL_BITCLK_MULT_RATE; in mxs_saif_set_clk()
104 scr &= ~BM_SAIF_CTRL_BITCLK_BASE_RATE; in mxs_saif_set_clk()
127 scr &= ~BM_SAIF_CTRL_BITCLK_BASE_RATE; in mxs_saif_set_clk()
134 scr |= BM_SAIF_CTRL_BITCLK_BASE_RATE; in mxs_saif_set_clk()
144 scr &= ~BM_SAIF_CTRL_BITCLK_BASE_RATE; in mxs_saif_set_clk()
155 __raw_writel(scr, master_saif->base + SAIF_CTRL); in mxs_saif_set_clk()
167 scr |= BF_SAIF_CTRL_BITCLK_MULT_RATE(4); in mxs_saif_set_clk()
170 scr |= BF_SAIF_CTRL_BITCLK_MULT_RATE(3); in mxs_saif_set_clk()
[all …]
/linux-5.19.10/drivers/mfd/
Dtc6393xb.c91 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.c59 void __iomem *scr; member
85 dev_ctl = tmio_ioread8(t7l66xb->scr + SCR_DEV_CTL); in t7l66xb_mmc_enable()
87 tmio_iowrite8(dev_ctl, t7l66xb->scr + SCR_DEV_CTL); in t7l66xb_mmc_enable()
91 tmio_core_mmc_enable(t7l66xb->scr + 0x200, 0, in t7l66xb_mmc_enable()
105 dev_ctl = tmio_ioread8(t7l66xb->scr + SCR_DEV_CTL); in t7l66xb_mmc_disable()
107 tmio_iowrite8(dev_ctl, t7l66xb->scr + SCR_DEV_CTL); in t7l66xb_mmc_disable()
120 tmio_core_mmc_pwr(t7l66xb->scr + 0x200, 0, state); in t7l66xb_mmc_pwr()
127 tmio_core_mmc_clk_div(t7l66xb->scr + 0x200, 0, state); in t7l66xb_mmc_clk_div()
184 while ((isr = tmio_ioread8(t7l66xb->scr + SCR_ISR) & in t7l66xb_irq()
185 ~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()
/linux-5.19.10/arch/powerpc/platforms/85xx/
Dmpc85xx_mds.c65 int scr; in mpc8568_fixup_125_clock() local
69 scr = phy_read(phydev, MV88E1111_SCR); in mpc8568_fixup_125_clock()
71 if (scr < 0) in mpc8568_fixup_125_clock()
72 return scr; in mpc8568_fixup_125_clock()
74 err = phy_write(phydev, MV88E1111_SCR, scr & ~(MV88E1111_SCR_125CLK)); in mpc8568_fixup_125_clock()
84 scr = phy_read(phydev, MV88E1111_SCR); in mpc8568_fixup_125_clock()
86 if (scr < 0) in mpc8568_fixup_125_clock()
87 return scr; in mpc8568_fixup_125_clock()
89 err = phy_write(phydev, MV88E1111_SCR, scr | 0x0008); in mpc8568_fixup_125_clock()
/linux-5.19.10/arch/sh/boards/mach-hp6xx/
Dpm.c101 u8 scr; in hp6x0_pm_enter() local
108 scr = inb(HD64461_PCC1SCR); in hp6x0_pm_enter()
109 scr |= HD64461_PCCSCR_VCC1; in hp6x0_pm_enter()
110 outb(scr, HD64461_PCC1SCR); in hp6x0_pm_enter()
/linux-5.19.10/drivers/mmc/core/
Dsd_ops.c263 __be32 *scr; in mmc_app_send_scr() local
274 scr = kmalloc(sizeof(card->raw_scr), GFP_KERNEL); in mmc_app_send_scr()
275 if (!scr) in mmc_app_send_scr()
291 sg_init_one(&sg, scr, 8); in mmc_app_send_scr()
297 card->raw_scr[0] = be32_to_cpu(scr[0]); in mmc_app_send_scr()
298 card->raw_scr[1] = be32_to_cpu(scr[1]); in mmc_app_send_scr()
300 kfree(scr); in mmc_app_send_scr()
Dsd.c212 struct sd_scr *scr = &card->scr; in mmc_decode_scr() local
226 scr->sda_vsn = UNSTUFF_BITS(resp, 56, 4); in mmc_decode_scr()
227 scr->bus_widths = UNSTUFF_BITS(resp, 48, 4); in mmc_decode_scr()
228 if (scr->sda_vsn == SCR_SPEC_VER_2) in mmc_decode_scr()
230 scr->sda_spec3 = UNSTUFF_BITS(resp, 47, 1); in mmc_decode_scr()
232 if (scr->sda_spec3) { in mmc_decode_scr()
233 scr->sda_spec4 = UNSTUFF_BITS(resp, 42, 1); in mmc_decode_scr()
234 scr->sda_specx = UNSTUFF_BITS(resp, 38, 4); in mmc_decode_scr()
242 if (scr->sda_spec4) in mmc_decode_scr()
243 scr->cmds = UNSTUFF_BITS(resp, 32, 4); in mmc_decode_scr()
[all …]
/linux-5.19.10/drivers/tty/serial/8250/
D8250_pericom.c54 int scr; in pericom_do_set_divisor() local
56 for (scr = 16; scr > 4; scr--) { in pericom_do_set_divisor()
57 unsigned int maxrate = port->uartclk / scr; in pericom_do_set_divisor()
78 serial_port_out(port, 2, 16 - scr); in pericom_do_set_divisor()
/linux-5.19.10/sound/soc/fsl/
Dfsl_ssi.c123 u32 scr; member
470 vals[dir].scr, vals[dir].scr); in fsl_ssi_config_enable()
510 u32 sier, srcr, stcr, scr; in fsl_ssi_config_disable() local
527 scr = ssi_excl_shared_bits(vals->scr, avals->scr, aactive); in fsl_ssi_config_disable()
530 regmap_update_bits(ssi->regs, REG_SSI_SCR, scr, 0); in fsl_ssi_config_disable()
592 vals[RX].scr = SSI_SCR_SSIEN | SSI_SCR_RE; in fsl_ssi_setup_regvals()
595 vals[TX].scr = SSI_SCR_SSIEN | SSI_SCR_TE; in fsl_ssi_setup_regvals()
599 vals[RX].scr = vals[TX].scr = 0; in fsl_ssi_setup_regvals()
871 vals[RX].scr &= ~SSI_SCR_TCH_EN; in fsl_ssi_hw_params()
872 vals[TX].scr &= ~SSI_SCR_TCH_EN; in fsl_ssi_hw_params()
[all …]
Dfsl_spdif.c585 u32 scr, mask; in fsl_spdif_startup() local
601 scr = SCR_TXFIFO_AUTOSYNC | SCR_TXFIFO_CTRL_NORMAL | in fsl_spdif_startup()
608 scr = SCR_RXFIFO_FSEL_IF8 | SCR_RXFIFO_AUTOSYNC; in fsl_spdif_startup()
612 regmap_update_bits(regmap, REG_SPDIF_SCR, mask, scr); in fsl_spdif_startup()
626 u32 scr, mask; in fsl_spdif_shutdown() local
629 scr = 0; in fsl_spdif_shutdown()
636 scr = SCR_RXFIFO_OFF | SCR_RXFIFO_CTL_ZERO; in fsl_spdif_shutdown()
640 regmap_update_bits(regmap, REG_SPDIF_SCR, mask, scr); in fsl_spdif_shutdown()
952 u32 scr, mask; in fsl_spdif_bypass_put() local
972 scr = SCR_TXSEL_RX | SCR_RXFIFO_OFF; in fsl_spdif_bypass_put()
[all …]
/linux-5.19.10/drivers/ata/
Dpata_pdc2027x.c586 u32 scr; in pdc_detect_pll_input_clock() local
592 scr = ioread32(mmio_base + PDC_SYS_CTL); in pdc_detect_pll_input_clock()
593 dev_dbg(host->dev, "scr[%X]\n", scr); in pdc_detect_pll_input_clock()
594 iowrite32(scr | (0x01 << 14), mmio_base + PDC_SYS_CTL); in pdc_detect_pll_input_clock()
609 scr = ioread32(mmio_base + PDC_SYS_CTL); in pdc_detect_pll_input_clock()
610 dev_dbg(host->dev, "scr[%X]\n", scr); in pdc_detect_pll_input_clock()
611 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.c368 static int sata_dwc_scr_read(struct ata_link *link, unsigned int scr, u32 *val) in sata_dwc_scr_read() argument
370 if (scr > SCR_NOTIFICATION) { in sata_dwc_scr_read()
372 __func__, scr); in sata_dwc_scr_read()
376 *val = sata_dwc_readl(link->ap->ioaddr.scr_addr + (scr * 4)); in sata_dwc_scr_read()
378 link->ap->print_id, scr, *val); in sata_dwc_scr_read()
383 static int sata_dwc_scr_write(struct ata_link *link, unsigned int scr, u32 val) in sata_dwc_scr_write() argument
386 link->ap->print_id, scr, val); in sata_dwc_scr_write()
387 if (scr > SCR_NOTIFICATION) { in sata_dwc_scr_write()
389 __func__, scr); in sata_dwc_scr_write()
392 sata_dwc_writel(link->ap->ioaddr.scr_addr + (scr * 4), val); in sata_dwc_scr_write()
/linux-5.19.10/drivers/dma/
Dstm32-dma.c525 u32 scr = stm32_dma_read(dmadev, STM32_DMA_SCR(chan->id)); in stm32_dma_dump_reg() local
532 dev_dbg(chan2dev(chan), "SCR: 0x%08x\n", scr); in stm32_dma_dump_reg()
721 static void stm32_dma_handle_chan_done(struct stm32_dma_chan *chan, u32 scr) in stm32_dma_handle_chan_done() argument
730 if (!(scr & (STM32_DMA_SCR_CIRC | STM32_DMA_SCR_DBM))) in stm32_dma_handle_chan_done()
732 else if (scr & STM32_DMA_SCR_DBM) in stm32_dma_handle_chan_done()
749 u32 status, scr, sfcr; in stm32_dma_chan_irq() local
754 scr = stm32_dma_read(dmadev, STM32_DMA_SCR(chan->id)); in stm32_dma_chan_irq()
761 if (!(scr & STM32_DMA_SCR_EN) && in stm32_dma_chan_irq()
777 if (scr & STM32_DMA_SCR_TCIE) { in stm32_dma_chan_irq()
778 if (chan->status == DMA_PAUSED && !(scr & STM32_DMA_SCR_EN)) in stm32_dma_chan_irq()
[all …]
/linux-5.19.10/drivers/tty/serial/
Domap-serial.c138 unsigned char scr; member
290 if (up->scr & OMAP_UART_SCR_TX_EMPTY) { in serial_omap_stop_tx()
298 up->scr &= ~OMAP_UART_SCR_TX_EMPTY; in serial_omap_stop_tx()
299 serial_out(up, UART_OMAP_SCR, up->scr); in serial_omap_stop_tx()
318 up->scr |= OMAP_UART_SCR_TX_EMPTY; in serial_omap_stop_tx()
319 serial_out(up, UART_OMAP_SCR, up->scr); in serial_omap_stop_tx()
394 up->scr &= ~OMAP_UART_SCR_TX_EMPTY; in serial_omap_start_tx()
395 serial_out(up, UART_OMAP_SCR, up->scr); in serial_omap_start_tx()
889 up->scr = 0; in serial_omap_set_termios()
913 up->scr |= OMAP_UART_SCR_RX_TRIG_GRANU1_MASK; in serial_omap_set_termios()
[all …]
/linux-5.19.10/drivers/spi/
Dspi-ppc4xx.c166 int scr; in spi_ppc4xx_setupxfer() local
197 scr = (hw->opb_freq / speed) - 1; in spi_ppc4xx_setupxfer()
198 if (scr > 0) in spi_ppc4xx_setupxfer()
199 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()
/linux-5.19.10/drivers/watchdog/
Docteon-wdt-main.c281 u64 scr; in octeon_wdt_nmi_stage3() local
295 scr = cvmx_read_csr_node(0, CVMX_GSERX_SCRATCH(0)); in octeon_wdt_nmi_stage3()
296 scr |= 1 << 11; /* Indicate watchdog in bit 11 */ in octeon_wdt_nmi_stage3()
297 cvmx_write_csr_node(0, CVMX_GSERX_SCRATCH(0), scr); in octeon_wdt_nmi_stage3()
/linux-5.19.10/arch/sh/boot/
D.gitignore5 !vmlinux.scr
/linux-5.19.10/arch/mips/kernel/
Dirq_txx9.c30 u32 scr; member
96 __raw_writel(TXx9_IRSCR_EIClrE | irq_nr, &txx9_ircptr->scr); in txx9_irq_mask_ack()
/linux-5.19.10/arch/arm/mach-sa1100/
Dassabet.c661 unsigned long scr, i; in get_assabet_scr() local
667 scr = GPLR; in get_assabet_scr()
669 scr &= 0x3fc; /* save as system configuration byte. */ in get_assabet_scr()
670 SCR_value = scr; in get_assabet_scr()

123