Home
last modified time | relevance | path

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

12345

/drivers/clocksource/
Dh8300_timer8.c39 void __iomem *mapbase; member
49 iowrite16be(0x0000, p->mapbase + _8TCR); in timer8_interrupt()
53 bclr(CMFA, p->mapbase + _8TCSR); in timer8_interrupt()
62 bclr(CMIEA, p->mapbase + _8TCR); in timer8_set_next()
63 iowrite16be(delta, p->mapbase + TCORA); in timer8_set_next()
64 iowrite16be(0x0000, p->mapbase + _8TCNT); in timer8_set_next()
65 bclr(CMFA, p->mapbase + _8TCSR); in timer8_set_next()
66 bset(CMIEA, p->mapbase + _8TCR); in timer8_set_next()
71 iowrite16be(0xffff, p->mapbase + TCORA); in timer8_enable()
72 iowrite16be(0x0000, p->mapbase + _8TCNT); in timer8_enable()
[all …]
Dh8300_timer16.c28 void __iomem *mapbase; member
46 v1 = ioread16be(p->mapbase + TCNT); in timer16_get_counter()
47 v2 = ioread16be(p->mapbase + TCNT); in timer16_get_counter()
48 v3 = ioread16be(p->mapbase + TCNT); in timer16_get_counter()
93 iowrite16be(0x0000, p->mapbase + TCNT); in timer16_enable()
94 iowrite8(0x83, p->mapbase + TCR); in timer16_enable()
164 timer16_priv.mapbase = base[REG_CH]; in h8300_16timer_init()
Dsh_tmu.c60 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()
476 ch->base = tmu->mapbase + 4 + ch->index * 12; in sh_tmu_channel_setup()
478 ch->base = tmu->mapbase + 8 + ch->index * 12; in sh_tmu_channel_setup()
504 tmu->mapbase = ioremap_nocache(res->start, resource_size(res)); in sh_tmu_map_memory()
505 if (tmu->mapbase == NULL) in sh_tmu_map_memory()
596 iounmap(tmu->mapbase); in sh_tmu_setup()
Dsh_mtu2.c48 void __iomem *mapbase; member
165 return ioread8(ch->mtu->mapbase + 0x280); in sh_mtu2_read()
181 return iowrite8(value, ch->mtu->mapbase + 0x280); in sh_mtu2_write()
367 ch->base = mtu->mapbase + channel_offsets[index]; in sh_mtu2_setup_channel()
383 mtu->mapbase = ioremap_nocache(res->start, resource_size(res)); in sh_mtu2_map_memory()
384 if (mtu->mapbase == NULL) in sh_mtu2_map_memory()
440 iounmap(mtu->mapbase); in sh_mtu2_setup()
Dsh_cmt.c119 void __iomem *mapbase; member
244 return ch->cmt->info->read_control(ch->cmt->mapbase, 0); in sh_cmt_read_cmstr()
253 ch->cmt->info->write_control(ch->cmt->mapbase, 0, value); in sh_cmt_write_cmstr()
875 ch->ioctrl = cmt->mapbase + 2 + ch->hwidx * 6; in sh_cmt_setup_channel()
879 ch->ioctrl = cmt->mapbase + 0x10 + ch->hwidx * 0x10; in sh_cmt_setup_channel()
886 ch->ioctrl = cmt->mapbase + 0x40; in sh_cmt_setup_channel()
889 ch->iostart = cmt->mapbase + ch->hwidx * 0x100; in sh_cmt_setup_channel()
926 cmt->mapbase = ioremap_nocache(mem->start, resource_size(mem)); in sh_cmt_map_memory()
927 if (cmt->mapbase == NULL) { in sh_cmt_map_memory()
1036 iounmap(cmt->mapbase); in sh_cmt_setup()
/drivers/tty/serial/
Dearlycon.c84 &port->mapbase, device->options); in earlycon_init()
102 port->mapbase = addr; in parse_options()
106 port->mapbase = addr; in parse_options()
111 port->mapbase = addr; in parse_options()
141 if (port->mapbase) in register_earlycon()
142 port->membase = earlycon_map(port->mapbase, 64); in register_earlycon()
254 port->mapbase = addr; in of_setup_earlycon()
259 port->mapbase += be32_to_cpu(*val); in of_setup_earlycon()
260 port->membase = earlycon_map(port->mapbase, SZ_4K); in of_setup_earlycon()
Dlpc32xx_hs.c448 static void lpc32xx_loopback_set(resource_size_t mapbase, int state) in lpc32xx_loopback_set() argument
453 switch (mapbase) { in lpc32xx_loopback_set()
464 WARN(1, "lpc32xx_hs: Warning: Unknown port at %08x\n", mapbase); in lpc32xx_loopback_set()
501 lpc32xx_loopback_set(port->mapbase, 0); /* get out of loopback mode */ in serial_lpc32xx_startup()
526 lpc32xx_loopback_set(port->mapbase, 1); /* go to loopback mode */ in serial_lpc32xx_shutdown()
581 if ((port->iotype == UPIO_MEM32) && (port->mapbase)) { in serial_lpc32xx_release_port()
587 release_mem_region(port->mapbase, SZ_4K); in serial_lpc32xx_release_port()
595 if ((port->iotype == UPIO_MEM32) && (port->mapbase)) { in serial_lpc32xx_request_port()
598 if (!request_mem_region(port->mapbase, SZ_4K, MODNAME)) in serial_lpc32xx_request_port()
601 port->membase = ioremap(port->mapbase, SZ_4K); in serial_lpc32xx_request_port()
[all …]
Duartlite.c324 release_mem_region(port->mapbase, ULITE_REGION); in ulite_release_port()
334 port, (unsigned long long) port->mapbase); in ulite_request_port()
336 if (!request_mem_region(port->mapbase, ULITE_REGION, "uartlite")) { in ulite_request_port()
341 port->membase = ioremap(port->mapbase, ULITE_REGION); in ulite_request_port()
344 release_mem_region(port->mapbase, ULITE_REGION); in ulite_request_port()
489 if (!port->mapbase) { in ulite_console_setup()
602 if (ulite_ports[id].mapbase == 0) in ulite_assign()
610 if ((ulite_ports[id].mapbase) && (ulite_ports[id].mapbase != base)) { in ulite_assign()
623 port->mapbase = base; in ulite_assign()
638 port->mapbase = 0; in ulite_assign()
[all …]
Dserial_txx9.c760 if (!up->port.mapbase) in serial_txx9_request_resource()
763 if (!request_mem_region(up->port.mapbase, size, "serial_txx9")) { in serial_txx9_request_resource()
769 up->port.membase = ioremap(up->port.mapbase, size); in serial_txx9_request_resource()
771 release_mem_region(up->port.mapbase, size); in serial_txx9_request_resource()
791 if (!up->port.mapbase) in serial_txx9_release_resource()
799 release_mem_region(up->port.mapbase, size); in serial_txx9_release_resource()
883 if (up->port.iobase || up->port.mapbase) in serial_txx9_register_ports()
1038 if (!(uart->port.iobase || uart->port.mapbase)) in serial_txx9_register_port()
1050 uart->port.mapbase = port->mapbase; in serial_txx9_register_port()
1077 uart->port.mapbase = 0; in serial_txx9_unregister_port()
[all …]
Dmcf.c499 for (i = 0; ((i < MCF_MAXPORTS) && (platp[i].mapbase)); i++) { in early_mcf_setup()
504 port->mapbase = platp[i].mapbase; in early_mcf_setup()
506 (unsigned char __iomem *) port->mapbase; in early_mcf_setup()
624 for (i = 0; ((i < MCF_MAXPORTS) && (platp[i].mapbase)); i++) { in mcf_probe()
629 port->mapbase = platp[i].mapbase; in mcf_probe()
631 (unsigned char __iomem *) platp[i].mapbase; in mcf_probe()
Dvr41xx_siu.c638 release_mem_region(port->mapbase, size); in siu_release_port()
647 res = request_mem_region(port->mapbase, size, siu_type_name(port)); in siu_request_port()
652 port->membase = ioremap(port->mapbase, size); in siu_request_port()
678 if (port->mapbase != (unsigned long)serial->iomem_base) in siu_verify_port()
727 port->mapbase = res->start; in siu_init_ports()
798 if (port->mapbase == 0) in siu_console_setup()
800 port->membase = ioremap(port->mapbase, siu_port_size(port)); in siu_console_setup()
849 siu_uart_ports[port->line].mapbase = port->mapbase; in vr41xx_siu_early_setup()
Daltera_uart.c523 if (altera_uart_ports[i].port.mapbase == 0) in altera_uart_probe()
534 port->mapbase = res_mem->start; in altera_uart_probe()
536 port->mapbase = platp->mapbase; in altera_uart_probe()
556 port->membase = ioremap(port->mapbase, ALTERA_UART_SIZE); in altera_uart_probe()
585 port->mapbase = 0; in altera_uart_remove()
Dtimbuart.c338 release_mem_region(port->mapbase, size); in timbuart_release_port()
347 if (!request_mem_region(port->mapbase, size, "timb-uart")) in timbuart_request_port()
351 port->membase = ioremap(port->mapbase, size); in timbuart_request_port()
353 release_mem_region(port->mapbase, size); in timbuart_request_port()
456 uart->port.mapbase = iomem->start; in timbuart_probe()
Dmpc52xx_uart.c652 psc_num = (port->mapbase & 0xf00) >> 8; in mpc512x_psc_handle_irq()
670 psc_num = (port->mapbase & 0xf00) >> 8; in mpc512x_psc_alloc_clock()
718 psc_num = (port->mapbase & 0xf00) >> 8; in mpc512x_psc_relse_clock()
740 psc_num = (port->mapbase & 0xf00) >> 8; in mpc512x_psc_endis_clock()
1286 release_mem_region(port->mapbase, sizeof(struct mpc52xx_psc)); in mpc52xx_uart_release_port()
1295 port->membase = ioremap(port->mapbase, in mpc52xx_uart_request_port()
1301 err = request_mem_region(port->mapbase, sizeof(struct mpc52xx_psc), in mpc52xx_uart_request_port()
1316 release_mem_region(port->mapbase, sizeof(struct mpc52xx_psc)); in mpc52xx_uart_request_port()
1342 (ser->iomem_base != (void *)port->mapbase) || in mpc52xx_uart_verify_port()
1658 port->mapbase = res.start; in mpc52xx_console_setup()
[all …]
/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()
Dmcb-parse.c11 phys_addr_t mapbase; member
132 static int chameleon_get_bar(char __iomem **base, phys_addr_t mapbase, in chameleon_get_bar() argument
168 c->addr = mapbase; in chameleon_get_bar()
176 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()
/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()
/drivers/tty/serial/8250/
D8250_hp300.c116 port.mapbase = (FRODO_BASE + FRODO_APCI_OFFSET(1)); in hp300_setup_serial_console()
117 port.membase = (char *)(port.mapbase + DIO_VIRADDRBASE); in hp300_setup_serial_console()
133 port.mapbase = (pa + UART_OFFSET); in hp300_setup_serial_console()
134 port.membase = (char *)(port.mapbase + DIO_VIRADDRBASE); in hp300_setup_serial_console()
175 uart.port.mapbase = (d->resource.start + UART_OFFSET); in hpdca_init_one()
176 uart.port.membase = (char *)(uart.port.mapbase + DIO_VIRADDRBASE); in hpdca_init_one()
257 uart.port.mapbase = base; in hp300_8250_init()
/drivers/usb/host/
Dohci-sa1111.c138 dev->mapbase + USB_RESET); in sa1111_start_hc()
147 sa1111_writel(usb_rst, dev->mapbase + USB_RESET); in sa1111_start_hc()
162 usb_rst = sa1111_readl(dev->mapbase + USB_RESET); in sa1111_stop_hc()
164 dev->mapbase + USB_RESET); in sa1111_stop_hc()
205 hcd->regs = dev->mapbase; in ohci_hcd_sa1111_probe()
/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()
/drivers/spi/
Dspi-ppc4xx.c120 u64 mapbase; member
490 hw->mapbase = resource.start; in spi_ppc4xx_of_probe()
509 if (!request_mem_region(hw->mapbase, hw->mapsize, DRIVER_NAME)) { in spi_ppc4xx_of_probe()
515 hw->regs = ioremap(hw->mapbase, sizeof(struct spi_ppc4xx_regs)); in spi_ppc4xx_of_probe()
540 release_mem_region(hw->mapbase, hw->mapsize); in spi_ppc4xx_of_probe()
558 release_mem_region(hw->mapbase, hw->mapsize); in spi_ppc4xx_of_remove()
/drivers/pcmcia/
Dsa1111_generic.c70 unsigned long status = sa1111_readl(s->dev->mapbase + PCSR); in sa1111_pcmcia_socket_state()
126 val = sa1111_readl(s->dev->mapbase + PCCR); in sa1111_pcmcia_configure_socket()
129 sa1111_writel(val, s->dev->mapbase + PCCR); in sa1111_pcmcia_configure_socket()
199 base = dev->mapbase; in pcmcia_probe()
/drivers/leds/
Dleds-locomo.c28 locomo_writel(LOCOMO_LPT_TOFH, locomo_dev->mapbase + offset); in locomoled_brightness_set()
30 locomo_writel(LOCOMO_LPT_TOFL, locomo_dev->mapbase + offset); in locomoled_brightness_set()
/drivers/input/keyboard/
Dlocomokbd.c253 if (!request_mem_region((unsigned long) dev->mapbase, in locomokbd_probe()
263 locomokbd->base = (unsigned long) dev->mapbase; in locomokbd_probe()
315 release_mem_region((unsigned long) dev->mapbase, dev->length); in locomokbd_probe()
335 release_mem_region((unsigned long) dev->mapbase, dev->length); in locomokbd_remove()

12345