Home
last modified time | relevance | path

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

12345678

/Linux-v4.19/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 …]
/Linux-v4.19/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 …]
/Linux-v4.19/arch/arm/common/
Dlocomo.c250 dev->mapbase = lchip->base + info->offset; in locomo_init_one_child()
252 dev->mapbase = 0; in locomo_init_one_child()
627 static void locomo_m62332_sendbit(void *mapbase, int bit) in locomo_m62332_sendbit() argument
631 r = locomo_readl(mapbase + LOCOMO_DAC); in locomo_m62332_sendbit()
633 locomo_writel(r, mapbase + LOCOMO_DAC); in locomo_m62332_sendbit()
636 r = locomo_readl(mapbase + LOCOMO_DAC); in locomo_m62332_sendbit()
638 locomo_writel(r, mapbase + LOCOMO_DAC); in locomo_m62332_sendbit()
643 r = locomo_readl(mapbase + LOCOMO_DAC); in locomo_m62332_sendbit()
645 locomo_writel(r, mapbase + LOCOMO_DAC); in locomo_m62332_sendbit()
648 r = locomo_readl(mapbase + LOCOMO_DAC); in locomo_m62332_sendbit()
[all …]
Dsa1111.c220 void __iomem *mapbase = sachip->base + SA1111_INTC; in sa1111_irq_handler() local
222 stat0 = readl_relaxed(mapbase + SA1111_INTSTATCLR0); in sa1111_irq_handler()
223 stat1 = readl_relaxed(mapbase + SA1111_INTSTATCLR1); in sa1111_irq_handler()
225 writel_relaxed(stat0, mapbase + SA1111_INTSTATCLR0); in sa1111_irq_handler()
229 writel_relaxed(stat1, mapbase + SA1111_INTSTATCLR1); in sa1111_irq_handler()
267 void __iomem *mapbase = sachip->base + SA1111_INTC + sa1111_irqbank(d); in sa1111_mask_irq() local
270 ie = readl_relaxed(mapbase + SA1111_INTEN0); in sa1111_mask_irq()
272 writel(ie, mapbase + SA1111_INTEN0); in sa1111_mask_irq()
278 void __iomem *mapbase = sachip->base + SA1111_INTC + sa1111_irqbank(d); in sa1111_unmask_irq() local
281 ie = readl_relaxed(mapbase + SA1111_INTEN0); in sa1111_unmask_irq()
[all …]
/Linux-v4.19/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.c59 void __iomem *mapbase; member
95 return ioread8(ch->tmu->mapbase + 2); in sh_tmu_read()
97 return ioread8(ch->tmu->mapbase + 4); in sh_tmu_read()
117 return iowrite8(value, ch->tmu->mapbase + 2); in sh_tmu_write()
119 return iowrite8(value, ch->tmu->mapbase + 4); in sh_tmu_write()
468 ch->base = tmu->mapbase + 4 + ch->index * 12; in sh_tmu_channel_setup()
470 ch->base = tmu->mapbase + 8 + ch->index * 12; in sh_tmu_channel_setup()
496 tmu->mapbase = ioremap_nocache(res->start, resource_size(res)); in sh_tmu_map_memory()
497 if (tmu->mapbase == NULL) in sh_tmu_map_memory()
596 iounmap(tmu->mapbase); in sh_tmu_setup()
/Linux-v4.19/arch/arm/mach-lpc32xx/
Dserial.c38 resource_size_t mapbase; member
47 .mapbase = LPC32XX_UART5_BASE,
54 .mapbase = LPC32XX_UART3_BASE,
61 .mapbase = LPC32XX_UART4_BASE,
68 .mapbase = LPC32XX_UART6_BASE,
95 puart = uartinit_data[i].mapbase; in lpc32xx_serial_init()
109 puart = uartinit_data[i].mapbase; in lpc32xx_serial_init()
/Linux-v4.19/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()
/Linux-v4.19/drivers/mcb/
Dmcb-pci.c20 phys_addr_t mapbase; member
51 priv->mapbase = pci_resource_start(pdev, 0); in mcb_pci_probe()
52 if (!priv->mapbase) { in mcb_pci_probe()
58 res = devm_request_mem_region(&pdev->dev, priv->mapbase, in mcb_pci_probe()
67 priv->base = devm_ioremap(&pdev->dev, priv->mapbase, CHAM_HEADER_SIZE); in mcb_pci_probe()
92 ret = chameleon_parse_cells(priv->bus, priv->mapbase, priv->base); in mcb_pci_probe()
/Linux-v4.19/drivers/tty/serial/
Dearlycon.c81 &port->mapbase, device->options); in earlycon_init()
99 port->mapbase = addr; in parse_options()
103 port->mapbase = addr; in parse_options()
108 port->mapbase = addr; in parse_options()
138 if (port->mapbase) in register_earlycon()
139 port->membase = earlycon_map(port->mapbase, 64); in register_earlycon()
248 port->mapbase = addr; in of_setup_earlycon()
252 port->mapbase += be32_to_cpu(*val); in of_setup_earlycon()
253 port->membase = earlycon_map(port->mapbase, SZ_4K); in of_setup_earlycon()
Dlpc32xx_hs.c439 static void lpc32xx_loopback_set(resource_size_t mapbase, int state) in lpc32xx_loopback_set() argument
444 switch (mapbase) { in lpc32xx_loopback_set()
455 WARN(1, "lpc32xx_hs: Warning: Unknown port at %08x\n", mapbase); in lpc32xx_loopback_set()
492 lpc32xx_loopback_set(port->mapbase, 0); /* get out of loopback mode */ in serial_lpc32xx_startup()
517 lpc32xx_loopback_set(port->mapbase, 1); /* go to loopback mode */ in serial_lpc32xx_shutdown()
572 if ((port->iotype == UPIO_MEM32) && (port->mapbase)) { in serial_lpc32xx_release_port()
578 release_mem_region(port->mapbase, SZ_4K); in serial_lpc32xx_release_port()
586 if ((port->iotype == UPIO_MEM32) && (port->mapbase)) { in serial_lpc32xx_request_port()
589 if (!request_mem_region(port->mapbase, SZ_4K, MODNAME)) in serial_lpc32xx_request_port()
592 port->membase = ioremap(port->mapbase, SZ_4K); in serial_lpc32xx_request_port()
[all …]
Duartlite.c337 release_mem_region(port->mapbase, ULITE_REGION); in ulite_release_port()
348 port, (unsigned long long) port->mapbase); in ulite_request_port()
350 if (!request_mem_region(port->mapbase, ULITE_REGION, "uartlite")) { in ulite_request_port()
355 port->membase = ioremap(port->mapbase, ULITE_REGION); in ulite_request_port()
358 release_mem_region(port->mapbase, ULITE_REGION); in ulite_request_port()
515 if (!port->mapbase) { in ulite_console_setup()
630 if (ulite_ports[id].mapbase == 0) in ulite_assign()
638 if ((ulite_ports[id].mapbase) && (ulite_ports[id].mapbase != base)) { in ulite_assign()
651 port->mapbase = base; in ulite_assign()
667 port->mapbase = 0; in ulite_assign()
[all …]
/Linux-v4.19/arch/m68k/coldfire/
Ddevice.c28 .mapbase = MCFUART_BASE0,
32 .mapbase = MCFUART_BASE1,
37 .mapbase = MCFUART_BASE2,
43 .mapbase = MCFUART_BASE3,
49 .mapbase = MCFUART_BASE4,
55 .mapbase = MCFUART_BASE5,
61 .mapbase = MCFUART_BASE6,
67 .mapbase = MCFUART_BASE7,
73 .mapbase = MCFUART_BASE8,
79 .mapbase = MCFUART_BASE9,
/Linux-v4.19/drivers/ide/
Dtx4939ide.c544 unsigned long mapbase; in tx4939ide_probe() local
556 mapbase = (unsigned long)devm_ioremap(&pdev->dev, res->start, in tx4939ide_probe()
558 if (!mapbase) in tx4939ide_probe()
562 mapbase + tx4939ide_swizzlew(TX4939IDE_Data); in tx4939ide_probe()
564 mapbase + tx4939ide_swizzleb(TX4939IDE_Error_Feature); in tx4939ide_probe()
566 mapbase + tx4939ide_swizzleb(TX4939IDE_Sec); in tx4939ide_probe()
568 mapbase + tx4939ide_swizzleb(TX4939IDE_LBA0); in tx4939ide_probe()
570 mapbase + tx4939ide_swizzleb(TX4939IDE_LBA1); in tx4939ide_probe()
572 mapbase + tx4939ide_swizzleb(TX4939IDE_LBA2); in tx4939ide_probe()
574 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()
/Linux-v4.19/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()
/Linux-v4.19/arch/arm/mach-pxa/
Dcapc7117.c83 .mapbase = 0x14000000,
92 .mapbase = 0x14000040,
101 .mapbase = 0x14000080,
110 .mapbase = 0x140000c0,
/Linux-v4.19/arch/x86/platform/ce4100/
Dce4100.c97 up->mapbase = 0xdffe0200; in ce4100_serial_fixup()
99 up->mapbase & PAGE_MASK); in ce4100_serial_fixup()
102 up->membase += up->mapbase & ~PAGE_MASK; in ce4100_serial_fixup()
103 up->mapbase += port * 0x100; in ce4100_serial_fixup()
/Linux-v4.19/arch/mips/pmcs-msp71xx/
Dmsp_serial.c107 up.mapbase = MSP_UART0_BASE; in msp_serial_setup()
108 up.membase = ioremap_nocache(up.mapbase, MSP_UART_REG_LEN); in msp_serial_setup()
145 up.mapbase = MSP_UART1_BASE; in msp_serial_setup()
146 up.membase = ioremap_nocache(up.mapbase, MSP_UART_REG_LEN); in msp_serial_setup()
/Linux-v4.19/arch/arm/mach-omap1/
Dserial.c69 .mapbase = OMAP1_UART1_BASE,
77 .mapbase = OMAP1_UART2_BASE,
85 .mapbase = OMAP1_UART3_BASE,
130 serial_platform_data[i].mapbase = 0; in omap_serial_init()
136 ioremap(serial_platform_data[i].mapbase, SZ_2K); in omap_serial_init()
/Linux-v4.19/arch/arm/mach-ixp4xx/
Dvulcan-setup.c81 .mapbase = IXP4XX_UART1_BASE_PHYS,
90 .mapbase = IXP4XX_UART2_BASE_PHYS,
224 vulcan_uart_data[2].mapbase = vulcan_uart_resources[2].start; in vulcan_init()
225 vulcan_uart_data[3].mapbase = vulcan_uart_data[2].mapbase + 8; in vulcan_init()
/Linux-v4.19/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()
/Linux-v4.19/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()
/Linux-v4.19/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