Home
last modified time | relevance | path

Searched refs:res_mem (Results 1 – 23 of 23) 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.c421 struct resource *res_irq, *res_mem; in altera_jtaguart_probe() local
433 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in altera_jtaguart_probe()
434 if (res_mem) in altera_jtaguart_probe()
435 port->mapbase = res_mem->start; in altera_jtaguart_probe()
Dbcm63xx_uart.c807 struct resource *res_mem, *res_irq; in bcm_uart_probe() local
827 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in bcm_uart_probe()
828 if (!res_mem) in bcm_uart_probe()
831 port->mapbase = res_mem->start; in bcm_uart_probe()
832 port->membase = devm_ioremap_resource(&pdev->dev, res_mem); in bcm_uart_probe()
Daltera_uart.c552 struct resource *res_mem; in altera_uart_probe() local
569 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in altera_uart_probe()
570 if (res_mem) in altera_uart_probe()
571 port->mapbase = res_mem->start; in altera_uart_probe()
Dmeson_uart.c733 struct resource *res_mem; in meson_uart_probe() local
757 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in meson_uart_probe()
758 if (!res_mem) in meson_uart_probe()
787 port->mapbase = res_mem->start; in meson_uart_probe()
788 port->mapsize = resource_size(res_mem); in meson_uart_probe()
Dowl-uart.c678 struct resource *res_mem; in owl_uart_probe() local
694 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in owl_uart_probe()
695 if (!res_mem) { in owl_uart_probe()
729 owl_port->port.mapbase = res_mem->start; in owl_uart_probe()
Drda-uart.c719 struct resource *res_mem; in rda_uart_probe() local
731 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in rda_uart_probe()
732 if (!res_mem) { in rda_uart_probe()
761 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.c132 struct resource *res_mem; in ehci_brcm_probe() local
167 hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res_mem); in ehci_brcm_probe()
172 hcd->rsrc_start = res_mem->start; in ehci_brcm_probe()
173 hcd->rsrc_len = resource_size(res_mem); in ehci_brcm_probe()
Dehci-platform.c242 struct resource *res_mem; in ehci_platform_probe() local
365 res_mem = platform_get_resource(dev, IORESOURCE_MEM, 0); in ehci_platform_probe()
366 hcd->regs = devm_ioremap_resource(&dev->dev, res_mem); in ehci_platform_probe()
371 hcd->rsrc_start = res_mem->start; in ehci_platform_probe()
372 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/ufs/host/
Dufs-qcom.c1410 struct resource *res_mem, *res_mcq; in ufs_qcom_mcq_config_resource() local
1426 res_mem = res->resource; in ufs_qcom_mcq_config_resource()
1452 res_mcq->start = res_mem->start + in ufs_qcom_mcq_config_resource()
1455 res_mcq->flags = res_mem->flags; in ufs_qcom_mcq_config_resource()
/drivers/staging/octeon-usb/
Docteon-hcd.c3535 struct resource *res_mem; in octeon_usb_probe() local
3591 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in octeon_usb_probe()
3592 if (!res_mem) { in octeon_usb_probe()
3596 usb_num = (res_mem->start >> 44) & 1; in octeon_usb_probe()
/drivers/net/ethernet/broadcom/
Dbcm63xx_enet.c2640 struct resource *res_mem; in bcm_enetsw_probe() local
2646 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in bcm_enetsw_probe()
2649 if (!res_mem || irq_rx < 0) in bcm_enetsw_probe()
2682 priv->base = devm_ioremap_resource(&pdev->dev, res_mem); in bcm_enetsw_probe()