Home
last modified time | relevance | path

Searched refs:regbase (Results 1 – 25 of 59) sorted by relevance

123

/linux-6.3-rc2/include/video/
A Dvga.h222 return readb (regbase + port); in vga_mm_r()
227 writeb (val, regbase + port); in vga_mm_w()
238 if (regbase) in vga_r()
239 return vga_mm_r (regbase, port); in vga_r()
246 if (regbase) in vga_w()
247 vga_mm_w (regbase, port, val); in vga_w()
256 if (regbase) in vga_w_fast()
322 vga_w (regbase, VGA_SEQ_I, reg); in vga_rseq()
331 vga_w (regbase, VGA_SEQ_I, reg); in vga_wseq()
332 vga_w (regbase, VGA_SEQ_D, val); in vga_wseq()
[all …]
/linux-6.3-rc2/drivers/video/fbdev/
A Dwmt_ge_rops.c40 static void __iomem *regbase; variable
71 writel(pat, regbase + GE_PAT0C_OFF); in wmt_ge_fillrect()
72 writel(1, regbase + GE_COMMAND_OFF); in wmt_ge_fillrect()
74 writel(1, regbase + GE_FIRE_OFF); in wmt_ge_fillrect()
105 writel(0xcc, regbase + GE_ROPCODE_OFF); in wmt_ge_copyarea()
106 writel(1, regbase + GE_COMMAND_OFF); in wmt_ge_copyarea()
107 writel(1, regbase + GE_FIRE_OFF); in wmt_ge_copyarea()
131 if (unlikely(regbase)) { in wmt_ge_rops_probe()
137 if (regbase == NULL) { in wmt_ge_rops_probe()
142 writel(1, regbase + GE_ENABLE_OFF); in wmt_ge_rops_probe()
[all …]
A Dcirrusfb.c356 u8 __iomem *regbase; member
413 caddr_t regbase,
663 u8 __iomem *regbase = cinfo->regbase; in cirrusfb_set_par_foo() local
1865 u8 __iomem *regbase) in cirrusfb_get_memsize() argument
1953 iounmap(cinfo->regbase); in cirrusfb_zorro_unmap()
2118 cinfo->regbase = NULL; in cirrusfb_pci_register()
2256 cinfo->regbase = regbase > 16 * MB_ ? ioremap(regbase, 64 * 1024) in cirrusfb_zorro_register()
2258 if (!cinfo->regbase) { in cirrusfb_zorro_register()
2300 if (regbase > 16 * MB_) in cirrusfb_zorro_register()
2301 iounmap(cinfo->regbase); in cirrusfb_zorro_register()
[all …]
A Dwm8505fb.c38 void __iomem *regbase; member
51 writel(0, fbi->regbase + i); 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()
92 writel(0, fbi->regbase + WMT_GOVR_TG); in wm8505fb_set_timing()
104 writel(1, fbi->regbase + WMT_GOVR_TG); in wm8505fb_set_timing()
146 fbi->regbase + WMT_GOVR_CONTRAST); in wm8505fb_set_par()
228 writel(var->xoffset, fbi->regbase + WMT_GOVR_XPAN); in wm8505fb_pan_display()
304 if (IS_ERR(fbi->regbase)) in wm8505fb_probe()
305 return PTR_ERR(fbi->regbase); in wm8505fb_probe()
[all …]
A Dvt8500lcdfb.c112 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()
126 writel(0x80000000, fbi->regbase + 0x20); in vt8500lcd_set_par()
210 | (off >> 2), fbi->regbase + 0x20); in vt8500lcd_pan_display()
262 writel(0xffffffff, fbi->regbase + 0x38); in vt8500lcd_handle_irq()
328 if (fbi->regbase == NULL) { in vt8500lcd_probe()
423 writel(readl(fbi->regbase) | 1, fbi->regbase); in vt8500lcd_probe()
436 iounmap(fbi->regbase); in vt8500lcd_probe()
450 writel(0, fbi->regbase); in vt8500lcd_remove()
[all …]
/linux-6.3-rc2/drivers/comedi/drivers/
A Dcomedi_8255.c36 unsigned long regbase; member
38 unsigned long regbase);
67 unsigned long regbase = spriv->regbase; in subdev_8255_insn() local
75 s->state & 0xff, regbase); in subdev_8255_insn()
97 unsigned long regbase = spriv->regbase; in subdev_8255_do_config() local
145 unsigned long regbase), in __subdev_8255_init() argument
146 unsigned long regbase, in __subdev_8255_init()
161 spriv->regbase = regbase; in __subdev_8255_init()
205 unsigned long regbase) in subdev_8255_init()
240 unsigned long regbase) in subdev_8255_mm_init()
[all …]
/linux-6.3-rc2/drivers/video/fbdev/core/
A Dsvgalib.c100 vga_r(regbase, 0x3DA); in svga_set_default_atc_regs()
101 vga_w(regbase, VGA_ATT_W, 0x00); in svga_set_default_atc_regs()
105 svga_wattr(regbase, count, count); in svga_set_default_atc_regs()
114 vga_r(regbase, 0x3DA); in svga_set_default_atc_regs()
115 vga_w(regbase, VGA_ATT_W, 0x20); in svga_set_default_atc_regs()
159 vga_r(regbase, 0x3DA); in svga_set_textmode_vga_regs()
160 vga_w(regbase, VGA_ATT_W, 0x00); in svga_set_textmode_vga_regs()
165 vga_r(regbase, 0x3DA); in svga_set_textmode_vga_regs()
166 vga_w(regbase, VGA_ATT_W, 0x20); in svga_set_textmode_vga_regs()
337 vga_wcrt(regbase, 0x0E, pos >> 8); in svga_tilecursor()
[all …]
/linux-6.3-rc2/drivers/clocksource/
A Dtimer-vt8500.c41 static void __iomem *regbase; variable
46 writel(3, regbase + TIMER_CTRL_VAL); in vt8500_timer_read()
50 return readl(regbase + TIMER_COUNT_VAL); in vt8500_timer_read()
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()
108 regbase = of_iomap(np, 0); in vt8500_timer_init()
109 if (!regbase) { in vt8500_timer_init()
122 writel(1, regbase + TIMER_CTRL_VAL); in vt8500_timer_init()
[all …]
/linux-6.3-rc2/include/linux/
A Dsvga.h71 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()
82 vga_wseq(regbase, index, (data & mask) | (vga_rseq(regbase, index) & ~mask)); in svga_wseq_mask()
89 vga_wcrt(regbase, index, (data & mask) | (vga_rcrt(regbase, index) & ~mask)); in svga_wcrt_mask()
103 void svga_set_default_gfx_regs(void __iomem *regbase);
104 void svga_set_default_atc_regs(void __iomem *regbase);
105 void svga_set_default_seq_regs(void __iomem *regbase);
106 void svga_set_default_crt_regs(void __iomem *regbase);
[all …]
/linux-6.3-rc2/drivers/rtc/
A Drtc-sh.c97 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 …]
A Drtc-vt8500.c73 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()
129 vt8500_rtc->regbase + VT8500_RTC_DS); in vt8500_rtc_set_time()
134 vt8500_rtc->regbase + VT8500_RTC_TS); in vt8500_rtc_set_time()
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()
212 if (IS_ERR(vt8500_rtc->regbase)) in vt8500_rtc_probe()
213 return PTR_ERR(vt8500_rtc->regbase); in vt8500_rtc_probe()
217 vt8500_rtc->regbase + VT8500_RTC_CR); in vt8500_rtc_probe()
[all …]
/linux-6.3-rc2/arch/mips/rb532/
A Dgpio.c52 void __iomem *regbase; member
102 return !!rb532_get_bit(offset, gpch->regbase + GPIOD); in rb532_gpio_get()
114 rb532_set_bit(value, offset, gpch->regbase + GPIOD); in rb532_gpio_set()
127 rb532_set_bit(0, offset, gpch->regbase + GPIOFUNC); in rb532_gpio_direction_input()
129 rb532_set_bit(0, offset, gpch->regbase + GPIOCFG); in rb532_gpio_direction_input()
144 rb532_set_bit(0, offset, gpch->regbase + GPIOFUNC); in rb532_gpio_direction_output()
147 rb532_set_bit(value, offset, gpch->regbase + GPIOD); in rb532_gpio_direction_output()
149 rb532_set_bit(1, offset, gpch->regbase + GPIOCFG); in rb532_gpio_direction_output()
187 rb532_set_bit(bit, gpio, rb532_gpio_chip->regbase + GPIOISTAT); in rb532_gpio_set_istat()
205 rb532_gpio_chip->regbase = ioremap(r->start, resource_size(r)); in rb532_gpio_init()
[all …]
/linux-6.3-rc2/drivers/spi/
A Dspi-rockchip-sfc.c174 void __iomem *regbase; member
223 reg = readl(sfc->regbase + SFC_IMR); in rockchip_sfc_irq_unmask()
225 writel(reg, sfc->regbase + SFC_IMR); in rockchip_sfc_irq_unmask()
233 reg = readl(sfc->regbase + SFC_IMR); in rockchip_sfc_irq_mask()
235 writel(reg, sfc->regbase + SFC_IMR); in rockchip_sfc_irq_mask()
240 writel(0, sfc->regbase + SFC_CTRL); in rockchip_sfc_init()
357 writel(ctrl, sfc->regbase + SFC_CTRL); in rockchip_sfc_xfer_setup()
358 writel(cmd, sfc->regbase + SFC_CMD); in rockchip_sfc_xfer_setup()
543 reg = readl(sfc->regbase + SFC_RISR); in rockchip_sfc_irq_handler()
581 if (IS_ERR(sfc->regbase)) in rockchip_sfc_probe()
[all …]
A Dspi-hisi-sfc-v3xx.c77 void __iomem *regbase; member
86 writel(0, host->regbase + HISI_SFC_V3XX_INT_MASK); in hisi_sfc_v3xx_disable_int()
108 reg = readl(host->regbase + HISI_SFC_V3XX_RAW_INT_STAT); in hisi_sfc_v3xx_handle_completion()
204 from = host->regbase + HISI_SFC_V3XX_CMD_DATABUF0; in hisi_sfc_v3xx_read_databuf()
241 to = host->regbase + HISI_SFC_V3XX_CMD_DATABUF0; in hisi_sfc_v3xx_write_databuf()
312 writel(config, host->regbase + HISI_SFC_V3XX_CMD_CFG); in hisi_sfc_v3xx_start_bus()
448 host->regbase = devm_platform_ioremap_resource(pdev, 0); in hisi_sfc_v3xx_probe()
449 if (IS_ERR(host->regbase)) { in hisi_sfc_v3xx_probe()
450 ret = PTR_ERR(host->regbase); in hisi_sfc_v3xx_probe()
484 glb_config = readl(host->regbase + HISI_SFC_V3XX_GLB_CFG); in hisi_sfc_v3xx_probe()
[all …]
/linux-6.3-rc2/drivers/gpio/
A Dgpio-pxa.c66 void __iomem *regbase; member
165 return bank->regbase; in gpio_bank_base()
374 bank->regbase = regbase + BANK_OFF(i); in pxa_init_gpio_chip()
391 writel_relaxed(grer, c->regbase + GRER_OFFSET); in update_edge_detect()
392 writel_relaxed(gfer, c->regbase + GFER_OFFSET); in update_edge_detect()
415 gpdr = readl_relaxed(c->regbase + GPDR_OFFSET); in pxa_gpio_irq_type()
450 gedr = readl_relaxed(c->regbase + GEDR_OFFSET); in pxa_gpio_demux_handler()
452 writel_relaxed(gedr, c->regbase + GEDR_OFFSET); in pxa_gpio_demux_handler()
678 writel_relaxed(0, c->regbase + GFER_OFFSET); in pxa_gpio_probe()
679 writel_relaxed(0, c->regbase + GRER_OFFSET); in pxa_gpio_probe()
[all …]
A Dgpio-f7188x.c88 unsigned int regbase; member
181 .regbase = _regbase, \
300 dir = superio_inb(sio->addr, f7188x_gpio_dir(bank->regbase)); in f7188x_gpio_get_direction()
325 dir = superio_inb(sio->addr, f7188x_gpio_dir(bank->regbase)); in f7188x_gpio_direction_in()
331 superio_outb(sio->addr, f7188x_gpio_dir(bank->regbase), dir); in f7188x_gpio_direction_in()
350 dir = superio_inb(sio->addr, f7188x_gpio_dir(bank->regbase)); in f7188x_gpio_get()
355 data = superio_inb(sio->addr, f7188x_gpio_data_in(bank->regbase)); in f7188x_gpio_get()
382 dir = superio_inb(sio->addr, f7188x_gpio_dir(bank->regbase)); in f7188x_gpio_direction_out()
387 superio_outb(sio->addr, f7188x_gpio_dir(bank->regbase), dir); in f7188x_gpio_direction_out()
434 data = superio_inb(sio->addr, f7188x_gpio_out_mode(bank->regbase)); in f7188x_gpio_set_config()
[all …]
/linux-6.3-rc2/drivers/clk/uniphier/
A Dclk-uniphier-cpugear.c21 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()
/linux-6.3-rc2/drivers/mtd/spi-nor/controllers/
A Dhisi-sfc.c93 void __iomem *regbase; member
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()
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()
256 writel(reg, host->regbase + FMC_OP_CFG); in hisi_spi_nor_dma_transfer()
263 writel(reg, host->regbase + FMC_OP_DMA); in hisi_spi_nor_dma_transfer()
435 if (IS_ERR(host->regbase)) in hisi_spi_nor_probe()
[all …]
/linux-6.3-rc2/drivers/ufs/host/
A Dti-j721e-ufs.c22 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()
/linux-6.3-rc2/include/linux/comedi/
A Dcomedi_8255.h32 int data, unsigned long regbase),
33 unsigned long regbase);
37 int data, unsigned long regbase),
38 unsigned long regbase);
/linux-6.3-rc2/drivers/clk/socfpga/
A Dclk-gate-s10.c127 struct clk_hw *s10_register_gate(const struct stratix10_gate_clock *clks, void __iomem *regbase) in s10_register_gate() argument
139 socfpga_clk->hw.reg = regbase + clks->gate_reg; in s10_register_gate()
148 socfpga_clk->div_reg = regbase + clks->div_reg; in s10_register_gate()
156 socfpga_clk->bypass_reg = regbase + clks->bypass_reg; in s10_register_gate()
185 struct clk_hw *agilex_register_gate(const struct stratix10_gate_clock *clks, void __iomem *regbase) in agilex_register_gate() argument
197 socfpga_clk->hw.reg = regbase + clks->gate_reg; in agilex_register_gate()
206 socfpga_clk->div_reg = regbase + clks->div_reg; in agilex_register_gate()
214 socfpga_clk->bypass_reg = regbase + clks->bypass_reg; in agilex_register_gate()
A Dclk-periph-s10.c138 void __iomem *regbase) in n5x_register_periph() argument
151 periph_clk->hw.reg = regbase + clks->offset; in n5x_register_periph()
173 void __iomem *regbase) in s10_register_cnt_periph() argument
187 periph_clk->hw.reg = regbase + clks->offset; in s10_register_cnt_periph()
192 periph_clk->bypass_reg = regbase + clks->bypass_reg; in s10_register_cnt_periph()
/linux-6.3-rc2/drivers/clk/at91/
A Dsckc.c370 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()
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()
572 void __iomem *regbase = of_iomap(np, 0); in of_sama5d4_sckc_setup() local
580 if (!regbase) in of_sama5d4_sckc_setup()
603 osc->sckcr = regbase; in of_sama5d4_sckc_setup()
[all …]
/linux-6.3-rc2/include/linux/platform_data/
A Dmv_usb.h36 int (*phy_init)(void __iomem *regbase);
37 void (*phy_deinit)(void __iomem *regbase);
/linux-6.3-rc2/drivers/platform/x86/amd/pmf/
A Dcore.c157 return ioread32(dev->regbase + reg_offset); in amd_pmf_reg_read()
162 iowrite32(val, dev->regbase + reg_offset); in amd_pmf_reg_write()
187 rc = readx_poll_timeout(ioread32, dev->regbase + AMD_PMF_REGISTER_RESPONSE, in amd_pmf_send_cmd()
205 rc = readx_poll_timeout(ioread32, dev->regbase + AMD_PMF_REGISTER_RESPONSE, in amd_pmf_send_cmd()
383 dev->regbase = devm_ioremap(dev->dev, base_addr + AMD_PMF_BASE_ADDR_OFFSET, in amd_pmf_probe()
385 if (!dev->regbase) in amd_pmf_probe()

Completed in 52 milliseconds

123