Home
last modified time | relevance | path

Searched refs:regshift (Results 1 – 25 of 57) 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_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_si_pci.c31 io->regshift = 0; in ipmi_pci_probe_regspacing()
112 io.regshift = 0; in ipmi_pci_probe()
Dipmi_plat_data.h18 unsigned int regshift; member
/drivers/tty/serial/8250/
D8250_pcilib.c16 u8 bar, unsigned int offset, int regshift) in serial8250_pci_setup_port() argument
29 port->port.regshift = regshift; in serial8250_pci_setup_port()
35 port->port.regshift = 0; in serial8250_pci_setup_port()
D8250_dw.c133 void __iomem *offset = p->membase + (UART_LCR << p->regshift); in dw8250_check_lcr()
172 lsr = readb (p->membase + (UART_LSR << p->regshift)); in dw8250_tx_wait_empty()
191 writeb(value, p->membase + (offset << p->regshift)); in dw8250_serial_out()
208 unsigned int value = readb(p->membase + (offset << p->regshift)); in dw8250_serial_in()
218 value = (u8)__raw_readq(p->membase + (offset << p->regshift)); in dw8250_serial_inq()
228 __raw_writeq(value, p->membase + (offset << p->regshift)); in dw8250_serial_outq()
230 __raw_readq(p->membase + (UART_LCR << p->regshift)); in dw8250_serial_outq()
241 writel(value, p->membase + (offset << p->regshift)); in dw8250_serial_out32()
249 unsigned int value = readl(p->membase + (offset << p->regshift)); in dw8250_serial_in32()
258 iowrite32be(value, p->membase + (offset << p->regshift)); in dw8250_serial_out32be()
[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.c38 offset <<= port->regshift; in serial8250_early_in()
58 offset <<= port->regshift; in serial8250_early_out()
184 port->regshift = 2; in early_omap8250_setup()
D8250_core.c350 unsigned long start = UART_RSA_BASE << up->port.regshift; in serial8250_request_rsa_resource()
351 unsigned int size = 8 << up->port.regshift; in serial8250_request_rsa_resource()
371 unsigned long offset = UART_RSA_BASE << up->port.regshift; in serial8250_release_rsa_resource()
372 unsigned int size = 8 << up->port.regshift; in serial8250_release_rsa_resource()
561 port->regshift = old_serial_port[i].iomem_reg_shift; in serial8250_isa_init_ports()
757 p->regshift = port->regshift; in early_serial_setup()
850 uart.port.regshift = p->regshift; in serial8250_probe()
1051 uart->port.regshift = up->port.regshift; in serial8250_register_8250_port()
D8250_rt288x.c42 return __raw_readl(p->membase + (offset << p->regshift)); in au_serial_in()
51 __raw_writel(value, p->membase + (offset << p->regshift)); in au_serial_out()
D8250_pxa.c124 uart.port.regshift = 2; in serial_pxa_probe()
183 port->regshift = 2; in early_serial_pxa_setup()
D8250_ingenic.c206 writeb(value, p->membase + (offset << p->regshift)); in ingenic_uart_serial_out()
213 value = readb(p->membase + (offset << p->regshift)); in ingenic_uart_serial_in()
264 uart.port.regshift = 2; in ingenic_uart_probe()
D8250_bcm2835aux.c104 up.port.regshift = 2; in bcm2835aux_serial_probe()
246 device->port.regshift = 2; in early_bcm2835aux_setup()
D8250_pcilib.h15 unsigned int offset, int regshift);
D8250_lpc18xx.c80 offset = offset << p->regshift; in lpc18xx_uart_serial_out()
154 uart.port.regshift = 2; in lpc18xx_serial_probe()
D8250_port.c354 offset = offset << p->regshift; in hub6_serial_in()
361 offset = offset << p->regshift; in hub6_serial_out()
368 offset = offset << p->regshift; in mem_serial_in()
374 offset = offset << p->regshift; in mem_serial_out()
380 offset = offset << p->regshift; in mem16_serial_out()
386 offset = offset << p->regshift; in mem16_serial_in()
392 offset = offset << p->regshift; in mem32_serial_out()
398 offset = offset << p->regshift; in mem32_serial_in()
404 offset = offset << p->regshift; in mem32be_serial_out()
410 offset = offset << p->regshift; in mem32be_serial_in()
[all …]
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()
/drivers/comedi/drivers/
Dcomedi_8254.c124 unsigned int reg_offset = (reg * i8254->iosize) << i8254->regshift; in __i8254_read()
154 unsigned int reg_offset = (reg * i8254->iosize) << i8254->regshift; in __i8254_write()
578 unsigned int regshift) in __i8254_init() argument
595 i8254->regshift = regshift; in __i8254_init()
618 unsigned int regshift) in comedi_8254_init() argument
620 return __i8254_init(iobase, NULL, osc_base, iosize, regshift); in comedi_8254_init()
635 unsigned int regshift) in comedi_8254_mm_init() argument
637 return __i8254_init(0, mmio, osc_base, iosize, regshift); in comedi_8254_mm_init()
Damplc_dio200_common.c544 unsigned int regshift; in dio200_subdev_8254_init() local
553 regshift = 3; in dio200_subdev_8254_init()
555 regshift = 0; in dio200_subdev_8254_init()
560 0, I8254_IO8, regshift); in dio200_subdev_8254_init()
563 0, I8254_IO8, regshift); in dio200_subdev_8254_init()
/drivers/tty/serial/
Dserial_port.c211 port->regshift = use_defaults ? 0 : port->regshift; in __uart_read_properties()
213 port->regshift = value; in __uart_read_properties()
Dearlycon.c107 port->regshift = 1; in parse_options()
112 port->regshift = 2; in parse_options()
282 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()
580 port->regshift = platp->bus_shift; in altera_uart_probe()
582 port->regshift = 0; in altera_uart_probe()
/drivers/i2c/busses/
Di2c-imx.c176 unsigned int regshift; member
230 .regshift = IMX_I2C_REGSHIFT,
240 .regshift = IMX_I2C_REGSHIFT,
250 .regshift = IMX_I2C_REGSHIFT,
260 .regshift = VF610_I2C_REGSHIFT,
318 writeb(val, i2c_imx->base + (reg << i2c_imx->hwdata->regshift)); in imx_i2c_write_reg()
324 return readb(i2c_imx->base + (reg << i2c_imx->hwdata->regshift)); in imx_i2c_read_reg()
370 (IMX_I2C_I2DR << i2c_imx->hwdata->regshift); in i2c_imx_dma_request()
389 (IMX_I2C_I2DR << i2c_imx->hwdata->regshift); in i2c_imx_dma_request()
522 void __iomem *addr = i2c_imx->base + (IMX_I2C_I2SR << i2c_imx->hwdata->regshift); in i2c_imx_trx_complete()

123