Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/pci/controller/dwc/
Dpci-exynos.c66 struct exynos_pcie_mem_res *mem_res; member
88 ep->mem_res = devm_kzalloc(dev, sizeof(*ep->mem_res), GFP_KERNEL); in exynos5440_pcie_get_mem_resources()
89 if (!ep->mem_res) in exynos5440_pcie_get_mem_resources()
92 ep->mem_res->elbi_base = devm_platform_ioremap_resource(pdev, 0); in exynos5440_pcie_get_mem_resources()
93 if (IS_ERR(ep->mem_res->elbi_base)) in exynos5440_pcie_get_mem_resources()
94 return PTR_ERR(ep->mem_res->elbi_base); in exynos5440_pcie_get_mem_resources()
176 val = exynos_pcie_readl(ep->mem_res->elbi_base, PCIE_ELBI_SLV_AWMISC); in exynos_pcie_sideband_dbi_w_mode()
181 exynos_pcie_writel(ep->mem_res->elbi_base, val, PCIE_ELBI_SLV_AWMISC); in exynos_pcie_sideband_dbi_w_mode()
188 val = exynos_pcie_readl(ep->mem_res->elbi_base, PCIE_ELBI_SLV_ARMISC); in exynos_pcie_sideband_dbi_r_mode()
193 exynos_pcie_writel(ep->mem_res->elbi_base, val, PCIE_ELBI_SLV_ARMISC); in exynos_pcie_sideband_dbi_r_mode()
[all …]
/kernel/linux/linux-5.10/sound/soc/samsung/
Dspdif.c363 struct resource *mem_res; in spdif_probe() local
372 mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in spdif_probe()
373 if (!mem_res) { in spdif_probe()
410 if (!request_mem_region(mem_res->start, in spdif_probe()
411 resource_size(mem_res), "samsung-spdif")) { in spdif_probe()
417 spdif->regs = ioremap(mem_res->start, 0x100); in spdif_probe()
425 spdif_stereo_out.addr = mem_res->start + DATA_OUTBUF; in spdif_probe()
453 release_mem_region(mem_res->start, resource_size(mem_res)); in spdif_probe()
465 struct resource *mem_res; in spdif_remove() local
469 mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in spdif_remove()
[all …]
Dpcm.c489 struct resource *mem_res; in s3c_pcm_dev_probe() local
515 mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in s3c_pcm_dev_probe()
516 pcm->regs = devm_ioremap_resource(&pdev->dev, 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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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.c162 struct resource mem_res; member
436 apc->mem_res.name = "AR2315 PCI mem space"; in ar2315_pci_probe()
437 apc->mem_res.parent = res; in ar2315_pci_probe()
438 apc->mem_res.start = res->start; in ar2315_pci_probe()
439 apc->mem_res.end = res->end; in ar2315_pci_probe()
440 apc->mem_res.flags = IORESOURCE_MEM; in ar2315_pci_probe()
489 apc->pci_ctrl.mem_resource = &apc->mem_res, in ar2315_pci_probe()
Dpci-rt3883.c66 struct resource mem_res; member
496 rpc->pci_controller.mem_resource = &rpc->mem_res; in rt3883_pci_probe()
502 rt3883_pci_w32(rpc, rpc->mem_res.start, RT3883_PCI_REG_MEMBASE); in rt3883_pci_probe()
/kernel/linux/linux-5.10/drivers/usb/isp1760/
Disp1760-if.c192 struct resource *mem_res; in isp1760_plat_probe() local
196 mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in isp1760_plat_probe()
246 ret = isp1760_register(mem_res, irq_res->start, irqflags, &pdev->dev, in isp1760_plat_probe()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/arch/arm64/kernel/
Dsetup.c62 static struct resource mem_res[] = { variable
77 #define kernel_code mem_res[0]
78 #define kernel_data mem_res[1]
/kernel/linux/linux-5.10/drivers/vlynq/
Dvlynq.c658 struct resource *regs_res, *mem_res, *irq_res; in vlynq_probe() local
665 mem_res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "mem"); in vlynq_probe()
666 if (!mem_res) in vlynq_probe()
689 dev->mem_start = mem_res->start; in vlynq_probe()
690 dev->mem_end = mem_res->end; in vlynq_probe()
/kernel/linux/linux-5.10/drivers/ata/
Dpata_ep93xx.c920 struct resource *mem_res; in ep93xx_pata_probe() local
935 mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in ep93xx_pata_probe()
936 ide_base = devm_ioremap_resource(&pdev->dev, mem_res); in ep93xx_pata_probe()
950 drv_data->udma_in_phys = mem_res->start + IDEUDMADATAIN; in ep93xx_pata_probe()
951 drv_data->udma_out_phys = mem_res->start + IDEUDMADATAOUT; in ep93xx_pata_probe()
/kernel/linux/linux-5.10/drivers/tty/serial/
Dar933x_uart.c716 struct resource *mem_res; in ar933x_uart_probe() local
759 mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in ar933x_uart_probe()
760 port->membase = devm_ioremap_resource(&pdev->dev, mem_res); in ar933x_uart_probe()
774 port->mapbase = mem_res->start; in ar933x_uart_probe()
/kernel/linux/linux-5.10/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]
/kernel/linux/linux-5.10/drivers/spi/
Dspi-s3c64xx.c1077 struct resource *mem_res; in s3c64xx_spi_probe() local
1095 mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in s3c64xx_spi_probe()
1096 if (mem_res == NULL) { in s3c64xx_spi_probe()
1121 sdd->sfr_start = mem_res->start; in s3c64xx_spi_probe()
1157 sdd->regs = devm_ioremap_resource(&pdev->dev, mem_res); in s3c64xx_spi_probe()
1262 mem_res, (FIFO_LVL_MASK(sdd) >> 1) + 1); in s3c64xx_spi_probe()
/kernel/linux/linux-5.10/drivers/mmc/host/
Djz4740_mmc.c158 struct resource *mem_res; member
324 conf.dst_addr = host->mem_res->start + JZ_REG_MMC_TXFIFO; in jz4740_mmc_start_dma_transfer()
327 conf.src_addr = host->mem_res->start + JZ_REG_MMC_RXFIFO; in jz4740_mmc_start_dma_transfer()
1033 host->mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in jz4740_mmc_probe()
1034 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()
1220 host->mem_res = mem; in davinci_mmcsd_probe()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/
Dahb.c640 struct resource *mem_res; in ath11k_ahb_probe() local
650 mem = devm_platform_get_and_ioremap_resource(pdev, 0, &mem_res); in ath11k_ahb_probe()
674 ab->mem_len = resource_size(mem_res); in ath11k_ahb_probe()
/kernel/linux/linux-5.10/drivers/pci/controller/cadence/
Dpcie-cadence-ep.c530 pcie->mem_res = res; in cdns_pcie_ep_setup()
563 ret = pci_epc_mem_init(epc, pcie->mem_res->start, in cdns_pcie_ep_setup()
564 resource_size(pcie->mem_res), PAGE_SIZE); in cdns_pcie_ep_setup()
/kernel/linux/linux-5.10/drivers/net/ethernet/xscale/
Dixp4xx_eth.c168 struct resource *mem_res; member
1448 port->mem_res = request_mem_region(regs_phys, REGS_SIZE, ndev->name); in ixp4xx_eth_probe()
1449 if (!port->mem_res) { in ixp4xx_eth_probe()
1489 release_resource(port->mem_res); in ixp4xx_eth_probe()
1506 release_resource(port->mem_res); in ixp4xx_eth_remove()
/kernel/linux/linux-5.10/drivers/media/platform/exynos4-is/
Dmipi-csis.c766 struct resource *mem_res; in s5pcsis_probe() local
800 mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in s5pcsis_probe()
801 state->regs = devm_ioremap_resource(dev, mem_res); in s5pcsis_probe()

12