/kernel/linux/linux-5.10/include/video/ |
D | vga.h | 218 static inline unsigned char vga_mm_r (void __iomem *regbase, unsigned short port) in vga_mm_r() argument 220 return readb (regbase + port); in vga_mm_r() 223 static inline void vga_mm_w (void __iomem *regbase, unsigned short port, unsigned char val) in vga_mm_w() argument 225 writeb (val, regbase + port); in vga_mm_w() 228 static inline void vga_mm_w_fast (void __iomem *regbase, unsigned short port, in vga_mm_w_fast() argument 231 writew (VGA_OUT16VAL (val, reg), regbase + port); in vga_mm_w_fast() 234 static inline unsigned char vga_r (void __iomem *regbase, unsigned short port) in vga_r() argument 236 if (regbase) in vga_r() 237 return vga_mm_r (regbase, port); in vga_r() 242 static inline void vga_w (void __iomem *regbase, unsigned short port, unsigned char val) in vga_w() argument [all …]
|
/kernel/linux/linux-5.10/arch/mips/netlogic/xlp/ |
D | ahci-init-xlp2.c | 169 static void sata_clear_glue_reg(u64 regbase, u32 off, u32 bit) in sata_clear_glue_reg() argument 173 reg_val = nlm_read_sata_reg(regbase, off); in sata_clear_glue_reg() 174 nlm_write_sata_reg(regbase, off, (reg_val & ~bit)); in sata_clear_glue_reg() 177 static void sata_set_glue_reg(u64 regbase, u32 off, u32 bit) in sata_set_glue_reg() argument 181 reg_val = nlm_read_sata_reg(regbase, off); in sata_set_glue_reg() 182 nlm_write_sata_reg(regbase, off, (reg_val | bit)); in sata_set_glue_reg() 185 static void write_phy_reg(u64 regbase, u32 addr, u32 physel, u8 data) in write_phy_reg() argument 187 nlm_write_sata_reg(regbase, PHY_MEM_ACCESS, in write_phy_reg() 192 static u8 read_phy_reg(u64 regbase, u32 addr, u32 physel) in read_phy_reg() argument 196 nlm_write_sata_reg(regbase, PHY_MEM_ACCESS, in read_phy_reg() [all …]
|
D | ahci-init.c | 95 static void sata_clear_glue_reg(uint64_t regbase, uint32_t off, uint32_t bit) in sata_clear_glue_reg() argument 99 reg_val = nlm_read_sata_reg(regbase, off); in sata_clear_glue_reg() 100 nlm_write_sata_reg(regbase, off, (reg_val & ~bit)); in sata_clear_glue_reg() 103 static void sata_set_glue_reg(uint64_t regbase, uint32_t off, uint32_t bit) in sata_set_glue_reg() argument 107 reg_val = nlm_read_sata_reg(regbase, off); in sata_set_glue_reg() 108 nlm_write_sata_reg(regbase, off, (reg_val | bit)); in sata_set_glue_reg() 114 uint64_t regbase; in nlm_sata_firmware_init() local 118 regbase = nlm_get_sata_regbase(node); in nlm_sata_firmware_init() 121 sata_clear_glue_reg(regbase, SATA_CTL, SATA_RST_N); in nlm_sata_firmware_init() 123 sata_clear_glue_reg(regbase, SATA_CTL, in nlm_sata_firmware_init() [all …]
|
/kernel/linux/linux-5.10/drivers/video/fbdev/ |
D | wmt_ge_rops.c | 39 static void __iomem *regbase; variable 60 (p->var.bits_per_pixel == 8 ? 0 : 1), regbase + GE_DEPTH_OFF); in wmt_ge_fillrect() 61 writel(p->var.bits_per_pixel == 15 ? 1 : 0, regbase + GE_HIGHCOLOR_OFF); in wmt_ge_fillrect() 62 writel(p->fix.smem_start, regbase + GE_DESTBASE_OFF); in wmt_ge_fillrect() 63 writel(p->var.xres_virtual - 1, regbase + GE_DESTDISPW_OFF); in wmt_ge_fillrect() 64 writel(p->var.yres_virtual - 1, regbase + GE_DESTDISPH_OFF); in wmt_ge_fillrect() 65 writel(rect->dx, regbase + GE_DESTAREAX_OFF); in wmt_ge_fillrect() 66 writel(rect->dy, regbase + GE_DESTAREAY_OFF); in wmt_ge_fillrect() 67 writel(rect->width - 1, regbase + GE_DESTAREAW_OFF); in wmt_ge_fillrect() 68 writel(rect->height - 1, regbase + GE_DESTAREAH_OFF); in wmt_ge_fillrect() [all …]
|
D | cirrusfb.c | 355 u8 __iomem *regbase; member 395 static void cirrusfb_WaitBLT(u8 __iomem *regbase); 396 static void cirrusfb_BitBLT(u8 __iomem *regbase, int bits_per_pixel, 401 static void cirrusfb_RectFill(u8 __iomem *regbase, int bits_per_pixel, 410 static void cirrusfb_dbg_reg_dump(struct fb_info *info, caddr_t regbase); 412 caddr_t regbase, 451 long mclk = vga_rseq(cinfo->regbase, CL_SEQR1F) & 0x3f; in cirrusfb_check_mclk() 637 old1f = vga_rseq(cinfo->regbase, CL_SEQR1F) & ~0x40; in cirrusfb_set_mclk_as_source() 643 old1e = vga_rseq(cinfo->regbase, CL_SEQR1E) & ~0x1; in cirrusfb_set_mclk_as_source() 647 vga_wseq(cinfo->regbase, CL_SEQR1E, old1e); in cirrusfb_set_mclk_as_source() [all …]
|
D | wm8505fb.c | 38 void __iomem *regbase; member 51 writel(0, fbi->regbase + i); in wm8505fb_init_hw() 54 writel(fbi->fb.fix.smem_start, fbi->regbase + WMT_GOVR_FBADDR); in wm8505fb_init_hw() 55 writel(fbi->fb.fix.smem_start, fbi->regbase + WMT_GOVR_FBADDR1); in wm8505fb_init_hw() 62 writel(0x31c, fbi->regbase + WMT_GOVR_COLORSPACE); in wm8505fb_init_hw() 63 writel(1, fbi->regbase + WMT_GOVR_COLORSPACE1); in wm8505fb_init_hw() 66 writel(info->var.xres, fbi->regbase + WMT_GOVR_XRES); in wm8505fb_init_hw() 67 writel(info->var.xres_virtual, fbi->regbase + WMT_GOVR_XRES_VIRTUAL); in wm8505fb_init_hw() 70 writel(0xf, fbi->regbase + WMT_GOVR_FHI); in wm8505fb_init_hw() 71 writel(4, fbi->regbase + WMT_GOVR_DVO_SET); in wm8505fb_init_hw() [all …]
|
D | vt8500lcdfb.c | 112 control0 = readl(fbi->regbase) & ~0xf; in vt8500lcd_set_par() 113 writel(0, fbi->regbase); in vt8500lcd_set_par() 114 while (readl(fbi->regbase + 0x38) & 0x10) in vt8500lcd_set_par() 119 | (info->var.right_margin & 0xff), fbi->regbase + 0x4); in vt8500lcd_set_par() 123 | (info->var.lower_margin & 0xff), fbi->regbase + 0x8); in vt8500lcd_set_par() 125 | ((info->var.xres - 1) & 0x400), fbi->regbase + 0x10); in vt8500lcd_set_par() 126 writel(0x80000000, fbi->regbase + 0x20); in vt8500lcd_set_par() 127 writel(control0 | (reg_bpp << 1) | 0x100, fbi->regbase); in vt8500lcd_set_par() 186 writel(0xffffffff ^ (1 << 3), fbi->regbase + 0x3c); in vt8500lcd_ioctl() 188 readl(fbi->regbase + 0x38) & (1 << 3), HZ / 10); in vt8500lcd_ioctl() [all …]
|
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/ |
D | comedi_8255.c | 37 unsigned long regbase; member 39 unsigned long regbase); 43 int dir, int port, int data, unsigned long regbase) in subdev_8255_io() argument 46 outb(data, dev->iobase + regbase + port); in subdev_8255_io() 49 return inb(dev->iobase + regbase + port); in subdev_8255_io() 53 int dir, int port, int data, unsigned long regbase) in subdev_8255_mmio() argument 56 writeb(data, dev->mmio + regbase + port); in subdev_8255_mmio() 59 return readb(dev->mmio + regbase + port); in subdev_8255_mmio() 68 unsigned long regbase = spriv->regbase; in subdev_8255_insn() local 76 s->state & 0xff, regbase); in subdev_8255_insn() [all …]
|
D | 8255.h | 32 int data, unsigned long regbase), 33 unsigned long regbase); 37 int data, unsigned long regbase), 38 unsigned long regbase);
|
/kernel/linux/linux-5.10/drivers/video/fbdev/core/ |
D | svgalib.c | 23 void svga_wcrt_multi(void __iomem *regbase, const struct vga_regset *regset, u32 value) in svga_wcrt_multi() argument 28 regval = vga_rcrt(regbase, regset->regnum); in svga_wcrt_multi() 37 vga_wcrt(regbase, regset->regnum, regval); in svga_wcrt_multi() 43 void svga_wseq_multi(void __iomem *regbase, const struct vga_regset *regset, u32 value) in svga_wseq_multi() argument 48 regval = vga_rseq(regbase, regset->regnum); in svga_wseq_multi() 57 vga_wseq(regbase, regset->regnum, regval); in svga_wseq_multi() 78 void svga_set_default_gfx_regs(void __iomem *regbase) in svga_set_default_gfx_regs() argument 81 vga_wgfx(regbase, VGA_GFX_SR_VALUE, 0x00); in svga_set_default_gfx_regs() 82 vga_wgfx(regbase, VGA_GFX_SR_ENABLE, 0x00); in svga_set_default_gfx_regs() 83 vga_wgfx(regbase, VGA_GFX_COMPARE_VALUE, 0x00); in svga_set_default_gfx_regs() [all …]
|
/kernel/linux/linux-5.10/drivers/clocksource/ |
D | timer-vt8500.c | 41 static void __iomem *regbase; variable 46 writel(3, regbase + TIMER_CTRL_VAL); in vt8500_timer_read() 47 while ((readl((regbase + TIMER_AS_VAL)) & TIMER_COUNT_R_ACTIVE) in vt8500_timer_read() 50 return readl(regbase + TIMER_COUNT_VAL); in vt8500_timer_read() 66 while ((readl(regbase + TIMER_AS_VAL) & TIMER_MATCH_W_ACTIVE) in vt8500_timer_set_next_event() 69 writel((unsigned long)alarm, regbase + TIMER_MATCH_VAL); in vt8500_timer_set_next_event() 74 writel(1, regbase + TIMER_IER_VAL); in vt8500_timer_set_next_event() 81 writel(readl(regbase + TIMER_CTRL_VAL) | 1, regbase + TIMER_CTRL_VAL); in vt8500_shutdown() 82 writel(0, regbase + TIMER_IER_VAL); in vt8500_shutdown() 98 writel(0xf, regbase + TIMER_STATUS_VAL); in vt8500_timer_interrupt() [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | svga.h | 71 static inline void svga_wattr(void __iomem *regbase, u8 index, u8 data) in svga_wattr() argument 73 vga_r(regbase, VGA_IS1_RC); in svga_wattr() 74 vga_w(regbase, VGA_ATT_IW, index); in svga_wattr() 75 vga_w(regbase, VGA_ATT_W, data); in svga_wattr() 80 static inline void svga_wseq_mask(void __iomem *regbase, u8 index, u8 data, u8 mask) in svga_wseq_mask() argument 82 vga_wseq(regbase, index, (data & mask) | (vga_rseq(regbase, index) & ~mask)); in svga_wseq_mask() 87 static inline void svga_wcrt_mask(void __iomem *regbase, u8 index, u8 data, u8 mask) in svga_wcrt_mask() argument 89 vga_wcrt(regbase, index, (data & mask) | (vga_rcrt(regbase, index) & ~mask)); in svga_wcrt_mask() 100 void svga_wcrt_multi(void __iomem *regbase, const struct vga_regset *regset, u32 value); 101 void svga_wseq_multi(void __iomem *regbase, const struct vga_regset *regset, u32 value); [all …]
|
/kernel/linux/linux-5.10/drivers/rtc/ |
D | rtc-sh.c | 97 void __iomem *regbase; member 114 tmp = readb(rtc->regbase + RCR1); in __sh_rtc_interrupt() 117 writeb(tmp, rtc->regbase + RCR1); in __sh_rtc_interrupt() 130 tmp = readb(rtc->regbase + RCR1); in __sh_rtc_alarm() 133 writeb(tmp, rtc->regbase + RCR1); in __sh_rtc_alarm() 145 tmp = readb(rtc->regbase + RCR2); in __sh_rtc_periodic() 148 writeb(tmp, rtc->regbase + RCR2); in __sh_rtc_periodic() 222 tmp = readb(rtc->regbase + RCR1); in sh_rtc_setaie() 229 writeb(tmp, rtc->regbase + RCR1); in sh_rtc_setaie() 239 tmp = readb(rtc->regbase + RCR1); in sh_rtc_proc() [all …]
|
D | rtc-vt8500.c | 73 void __iomem *regbase; member 88 isr = readl(vt8500_rtc->regbase + VT8500_RTC_IS); in vt8500_rtc_irq() 89 writel(isr, vt8500_rtc->regbase + VT8500_RTC_IS); in vt8500_rtc_irq() 106 date = readl(vt8500_rtc->regbase + VT8500_RTC_DR); in vt8500_rtc_read_time() 107 time = readl(vt8500_rtc->regbase + VT8500_RTC_TR); in vt8500_rtc_read_time() 129 vt8500_rtc->regbase + VT8500_RTC_DS); in vt8500_rtc_set_time() 134 vt8500_rtc->regbase + VT8500_RTC_TS); in vt8500_rtc_set_time() 144 alarm = readl(vt8500_rtc->regbase + VT8500_RTC_AS); in vt8500_rtc_read_alarm() 145 isr = readl(vt8500_rtc->regbase + VT8500_RTC_IS); in vt8500_rtc_read_alarm() 167 vt8500_rtc->regbase + VT8500_RTC_AS); in vt8500_rtc_set_alarm() [all …]
|
/kernel/linux/linux-5.10/arch/mips/rb532/ |
D | gpio.c | 42 void __iomem *regbase; member 92 return !!rb532_get_bit(offset, gpch->regbase + GPIOD); in rb532_gpio_get() 104 rb532_set_bit(value, offset, gpch->regbase + GPIOD); in rb532_gpio_set() 117 rb532_set_bit(0, offset, gpch->regbase + GPIOFUNC); in rb532_gpio_direction_input() 119 rb532_set_bit(0, offset, gpch->regbase + GPIOCFG); in rb532_gpio_direction_input() 134 rb532_set_bit(0, offset, gpch->regbase + GPIOFUNC); in rb532_gpio_direction_output() 137 rb532_set_bit(value, offset, gpch->regbase + GPIOD); in rb532_gpio_direction_output() 139 rb532_set_bit(1, offset, gpch->regbase + GPIOCFG); in rb532_gpio_direction_output() 168 rb532_set_bit(bit, gpio, rb532_gpio_chip->regbase + GPIOILEVEL); in rb532_gpio_set_ilevel() 177 rb532_set_bit(bit, gpio, rb532_gpio_chip->regbase + GPIOISTAT); in rb532_gpio_set_istat() [all …]
|
/kernel/linux/linux-5.10/drivers/gpio/ |
D | gpio-pxa.c | 66 void __iomem *regbase; member 165 return bank->regbase; in gpio_bank_base() 347 struct device_node *np, void __iomem *regbase) in pxa_init_gpio_chip() argument 375 bank->regbase = regbase + BANK_OFF(i); in pxa_init_gpio_chip() 388 grer = readl_relaxed(c->regbase + GRER_OFFSET) & ~c->irq_mask; in update_edge_detect() 389 gfer = readl_relaxed(c->regbase + GFER_OFFSET) & ~c->irq_mask; in update_edge_detect() 392 writel_relaxed(grer, c->regbase + GRER_OFFSET); in update_edge_detect() 393 writel_relaxed(gfer, c->regbase + GFER_OFFSET); in update_edge_detect() 416 gpdr = readl_relaxed(c->regbase + GPDR_OFFSET); in pxa_gpio_irq_type() 419 writel_relaxed(gpdr | mask, c->regbase + GPDR_OFFSET); in pxa_gpio_irq_type() [all …]
|
D | gpio-f7188x.c | 71 unsigned int regbase; member 164 .regbase = _regbase, \ 269 dir = superio_inb(sio->addr, gpio_dir(bank->regbase)); in f7188x_gpio_get_direction() 291 dir = superio_inb(sio->addr, gpio_dir(bank->regbase)); in f7188x_gpio_direction_in() 293 superio_outb(sio->addr, gpio_dir(bank->regbase), dir); in f7188x_gpio_direction_in() 312 dir = superio_inb(sio->addr, gpio_dir(bank->regbase)); in f7188x_gpio_get() 315 data = superio_inb(sio->addr, gpio_data_out(bank->regbase)); in f7188x_gpio_get() 317 data = superio_inb(sio->addr, gpio_data_in(bank->regbase)); in f7188x_gpio_get() 337 data_out = superio_inb(sio->addr, gpio_data_out(bank->regbase)); in f7188x_gpio_direction_out() 342 superio_outb(sio->addr, gpio_data_out(bank->regbase), data_out); in f7188x_gpio_direction_out() [all …]
|
/kernel/linux/linux-5.10/drivers/clk/uniphier/ |
D | clk-uniphier-cpugear.c | 21 unsigned int regbase; member 35 gear->regbase + UNIPHIER_CLK_CPUGEAR_SET, in uniphier_clk_cpugear_set_parent() 41 gear->regbase + UNIPHIER_CLK_CPUGEAR_UPD, in uniphier_clk_cpugear_set_parent() 48 gear->regbase + UNIPHIER_CLK_CPUGEAR_UPD, in uniphier_clk_cpugear_set_parent() 61 gear->regbase + UNIPHIER_CLK_CPUGEAR_STAT, &val); in uniphier_clk_cpugear_get_parent() 96 gear->regbase = data->regbase; in uniphier_clk_register_cpugear()
|
/kernel/linux/linux-5.10/drivers/mtd/spi-nor/controllers/ |
D | hisi-sfc.c | 93 void __iomem *regbase; member 107 return readl_poll_timeout(host->regbase + FMC_INT, reg, in hisi_spi_nor_wait_op_finish() 144 writel(reg, host->regbase + FMC_SPI_TIMING_CFG); in hisi_spi_nor_init() 187 writel(reg, host->regbase + FMC_CMD); in hisi_spi_nor_op_reg() 190 writel(reg, host->regbase + FMC_DATA_NUM); in hisi_spi_nor_op_reg() 193 writel(reg, host->regbase + FMC_OP_CFG); in hisi_spi_nor_op_reg() 195 writel(0xff, host->regbase + FMC_INT_CLR); in hisi_spi_nor_op_reg() 197 writel(reg, host->regbase + FMC_OP); in hisi_spi_nor_op_reg() 237 reg = readl(host->regbase + FMC_CFG); in hisi_spi_nor_dma_transfer() 242 writel(reg, host->regbase + FMC_CFG); in hisi_spi_nor_dma_transfer() [all …]
|
/kernel/linux/linux-5.10/drivers/spi/ |
D | spi-hisi-sfc-v3xx.c | 75 void __iomem *regbase; member 83 writel(0, host->regbase + HISI_SFC_V3XX_INT_MASK); in hisi_sfc_v3xx_disable_int() 88 writel(HISI_SFC_V3XX_INT_MASK_ALL, host->regbase + HISI_SFC_V3XX_INT_MASK); in hisi_sfc_v3xx_enable_int() 93 writel(HISI_SFC_V3XX_INT_MASK_ALL, host->regbase + HISI_SFC_V3XX_INT_CLR); in hisi_sfc_v3xx_clear_int() 105 reg = readl(host->regbase + HISI_SFC_V3XX_RAW_INT_STAT); in hisi_sfc_v3xx_handle_completion() 138 return readl_poll_timeout(host->regbase + HISI_SFC_V3XX_CMD_CFG, reg, in hisi_sfc_v3xx_wait_cmd_idle() 193 from = host->regbase + HISI_SFC_V3XX_CMD_DATABUF0; in hisi_sfc_v3xx_read_databuf() 230 to = host->regbase + HISI_SFC_V3XX_CMD_DATABUF0; in hisi_sfc_v3xx_write_databuf() 298 writel(op->addr.val, host->regbase + HISI_SFC_V3XX_CMD_ADDR); in hisi_sfc_v3xx_start_bus() 299 writel(op->cmd.opcode, host->regbase + HISI_SFC_V3XX_CMD_INS); in hisi_sfc_v3xx_start_bus() [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/ufs/ |
D | ti-j721e-ufs.c | 22 void __iomem *regbase; in ti_j721e_ufs_probe() local 27 regbase = devm_platform_ioremap_resource(pdev, 0); in ti_j721e_ufs_probe() 28 if (IS_ERR(regbase)) in ti_j721e_ufs_probe() 29 return PTR_ERR(regbase); in ti_j721e_ufs_probe() 50 writel(reg, regbase + TI_UFS_SS_CTRL); in ti_j721e_ufs_probe()
|
/kernel/linux/linux-5.10/drivers/clk/at91/ |
D | sckc.c | 370 void __iomem *regbase = of_iomap(np, 0); in at91sam9x5_sckc_register() local 377 if (!regbase) in at91sam9x5_sckc_register() 380 slow_rc = at91_clk_register_slow_rc_osc(regbase, parent_names[0], in at91sam9x5_sckc_register() 404 slow_osc = at91_clk_register_slow_osc(regbase, parent_names[1], in at91sam9x5_sckc_register() 409 slowck = at91_clk_register_sam9x5_slow(regbase, "slowck", parent_names, in at91sam9x5_sckc_register() 463 void __iomem *regbase = of_iomap(np, 0); in of_sam9x60_sckc_setup() local 471 if (!regbase) in of_sam9x60_sckc_setup() 485 slow_osc = at91_clk_register_slow_osc(regbase, parent_names[1], in of_sam9x60_sckc_setup() 503 clk_data->hws[1] = at91_clk_register_sam9x5_slow(regbase, "td_slck", in of_sam9x60_sckc_setup() 572 void __iomem *regbase = of_iomap(np, 0); in of_sama5d4_sckc_setup() local [all …]
|
/kernel/linux/linux-5.10/drivers/clk/socfpga/ |
D | clk-gate-s10.c | 68 struct clk *s10_register_gate(const struct stratix10_gate_clock *clks, void __iomem *regbase) in s10_register_gate() argument 79 socfpga_clk->hw.reg = regbase + clks->gate_reg; in s10_register_gate() 88 socfpga_clk->div_reg = regbase + clks->div_reg; in s10_register_gate() 96 socfpga_clk->bypass_reg = regbase + clks->bypass_reg; in s10_register_gate()
|
/kernel/linux/linux-5.10/include/linux/platform_data/ |
D | mv_usb.h | 36 int (*phy_init)(void __iomem *regbase); 37 void (*phy_deinit)(void __iomem *regbase);
|
/kernel/linux/linux-5.10/sound/soc/zte/ |
D | zx-tdm.c | 76 void __iomem *regbase; member 85 return readl_relaxed(tdm->regbase + reg); in zx_tdm_readl() 90 writel_relaxed(val, tdm->regbase + reg); in zx_tdm_writel() 402 zx_tdm->regbase = devm_ioremap_resource(&pdev->dev, res); in zx_tdm_probe() 403 if (IS_ERR(zx_tdm->regbase)) in zx_tdm_probe() 404 return PTR_ERR(zx_tdm->regbase); in zx_tdm_probe()
|