/openbmc/linux/arch/arm/plat-orion/include/plat/ |
H A D | common.h | 18 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 …]
|
/openbmc/linux/arch/arm/plat-orion/ |
H A D | common.c | 54 resource_size_t mapbase, in fill_resources() argument 60 resources[0].start = mapbase; in fill_resources() 92 resource_size_t mapbase, in uart_complete() argument 96 data->mapbase = mapbase; in uart_complete() 126 resource_size_t mapbase, in orion_uart0_init() argument 154 resource_size_t mapbase, in orion_uart1_init() argument 308 unsigned long mapbase, in orion_ge00_init() argument 361 unsigned long mapbase, in orion_ge01_init() argument 411 unsigned long mapbase, in orion_ge10_init() argument 459 unsigned long mapbase, in orion_ge11_init() argument [all …]
|
/openbmc/linux/arch/arm/common/ |
H A D | locomo.c | 248 dev->mapbase = 0; in locomo_init_one_child() 627 r = locomo_readl(mapbase + LOCOMO_DAC); in locomo_m62332_sendbit() 629 locomo_writel(r, mapbase + LOCOMO_DAC); in locomo_m62332_sendbit() 632 r = locomo_readl(mapbase + LOCOMO_DAC); in locomo_m62332_sendbit() 634 locomo_writel(r, mapbase + LOCOMO_DAC); in locomo_m62332_sendbit() 651 r = locomo_readl(mapbase + LOCOMO_DAC); in locomo_m62332_sendbit() 653 locomo_writel(r, mapbase + LOCOMO_DAC); in locomo_m62332_sendbit() 664 void *mapbase = lchip->base; in locomo_m62332_senddata() local 671 r = locomo_readl(mapbase + LOCOMO_DAC); in locomo_m62332_senddata() 673 locomo_writel(r, mapbase + LOCOMO_DAC); in locomo_m62332_senddata() [all …]
|
H A D | sa1111.c | 262 ie = readl_relaxed(mapbase + SA1111_INTEN0); in sa1111_mask_irq() 264 writel(ie, mapbase + SA1111_INTEN0); in sa1111_mask_irq() 273 ie = readl_relaxed(mapbase + SA1111_INTEN0); in sa1111_unmask_irq() 275 writel_relaxed(ie, mapbase + SA1111_INTEN0); in sa1111_unmask_irq() 292 ip = readl_relaxed(mapbase + SA1111_INTPOL0); in sa1111_retrigger_irq() 295 writel_relaxed(ip, mapbase + SA1111_INTPOL0); in sa1111_retrigger_irq() 321 ip = readl_relaxed(mapbase + SA1111_INTPOL0); in sa1111_type_irq() 326 writel_relaxed(ip, mapbase + SA1111_INTPOL0); in sa1111_type_irq() 327 writel_relaxed(ip, mapbase + SA1111_WAKEPOL0); in sa1111_type_irq() 338 we = readl_relaxed(mapbase + SA1111_WAKEEN0); in sa1111_wake_irq() [all …]
|
/openbmc/linux/arch/arm/mach-lpc32xx/ |
H A D | serial.c | 29 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 D | common.c | 35 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()
|
/openbmc/linux/include/linux/soc/nxp/ |
H A D | lpc32xx-misc.h | 15 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
|
/openbmc/linux/drivers/mcb/ |
H A D | mcb-pci.c | 17 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() 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 D | mcb-parse.c | 12 phys_addr_t mapbase; member 131 static int chameleon_get_bar(void __iomem **base, phys_addr_t mapbase, in chameleon_get_bar() argument 167 c->addr = mapbase; in chameleon_get_bar() 175 int chameleon_parse_cells(struct mcb_bus *bus, phys_addr_t mapbase, in chameleon_parse_cells() argument 212 bar_count = chameleon_get_bar(&p, mapbase, &cb); in chameleon_parse_cells()
|
/openbmc/linux/arch/sh/kernel/cpu/sh3/ |
H A D | serial-sh7720.c | 14 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 D | serial-sh7710.c | 12 if (port->mapbase == 0xA4400000) { in sh7710_sci_init_pins() 15 } else if (port->mapbase == 0xA4410000) in sh7710_sci_init_pins()
|
/openbmc/linux/drivers/tty/serial/ |
H A D | earlycon.c | 86 &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() 150 if (port->mapbase) in register_earlycon() 151 port->membase = earlycon_map(port->mapbase, 64); in register_earlycon() 273 port->mapbase = addr; in of_setup_earlycon() 277 port->mapbase += be32_to_cpu(*val); in of_setup_earlycon() 278 port->membase = earlycon_map(port->mapbase, SZ_4K); in of_setup_earlycon()
|
H A D | lpc32xx_hs.c | 174 lpc32xx_loopback_set(port->mapbase, 0); /* get out of loopback mode */ in lpc32xx_hsuart_console_setup() 442 lpc32xx_loopback_set(port->mapbase, 0); /* get out of loopback mode */ in serial_lpc32xx_startup() 467 lpc32xx_loopback_set(port->mapbase, 1); /* go to loopback mode */ in serial_lpc32xx_shutdown() 522 if ((port->iotype == UPIO_MEM32) && (port->mapbase)) { in serial_lpc32xx_release_port() 528 release_mem_region(port->mapbase, SZ_4K); in serial_lpc32xx_release_port() 536 if ((port->iotype == UPIO_MEM32) && (port->mapbase)) { in serial_lpc32xx_request_port() 539 if (!request_mem_region(port->mapbase, SZ_4K, MODNAME)) in serial_lpc32xx_request_port() 542 port->membase = ioremap(port->mapbase, SZ_4K); in serial_lpc32xx_request_port() 544 release_mem_region(port->mapbase, SZ_4K); in serial_lpc32xx_request_port() 632 p->port.mapbase = res->start; in serial_hs_lpc32xx_probe() [all …]
|
H A D | uartlite.c | 359 release_mem_region(port->mapbase, ULITE_REGION); in ulite_release_port() 370 port, (unsigned long long) port->mapbase); in ulite_request_port() 372 if (!request_mem_region(port->mapbase, ULITE_REGION, "uartlite")) { in ulite_request_port() 377 port->membase = ioremap(port->mapbase, ULITE_REGION); in ulite_request_port() 380 release_mem_region(port->mapbase, ULITE_REGION); in ulite_request_port() 530 if (!port || !port->mapbase) { in ulite_console_setup() 636 if (ulite_ports[id].mapbase == 0) in ulite_assign() 644 if ((ulite_ports[id].mapbase) && (ulite_ports[id].mapbase != base)) { in ulite_assign() 657 port->mapbase = base; in ulite_assign() 673 port->mapbase = 0; in ulite_assign() [all …]
|
H A D | serial_txx9.c | 705 if (!up->mapbase) in serial_txx9_request_resource() 714 up->membase = ioremap(up->mapbase, size); in serial_txx9_request_resource() 716 release_mem_region(up->mapbase, size); in serial_txx9_request_resource() 736 if (!up->mapbase) in serial_txx9_release_resource() 744 release_mem_region(up->mapbase, size); in serial_txx9_release_resource() 825 if (up->iobase || up->mapbase) in serial_txx9_register_ports() 976 if (!(uart->iobase || uart->mapbase)) in serial_txx9_register_port() 988 uart->mapbase = port->mapbase; in serial_txx9_register_port() 1015 uart->mapbase = 0; in serial_txx9_unregister_port() 1038 port.mapbase = p->mapbase; in serial_txx9_probe() [all …]
|
/openbmc/linux/drivers/tty/serial/8250/ |
H A D | 8250_hp300.c | 117 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()
|
/openbmc/linux/arch/m68k/coldfire/ |
H A D | device.c | 32 .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,
|
/openbmc/linux/arch/x86/platform/ce4100/ |
H A D | ce4100.c | 93 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()
|
/openbmc/linux/drivers/video/backlight/ |
H A D | locomolcd.c | 52 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()
|
/openbmc/linux/drivers/usb/host/ |
H A D | ohci-sa1111.c | 136 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()
|
/openbmc/linux/arch/arm/mach-omap1/ |
H A D | serial.c | 68 .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()
|
/openbmc/linux/arch/mips/ath25/ |
H A D | devices.c | 74 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()
|
/openbmc/linux/drivers/clocksource/ |
H A D | sh_tmu.c | 55 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 D | sh_mtu2.c | 44 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()
|
/openbmc/linux/drivers/spi/ |
H A D | spi-ppc4xx.c | 114 u64 mapbase; member 401 hw->mapbase = resource.start; in spi_ppc4xx_of_probe() 424 if (!request_mem_region(hw->mapbase, hw->mapsize, DRIVER_NAME)) { in spi_ppc4xx_of_probe() 430 hw->regs = ioremap(hw->mapbase, sizeof(struct spi_ppc4xx_regs)); in spi_ppc4xx_of_probe() 455 release_mem_region(hw->mapbase, hw->mapsize); in spi_ppc4xx_of_probe() 471 release_mem_region(hw->mapbase, hw->mapsize); in spi_ppc4xx_of_remove()
|