Home
last modified time | relevance | path

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

/linux/sound/soc/samsung/
H A Dspdif.c355 struct resource *mem_res;
364 mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in spdif_probe() local
365 if (!mem_res) { in spdif_probe()
401 spdif->regs = devm_ioremap_resource(&pdev->dev, mem_res); in spdif_probe()
408 spdif_stereo_out.addr = mem_res->start + DATA_OUTBUF; in spdif_probe()
466 struct resource *mem_res; spdif_remove() local
H A Dpcm.c471 struct resource *mem_res;
497 pcm->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &mem_res); in s3c_pcm_dev_probe()
523 s3c_pcm_stereo_in[pdev->id].addr = mem_res->start + S3C_PCM_RXFIFO; in s3c_pcm_dev_probe()
524 s3c_pcm_stereo_out[pdev->id].addr = mem_res->start + S3C_PCM_TXFIFO; in s3c_pcm_dev_probe()
490 struct resource *mem_res; s3c_pcm_dev_probe() local
/linux/drivers/pci/controller/
H 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
297 mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 1); in rcar_pci_probe()
298 if (!mem_res || !mem_res->start) in rcar_pci_probe()
301 if (mem_res->start & 0xFFFF) in rcar_pci_probe()
304 priv->mem_res = *mem_res; in rcar_pci_probe()
H A Dpcie-rockchip-ep.c776 windows[i].phys_base = rockchip->mem_res->start + (SZ_1M * i); in rockchip_pcie_ep_init_ob_mem()
/linux/arch/riscv/kernel/
H A Dsetup.c139 struct resource *mem_res = NULL; in init_resources() local
148 mem_res_sz = num_resources * sizeof(*mem_res); in init_resources()
149 mem_res = memblock_alloc_or_panic(mem_res_sz, SMP_CACHE_BYTES); in init_resources()
170 res = &mem_res[res_idx--]; in init_resources()
194 res = &mem_res[res_idx--]; in init_resources()
214 standard_resources = &mem_res[res_idx + 1]; in init_resources()
218 memblock_free(mem_res, (res_idx + 1) * sizeof(*mem_res)); in init_resources()
224 memblock_free(mem_res, mem_res_sz); in init_resources()
/linux/arch/mips/pci/
H 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()
H 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()
H 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()
H A Dpci-rt3883.c67 struct resource mem_res; member
487 rpc->pci_controller.mem_resource = &rpc->mem_res; in rt3883_pci_probe()
493 rt3883_pci_w32(rpc, rpc->mem_res.start, RT3883_PCI_REG_MEMBASE); in rt3883_pci_probe()
/linux/drivers/spi/
H A Dspi-atcspi200.c472 struct resource **mem_res) in atcspi_init_resources() argument
485 base = devm_platform_get_and_ioremap_resource(pdev, 0, mem_res); in atcspi_init_resources()
532 struct resource *mem_res) in atcspi_init_controller() argument
535 spi->dma_addr = (dma_addr_t)(mem_res->start + ATCSPI_DATA); in atcspi_init_controller()
549 struct resource *mem_res; in atcspi_probe() local
565 ret = atcspi_init_resources(pdev, spi, &mem_res); in atcspi_probe()
573 atcspi_init_controller(pdev, spi, host, mem_res); in atcspi_probe()
/linux/arch/arm/kernel/
H A Dsetup.c163 static struct resource mem_res[] = { variable
184 #define video_ram mem_res[0]
185 #define kernel_code mem_res[1]
186 #define kernel_data mem_res[2]
/linux/drivers/ata/
H A Dpata_ep93xx.c935 struct resource *mem_res; in ep93xx_pata_probe() local
944 ide_base = devm_platform_get_and_ioremap_resource(pdev, 0, &mem_res); in ep93xx_pata_probe()
954 drv_data->udma_in_phys = mem_res->start + IDEUDMADATAIN; in ep93xx_pata_probe()
955 drv_data->udma_out_phys = mem_res->start + IDEUDMADATAOUT; in ep93xx_pata_probe()
/linux/drivers/tty/serial/
H A Dar933x_uart.c765 struct resource *mem_res; in ar933x_uart_probe() local
806 port->membase = devm_platform_get_and_ioremap_resource(pdev, 0, &mem_res); in ar933x_uart_probe()
820 port->mapbase = mem_res->start; in ar933x_uart_probe()
/linux/drivers/net/wireless/ath/ath11k/
H A Dahb.c929 struct resource *mem_res; in ath11k_ahb_setup_resources() local
935 mem = devm_platform_get_and_ioremap_resource(pdev, 0, &mem_res); in ath11k_ahb_setup_resources()
942 ab->mem_len = resource_size(mem_res); in ath11k_ahb_setup_resources()
/linux/drivers/net/wireless/ath/ath12k/
H A Dahb.c1040 struct resource *mem_res; in ath12k_ahb_resource_init() local
1043 ab->mem = devm_platform_get_and_ioremap_resource(pdev, 0, &mem_res); in ath12k_ahb_resource_init()
1049 ab->mem_len = resource_size(mem_res); in ath12k_ahb_resource_init()