Home
last modified time | relevance | path

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

12

/linux-6.1.9/arch/riscv/kernel/
Dsetup.c150 struct resource *mem_res = NULL; in init_resources() local
159 mem_res_sz = num_resources * sizeof(*mem_res); in init_resources()
160 mem_res = memblock_alloc(mem_res_sz, SMP_CACHE_BYTES); in init_resources()
161 if (!mem_res) in init_resources()
191 res = &mem_res[res_idx--]; in init_resources()
215 res = &mem_res[res_idx--]; in init_resources()
235 memblock_free(mem_res, (res_idx + 1) * sizeof(*mem_res)); in init_resources()
241 memblock_free(mem_res, mem_res_sz); in init_resources()
/linux-6.1.9/sound/soc/samsung/
Dspdif.c364 struct resource *mem_res; in spdif_probe() local
373 mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in spdif_probe()
374 if (!mem_res) { in spdif_probe()
411 if (!request_mem_region(mem_res->start, in spdif_probe()
412 resource_size(mem_res), "samsung-spdif")) { in spdif_probe()
418 spdif->regs = ioremap(mem_res->start, 0x100); in spdif_probe()
426 spdif_stereo_out.addr = mem_res->start + DATA_OUTBUF; in spdif_probe()
454 release_mem_region(mem_res->start, resource_size(mem_res)); in spdif_probe()
466 struct resource *mem_res; in spdif_remove() local
470 mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in spdif_remove()
[all …]
Dpcm.c490 struct resource *mem_res; in s3c_pcm_dev_probe() local
516 pcm->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &mem_res); in s3c_pcm_dev_probe()
542 s3c_pcm_stereo_in[pdev->id].addr = mem_res->start + S3C_PCM_RXFIFO; in s3c_pcm_dev_probe()
543 s3c_pcm_stereo_out[pdev->id].addr = mem_res->start + S3C_PCM_TXFIFO; in s3c_pcm_dev_probe()
/linux-6.1.9/drivers/pci/controller/
Dpci-rcar-gen2.c99 struct resource mem_res; member
247 val = priv->mem_res.start | RCAR_AHBPCI_WIN_CTR_MEM; in rcar_pci_setup()
281 struct resource *cfg_res, *mem_res; in rcar_pci_probe() local
298 mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 1); in rcar_pci_probe()
299 if (!mem_res || !mem_res->start) in rcar_pci_probe()
302 if (mem_res->start & 0xFFFF) in rcar_pci_probe()
305 priv->mem_res = *mem_res; in rcar_pci_probe()
Dpcie-rockchip-ep.c83 cpu_addr -= rockchip->mem_res->start; in rockchip_pcie_prog_ep_ob_atu()
617 err = pci_epc_mem_init(epc, rockchip->mem_res->start, in rockchip_pcie_ep_probe()
618 resource_size(rockchip->mem_res), PAGE_SIZE); in rockchip_pcie_ep_probe()
Dpcie-rockchip.c41 rockchip->mem_res = in rockchip_pcie_parse_dt()
44 if (!rockchip->mem_res) in rockchip_pcie_parse_dt()
Dpcie-rockchip.h301 struct resource *mem_res; member
/linux-6.1.9/arch/mips/pci/
Dpci-ar71xx.c54 struct resource mem_res; member
362 apc->mem_res.parent = res; in ar71xx_pci_probe()
363 apc->mem_res.name = "PCI memory space"; in ar71xx_pci_probe()
364 apc->mem_res.start = res->start; in ar71xx_pci_probe()
365 apc->mem_res.end = res->end; in ar71xx_pci_probe()
366 apc->mem_res.flags = IORESOURCE_MEM; in ar71xx_pci_probe()
381 apc->pci_ctrl.mem_resource = &apc->mem_res; in ar71xx_pci_probe()
Dpci-ar724x.c53 struct resource mem_res; member
405 apc->mem_res.parent = res; in ar724x_pci_probe()
406 apc->mem_res.name = "PCI memory space"; in ar724x_pci_probe()
407 apc->mem_res.start = res->start; in ar724x_pci_probe()
408 apc->mem_res.end = res->end; in ar724x_pci_probe()
409 apc->mem_res.flags = IORESOURCE_MEM; in ar724x_pci_probe()
413 apc->pci_controller.mem_resource = &apc->mem_res; in ar724x_pci_probe()
Dpci-ar2315.c163 struct resource mem_res; member
435 apc->mem_res.name = "AR2315 PCI mem space"; in ar2315_pci_probe()
436 apc->mem_res.parent = res; in ar2315_pci_probe()
437 apc->mem_res.start = res->start; in ar2315_pci_probe()
438 apc->mem_res.end = res->end; in ar2315_pci_probe()
439 apc->mem_res.flags = IORESOURCE_MEM; in ar2315_pci_probe()
488 apc->pci_ctrl.mem_resource = &apc->mem_res; in ar2315_pci_probe()
Dpci-rt3883.c67 struct resource mem_res; member
488 rpc->pci_controller.mem_resource = &rpc->mem_res; in rt3883_pci_probe()
494 rt3883_pci_w32(rpc, rpc->mem_res.start, RT3883_PCI_REG_MEMBASE); in rt3883_pci_probe()
/linux-6.1.9/drivers/usb/isp1760/
Disp1760-if.c194 struct resource *mem_res; in isp1760_plat_probe() local
198 mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in isp1760_plat_probe()
241 ret = isp1760_register(mem_res, irq, irqflags, &pdev->dev, devflags); in isp1760_plat_probe()
/linux-6.1.9/drivers/mfd/
Dssbi.c265 struct resource *mem_res; in ssbi_probe() local
273 mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in ssbi_probe()
274 ssbi->base = devm_ioremap_resource(&pdev->dev, mem_res); in ssbi_probe()
Dsm501.c70 struct resource *mem_res; member
786 res->parent = sm->mem_res; in sm501_create_mem()
787 res->start = sm->mem_res->start + *offs; in sm501_create_mem()
1394 sm->mem_res = platform_get_resource(dev, IORESOURCE_MEM, 0); in sm501_plat_probe()
1395 if (!sm->io_res || !sm->mem_res) { in sm501_plat_probe()
1615 sm->mem_res = &dev->resource[0]; in sm501_pci_probe()
/linux-6.1.9/arch/arm64/kernel/
Dsetup.c63 static struct resource mem_res[] = { variable
78 #define kernel_code mem_res[0]
79 #define kernel_data mem_res[1]
/linux-6.1.9/drivers/spi/
Dspi-ingenic.c64 struct resource *mem_res; member
128 .src_addr = priv->mem_res->start + REG_SSIDR, in spi_ingenic_prepare_dma()
129 .dst_addr = priv->mem_res->start + REG_SSIDR, in spi_ingenic_prepare_dma()
410 base = devm_platform_get_and_ioremap_resource(pdev, 0, &priv->mem_res); in spi_ingenic_probe()
Dspi-s3c64xx.c1093 struct resource *mem_res; in s3c64xx_spi_probe() local
1111 mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in s3c64xx_spi_probe()
1112 if (mem_res == NULL) { in s3c64xx_spi_probe()
1137 sdd->sfr_start = mem_res->start; in s3c64xx_spi_probe()
1177 sdd->regs = devm_ioremap_resource(&pdev->dev, mem_res); in s3c64xx_spi_probe()
1266 mem_res, (FIFO_LVL_MASK(sdd) >> 1) + 1); in s3c64xx_spi_probe()
/linux-6.1.9/drivers/vlynq/
Dvlynq.c656 struct resource *regs_res, *mem_res, *irq_res; in vlynq_probe() local
663 mem_res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "mem"); in vlynq_probe()
664 if (!mem_res) in vlynq_probe()
687 dev->mem_start = mem_res->start; in vlynq_probe()
688 dev->mem_end = mem_res->end; in vlynq_probe()
/linux-6.1.9/drivers/ata/
Dpata_ep93xx.c919 struct resource *mem_res; in ep93xx_pata_probe() local
934 mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in ep93xx_pata_probe()
935 ide_base = devm_ioremap_resource(&pdev->dev, mem_res); in ep93xx_pata_probe()
949 drv_data->udma_in_phys = mem_res->start + IDEUDMADATAIN; in ep93xx_pata_probe()
950 drv_data->udma_out_phys = mem_res->start + IDEUDMADATAOUT; in ep93xx_pata_probe()
/linux-6.1.9/arch/arm/kernel/
Dsetup.c170 static struct resource mem_res[] = { variable
191 #define video_ram mem_res[0]
192 #define kernel_code mem_res[1]
193 #define kernel_data mem_res[2]
/linux-6.1.9/drivers/tty/serial/
Dar933x_uart.c712 struct resource *mem_res; in ar933x_uart_probe() local
753 mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in ar933x_uart_probe()
754 port->membase = devm_ioremap_resource(&pdev->dev, mem_res); in ar933x_uart_probe()
768 port->mapbase = mem_res->start; in ar933x_uart_probe()
/linux-6.1.9/drivers/mmc/host/
Djz4740_mmc.c157 struct resource *mem_res; member
338 conf.dst_addr = host->mem_res->start + JZ_REG_MMC_TXFIFO; in jz4740_mmc_start_dma_transfer()
341 conf.src_addr = host->mem_res->start + JZ_REG_MMC_RXFIFO; in jz4740_mmc_start_dma_transfer()
1046 host->mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in jz4740_mmc_probe()
1047 host->base = devm_ioremap_resource(&pdev->dev, host->mem_res); in jz4740_mmc_probe()
Ddavinci_mmc.c175 struct resource *mem_res; member
410 .dst_addr = host->mem_res->start + DAVINCI_MMCDXR, in mmc_davinci_send_dma_request()
432 .src_addr = host->mem_res->start + DAVINCI_MMCDRR, in mmc_davinci_send_dma_request()
1219 host->mem_res = mem; in davinci_mmcsd_probe()
/linux-6.1.9/drivers/pci/controller/cadence/
Dpcie-cadence-ep.c665 pcie->mem_res = res; in cdns_pcie_ep_setup()
714 ret = pci_epc_mem_init(epc, pcie->mem_res->start, in cdns_pcie_ep_setup()
715 resource_size(pcie->mem_res), PAGE_SIZE); in cdns_pcie_ep_setup()
/linux-6.1.9/drivers/net/wireless/ath/ath11k/
Dahb.c905 struct resource *mem_res; in ath11k_ahb_setup_resources() local
911 mem = devm_platform_get_and_ioremap_resource(pdev, 0, &mem_res); in ath11k_ahb_setup_resources()
918 ab->mem_len = resource_size(mem_res); in ath11k_ahb_setup_resources()

12