Home
last modified time | relevance | path

Searched refs:membase (Results 1 – 25 of 37) sorted by relevance

12

/linux-4.19.296/drivers/isdn/hisax/ !
Dtelespci.c183 return (readisac(cs->hw.teles0.membase, offset)); in ReadISAC()
189 writeisac(cs->hw.teles0.membase, offset, value); in WriteISAC()
195 read_fifo_isac(cs->hw.teles0.membase, data, size); in ReadISACfifo()
201 write_fifo_isac(cs->hw.teles0.membase, data, size); in WriteISACfifo()
207 return (readhscx(cs->hw.teles0.membase, hscx, offset)); in ReadHSCX()
213 writehscx(cs->hw.teles0.membase, hscx, offset, value); in WriteHSCX()
220 #define READHSCX(cs, nr, reg) readhscx(cs->hw.teles0.membase, nr, reg)
221 #define WRITEHSCX(cs, nr, reg, data) writehscx(cs->hw.teles0.membase, nr, reg, data)
222 #define READHSCXFIFO(cs, nr, ptr, cnt) read_fifo_hscx(cs->hw.teles0.membase, nr, ptr, cnt)
223 #define WRITEHSCXFIFO(cs, nr, ptr, cnt) write_fifo_hscx(cs->hw.teles0.membase, nr, ptr, cnt)
[all …]
Dteles0.c100 return (readisac(cs->hw.teles0.membase, offset)); in ReadISAC()
106 writeisac(cs->hw.teles0.membase, offset, value); in WriteISAC()
112 read_fifo_isac(cs->hw.teles0.membase, data, size); in ReadISACfifo()
118 write_fifo_isac(cs->hw.teles0.membase, data, size); in WriteISACfifo()
124 return (readhscx(cs->hw.teles0.membase, hscx, offset)); in ReadHSCX()
130 writehscx(cs->hw.teles0.membase, hscx, offset, value); in WriteHSCX()
137 #define READHSCX(cs, nr, reg) readhscx(cs->hw.teles0.membase, nr, reg)
138 #define WRITEHSCX(cs, nr, reg, data) writehscx(cs->hw.teles0.membase, nr, reg, data)
139 #define READHSCXFIFO(cs, nr, ptr, cnt) read_fifo_hscx(cs->hw.teles0.membase, nr, ptr, cnt)
140 #define WRITEHSCXFIFO(cs, nr, ptr, cnt) write_fifo_hscx(cs->hw.teles0.membase, nr, ptr, cnt)
[all …]
/linux-4.19.296/drivers/gpio/ !
Dgpio-timberdale.c47 void __iomem *membase; member
61 reg = ioread32(tgpio->membase + offset); in timbgpio_update_bit()
68 iowrite32(reg, tgpio->membase + offset); in timbgpio_update_bit()
84 value = ioread32(tgpio->membase + TGPIOVAL); in timbgpio_gpio_get()
121 iowrite32(tgpio->last_ier, tgpio->membase + TGPIO_IER); in timbgpio_irq_disable()
133 iowrite32(tgpio->last_ier, tgpio->membase + TGPIO_IER); in timbgpio_irq_enable()
149 ver = ioread32(tgpio->membase + TGPIO_VER); in timbgpio_irq_type()
153 lvr = ioread32(tgpio->membase + TGPIO_LVR); in timbgpio_irq_type()
154 flr = ioread32(tgpio->membase + TGPIO_FLR); in timbgpio_irq_type()
156 bflr = ioread32(tgpio->membase + TGPIO_BFLR); in timbgpio_irq_type()
[all …]
Dgpio-sa1100.c21 void __iomem *membase; member
44 return readl_relaxed(sa1100_gpio_chip(chip)->membase + R_GPLR) & in sa1100_gpio_get()
52 writel_relaxed(BIT(offset), sa1100_gpio_chip(chip)->membase + reg); in sa1100_gpio_set()
57 void __iomem *gpdr = sa1100_gpio_chip(chip)->membase + R_GPDR; in sa1100_get_direction()
64 void __iomem *gpdr = sa1100_gpio_chip(chip)->membase + R_GPDR; in sa1100_direction_input()
76 void __iomem *gpdr = sa1100_gpio_chip(chip)->membase + R_GPDR; in sa1100_direction_output()
104 .membase = (void *)&GPLR,
115 void *base = sgc->membase; in sa1100_update_edge_regs()
157 writel_relaxed(BIT(d->hwirq), sgc->membase + R_GEDR); in sa1100_gpio_ack()
233 void __iomem *gedr = sgc->membase + R_GEDR; in sa1100_gpio_handler()
[all …]
Dgpio-mvebu.c96 void __iomem *membase; member
287 return mvpwm->membase + PWM_BLINK_ON_DURATION_OFF; in mvebu_pwmreg_blink_on_duration()
292 return mvpwm->membase + PWM_BLINK_OFF_DURATION_OFF; in mvebu_pwmreg_blink_off_duration()
806 mvpwm->membase = devm_ioremap_resource(dev, res); in mvebu_pwm_probe()
807 if (IS_ERR(mvpwm->membase)) in mvebu_pwm_probe()
808 return PTR_ERR(mvpwm->membase); in mvebu_pwm_probe()
/linux-4.19.296/drivers/i2c/busses/ !
Di2c-uniphier-f.c92 void __iomem *membase; member
121 writel(*priv->buf++, priv->membase + UNIPHIER_FI2C_DTTX); in uniphier_fi2c_fill_txfifo()
135 *priv->buf++ = readl(priv->membase + UNIPHIER_FI2C_DTRX); in uniphier_fi2c_drain_rxfifo()
143 writel(priv->enabled_irqs, priv->membase + UNIPHIER_FI2C_IE); in uniphier_fi2c_set_irqs()
149 writel(mask, priv->membase + UNIPHIER_FI2C_IC); in uniphier_fi2c_clear_irqs()
159 priv->membase + UNIPHIER_FI2C_CR); in uniphier_fi2c_stop()
169 irq_status = readl(priv->membase + UNIPHIER_FI2C_INT); in uniphier_fi2c_interrupt()
237 priv->membase + UNIPHIER_FI2C_CR); in uniphier_fi2c_interrupt()
278 writel(0, priv->membase + UNIPHIER_FI2C_TBC); in uniphier_fi2c_tx_init()
281 priv->membase + UNIPHIER_FI2C_DTTX); in uniphier_fi2c_tx_init()
[all …]
Di2c-uniphier.c53 void __iomem *membase; member
84 writel(txdata, priv->membase + UNIPHIER_I2C_DTRM); in uniphier_i2c_xfer_byte()
92 rxdata = readl(priv->membase + UNIPHIER_I2C_DREC); in uniphier_i2c_xfer_byte()
222 if (!(readl(priv->membase + UNIPHIER_I2C_DREC) & in uniphier_i2c_check_bus_busy()
277 writel(val, priv->membase + UNIPHIER_I2C_BRST); in uniphier_i2c_reset()
284 return !!(readl(priv->membase + UNIPHIER_I2C_BSTS) & in uniphier_i2c_get_scl()
293 priv->membase + UNIPHIER_I2C_BRST); in uniphier_i2c_set_scl()
300 return !!(readl(priv->membase + UNIPHIER_I2C_BSTS) & in uniphier_i2c_get_sda()
329 writel((cyc * 5 / 9 << 16) | cyc, priv->membase + UNIPHIER_I2C_CLK); in uniphier_i2c_hw_init()
348 priv->membase = devm_ioremap_resource(dev, regs); in uniphier_i2c_probe()
[all …]
Di2c-cadence.c122 #define cdns_i2c_readreg(offset) readl_relaxed(id->membase + offset)
123 #define cdns_i2c_writereg(val, offset) writel_relaxed(val, id->membase + offset)
149 void __iomem *membase; member
901 id->membase = devm_ioremap_resource(&pdev->dev, r_mem); in cdns_i2c_probe()
902 if (IS_ERR(id->membase)) in cdns_i2c_probe()
903 return PTR_ERR(id->membase); in cdns_i2c_probe()
/linux-4.19.296/drivers/reset/ !
Dreset-stm32mp1.c18 void __iomem *membase; member
36 addr = data->membase + (bank * reg_width); in stm32_reset_update()
66 reg = readl(data->membase + (bank * reg_width)); in stm32_reset_status()
86 void __iomem *membase; in stm32_reset_probe() local
94 membase = devm_ioremap_resource(dev, res); in stm32_reset_probe()
95 if (IS_ERR(membase)) in stm32_reset_probe()
96 return PTR_ERR(membase); in stm32_reset_probe()
98 data->membase = membase; in stm32_reset_probe()
Dreset-simple.c47 reg = readl(data->membase + (bank * reg_width)); in reset_simple_update()
52 writel(reg, data->membase + (bank * reg_width)); in reset_simple_update()
80 reg = readl(data->membase + (bank * reg_width)); in reset_simple_status()
139 void __iomem *membase; in reset_simple_probe() local
150 membase = devm_ioremap_resource(dev, res); in reset_simple_probe()
151 if (IS_ERR(membase)) in reset_simple_probe()
152 return PTR_ERR(membase); in reset_simple_probe()
155 data->membase = membase; in reset_simple_probe()
177 data->membase += reg_offset; in reset_simple_probe()
Dreset-sunxi.c48 data->membase = ioremap(res.start, size); in sunxi_reset_init()
49 if (!data->membase) { in sunxi_reset_init()
Dreset-uniphier-usb3.c52 priv->rdata.membase = devm_ioremap_resource(dev, res); in uniphier_usb3_reset_probe()
53 if (IS_ERR(priv->rdata.membase)) in uniphier_usb3_reset_probe()
54 return PTR_ERR(priv->rdata.membase); in uniphier_usb3_reset_probe()
Dreset-simple.h37 void __iomem *membase; member
/linux-4.19.296/drivers/clk/hisilicon/ !
Dreset.c34 void __iomem *membase; member
68 reg = readl(rstc->membase + offset); in hisi_reset_assert()
69 writel(reg | BIT(bit), rstc->membase + offset); in hisi_reset_assert()
89 reg = readl(rstc->membase + offset); in hisi_reset_deassert()
90 writel(reg & ~BIT(bit), rstc->membase + offset); in hisi_reset_deassert()
112 rstc->membase = devm_ioremap_resource(&pdev->dev, res); in hisi_reset_init()
113 if (IS_ERR(rstc->membase)) in hisi_reset_init()
/linux-4.19.296/drivers/bus/ !
Dhisi_lpc.c38 void __iomem *membase; member
123 writel_relaxed(opcnt, lpcdev->membase + LPC_REG_OP_LEN); in hisi_lpc_target_in()
124 writel_relaxed(cmd_word, lpcdev->membase + LPC_REG_CMD); in hisi_lpc_target_in()
125 writel_relaxed(addr, lpcdev->membase + LPC_REG_ADDR); in hisi_lpc_target_in()
128 lpcdev->membase + LPC_REG_STARTUP_SIGNAL); in hisi_lpc_target_in()
131 ret = wait_lpc_idle(lpcdev->membase, waitcnt); in hisi_lpc_target_in()
137 readsb(lpcdev->membase + LPC_REG_RDATA, buf, opcnt); in hisi_lpc_target_in()
176 writel_relaxed(opcnt, lpcdev->membase + LPC_REG_OP_LEN); in hisi_lpc_target_out()
177 writel_relaxed(cmd_word, lpcdev->membase + LPC_REG_CMD); in hisi_lpc_target_out()
178 writel_relaxed(addr, lpcdev->membase + LPC_REG_ADDR); in hisi_lpc_target_out()
[all …]
Duniphier-system-bus.c43 void __iomem *membase; member
127 void __iomem *base_reg = priv->membase + UNIPHIER_SBC_BASE; in uniphier_system_bus_check_boot_swap()
145 void __iomem *base_reg = priv->membase + UNIPHIER_SBC_BASE; in uniphier_system_bus_set_reg()
199 priv->membase = devm_ioremap_resource(dev, regs); in uniphier_system_bus_probe()
200 if (IS_ERR(priv->membase)) in uniphier_system_bus_probe()
201 return PTR_ERR(priv->membase); in uniphier_system_bus_probe()
/linux-4.19.296/drivers/isdn/hardware/avm/ !
Dt1pci.c73 card->membase = p->membase; in t1pci_add_card()
83 card->mbase = ioremap(card->membase, 64); in t1pci_add_card()
86 card->membase); in t1pci_add_card()
134 card->port, card->irq, card->membase); in t1pci_add_card()
183 cinfo->card ? cinfo->card->membase : 0 in t1pci_procinfo()
203 param.membase = pci_resource_start(dev, 0); in t1pci_probe()
206 param.port, param.irq, param.membase); in t1pci_probe()
211 param.port, param.irq, param.membase); in t1pci_probe()
Db1pci.c175 cinfo->card ? cinfo->card->membase : 0, in b1pciv4_procinfo()
207 card->membase = p->membase; in b1pciv4_probe()
217 card->mbase = ioremap(card->membase, 64); in b1pciv4_probe()
220 card->membase); in b1pciv4_probe()
265 card->port, card->irq, card->membase, card->revision); in b1pciv4_probe()
318 param.membase = pci_resource_start(pdev, 0); in b1pci_pci_probe()
322 param.port, param.irq, param.membase); in b1pci_pci_probe()
330 param.port, param.irq, param.membase); in b1pci_pci_probe()
333 param.membase = 0; in b1pci_pci_probe()
Dc4.c1063 cinfo->card ? cinfo->card->membase : 0 in c4_procinfo()
1079 seq_printf(m, "%-16s 0x%lx\n", "membase", card->membase); in c4_proc_show()
1156 card->membase = p->membase; in c4_add_card()
1166 card->mbase = ioremap(card->membase, 128); in c4_add_card()
1169 card->membase); in c4_add_card()
1219 card->membase); in c4_add_card()
1253 param.membase = pci_resource_start(dev, 0); in c4_probe()
1256 nr, param.port, param.irq, param.membase); in c4_probe()
1261 nr, param.port, param.irq, param.membase); in c4_probe()
/linux-4.19.296/drivers/clk/sunxi/ !
Dclk-sun9i-mmc.c36 void __iomem *membase; member
50 void __iomem *reg = data->membase + SUN9I_MMC_WIDTH * id; in sun9i_mmc_reset_assert()
72 void __iomem *reg = data->membase + SUN9I_MMC_WIDTH * id; in sun9i_mmc_reset_deassert()
124 data->membase = devm_ioremap_resource(&pdev->dev, r); in sun9i_a80_mmc_config_clk_probe()
125 if (IS_ERR(data->membase)) in sun9i_a80_mmc_config_clk_probe()
126 return PTR_ERR(data->membase); in sun9i_a80_mmc_config_clk_probe()
160 data->membase + SUN9I_MMC_WIDTH * i, in sun9i_a80_mmc_config_clk_probe()
/linux-4.19.296/drivers/char/hw_random/ !
Dgeode-rng.c56 void __iomem *membase; member
123 priv->membase = mem; in mod_init()
150 iounmap(priv->membase); in mod_exit()
/linux-4.19.296/include/uapi/linux/ !
Dkernelcapi.h28 unsigned int membase; member
/linux-4.19.296/drivers/misc/ibmasm/ !
Duart.c55 uart.port.membase = iomem_base; in ibmasm_register_uart()
/linux-4.19.296/include/linux/isdn/ !
Dcapilli.h36 unsigned int membase; member
/linux-4.19.296/drivers/isdn/hysdn/ !
Dboardergo.c421 card->memend = card->membase + ERG_DPRAM_PAGE_SIZE - 1; in ergo_inithardware()
422 if (!(card->dpram = ioremap(card->membase, ERG_DPRAM_PAGE_SIZE))) { in ergo_inithardware()

12