Home
last modified time | relevance | path

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

1234

/linux-6.1.9/arch/arm/mach-omap1/
Dserial.c34 offset <<= up->regshift; in omap_serial_in()
41 offset <<= p->regshift; in omap_serial_outp()
70 .regshift = 2,
78 .regshift = 2,
86 .regshift = 2,
110 serial_platform_data[0].regshift = 0; in omap_serial_init()
111 serial_platform_data[1].regshift = 0; in omap_serial_init()
/linux-6.1.9/drivers/char/ipmi/
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_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_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()
/linux-6.1.9/arch/arm/mach-pxa/
Dcapc7117.c85 .regshift = 1,
94 .regshift = 1,
103 .regshift = 1,
112 .regshift = 1,
Dzeus.c243 .regshift = 1,
252 .regshift = 1,
261 .regshift = 1,
270 .regshift = 1,
280 .regshift = 2,
289 .regshift = 2,
298 .regshift = 2,
Dviper.c536 .regshift = 2,
545 .regshift = 2,
554 .regshift = 2,
564 .regshift = 1,
574 .regshift = 1,
/linux-6.1.9/arch/x86/platform/ce4100/
Dce4100.c38 offset = offset << p->regshift; in mem_serial_in()
57 offset = offset << p->regshift; in ce4100_mem_serial_in()
78 offset = offset << p->regshift; in ce4100_mem_serial_out()
102 up->regshift = 2; in ce4100_serial_fixup()
/linux-6.1.9/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()
/linux-6.1.9/drivers/tty/serial/8250/
D8250_dw.c106 void __iomem *offset = p->membase + (UART_LCR << p->regshift); in dw8250_check_lcr()
145 lsr = readb (p->membase + (UART_LSR << p->regshift)); in dw8250_tx_wait_empty()
164 writeb(value, p->membase + (offset << p->regshift)); in dw8250_serial_out()
181 unsigned int value = readb(p->membase + (offset << p->regshift)); in dw8250_serial_in()
191 value = (u8)__raw_readq(p->membase + (offset << p->regshift)); in dw8250_serial_inq()
201 __raw_writeq(value, p->membase + (offset << p->regshift)); in dw8250_serial_outq()
203 __raw_readq(p->membase + (UART_LCR << p->regshift)); in dw8250_serial_outq()
214 writel(value, p->membase + (offset << p->regshift)); in dw8250_serial_out32()
222 unsigned int value = readl(p->membase + (offset << p->regshift)); in dw8250_serial_in32()
231 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.c40 offset <<= port->regshift; in serial8250_early_in()
63 offset <<= port->regshift; in serial8250_early_out()
192 port->regshift = 2; in early_omap8250_setup()
D8250_core.c349 unsigned long start = UART_RSA_BASE << up->port.regshift; in serial8250_request_rsa_resource()
350 unsigned int size = 8 << up->port.regshift; in serial8250_request_rsa_resource()
370 unsigned long offset = UART_RSA_BASE << up->port.regshift; in serial8250_release_rsa_resource()
371 unsigned int size = 8 << up->port.regshift; in serial8250_release_rsa_resource()
544 port->regshift = old_serial_port[i].iomem_reg_shift; in serial8250_isa_init_ports()
727 p->regshift = port->regshift; in early_serial_setup()
820 uart.port.regshift = p->regshift; in serial8250_probe()
1004 uart->port.regshift = up->port.regshift; in serial8250_register_8250_port()
D8250_pxa.c124 uart.port.regshift = 2; in serial_pxa_probe()
182 port->regshift = 2; in early_serial_pxa_setup()
/linux-6.1.9/include/linux/comedi/
Dcomedi_8254.h82 unsigned int regshift; member
128 unsigned int regshift);
132 unsigned int regshift);
/linux-6.1.9/arch/mips/mti-malta/
Dmalta-platform.c38 .regshift = 0, \
54 .regshift = 3,
/linux-6.1.9/arch/arm/mach-s3c/
Dmach-vr1000.c137 .regshift = 0,
145 .regshift = 0,
153 .regshift = 0,
161 .regshift = 0,
/linux-6.1.9/arch/arm/mach-footbridge/
Disa.c53 .regshift = 0,
61 .regshift = 0,
/linux-6.1.9/arch/mips/loongson2ef/common/
Dserial.c28 .regshift = 0, \
38 .regshift = 0, \
/linux-6.1.9/arch/mips/bcm47xx/
Dserial.c45 p->regshift = ssb_port->reg_shift; in uart8250_init_ssb()
71 p->regshift = bcma_port->reg_shift; in uart8250_init_bcma()
/linux-6.1.9/arch/sh/boards/mach-se/7343/
Dsetup.c76 .regshift = 1,
83 .regshift = 1,
/linux-6.1.9/arch/powerpc/kernel/
Dlegacy_serial.c60 offset = offset << p->regshift; in tsi_serial_in()
70 offset = offset << p->regshift; in tsi_serial_out()
141 legacy_serial_ports[index].regshift = shift; in add_legacy_port()
332 stride = 1 << port->regshift; in setup_legacy_serial_console()
376 udbg_uart_init_mmio(vaddr, 1 << port->regshift); in ioremap_legacy_serial_console()
/linux-6.1.9/drivers/tty/serial/
Dearlycon.c107 port->regshift = 1; in parse_options()
112 port->regshift = 2; in parse_options()
275 port->regshift = be32_to_cpu(*val); in of_setup_earlycon()

1234