Home
last modified time | relevance | path

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

12

/linux/sound/soc/samsung/
A 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
470 if (mem_res) in spdif_remove()
[all …]
A Dpcm.c489 struct resource *mem_res; in s3c_pcm_dev_probe() local
515 pcm->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &mem_res); in s3c_pcm_dev_probe()
541 s3c_pcm_stereo_in[pdev->id].addr = mem_res->start + S3C_PCM_RXFIFO; in s3c_pcm_dev_probe()
542 s3c_pcm_stereo_out[pdev->id].addr = mem_res->start + S3C_PCM_TXFIFO; in s3c_pcm_dev_probe()
/linux/arch/riscv/kernel/
A Dsetup.c148 struct resource *mem_res = NULL; in init_resources() local
157 mem_res_sz = num_resources * sizeof(*mem_res); in init_resources()
158 mem_res = memblock_alloc(mem_res_sz, SMP_CACHE_BYTES); in init_resources()
159 if (!mem_res) in init_resources()
189 res = &mem_res[res_idx--]; in init_resources()
213 res = &mem_res[res_idx--]; in init_resources()
233 memblock_free(mem_res, (res_idx + 1) * sizeof(*mem_res)); in init_resources()
239 memblock_free(mem_res, mem_res_sz); in init_resources()
/linux/drivers/pci/controller/
A 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()
A Dpcie-rockchip-ep.c83 cpu_addr -= rockchip->mem_res->start; in rockchip_pcie_prog_ep_ob_atu()
618 err = pci_epc_mem_init(epc, rockchip->mem_res->start, in rockchip_pcie_ep_probe()
619 resource_size(rockchip->mem_res), PAGE_SIZE); in rockchip_pcie_ep_probe()
A Dpcie-rockchip.c41 rockchip->mem_res = in rockchip_pcie_parse_dt()
44 if (!rockchip->mem_res) in rockchip_pcie_parse_dt()
A Dpcie-rockchip.h302 struct resource *mem_res; member
/linux/arch/mips/pci/
A 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()
A 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()
A 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()
A Dpci-rt3883.c67 struct resource mem_res; member
490 rpc->pci_controller.mem_resource = &rpc->mem_res; in rt3883_pci_probe()
496 rt3883_pci_w32(rpc, rpc->mem_res.start, RT3883_PCI_REG_MEMBASE); in rt3883_pci_probe()
/linux/drivers/usb/isp1760/
A Disp1760-if.c193 struct resource *mem_res; in isp1760_plat_probe() local
197 mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in isp1760_plat_probe()
242 ret = isp1760_register(mem_res, irq_res->start, irqflags, &pdev->dev, in isp1760_plat_probe()
/linux/drivers/mfd/
A 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()
A 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/arch/arm64/kernel/
A Dsetup.c63 static struct resource mem_res[] = { variable
78 #define kernel_code mem_res[0]
79 #define kernel_data mem_res[1]
/linux/drivers/spi/
A Dspi-ingenic.c60 struct resource *mem_res; member
124 .src_addr = priv->mem_res->start + REG_SSIDR, in spi_ingenic_prepare_dma()
125 .dst_addr = priv->mem_res->start + REG_SSIDR, in spi_ingenic_prepare_dma()
406 base = devm_platform_get_and_ioremap_resource(pdev, 0, &priv->mem_res); in spi_ingenic_probe()
A Dspi-s3c64xx.c1064 struct resource *mem_res; in s3c64xx_spi_probe() local
1082 mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in s3c64xx_spi_probe()
1083 if (mem_res == NULL) { in s3c64xx_spi_probe()
1108 sdd->sfr_start = mem_res->start; in s3c64xx_spi_probe()
1143 sdd->regs = devm_ioremap_resource(&pdev->dev, mem_res); in s3c64xx_spi_probe()
1248 mem_res, (FIFO_LVL_MASK(sdd) >> 1) + 1); in s3c64xx_spi_probe()
/linux/drivers/vlynq/
A 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/drivers/ata/
A 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()
/linux/drivers/tty/serial/
A Dar933x_uart.c709 struct resource *mem_res; in ar933x_uart_probe() local
752 mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in ar933x_uart_probe()
753 port->membase = devm_ioremap_resource(&pdev->dev, mem_res); in ar933x_uart_probe()
767 port->mapbase = mem_res->start; in ar933x_uart_probe()
/linux/drivers/mmc/host/
A Djz4740_mmc.c157 struct resource *mem_res; member
303 conf.dst_addr = host->mem_res->start + JZ_REG_MMC_TXFIFO; in jz4740_mmc_start_dma_transfer()
306 conf.src_addr = host->mem_res->start + JZ_REG_MMC_RXFIFO; in jz4740_mmc_start_dma_transfer()
1011 host->mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in jz4740_mmc_probe()
1012 host->base = devm_ioremap_resource(&pdev->dev, host->mem_res); in jz4740_mmc_probe()
A 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()
/linux/arch/arm/kernel/
A 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/drivers/net/wireless/ath/ath11k/
A Dahb.c657 struct resource *mem_res; in ath11k_ahb_probe() local
667 mem = devm_platform_get_and_ioremap_resource(pdev, 0, &mem_res); in ath11k_ahb_probe()
691 ab->mem_len = resource_size(mem_res); in ath11k_ahb_probe()
/linux/drivers/pci/controller/cadence/
A Dpcie-cadence-ep.c650 pcie->mem_res = res; in cdns_pcie_ep_setup()
699 ret = pci_epc_mem_init(epc, pcie->mem_res->start, in cdns_pcie_ep_setup()
700 resource_size(pcie->mem_res), PAGE_SIZE); in cdns_pcie_ep_setup()

Completed in 59 milliseconds

12