Home
last modified time | relevance | path

Searched full:mapbase (Results 1 – 25 of 142) sorted by relevance

123456

/linux/arch/arm/plat-orion/include/plat/
H A Dcommon.h18 resource_size_t mapbase,
23 resource_size_t mapbase,
28 resource_size_t mapbase,
33 resource_size_t mapbase,
37 void __init orion_rtc_init(unsigned long mapbase,
41 unsigned long mapbase,
47 unsigned long mapbase,
52 unsigned long mapbase,
56 unsigned long mapbase,
59 void __init orion_i2c_init(unsigned long mapbase,
[all …]
/linux/arch/arm/common/
H A Dlocomo.c81 /* All the locomo devices. If offset is non-zero, the mapbase for the
83 * zero, then the mapbase for the locomo_dev will be set to zero. An
248 dev->mapbase = lchip->base + info->offset; in locomo_init_one_child()
250 dev->mapbase = 0; in locomo_init_one_child()
625 static void locomo_m62332_sendbit(void *mapbase, int bit) in locomo_m62332_sendbit() argument
629 r = locomo_readl(mapbase + LOCOMO_DAC); in locomo_m62332_sendbit()
631 locomo_writel(r, mapbase + LOCOMO_DAC); in locomo_m62332_sendbit()
634 r = locomo_readl(mapbase + LOCOMO_DAC); in locomo_m62332_sendbit()
636 locomo_writel(r, mapbase + LOCOMO_DAC); in locomo_m62332_sendbit()
641 r = locomo_readl(mapbase + LOCOMO_DAC); in locomo_m62332_sendbit()
[all …]
H A Dsa1111.c212 void __iomem *mapbase = sachip->base + SA1111_INTC; in sa1111_irq_handler() local
214 stat0 = readl_relaxed(mapbase + SA1111_INTSTATCLR0); in sa1111_irq_handler()
215 stat1 = readl_relaxed(mapbase + SA1111_INTSTATCLR1); in sa1111_irq_handler()
217 writel_relaxed(stat0, mapbase + SA1111_INTSTATCLR0); in sa1111_irq_handler()
221 writel_relaxed(stat1, mapbase + SA1111_INTSTATCLR1); in sa1111_irq_handler()
259 void __iomem *mapbase = sachip->base + SA1111_INTC + sa1111_irqbank(d); in sa1111_mask_irq() local
262 ie = readl_relaxed(mapbase + SA1111_INTEN0); in sa1111_mask_irq()
264 writel(ie, mapbase + SA1111_INTEN0); in sa1111_mask_irq()
270 void __iomem *mapbase = sachip->base + SA1111_INTC + sa1111_irqbank(d); in sa1111_unmask_irq() local
273 ie = readl_relaxed(mapbase + SA1111_INTEN0); in sa1111_unmask_irq()
[all …]
/linux/arch/arm/plat-orion/
H A Dcommon.c54 resource_size_t mapbase, in fill_resources() argument
60 resources[0].start = mapbase; in fill_resources()
61 resources[0].end = mapbase + size; in fill_resources()
66 resource_size_t mapbase, in fill_resources_irq() argument
70 fill_resources(device, resources, mapbase, size); in fill_resources_irq()
92 resource_size_t mapbase, in uart_complete() argument
96 data->mapbase = mapbase; in uart_complete()
102 fill_resources_irq(orion_uart, resources, mapbase, 0xff, irq); in uart_complete()
126 resource_size_t mapbase, in orion_uart0_init() argument
131 membase, mapbase, irq, clk); in orion_uart0_init()
[all …]
/linux/arch/arm/mach-lpc32xx/
H A Dserial.c29 resource_size_t mapbase; member
38 .mapbase = LPC32XX_UART5_BASE,
45 .mapbase = LPC32XX_UART3_BASE,
52 .mapbase = LPC32XX_UART4_BASE,
59 .mapbase = LPC32XX_UART6_BASE,
64 void lpc32xx_loopback_set(resource_size_t mapbase, int state) in lpc32xx_loopback_set() argument
69 switch (mapbase) { in lpc32xx_loopback_set()
80 WARN(1, "lpc32xx_hs: Warning: Unknown port at %08x\n", mapbase); in lpc32xx_loopback_set()
116 puart = uartinit_data[i].mapbase; in lpc32xx_serial_init()
130 puart = uartinit_data[i].mapbase; in lpc32xx_serial_init()
H A Dcommon.c35 u32 lpc32xx_return_iram(void __iomem **mapbase, dma_addr_t *dmaaddr) in lpc32xx_return_iram() argument
58 if (mapbase) in lpc32xx_return_iram()
59 *mapbase = io_p2v(LPC32XX_IRAM_BASE); in lpc32xx_return_iram()
/linux/drivers/mcb/
H A Dmcb-pci.c17 phys_addr_t mapbase; member
56 priv->mapbase = pci_resource_start(pdev, 0); in mcb_pci_probe()
57 if (!priv->mapbase) { in mcb_pci_probe()
63 res = devm_request_mem_region(&pdev->dev, priv->mapbase, in mcb_pci_probe()
72 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()
98 devm_release_mem_region(&pdev->dev, priv->mapbase, CHAM_HEADER_SIZE); in mcb_pci_probe()
101 res = devm_request_mem_region(&pdev->dev, priv->mapbase, in mcb_pci_probe()
110 priv->base = devm_ioremap(&pdev->dev, priv->mapbase, table_size); in mcb_pci_probe()
H A Dmcb-parse.c126 static int chameleon_get_bar(void __iomem **base, phys_addr_t mapbase, in chameleon_get_bar() argument
162 c->addr = mapbase; in chameleon_get_bar()
170 int chameleon_parse_cells(struct mcb_bus *bus, phys_addr_t mapbase, in chameleon_parse_cells() argument
207 bar_count = chameleon_get_bar(&p, mapbase, &cb); in chameleon_parse_cells()
/linux/include/linux/soc/nxp/
H A 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
/linux/drivers/media/pci/mgb4/
H A Dmgb4_regs.c12 regs->mapbase = res->start; in mgb4_regs_map()
15 if (!request_mem_region(regs->mapbase, regs->mapsize, res->name)) in mgb4_regs_map()
17 regs->membase = ioremap(regs->mapbase, regs->mapsize); in mgb4_regs_map()
19 release_mem_region(regs->mapbase, regs->mapsize); in mgb4_regs_map()
29 release_mem_region(regs->mapbase, regs->mapsize); in mgb4_regs_free()
H A Dmgb4_core.c186 resource_size_t mapbase = pci_resource_start(pdev, MGB4_MGB4_BAR_ID); in init_spi() local
194 spi_resources[0].start += mapbase; in init_spi()
195 spi_resources[0].end += mapbase; in init_spi()
287 resource_size_t mapbase = pci_resource_start(pdev, MGB4_MGB4_BAR_ID); in init_i2c() local
295 i2c_resources[0].start += mapbase; in init_i2c()
296 i2c_resources[0].end += mapbase; in init_i2c()
423 resource_size_t mapbase = pci_resource_start(pdev, MGB4_MGB4_BAR_ID); in map_regs() local
425 res->start += mapbase; in map_regs()
426 res->end += mapbase; in map_regs()
/linux/arch/sh/kernel/cpu/sh3/
H A 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()
H A Dserial-sh7710.c12 if (port->mapbase == 0xA4400000) { in sh7710_sci_init_pins()
15 } else if (port->mapbase == 0xA4410000) in sh7710_sci_init_pins()
/linux/drivers/tty/serial/8250/
H A 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/drivers/video/backlight/
H A 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/drivers/tty/serial/
H A Dlpc32xx_hs.c170 lpc32xx_loopback_set(port->mapbase, 0); /* get out of loopback mode */ in lpc32xx_hsuart_console_setup()
437 lpc32xx_loopback_set(port->mapbase, 0); /* get out of loopback mode */ in serial_lpc32xx_startup()
462 lpc32xx_loopback_set(port->mapbase, 1); /* go to loopback mode */ in serial_lpc32xx_shutdown()
517 if ((port->iotype == UPIO_MEM32) && (port->mapbase)) { in serial_lpc32xx_release_port()
523 release_mem_region(port->mapbase, SZ_4K); in serial_lpc32xx_release_port()
531 if ((port->iotype == UPIO_MEM32) && (port->mapbase)) { in serial_lpc32xx_request_port()
534 if (!request_mem_region(port->mapbase, SZ_4K, MODNAME)) in serial_lpc32xx_request_port()
537 port->membase = ioremap(port->mapbase, SZ_4K); in serial_lpc32xx_request_port()
539 release_mem_region(port->mapbase, SZ_4K); in serial_lpc32xx_request_port()
627 p->port.mapbase = res->start; in serial_hs_lpc32xx_probe()
[all …]
H A Duartlite.c367 release_mem_region(port->mapbase, ULITE_REGION); in ulite_release_port()
377 pr_debug("ulite console: port=%p; port->mapbase=%llx\n", in ulite_request_port()
378 port, (unsigned long long) port->mapbase); in ulite_request_port()
380 if (!request_mem_region(port->mapbase, ULITE_REGION, "uartlite")) { in ulite_request_port()
385 port->membase = ioremap(port->mapbase, ULITE_REGION); in ulite_request_port()
388 release_mem_region(port->mapbase, ULITE_REGION); in ulite_request_port()
538 if (!port || !port->mapbase) { in ulite_console_setup()
644 if (ulite_ports[id].mapbase == 0) in ulite_assign()
652 if ((ulite_ports[id].mapbase) && (ulite_ports[id].mapbase != base)) { in ulite_assign()
665 port->mapbase = base; in ulite_assign()
[all …]
H A Dserial_txx9.c706 if (!up->mapbase) in serial_txx9_request_resource()
709 if (!request_mem_region(up->mapbase, size, "serial_txx9")) { in serial_txx9_request_resource()
715 up->membase = ioremap(up->mapbase, size); in serial_txx9_request_resource()
717 release_mem_region(up->mapbase, size); in serial_txx9_request_resource()
737 if (!up->mapbase) in serial_txx9_release_resource()
745 release_mem_region(up->mapbase, size); in serial_txx9_release_resource()
826 if (up->iobase || up->mapbase) in serial_txx9_register_ports()
977 if (!(uart->iobase || uart->mapbase)) in serial_txx9_register_port()
989 uart->mapbase = port->mapbase; in serial_txx9_register_port()
1016 uart->mapbase = 0; in serial_txx9_unregister_port()
[all …]
/linux/drivers/clocksource/
H A 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()
H A Dsh_mtu2.c44 void __iomem *mapbase; member
161 return ioread8(ch->mtu->mapbase + 0x280); in sh_mtu2_read()
177 return iowrite8(value, ch->mtu->mapbase + 0x280); in sh_mtu2_write()
364 ch->base = mtu->mapbase + sh_mtu2_channel_offsets[index]; in sh_mtu2_setup_channel()
380 mtu->mapbase = ioremap(res->start, resource_size(res)); in sh_mtu2_map_memory()
381 if (mtu->mapbase == NULL) in sh_mtu2_map_memory()
442 iounmap(mtu->mapbase); in sh_mtu2_setup()
/linux/arch/x86/platform/ce4100/
H A 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()
/linux/drivers/usb/host/
H A Dohci-sa1111.c136 dev->mapbase + USB_RESET); in sa1111_start_hc()
145 writel_relaxed(usb_rst, dev->mapbase + USB_RESET); in sa1111_start_hc()
160 usb_rst = readl_relaxed(dev->mapbase + USB_RESET); in sa1111_stop_hc()
162 dev->mapbase + USB_RESET); in sa1111_stop_hc()
234 hcd->regs = dev->mapbase; in ohci_hcd_sa1111_probe()
/linux/arch/mips/ath25/
H A 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()
/linux/arch/arm/mach-omap1/
H A Dserial.c68 .mapbase = OMAP1_UART1_BASE,
76 .mapbase = OMAP1_UART2_BASE,
84 .mapbase = OMAP1_UART3_BASE,
120 ioremap(serial_platform_data[i].mapbase, SZ_2K); in omap_serial_init()
/linux/drivers/spi/
H A Dspi-ppc4xx.c115 u64 mapbase; member
402 hw->mapbase = resource.start; in spi_ppc4xx_of_probe()
425 if (!request_mem_region(hw->mapbase, hw->mapsize, DRIVER_NAME)) { in spi_ppc4xx_of_probe()
431 hw->regs = ioremap(hw->mapbase, sizeof(struct spi_ppc4xx_regs)); in spi_ppc4xx_of_probe()
456 release_mem_region(hw->mapbase, hw->mapsize); in spi_ppc4xx_of_probe()
472 release_mem_region(hw->mapbase, hw->mapsize); in spi_ppc4xx_of_remove()

123456