Home
last modified time | relevance | path

Searched refs:mapbase (Results 1 – 25 of 194) sorted by relevance

12345678

/kernel/linux/linux-5.10/arch/arm/plat-orion/include/plat/
Dcommon.h19 resource_size_t mapbase,
24 resource_size_t mapbase,
29 resource_size_t mapbase,
34 resource_size_t mapbase,
38 void __init orion_rtc_init(unsigned long mapbase,
42 unsigned long mapbase,
48 unsigned long mapbase,
53 unsigned long mapbase,
57 unsigned long mapbase,
62 void __init orion_i2c_init(unsigned long mapbase,
[all …]
/kernel/linux/linux-5.10/arch/arm/plat-orion/
Dcommon.c55 resource_size_t mapbase, in fill_resources() argument
61 resources[0].start = mapbase; in fill_resources()
62 resources[0].end = mapbase + size; in fill_resources()
67 resource_size_t mapbase, in fill_resources_irq() argument
71 fill_resources(device, resources, mapbase, size); in fill_resources_irq()
93 resource_size_t mapbase, in uart_complete() argument
97 data->mapbase = mapbase; in uart_complete()
103 fill_resources_irq(orion_uart, resources, mapbase, 0xff, irq); in uart_complete()
127 resource_size_t mapbase, in orion_uart0_init() argument
132 membase, mapbase, irq, clk); in orion_uart0_init()
[all …]
/kernel/linux/linux-5.10/arch/arm/common/
Dlocomo.c247 dev->mapbase = lchip->base + info->offset; in locomo_init_one_child()
249 dev->mapbase = 0; in locomo_init_one_child()
624 static void locomo_m62332_sendbit(void *mapbase, int bit) in locomo_m62332_sendbit() argument
628 r = locomo_readl(mapbase + LOCOMO_DAC); in locomo_m62332_sendbit()
630 locomo_writel(r, mapbase + LOCOMO_DAC); in locomo_m62332_sendbit()
633 r = locomo_readl(mapbase + LOCOMO_DAC); in locomo_m62332_sendbit()
635 locomo_writel(r, mapbase + LOCOMO_DAC); in locomo_m62332_sendbit()
640 r = locomo_readl(mapbase + LOCOMO_DAC); in locomo_m62332_sendbit()
642 locomo_writel(r, mapbase + LOCOMO_DAC); in locomo_m62332_sendbit()
645 r = locomo_readl(mapbase + LOCOMO_DAC); in locomo_m62332_sendbit()
[all …]
Dsa1111.c217 void __iomem *mapbase = sachip->base + SA1111_INTC; in sa1111_irq_handler() local
219 stat0 = readl_relaxed(mapbase + SA1111_INTSTATCLR0); in sa1111_irq_handler()
220 stat1 = readl_relaxed(mapbase + SA1111_INTSTATCLR1); in sa1111_irq_handler()
222 writel_relaxed(stat0, mapbase + SA1111_INTSTATCLR0); in sa1111_irq_handler()
226 writel_relaxed(stat1, mapbase + SA1111_INTSTATCLR1); in sa1111_irq_handler()
264 void __iomem *mapbase = sachip->base + SA1111_INTC + sa1111_irqbank(d); in sa1111_mask_irq() local
267 ie = readl_relaxed(mapbase + SA1111_INTEN0); in sa1111_mask_irq()
269 writel(ie, mapbase + SA1111_INTEN0); in sa1111_mask_irq()
275 void __iomem *mapbase = sachip->base + SA1111_INTC + sa1111_irqbank(d); in sa1111_unmask_irq() local
278 ie = readl_relaxed(mapbase + SA1111_INTEN0); in sa1111_unmask_irq()
[all …]
/kernel/linux/linux-5.10/drivers/clocksource/
Dh8300_timer8.c40 void __iomem *mapbase; member
50 iowrite16be(0x0000, p->mapbase + _8TCR); in timer8_interrupt()
54 bclr(CMFA, p->mapbase + _8TCSR); in timer8_interrupt()
63 bclr(CMIEA, p->mapbase + _8TCR); in timer8_set_next()
64 iowrite16be(delta, p->mapbase + TCORA); in timer8_set_next()
65 iowrite16be(0x0000, p->mapbase + _8TCNT); in timer8_set_next()
66 bclr(CMFA, p->mapbase + _8TCSR); in timer8_set_next()
67 bset(CMIEA, p->mapbase + _8TCR); in timer8_set_next()
72 iowrite16be(0xffff, p->mapbase + TCORA); in timer8_enable()
73 iowrite16be(0x0000, p->mapbase + _8TCNT); in timer8_enable()
[all …]
Dh8300_timer16.c29 void __iomem *mapbase; member
47 v1 = ioread16be(p->mapbase + TCNT); in timer16_get_counter()
48 v2 = ioread16be(p->mapbase + TCNT); in timer16_get_counter()
49 v3 = ioread16be(p->mapbase + TCNT); in timer16_get_counter()
94 iowrite16be(0x0000, p->mapbase + TCNT); in timer16_enable()
95 iowrite8(0x83, p->mapbase + TCR); in timer16_enable()
165 timer16_priv.mapbase = base[REG_CH]; in h8300_16timer_init()
Dsh_tmu.c55 void __iomem *mapbase; member
91 return ioread8(ch->tmu->mapbase + 2); in sh_tmu_read()
93 return ioread8(ch->tmu->mapbase + 4); in sh_tmu_read()
113 return iowrite8(value, ch->tmu->mapbase + 2); in sh_tmu_write()
115 return iowrite8(value, ch->tmu->mapbase + 4); in sh_tmu_write()
464 ch->base = tmu->mapbase + 4 + ch->index * 12; in sh_tmu_channel_setup()
466 ch->base = tmu->mapbase + 8 + ch->index * 12; in sh_tmu_channel_setup()
489 tmu->mapbase = ioremap(res->start, resource_size(res)); in sh_tmu_map_memory()
490 if (tmu->mapbase == NULL) in sh_tmu_map_memory()
589 iounmap(tmu->mapbase); in sh_tmu_setup()
/kernel/linux/linux-5.10/arch/arm/mach-lpc32xx/
Dserial.c28 resource_size_t mapbase; member
37 .mapbase = LPC32XX_UART5_BASE,
44 .mapbase = LPC32XX_UART3_BASE,
51 .mapbase = LPC32XX_UART4_BASE,
58 .mapbase = LPC32XX_UART6_BASE,
63 void lpc32xx_loopback_set(resource_size_t mapbase, int state) in lpc32xx_loopback_set() argument
68 switch (mapbase) { in lpc32xx_loopback_set()
79 WARN(1, "lpc32xx_hs: Warning: Unknown port at %08x\n", mapbase); in lpc32xx_loopback_set()
115 puart = uartinit_data[i].mapbase; in lpc32xx_serial_init()
129 puart = uartinit_data[i].mapbase; in lpc32xx_serial_init()
/kernel/linux/linux-5.10/include/linux/soc/nxp/
Dlpc32xx-misc.h15 extern u32 lpc32xx_return_iram(void __iomem **mapbase, dma_addr_t *dmaaddr);
17 extern void lpc32xx_loopback_set(resource_size_t mapbase, int state);
19 static inline u32 lpc32xx_return_iram(void __iomem **mapbase, dma_addr_t *dmaaddr) in lpc32xx_return_iram() argument
21 *mapbase = NULL; in lpc32xx_return_iram()
28 static inline void lpc32xx_loopback_set(resource_size_t mapbase, int state) in lpc32xx_loopback_set() argument
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/sh3/
Dserial-sh7720.c14 if (port->mapbase == 0xa4430000) { /* SCIF0 */ in sh7720_sci_init_pins()
18 } else if (port->mapbase == 0xa4438000) { /* SCIF1 */ in sh7720_sci_init_pins()
24 if (port->mapbase == 0xa4430000) { /* SCIF0 */ in sh7720_sci_init_pins()
28 } else if (port->mapbase == 0xa4438000) { /* SCIF1 */ in sh7720_sci_init_pins()
/kernel/linux/linux-5.10/drivers/mcb/
Dmcb-pci.c17 phys_addr_t mapbase; member
48 priv->mapbase = pci_resource_start(pdev, 0); in mcb_pci_probe()
49 if (!priv->mapbase) { in mcb_pci_probe()
55 res = devm_request_mem_region(&pdev->dev, priv->mapbase, in mcb_pci_probe()
64 priv->base = devm_ioremap(&pdev->dev, priv->mapbase, CHAM_HEADER_SIZE); in mcb_pci_probe()
89 ret = chameleon_parse_cells(priv->bus, priv->mapbase, priv->base); in mcb_pci_probe()
/kernel/linux/linux-5.10/drivers/tty/serial/
Dearlycon.c86 &port->mapbase, device->options); in earlycon_print_info()
104 port->mapbase = addr; in parse_options()
108 port->mapbase = addr; in parse_options()
113 port->mapbase = addr; in parse_options()
143 if (port->mapbase) in register_earlycon()
144 port->membase = earlycon_map(port->mapbase, 64); in register_earlycon()
265 port->mapbase = addr; in of_setup_earlycon()
269 port->mapbase += be32_to_cpu(*val); in of_setup_earlycon()
270 port->membase = earlycon_map(port->mapbase, SZ_4K); in of_setup_earlycon()
Duartlite.c342 release_mem_region(port->mapbase, ULITE_REGION); in ulite_release_port()
353 port, (unsigned long long) port->mapbase); in ulite_request_port()
355 if (!request_mem_region(port->mapbase, ULITE_REGION, "uartlite")) { in ulite_request_port()
360 port->membase = ioremap(port->mapbase, ULITE_REGION); in ulite_request_port()
363 release_mem_region(port->mapbase, ULITE_REGION); in ulite_request_port()
518 if (!port || !port->mapbase) { in ulite_console_setup()
627 if (ulite_ports[id].mapbase == 0) in ulite_assign()
635 if ((ulite_ports[id].mapbase) && (ulite_ports[id].mapbase != base)) { in ulite_assign()
648 port->mapbase = base; in ulite_assign()
664 port->mapbase = 0; in ulite_assign()
[all …]
Dlpc32xx_hs.c174 lpc32xx_loopback_set(port->mapbase, 0); /* get out of loopback mode */ in lpc32xx_hsuart_console_setup()
466 lpc32xx_loopback_set(port->mapbase, 0); /* get out of loopback mode */ in serial_lpc32xx_startup()
491 lpc32xx_loopback_set(port->mapbase, 1); /* go to loopback mode */ in serial_lpc32xx_shutdown()
546 if ((port->iotype == UPIO_MEM32) && (port->mapbase)) { in serial_lpc32xx_release_port()
552 release_mem_region(port->mapbase, SZ_4K); in serial_lpc32xx_release_port()
560 if ((port->iotype == UPIO_MEM32) && (port->mapbase)) { in serial_lpc32xx_request_port()
563 if (!request_mem_region(port->mapbase, SZ_4K, MODNAME)) in serial_lpc32xx_request_port()
566 port->membase = ioremap(port->mapbase, SZ_4K); in serial_lpc32xx_request_port()
568 release_mem_region(port->mapbase, SZ_4K); in serial_lpc32xx_request_port()
656 p->port.mapbase = res->start; in serial_hs_lpc32xx_probe()
[all …]
/kernel/linux/linux-5.10/drivers/ide/
Dtx4939ide.c542 unsigned long mapbase; in tx4939ide_probe() local
554 mapbase = (unsigned long)devm_ioremap(&pdev->dev, res->start, in tx4939ide_probe()
556 if (!mapbase) in tx4939ide_probe()
560 mapbase + tx4939ide_swizzlew(TX4939IDE_Data); in tx4939ide_probe()
562 mapbase + tx4939ide_swizzleb(TX4939IDE_Error_Feature); in tx4939ide_probe()
564 mapbase + tx4939ide_swizzleb(TX4939IDE_Sec); in tx4939ide_probe()
566 mapbase + tx4939ide_swizzleb(TX4939IDE_LBA0); in tx4939ide_probe()
568 mapbase + tx4939ide_swizzleb(TX4939IDE_LBA1); in tx4939ide_probe()
570 mapbase + tx4939ide_swizzleb(TX4939IDE_LBA2); in tx4939ide_probe()
572 mapbase + tx4939ide_swizzleb(TX4939IDE_DevHead); in tx4939ide_probe()
[all …]
Dtx4938ide.c137 unsigned long mapbase, mapctl; in tx4938ide_probe() local
150 mapbase = (unsigned long)devm_ioremap(&pdev->dev, res->start, in tx4938ide_probe()
156 if (!mapbase || !mapctl) in tx4938ide_probe()
161 unsigned long port = mapbase; in tx4938ide_probe()
174 ide_std_init_ports(&hw, mapbase, mapctl); in tx4938ide_probe()
179 mapbase, mapctl, hw.irq); in tx4938ide_probe()
/kernel/linux/linux-5.10/arch/m68k/coldfire/
Ddevice.c32 .mapbase = MCFUART_BASE0,
36 .mapbase = MCFUART_BASE1,
41 .mapbase = MCFUART_BASE2,
47 .mapbase = MCFUART_BASE3,
53 .mapbase = MCFUART_BASE4,
59 .mapbase = MCFUART_BASE5,
65 .mapbase = MCFUART_BASE6,
71 .mapbase = MCFUART_BASE7,
77 .mapbase = MCFUART_BASE8,
83 .mapbase = MCFUART_BASE9,
/kernel/linux/linux-5.10/drivers/tty/serial/8250/
D8250_hp300.c117 port.mapbase = (FRODO_BASE + FRODO_APCI_OFFSET(1)); in hp300_setup_serial_console()
118 port.membase = (char *)(port.mapbase + DIO_VIRADDRBASE); in hp300_setup_serial_console()
134 port.mapbase = (pa + UART_OFFSET); in hp300_setup_serial_console()
135 port.membase = (char *)(port.mapbase + DIO_VIRADDRBASE); in hp300_setup_serial_console()
176 uart.port.mapbase = (d->resource.start + UART_OFFSET); in hpdca_init_one()
177 uart.port.membase = (char *)(uart.port.mapbase + DIO_VIRADDRBASE); in hpdca_init_one()
258 uart.port.mapbase = base; in hp300_8250_init()
/kernel/linux/linux-5.10/arch/arm/mach-pxa/
Dcapc7117.c80 .mapbase = 0x14000000,
89 .mapbase = 0x14000040,
98 .mapbase = 0x14000080,
107 .mapbase = 0x140000c0,
/kernel/linux/linux-5.10/arch/x86/platform/ce4100/
Dce4100.c93 up->mapbase = 0xdffe0200; in ce4100_serial_fixup()
95 up->mapbase & PAGE_MASK); in ce4100_serial_fixup()
98 up->membase += up->mapbase & ~PAGE_MASK; in ce4100_serial_fixup()
99 up->mapbase += port * 0x100; in ce4100_serial_fixup()
/kernel/linux/linux-5.10/arch/arm/mach-omap1/
Dserial.c66 .mapbase = OMAP1_UART1_BASE,
74 .mapbase = OMAP1_UART2_BASE,
82 .mapbase = OMAP1_UART3_BASE,
127 serial_platform_data[i].mapbase = 0; in omap_serial_init()
133 ioremap(serial_platform_data[i].mapbase, SZ_2K); in omap_serial_init()
/kernel/linux/linux-5.10/drivers/video/backlight/
Dlocomolcd.c52 locomo_writel(0x01, locomolcd_dev->mapbase + LOCOMO_TC); in locomolcd_on()
55 locomo_writel(6, locomolcd_dev->mapbase + LOCOMO_CPSD); in locomolcd_on()
58 locomo_writel((0x04 | 0x01), locomolcd_dev->mapbase + LOCOMO_TC); in locomolcd_on()
68 locomo_writel(0x06, locomolcd_dev->mapbase + LOCOMO_TC); in locomolcd_off()
78 locomo_writel(0, locomolcd_dev->mapbase + LOCOMO_TC); in locomolcd_off()
/kernel/linux/linux-5.10/arch/arm/mach-ixp4xx/
Dvulcan-setup.c83 .mapbase = IXP4XX_UART1_BASE_PHYS,
92 .mapbase = IXP4XX_UART2_BASE_PHYS,
246 vulcan_uart_data[2].mapbase = vulcan_uart_resources[2].start; in vulcan_init()
247 vulcan_uart_data[3].mapbase = vulcan_uart_data[2].mapbase + 8; in vulcan_init()
/kernel/linux/linux-5.10/drivers/usb/host/
Dohci-sa1111.c139 dev->mapbase + USB_RESET); in sa1111_start_hc()
148 writel_relaxed(usb_rst, dev->mapbase + USB_RESET); in sa1111_start_hc()
163 usb_rst = readl_relaxed(dev->mapbase + USB_RESET); in sa1111_stop_hc()
165 dev->mapbase + USB_RESET); in sa1111_stop_hc()
212 hcd->regs = dev->mapbase; in ohci_hcd_sa1111_probe()
/kernel/linux/linux-5.10/arch/mips/ath25/
Ddevices.c74 void __init ath25_serial_setup(u32 mapbase, int irq, unsigned int uartclk) in ath25_serial_setup() argument
85 s.mapbase = mapbase; in ath25_serial_setup()

12345678