Home
last modified time | relevance | path

Searched refs:regshift (Results 1 – 25 of 56) sorted by relevance

123

/drivers/char/ipmi/
Dipmi_si_platform.c137 u8 type, slave_addr, addr_source, regsize, regshift; in platform_ipmi_probe() local
181 io.regshift = 0; in platform_ipmi_probe()
182 rv = device_property_read_u8(&pdev->dev, "reg-shift", &regshift); in platform_ipmi_probe()
184 io.regshift = regshift; in platform_ipmi_probe()
230 const __be32 *regsize, *regspacing, *regshift; in of_ipmi_probe() local
265 regshift = of_get_property(np, "reg-shift", &proplen); in of_ipmi_probe()
266 if (regshift && proplen != 4) { in of_ipmi_probe()
280 io.regshift = regshift ? be32_to_cpup(regshift) : 0; in of_ipmi_probe()
359 io.regshift = 0; in acpi_ipmi_probe()
Dipmi_si_mem_io.c21 return (readw((io->addr)+(offset * io->regspacing)) >> io->regshift) in intf_mem_inw()
28 writeb(b << io->regshift, (io->addr)+(offset * io->regspacing)); in intf_mem_outw()
34 return (readl((io->addr)+(offset * io->regspacing)) >> io->regshift) in intf_mem_inl()
41 writel(b << io->regshift, (io->addr)+(offset * io->regspacing)); in intf_mem_outl()
47 return (readq((io->addr)+(offset * io->regspacing)) >> io->regshift) in mem_inq()
54 writeq((u64)b << io->regshift, (io->addr)+(offset * io->regspacing)); in mem_outq()
Dipmi_si_port_io.c25 return (inw(addr + (offset * io->regspacing)) >> io->regshift) & 0xff; in port_inw()
33 outw(b << io->regshift, addr + (offset * io->regspacing)); in port_outw()
40 return (inl(addr + (offset * io->regspacing)) >> io->regshift) & 0xff; in port_inl()
48 outl(b << io->regshift, addr+(offset * io->regspacing)); in port_outl()
Dipmi_si_pci.c31 io->regshift = 0; in ipmi_pci_probe_regspacing()
112 io.regshift = 0; in ipmi_pci_probe()
Dipmi_plat_data.c43 if (p->regshift) in ipmi_platform_add()
44 pr[pidx++] = PROPERTY_ENTRY_U8("reg-shift", p->regshift); in ipmi_platform_add()
Dipmi_plat_data.h18 unsigned int regshift; member
Dipmi_si_parisc.c22 io.regshift = 0; in ipmi_parisc_probe()
Dipmi_si.h51 unsigned int regshift; member
/drivers/tty/serial/8250/
D8250_dw.c94 void __iomem *offset = p->membase + (UART_LCR << p->regshift); in dw8250_check_lcr()
133 lsr = readb (p->membase + (UART_LSR << p->regshift)); in dw8250_tx_wait_empty()
156 writeb(value, p->membase + (offset << p->regshift)); in dw8250_serial_out38x()
167 writeb(value, p->membase + (offset << p->regshift)); in dw8250_serial_out()
175 unsigned int value = readb(p->membase + (offset << p->regshift)); in dw8250_serial_in()
185 value = (u8)__raw_readq(p->membase + (offset << p->regshift)); in dw8250_serial_inq()
195 __raw_writeq(value, p->membase + (offset << p->regshift)); in dw8250_serial_outq()
197 __raw_readq(p->membase + (UART_LCR << p->regshift)); in dw8250_serial_outq()
208 writel(value, p->membase + (offset << p->regshift)); in dw8250_serial_out32()
216 unsigned int value = readl(p->membase + (offset << p->regshift)); in dw8250_serial_in32()
[all …]
D8250_hp300.c119 port.regshift = 2; in hp300_setup_serial_console()
136 port.regshift = 1; in hp300_setup_serial_console()
178 uart.port.regshift = 1; in hpdca_init_one()
260 uart.port.regshift = 2; in hp300_8250_init()
D8250_early.c40 offset <<= port->regshift; in serial8250_early_in()
63 offset <<= port->regshift; in serial8250_early_out()
194 port->regshift = 2; in early_omap8250_setup()
D8250_core.c346 unsigned long start = UART_RSA_BASE << up->port.regshift; in serial8250_request_rsa_resource()
347 unsigned int size = 8 << up->port.regshift; in serial8250_request_rsa_resource()
367 unsigned long offset = UART_RSA_BASE << up->port.regshift; in serial8250_release_rsa_resource()
368 unsigned int size = 8 << up->port.regshift; in serial8250_release_rsa_resource()
541 port->regshift = old_serial_port[i].iomem_reg_shift; in serial8250_isa_init_ports()
724 p->regshift = port->regshift; in early_serial_setup()
817 uart.port.regshift = p->regshift; in serial8250_probe()
1001 uart->port.regshift = up->port.regshift; in serial8250_register_8250_port()
D8250_ingenic.c182 writeb(value, p->membase + (offset << p->regshift)); in ingenic_uart_serial_out()
189 value = readb(p->membase + (offset << p->regshift)); in ingenic_uart_serial_in()
240 uart.port.regshift = 2; in ingenic_uart_probe()
D8250_pxa.c125 uart.port.regshift = 2; in serial_pxa_probe()
183 port->regshift = 2; in early_serial_pxa_setup()
D8250_bcm2835aux.c96 up.port.regshift = 2; in bcm2835aux_serial_probe()
201 device->port.regshift = 2; in early_bcm2835aux_setup()
D8250_port.c370 return __raw_readl(p->membase + (offset << p->regshift)); in au_serial_in()
380 __raw_writel(value, p->membase + (offset << p->regshift)); in au_serial_out()
398 offset = offset << p->regshift; in hub6_serial_in()
405 offset = offset << p->regshift; in hub6_serial_out()
412 offset = offset << p->regshift; in mem_serial_in()
418 offset = offset << p->regshift; in mem_serial_out()
424 offset = offset << p->regshift; in mem16_serial_out()
430 offset = offset << p->regshift; in mem16_serial_in()
436 offset = offset << p->regshift; in mem32_serial_out()
442 offset = offset << p->regshift; in mem32_serial_in()
[all …]
D8250_lpc18xx.c97 offset = offset << p->regshift; in lpc18xx_uart_serial_out()
165 uart.port.regshift = 2; in lpc18xx_serial_probe()
D8250_uniphier.c48 device->port.regshift = UNIPHIER_UART_REGSHIFT; in uniphier_early_console_setup()
219 up.port.regshift = UNIPHIER_UART_REGSHIFT; in uniphier_uart_probe()
D8250_of.c123 port->regshift = 2; in of_platform_serial_setup()
127 port->regshift = prop; in of_platform_serial_setup()
/drivers/comedi/drivers/
Dcomedi_8254.c126 unsigned int reg_offset = (reg * i8254->iosize) << i8254->regshift; in __i8254_read()
156 unsigned int reg_offset = (reg * i8254->iosize) << i8254->regshift; in __i8254_write()
580 unsigned int regshift) in __i8254_init() argument
597 i8254->regshift = regshift; in __i8254_init()
620 unsigned int regshift) in comedi_8254_init() argument
622 return __i8254_init(iobase, NULL, osc_base, iosize, regshift); in comedi_8254_init()
637 unsigned int regshift) in comedi_8254_mm_init() argument
639 return __i8254_init(0, mmio, osc_base, iosize, regshift); in comedi_8254_mm_init()
Dcomedi_8254.h82 unsigned int regshift; member
128 unsigned int regshift);
132 unsigned int regshift);
Damplc_dio200_common.c545 unsigned int regshift; in dio200_subdev_8254_init() local
554 regshift = 3; in dio200_subdev_8254_init()
556 regshift = 0; in dio200_subdev_8254_init()
561 0, I8254_IO8, regshift); in dio200_subdev_8254_init()
564 0, I8254_IO8, regshift); in dio200_subdev_8254_init()
/drivers/tty/serial/
Dearlycon.c107 port->regshift = 1; in parse_options()
112 port->regshift = 2; in parse_options()
272 port->regshift = be32_to_cpu(*val); in of_setup_earlycon()
Daltera_uart.c86 return readl(port->membase + (reg << port->regshift)); in altera_uart_readl()
91 writel(dat, port->membase + (reg << port->regshift)); in altera_uart_writel()
598 port->regshift = platp->bus_shift; in altera_uart_probe()
600 port->regshift = 0; in altera_uart_probe()
/drivers/i2c/busses/
Di2c-imx.c173 unsigned int regshift; member
217 .regshift = IMX_I2C_REGSHIFT,
227 .regshift = IMX_I2C_REGSHIFT,
237 .regshift = VF610_I2C_REGSHIFT,
285 writeb(val, i2c_imx->base + (reg << i2c_imx->hwdata->regshift)); in imx_i2c_write_reg()
291 return readb(i2c_imx->base + (reg << i2c_imx->hwdata->regshift)); in imx_i2c_read_reg()
337 (IMX_I2C_I2DR << i2c_imx->hwdata->regshift); in i2c_imx_dma_request()
356 (IMX_I2C_I2DR << i2c_imx->hwdata->regshift); in i2c_imx_dma_request()
489 void __iomem *addr = i2c_imx->base + (IMX_I2C_I2SR << i2c_imx->hwdata->regshift); in i2c_imx_trx_complete()

123