Home
last modified time | relevance | path

Searched refs:res_mem (Results 1 – 22 of 22) sorted by relevance

/drivers/net/mdio/
Dmdio-octeon.c20 struct resource *res_mem; in octeon_mdiobus_probe() local
30 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in octeon_mdiobus_probe()
31 if (res_mem == NULL) { in octeon_mdiobus_probe()
38 mdio_phys = res_mem->start; in octeon_mdiobus_probe()
39 regsize = resource_size(res_mem); in octeon_mdiobus_probe()
42 res_mem->name)) { in octeon_mdiobus_probe()
/drivers/net/can/sja1000/
Dsja1000_platform.c211 struct resource *res_mem, *res_irq = NULL; in sp_probe() local
224 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in sp_probe()
225 if (!res_mem) in sp_probe()
228 if (!devm_request_mem_region(&pdev->dev, res_mem->start, in sp_probe()
229 resource_size(res_mem), DRV_NAME)) in sp_probe()
232 addr = devm_ioremap(&pdev->dev, res_mem->start, in sp_probe()
233 resource_size(res_mem)); in sp_probe()
277 sp_populate(priv, pdata, res_mem->flags); in sp_probe()
/drivers/tty/serial/
Dpic32_uart.c611 struct resource *res_mem; in pic32_uart_request_port() local
613 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in pic32_uart_request_port()
614 if (unlikely(!res_mem)) in pic32_uart_request_port()
617 if (!request_mem_region(port->mapbase, resource_size(res_mem), in pic32_uart_request_port()
622 resource_size(res_mem)); in pic32_uart_request_port()
625 release_mem_region(port->mapbase, resource_size(res_mem)); in pic32_uart_request_port()
636 struct resource *res_mem; in pic32_uart_release_port() local
639 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in pic32_uart_release_port()
640 if (unlikely(!res_mem)) in pic32_uart_release_port()
642 res_size = resource_size(res_mem); in pic32_uart_release_port()
[all …]
Daltera_jtaguart.c423 struct resource *res_irq, *res_mem; in altera_jtaguart_probe() local
435 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in altera_jtaguart_probe()
436 if (res_mem) in altera_jtaguart_probe()
437 port->mapbase = res_mem->start; in altera_jtaguart_probe()
Dbcm63xx_uart.c809 struct resource *res_mem, *res_irq; in bcm_uart_probe() local
829 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in bcm_uart_probe()
830 if (!res_mem) in bcm_uart_probe()
833 port->mapbase = res_mem->start; in bcm_uart_probe()
834 port->membase = devm_ioremap_resource(&pdev->dev, res_mem); in bcm_uart_probe()
Daltera_uart.c554 struct resource *res_mem; in altera_uart_probe() local
571 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in altera_uart_probe()
572 if (res_mem) in altera_uart_probe()
573 port->mapbase = res_mem->start; in altera_uart_probe()
Dmeson_uart.c735 struct resource *res_mem; in meson_uart_probe() local
759 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in meson_uart_probe()
760 if (!res_mem) in meson_uart_probe()
789 port->mapbase = res_mem->start; in meson_uart_probe()
790 port->mapsize = resource_size(res_mem); in meson_uart_probe()
Dowl-uart.c642 struct resource *res_mem; in owl_uart_probe() local
658 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in owl_uart_probe()
659 if (!res_mem) { in owl_uart_probe()
693 owl_port->port.mapbase = res_mem->start; in owl_uart_probe()
Drda-uart.c721 struct resource *res_mem; in rda_uart_probe() local
733 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in rda_uart_probe()
734 if (!res_mem) { in rda_uart_probe()
763 rda_port->port.mapbase = res_mem->start; in rda_uart_probe()
/drivers/usb/host/
Dohci-st.c132 struct resource *res_mem; in st_ohci_platform_probe() local
144 res_mem = platform_get_resource(dev, IORESOURCE_MEM, 0); in st_ohci_platform_probe()
145 if (!res_mem) { in st_ohci_platform_probe()
204 hcd->rsrc_start = res_mem->start; in st_ohci_platform_probe()
205 hcd->rsrc_len = resource_size(res_mem); in st_ohci_platform_probe()
207 hcd->regs = devm_ioremap_resource(&dev->dev, res_mem); in st_ohci_platform_probe()
Dehci-st.c152 struct resource *res_mem; in st_ehci_platform_probe() local
163 res_mem = platform_get_resource(dev, IORESOURCE_MEM, 0); in st_ehci_platform_probe()
164 if (!res_mem) { in st_ehci_platform_probe()
227 hcd->rsrc_start = res_mem->start; in st_ehci_platform_probe()
228 hcd->rsrc_len = resource_size(res_mem); in st_ehci_platform_probe()
230 hcd->regs = devm_ioremap_resource(&dev->dev, res_mem); in st_ehci_platform_probe()
Dohci-platform.c93 struct resource *res_mem; in ohci_platform_probe() local
204 res_mem = platform_get_resource(dev, IORESOURCE_MEM, 0); in ohci_platform_probe()
205 hcd->regs = devm_ioremap_resource(&dev->dev, res_mem); in ohci_platform_probe()
210 hcd->rsrc_start = res_mem->start; in ohci_platform_probe()
211 hcd->rsrc_len = resource_size(res_mem); in ohci_platform_probe()
Dehci-brcm.c129 struct resource *res_mem; in ehci_brcm_probe() local
164 hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res_mem); in ehci_brcm_probe()
169 hcd->rsrc_start = res_mem->start; in ehci_brcm_probe()
170 hcd->rsrc_len = resource_size(res_mem); in ehci_brcm_probe()
Dehci-platform.c242 struct resource *res_mem; in ehci_platform_probe() local
360 res_mem = platform_get_resource(dev, IORESOURCE_MEM, 0); in ehci_platform_probe()
361 hcd->regs = devm_ioremap_resource(&dev->dev, res_mem); in ehci_platform_probe()
366 hcd->rsrc_start = res_mem->start; in ehci_platform_probe()
367 hcd->rsrc_len = resource_size(res_mem); in ehci_platform_probe()
/drivers/pcmcia/
Dsa11xx_base.c185 skt->res_mem.start = _PCMCIAMem(skt->nr); in sa11xx_drv_pcmcia_add_one()
186 skt->res_mem.end = _PCMCIAMem(skt->nr) + PCMCIAMemSp - 1; in sa11xx_drv_pcmcia_add_one()
187 skt->res_mem.name = "memory"; in sa11xx_drv_pcmcia_add_one()
188 skt->res_mem.flags = IORESOURCE_MEM; in sa11xx_drv_pcmcia_add_one()
Dpxa2xx_base.c253 skt->res_mem.start = _PCMCIAMem(skt->nr); in pxa2xx_drv_pcmcia_add_one()
254 skt->res_mem.end = _PCMCIAMem(skt->nr) + PCMCIAMemSp - 1; in pxa2xx_drv_pcmcia_add_one()
255 skt->res_mem.name = "memory"; in pxa2xx_drv_pcmcia_add_one()
256 skt->res_mem.flags = IORESOURCE_MEM; in pxa2xx_drv_pcmcia_add_one()
Dsoc_common.c649 res = &skt->res_mem; in soc_common_pcmcia_set_mem_map()
790 release_resource(&skt->res_mem); in soc_pcmcia_remove_one()
813 ret = request_resource(&skt->res_skt, &skt->res_mem); in soc_pcmcia_add_one()
881 release_resource(&skt->res_mem); in soc_pcmcia_add_one()
Dsoc_common.h57 struct resource res_mem; member
/drivers/ata/
Dpata_mpc52xx.c674 struct resource res_mem; in mpc52xx_ata_probe() local
693 rv = of_address_to_resource(op->dev.of_node, 0, &res_mem); in mpc52xx_ata_probe()
699 if (!devm_request_mem_region(&op->dev, res_mem.start, in mpc52xx_ata_probe()
705 ata_regs = devm_ioremap(&op->dev, res_mem.start, sizeof(*ata_regs)); in mpc52xx_ata_probe()
747 priv->ata_regs_pa = res_mem.start; in mpc52xx_ata_probe()
785 rv = mpc52xx_ata_init_one(&op->dev, priv, res_mem.start, in mpc52xx_ata_probe()
/drivers/spi/
Dspi-npcm-fiu.c230 struct resource *res_mem; member
593 if (!fiu->res_mem) { in npcm_fiu_dirmap_create()
607 devm_ioremap(fiu->dev, (fiu->res_mem->start + in npcm_fiu_dirmap_create()
719 fiu->res_mem = platform_get_resource_byname(pdev, IORESOURCE_MEM, in npcm_fiu_probe()
/drivers/staging/octeon-usb/
Docteon-hcd.c3531 struct resource *res_mem; in octeon_usb_probe() local
3587 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in octeon_usb_probe()
3588 if (!res_mem) { in octeon_usb_probe()
3592 usb_num = (res_mem->start >> 44) & 1; in octeon_usb_probe()
/drivers/net/ethernet/broadcom/
Dbcm63xx_enet.c2637 struct resource *res_mem; in bcm_enetsw_probe() local
2643 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in bcm_enetsw_probe()
2646 if (!res_mem || irq_rx < 0) in bcm_enetsw_probe()
2679 priv->base = devm_ioremap_resource(&pdev->dev, res_mem); in bcm_enetsw_probe()