Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/net/mdio/
H A 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()
/openbmc/linux/drivers/net/can/sja1000/
H A 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()
/openbmc/linux/drivers/tty/serial/
H A Dpic32_uart.c682 struct resource *res_mem; in pic32_uart_request_port() local
684 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in pic32_uart_request_port()
685 if (unlikely(!res_mem)) in pic32_uart_request_port()
693 resource_size(res_mem)); in pic32_uart_request_port()
707 struct resource *res_mem; in pic32_uart_release_port() local
710 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in pic32_uart_release_port()
711 if (unlikely(!res_mem)) in pic32_uart_release_port()
713 res_size = resource_size(res_mem); in pic32_uart_release_port()
870 struct resource *res_mem; in pic32_uart_probe() local
879 if (!res_mem) in pic32_uart_probe()
[all …]
H A 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()
H A 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()
H A Dmeson_uart.c707 struct resource *res_mem; in meson_uart_probe() local
731 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in meson_uart_probe()
732 if (!res_mem) in meson_uart_probe()
767 port->mapbase = res_mem->start; in meson_uart_probe()
768 port->mapsize = resource_size(res_mem); in meson_uart_probe()
H A Dowl-uart.c654 struct resource *res_mem; in owl_uart_probe() local
670 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in owl_uart_probe()
671 if (!res_mem) { in owl_uart_probe()
705 owl_port->port.mapbase = res_mem->start; in owl_uart_probe()
H A Drda-uart.c718 struct resource *res_mem; in rda_uart_probe() local
730 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in rda_uart_probe()
731 if (!res_mem) { in rda_uart_probe()
760 rda_port->port.mapbase = res_mem->start; in rda_uart_probe()
H A 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()
/openbmc/linux/drivers/pcmcia/
H A 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()
H A 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()
H A 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()
/openbmc/linux/drivers/usb/host/
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
/openbmc/u-boot/arch/x86/lib/fsp/
H A Dfsp_support.c224 struct hob_mem_alloc *res_mem; in fsp_get_usable_lowmem_top() local
251 res_mem = (struct hob_mem_alloc *)hdr; in fsp_get_usable_lowmem_top()
253 mem_base = res_mem->mem_base; in fsp_get_usable_lowmem_top()
254 if (res_mem->mem_base < mem_base) in fsp_get_usable_lowmem_top()
255 mem_base = res_mem->mem_base; in fsp_get_usable_lowmem_top()
/openbmc/linux/drivers/spi/
H A Dspi-bcmbca-hsspi.c436 struct resource *res_mem; in bcmbca_hsspi_probe() local
448 res_mem = platform_get_resource_byname(pdev, IORESOURCE_MEM, "hsspi"); in bcmbca_hsspi_probe()
449 if (!res_mem) in bcmbca_hsspi_probe()
451 regs = devm_ioremap_resource(dev, res_mem); in bcmbca_hsspi_probe()
455 res_mem = platform_get_resource_byname(pdev, IORESOURCE_MEM, "spim-ctrl"); in bcmbca_hsspi_probe()
456 if (!res_mem) in bcmbca_hsspi_probe()
458 spim_ctrl = devm_ioremap_resource(dev, res_mem); in bcmbca_hsspi_probe()
H A 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()
/openbmc/u-boot/drivers/spi/
H A Dmtk_qspi.c302 struct resource res_reg, res_mem; in mtk_qspi_ofdata_to_platdata() local
312 ret = dev_read_resource_byname(bus, "mem_base", &res_mem); in mtk_qspi_ofdata_to_platdata()
318 plat->mem_base = res_mem.start; in mtk_qspi_ofdata_to_platdata()
H A Dstm32_qspi.c423 struct resource res_regs, res_mem; in stm32_qspi_ofdata_to_platdata() local
432 ret = dev_read_resource_byname(bus, "qspi_mm", &res_mem); in stm32_qspi_ofdata_to_platdata()
442 plat->memory_map = res_mem.start; in stm32_qspi_ofdata_to_platdata()
H A Dfsl_qspi.c989 struct fdt_resource res_regs, res_mem; in fsl_qspi_ofdata_to_platdata() local
1005 "QuadSPI-memory", &res_mem); in fsl_qspi_ofdata_to_platdata()
1026 plat->amba_base = res_mem.start; in fsl_qspi_ofdata_to_platdata()
1027 plat->amba_total_size = res_mem.end - res_mem.start + 1; in fsl_qspi_ofdata_to_platdata()
/openbmc/linux/include/pcmcia/
H A Dsoc_common.h50 struct resource res_mem; member
/openbmc/linux/drivers/ata/
H A Dpata_mpc52xx.c676 struct resource res_mem; in mpc52xx_ata_probe() local
695 rv = of_address_to_resource(op->dev.of_node, 0, &res_mem); in mpc52xx_ata_probe()
701 if (!devm_request_mem_region(&op->dev, res_mem.start, in mpc52xx_ata_probe()
707 ata_regs = devm_ioremap(&op->dev, res_mem.start, sizeof(*ata_regs)); in mpc52xx_ata_probe()
749 priv->ata_regs_pa = res_mem.start; in mpc52xx_ata_probe()
787 rv = mpc52xx_ata_init_one(&op->dev, priv, res_mem.start, in mpc52xx_ata_probe()

12