Home
last modified time | relevance | path

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

/linux-6.12.1/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()
/linux-6.12.1/drivers/net/can/sja1000/
Dsja1000_platform.c220 struct resource *res_mem, *res_irq = NULL; in sp_probe() local
233 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in sp_probe()
234 if (!res_mem) in sp_probe()
237 if (!devm_request_mem_region(&pdev->dev, res_mem->start, in sp_probe()
238 resource_size(res_mem), DRV_NAME)) in sp_probe()
241 addr = devm_ioremap(&pdev->dev, res_mem->start, in sp_probe()
242 resource_size(res_mem)); in sp_probe()
300 sp_populate(priv, pdata, res_mem->flags); in sp_probe()
/linux-6.12.1/drivers/tty/serial/
Dpic32_uart.c681 struct resource *res_mem; in pic32_uart_request_port() local
683 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in pic32_uart_request_port()
684 if (unlikely(!res_mem)) in pic32_uart_request_port()
687 if (!request_mem_region(port->mapbase, resource_size(res_mem), in pic32_uart_request_port()
692 resource_size(res_mem)); in pic32_uart_request_port()
695 release_mem_region(port->mapbase, resource_size(res_mem)); in pic32_uart_request_port()
706 struct resource *res_mem; in pic32_uart_release_port() local
709 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in pic32_uart_release_port()
710 if (unlikely(!res_mem)) in pic32_uart_release_port()
712 res_size = resource_size(res_mem); in pic32_uart_release_port()
[all …]
Daltera_jtaguart.c381 struct resource *res_mem; in altera_jtaguart_probe() local
394 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in altera_jtaguart_probe()
395 if (res_mem) in altera_jtaguart_probe()
396 port->mapbase = res_mem->start; in altera_jtaguart_probe()
Daltera_uart.c533 struct resource *res_mem; in altera_uart_probe() local
549 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in altera_uart_probe()
550 if (res_mem) in altera_uart_probe()
551 port->mapbase = res_mem->start; in altera_uart_probe()
Dmeson_uart.c699 struct resource *res_mem; in meson_uart_probe() local
723 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in meson_uart_probe()
724 if (!res_mem) in meson_uart_probe()
759 port->mapbase = res_mem->start; in meson_uart_probe()
760 port->mapsize = resource_size(res_mem); in meson_uart_probe()
Drda-uart.c705 struct resource *res_mem; in rda_uart_probe() local
717 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in rda_uart_probe()
718 if (!res_mem) { in rda_uart_probe()
747 rda_port->port.mapbase = res_mem->start; in rda_uart_probe()
Dowl-uart.c648 struct resource *res_mem; in owl_uart_probe() local
664 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in owl_uart_probe()
665 if (!res_mem) { in owl_uart_probe()
699 owl_port->port.mapbase = res_mem->start; in owl_uart_probe()
Dma35d1_serial.c687 struct resource *res_mem; in ma35d1serial_probe() local
701 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in ma35d1serial_probe()
702 if (!res_mem) in ma35d1serial_probe()
705 up->port.iobase = res_mem->start; in ma35d1serial_probe()
Dbcm63xx_uart.c810 struct resource *res_mem; in bcm_uart_probe() local
830 port->membase = devm_platform_get_and_ioremap_resource(pdev, 0, &res_mem); in bcm_uart_probe()
833 port->mapbase = res_mem->start; in bcm_uart_probe()
/linux-6.12.1/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.c233 skt->res_mem.start = _PCMCIAMem(skt->nr); in pxa2xx_drv_pcmcia_add_one()
234 skt->res_mem.end = _PCMCIAMem(skt->nr) + PCMCIAMemSp - 1; in pxa2xx_drv_pcmcia_add_one()
235 skt->res_mem.name = "memory"; in pxa2xx_drv_pcmcia_add_one()
236 skt->res_mem.flags = IORESOURCE_MEM; in pxa2xx_drv_pcmcia_add_one()
Dsoc_common.c648 res = &skt->res_mem; in soc_common_pcmcia_set_mem_map()
788 release_resource(&skt->res_mem); in soc_pcmcia_remove_one()
811 ret = request_resource(&skt->res_skt, &skt->res_mem); in soc_pcmcia_add_one()
880 release_resource(&skt->res_mem); in soc_pcmcia_add_one()
/linux-6.12.1/drivers/usb/host/
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()
Dohci-st.c130 struct resource *res_mem; in st_ohci_platform_probe() local
196 hcd->regs = devm_platform_get_and_ioremap_resource(dev, 0, &res_mem); in st_ohci_platform_probe()
201 hcd->rsrc_start = res_mem->start; in st_ohci_platform_probe()
202 hcd->rsrc_len = resource_size(res_mem); in st_ohci_platform_probe()
Dehci-st.c150 struct resource *res_mem; in st_ehci_platform_probe() local
220 hcd->regs = devm_platform_get_and_ioremap_resource(dev, 0, &res_mem); in st_ehci_platform_probe()
225 hcd->rsrc_start = res_mem->start; in st_ehci_platform_probe()
226 hcd->rsrc_len = resource_size(res_mem); in st_ehci_platform_probe()
Dohci-platform.c92 struct resource *res_mem; in ohci_platform_probe() local
203 hcd->regs = devm_platform_get_and_ioremap_resource(dev, 0, &res_mem); in ohci_platform_probe()
208 hcd->rsrc_start = res_mem->start; in ohci_platform_probe()
209 hcd->rsrc_len = resource_size(res_mem); in ohci_platform_probe()
Dehci-platform.c239 struct resource *res_mem; in ehci_platform_probe() local
362 hcd->regs = devm_platform_get_and_ioremap_resource(dev, 0, &res_mem); in ehci_platform_probe()
367 hcd->rsrc_start = res_mem->start; in ehci_platform_probe()
368 hcd->rsrc_len = resource_size(res_mem); in ehci_platform_probe()
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()
/linux-6.12.1/drivers/ata/
Dpata_mpc52xx.c675 struct resource res_mem; in mpc52xx_ata_probe() local
694 rv = of_address_to_resource(op->dev.of_node, 0, &res_mem); in mpc52xx_ata_probe()
700 if (!devm_request_mem_region(&op->dev, res_mem.start, in mpc52xx_ata_probe()
706 ata_regs = devm_ioremap(&op->dev, res_mem.start, sizeof(*ata_regs)); in mpc52xx_ata_probe()
748 priv->ata_regs_pa = res_mem.start; in mpc52xx_ata_probe()
786 rv = mpc52xx_ata_init_one(&op->dev, priv, res_mem.start, in mpc52xx_ata_probe()
/linux-6.12.1/include/pcmcia/
Dsoc_common.h50 struct resource res_mem; member
/linux-6.12.1/drivers/spi/
Dspi-npcm-fiu.c250 struct resource *res_mem; member
612 if (!fiu->res_mem) { in npcm_fiu_dirmap_create()
626 devm_ioremap(fiu->dev, (fiu->res_mem->start + in npcm_fiu_dirmap_create()
739 fiu->res_mem = platform_get_resource_byname(pdev, IORESOURCE_MEM, in npcm_fiu_probe()
/linux-6.12.1/drivers/ufs/host/
Dufs-qcom.c1592 struct resource *res_mem, *res_mcq; in ufs_qcom_mcq_config_resource() local
1608 res_mem = res->resource; in ufs_qcom_mcq_config_resource()
1634 res_mcq->start = res_mem->start + in ufs_qcom_mcq_config_resource()
1637 res_mcq->flags = res_mem->flags; in ufs_qcom_mcq_config_resource()
/linux-6.12.1/drivers/remoteproc/
Dxlnx_r5_remoteproc.c778 struct resource res_mem; in zynqmp_r5_get_rsc_table_va() local
795 ret = of_address_to_resource(np, 0, &res_mem); in zynqmp_r5_get_rsc_table_va()
802 rsc_data_va = (struct rsc_tbl_data *)ioremap_wc(res_mem.start, in zynqmp_r5_get_rsc_table_va()
/linux-6.12.1/drivers/net/ethernet/broadcom/
Dbcm63xx_enet.c2649 struct resource *res_mem; in bcm_enetsw_probe() local
2655 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in bcm_enetsw_probe()
2658 if (!res_mem || irq_rx < 0) in bcm_enetsw_probe()
2691 priv->base = devm_ioremap_resource(&pdev->dev, res_mem); in bcm_enetsw_probe()