Home
last modified time | relevance | path

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

1234

/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.c122 port.mapbase = (FRODO_BASE + FRODO_APCI_OFFSET(1)); in hp300_setup_serial_console()
123 port.membase = (char *)(port.mapbase + DIO_VIRADDRBASE); in hp300_setup_serial_console()
139 port.mapbase = (pa + UART_OFFSET); in hp300_setup_serial_console()
140 port.membase = (char *)(port.mapbase + DIO_VIRADDRBASE); in hp300_setup_serial_console()
181 uart.port.mapbase = (d->resource.start + UART_OFFSET); in hpdca_init_one()
182 uart.port.membase = (char *)(uart.port.mapbase + DIO_VIRADDRBASE); in hpdca_init_one()
262 uart.port.mapbase = base; in hp300_8250_init()
/drivers/tty/serial/
Dearlycon.c70 port->mapbase = addr; in parse_options()
86 port->mapbase = addr; in parse_options()
107 (unsigned long long)port->mapbase, in parse_options()
140 if (port->mapbase) in setup_earlycon()
141 port->membase = earlycon_map(port->mapbase, 64); in setup_earlycon()
Duartlite.c325 release_mem_region(port->mapbase, ULITE_REGION); in ulite_release_port()
335 port, (unsigned long long) port->mapbase); in ulite_request_port()
337 if (!request_mem_region(port->mapbase, ULITE_REGION, "uartlite")) { in ulite_request_port()
342 port->membase = ioremap(port->mapbase, ULITE_REGION); in ulite_request_port()
345 release_mem_region(port->mapbase, ULITE_REGION); in ulite_request_port()
482 if (!port->mapbase) { in ulite_console_setup()
554 if (ulite_ports[id].mapbase == 0) in ulite_assign()
562 if ((ulite_ports[id].mapbase) && (ulite_ports[id].mapbase != base)) { in ulite_assign()
575 port->mapbase = base; in ulite_assign()
590 port->mapbase = 0; in ulite_assign()
[all …]
Dlpc32xx_hs.c453 static void lpc32xx_loopback_set(resource_size_t mapbase, int state) in lpc32xx_loopback_set() argument
458 switch (mapbase) { in lpc32xx_loopback_set()
469 WARN(1, "lpc32xx_hs: Warning: Unknown port at %08x\n", mapbase); in lpc32xx_loopback_set()
506 lpc32xx_loopback_set(port->mapbase, 0); /* get out of loopback mode */ in serial_lpc32xx_startup()
531 lpc32xx_loopback_set(port->mapbase, 1); /* go to loopback mode */ in serial_lpc32xx_shutdown()
586 if ((port->iotype == UPIO_MEM32) && (port->mapbase)) { in serial_lpc32xx_release_port()
592 release_mem_region(port->mapbase, SZ_4K); in serial_lpc32xx_release_port()
600 if ((port->iotype == UPIO_MEM32) && (port->mapbase)) { in serial_lpc32xx_request_port()
603 if (!request_mem_region(port->mapbase, SZ_4K, MODNAME)) in serial_lpc32xx_request_port()
606 port->membase = ioremap(port->mapbase, SZ_4K); in serial_lpc32xx_request_port()
[all …]
Dserial_txx9.c771 if (!up->port.mapbase) in serial_txx9_request_resource()
774 if (!request_mem_region(up->port.mapbase, size, "serial_txx9")) { in serial_txx9_request_resource()
780 up->port.membase = ioremap(up->port.mapbase, size); in serial_txx9_request_resource()
782 release_mem_region(up->port.mapbase, size); in serial_txx9_request_resource()
802 if (!up->port.mapbase) in serial_txx9_release_resource()
810 release_mem_region(up->port.mapbase, size); in serial_txx9_release_resource()
895 if (up->port.iobase || up->port.mapbase) in serial_txx9_register_ports()
1050 if (!(uart->port.iobase || uart->port.mapbase)) in serial_txx9_register_port()
1062 uart->port.mapbase = port->mapbase; in serial_txx9_register_port()
1089 uart->port.mapbase = 0; in serial_txx9_unregister_port()
[all …]
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()
850 siu_uart_ports[port->line].mapbase = port->mapbase; in vr41xx_siu_early_setup()
Dmcf.c527 for (i = 0; ((i < MCF_MAXPORTS) && (platp[i].mapbase)); i++) { in early_mcf_setup()
532 port->mapbase = platp[i].mapbase; in early_mcf_setup()
534 (unsigned char __iomem *) port->mapbase; in early_mcf_setup()
651 for (i = 0; ((i < MCF_MAXPORTS) && (platp[i].mapbase)); i++) { in mcf_probe()
656 port->mapbase = platp[i].mapbase; in mcf_probe()
658 (unsigned char __iomem *) platp[i].mapbase; in mcf_probe()
Dxilinx_uartps.c655 if (!request_mem_region(port->mapbase, XUARTPS_REGISTER_SPACE, in xuartps_request_port()
660 port->membase = ioremap(port->mapbase, XUARTPS_REGISTER_SPACE); in xuartps_request_port()
663 release_mem_region(port->mapbase, XUARTPS_REGISTER_SPACE); in xuartps_request_port()
678 release_mem_region(port->mapbase, XUARTPS_REGISTER_SPACE); in xuartps_release_port()
768 if (xuartps_port[id].mapbase == 0) in xuartps_get_port()
873 if (!port->mapbase) { in xuartps_console_setup()
972 port->mapbase = res->start; in xuartps_probe()
1004 port->mapbase = 0; in xuartps_remove()
Daltera_uart.c547 if (altera_uart_ports[i].port.mapbase == 0) in altera_uart_probe()
558 port->mapbase = res_mem->start; in altera_uart_probe()
560 port->mapbase = platp->mapbase; in altera_uart_probe()
579 port->membase = ioremap(port->mapbase, ALTERA_UART_SIZE); in altera_uart_probe()
608 port->mapbase = 0; in altera_uart_remove()
Dmpc52xx_uart.c535 psc_num = (port->mapbase & 0xf00) >> 8; in mpc512x_psc_handle_irq()
552 psc_num = (port->mapbase & 0xf00) >> 8; in mpc512x_psc_clock()
863 release_mem_region(port->mapbase, sizeof(struct mpc52xx_psc)); in mpc52xx_uart_release_port()
872 port->membase = ioremap(port->mapbase, in mpc52xx_uart_request_port()
878 err = request_mem_region(port->mapbase, sizeof(struct mpc52xx_psc), in mpc52xx_uart_request_port()
906 (ser->iomem_base != (void *)port->mapbase) || in mpc52xx_uart_verify_port()
1226 port->mapbase = res.start; in mpc52xx_console_setup()
1234 (void *)port->mapbase, port->membase, in mpc52xx_console_setup()
1355 port->mapbase = res.start; in mpc52xx_uart_of_probe()
1356 if (!port->mapbase) { in mpc52xx_uart_of_probe()
[all …]
Dtimbuart.c341 release_mem_region(port->mapbase, size); in timbuart_release_port()
350 if (!request_mem_region(port->mapbase, size, "timb-uart")) in timbuart_request_port()
354 port->membase = ioremap(port->mapbase, size); in timbuart_request_port()
356 release_mem_region(port->mapbase, size); in timbuart_request_port()
460 uart->port.mapbase = iomem->start; in timbuart_probe()
Dsa1100.c524 release_mem_region(sport->port.mapbase, UART_PORT_SIZE); in sa1100_release_port()
534 return request_mem_region(sport->port.mapbase, UART_PORT_SIZE, in sa1100_request_port()
569 if ((void *)sport->port.mapbase != ser->iomem_base) in sa1100_verify_port()
660 sa1100_ports[idx].port.mapbase = _Ser1UTCR0; in sa1100_register_uart()
667 sa1100_ports[idx].port.mapbase = _Ser2UTCR0; in sa1100_register_uart()
674 sa1100_ports[idx].port.mapbase = _Ser3UTCR0; in sa1100_register_uart()
850 if (sa1100_ports[i].port.mapbase != res->start) in sa1100_serial_probe()
/drivers/usb/host/
Dohci-sa1111.c140 dev->mapbase + USB_RESET); in sa1111_start_hc()
149 sa1111_writel(usb_rst, dev->mapbase + USB_RESET); in sa1111_start_hc()
164 usb_rst = sa1111_readl(dev->mapbase + USB_RESET); in sa1111_stop_hc()
166 dev->mapbase + USB_RESET); in sa1111_stop_hc()
201 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/clocksource/
Dsh_cmt.c39 void __iomem *mapbase; member
114 return p->read_control(p->mapbase - cfg->channel_offset, 0); in sh_cmt_read_cmstr()
119 return p->read_control(p->mapbase, CMCSR); in sh_cmt_read_cmcsr()
124 return p->read_count(p->mapbase, CMCNT); in sh_cmt_read_cmcnt()
132 p->write_control(p->mapbase - cfg->channel_offset, 0, value); in sh_cmt_write_cmstr()
138 p->write_control(p->mapbase, CMCSR, value); in sh_cmt_write_cmcsr()
144 p->write_count(p->mapbase, CMCNT, value); in sh_cmt_write_cmcnt()
150 p->write_count(p->mapbase, CMCOR, value); in sh_cmt_write_cmcor()
704 p->mapbase = ioremap_nocache(res->start, resource_size(res)); in sh_cmt_setup()
705 if (p->mapbase == NULL) { in sh_cmt_setup()
[all …]
Dsh_mtu2.c38 void __iomem *mapbase; member
71 void __iomem *base = p->mapbase; in sh_mtu2_read()
89 void __iomem *base = p->mapbase; in sh_mtu2_write()
294 p->mapbase = ioremap_nocache(res->start, resource_size(res)); in sh_mtu2_setup()
295 if (p->mapbase == NULL) { in sh_mtu2_setup()
319 iounmap(p->mapbase); in sh_mtu2_setup()
Dsh_tmu.c39 void __iomem *mapbase; member
61 void __iomem *base = p->mapbase; in sh_tmu_read()
79 void __iomem *base = p->mapbase; in sh_tmu_write()
454 p->mapbase = ioremap_nocache(res->start, resource_size(res)); in sh_tmu_setup()
455 if (p->mapbase == NULL) { in sh_tmu_setup()
482 iounmap(p->mapbase); in sh_tmu_setup()
/drivers/spi/
Dspi-sh-msiof.c35 void __iomem *mapbase; member
77 return ioread16(p->mapbase + reg_offs); in sh_msiof_read()
79 return ioread32(p->mapbase + reg_offs); in sh_msiof_read()
89 iowrite16(value, p->mapbase + reg_offs); in sh_msiof_write()
92 iowrite32(value, p->mapbase + reg_offs); in sh_msiof_write()
672 p->mapbase = ioremap_nocache(r->start, resource_size(r)); in sh_msiof_spi_probe()
673 if (!p->mapbase) { in sh_msiof_spi_probe()
723 iounmap(p->mapbase); in sh_msiof_spi_probe()
741 iounmap(p->mapbase); in sh_msiof_spi_remove()
Dspi-ppc4xx.c119 u64 mapbase; member
500 hw->mapbase = resource.start; in spi_ppc4xx_of_probe()
519 if (!request_mem_region(hw->mapbase, hw->mapsize, DRIVER_NAME)) { in spi_ppc4xx_of_probe()
525 hw->regs = ioremap(hw->mapbase, sizeof(struct spi_ppc4xx_regs)); in spi_ppc4xx_of_probe()
550 release_mem_region(hw->mapbase, hw->mapsize); in spi_ppc4xx_of_probe()
570 release_mem_region(hw->mapbase, hw->mapsize); in spi_ppc4xx_of_remove()
/drivers/leds/
Dleds-renesas-tpu.c41 void __iomem *mapbase; member
69 void __iomem *base = p->mapbase; in r_tpu_read()
82 void __iomem *base = p->mapbase; in r_tpu_write()
267 p->mapbase = devm_ioremap_nocache(&pdev->dev, res->start, in r_tpu_probe()
269 if (p->mapbase == NULL) { in r_tpu_probe()
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/pcmcia/
Dsa1111_generic.c69 unsigned long status = sa1111_readl(s->dev->mapbase + PCSR); in sa1111_pcmcia_socket_state()
125 val = sa1111_readl(s->dev->mapbase + PCCR); in sa1111_pcmcia_configure_socket()
128 sa1111_writel(val, s->dev->mapbase + PCCR); in sa1111_pcmcia_configure_socket()
191 base = dev->mapbase; in pcmcia_probe()
/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()

1234