Home
last modified time | relevance | path

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

/linux/drivers/tty/serial/8250/
H A D8250_men_mcb.c84 static int read_uarts_available_from_register(struct resource *mem_res, in read_uarts_available_from_register() argument
90 if (!request_mem_region(mem_res->start + MEN_Z025_REGISTER_OFFSET, in read_uarts_available_from_register()
95 mem = ioremap(mem_res->start + MEN_Z025_REGISTER_OFFSET, in read_uarts_available_from_register()
98 release_mem_region(mem_res->start + MEN_Z025_REGISTER_OFFSET, in read_uarts_available_from_register()
107 release_mem_region(mem_res->start + MEN_Z025_REGISTER_OFFSET, in read_uarts_available_from_register()
116 struct resource *mem_res, in read_serial_data() argument
125 res = read_uarts_available_from_register(mem_res, &uarts_available); in read_serial_data()
165 struct resource *mem_res, in init_serial_data() argument
175 return read_serial_data(mdev, mem_res, serial_data); in init_serial_data()
/linux/sound/soc/samsung/
H A 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 …]
H A 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/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.c146 struct resource *mem_res = NULL; in init_resources() local
155 mem_res_sz = num_resources * sizeof(*mem_res); in init_resources()
156 mem_res = memblock_alloc_or_panic(mem_res_sz, SMP_CACHE_BYTES); in init_resources()
177 res = &mem_res[res_idx--]; in init_resources()
201 res = &mem_res[res_idx--]; in init_resources()
221 standard_resources = &mem_res[res_idx + 1]; in init_resources()
225 memblock_free(mem_res, (res_idx + 1) * sizeof(*mem_res)); in init_resources()
231 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/arch/arm64/kernel/
H A Dsetup.c67 static struct resource mem_res[] = { variable
82 #define kernel_code mem_res[0]
83 #define kernel_data mem_res[1]
/linux/drivers/spi/
H A Dspi-ingenic.c65 struct resource *mem_res; member
129 .src_addr = priv->mem_res->start + REG_SSIDR, in spi_ingenic_prepare_dma()
130 .dst_addr = priv->mem_res->start + REG_SSIDR, in spi_ingenic_prepare_dma()
413 base = devm_platform_get_and_ioremap_resource(pdev, 0, &priv->mem_res); in spi_ingenic_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.c919 struct resource *mem_res; in ep93xx_pata_probe() local
928 ide_base = devm_platform_get_and_ioremap_resource(pdev, 0, &mem_res); in ep93xx_pata_probe()
938 drv_data->udma_in_phys = mem_res->start + IDEUDMADATAIN; in ep93xx_pata_probe()
939 drv_data->udma_out_phys = mem_res->start + IDEUDMADATAOUT; in ep93xx_pata_probe()
/linux/drivers/mfd/
H A Dsm501.c70 struct resource *mem_res; member
743 res->parent = sm->mem_res; in sm501_create_mem()
744 res->start = sm->mem_res->start + *offs; in sm501_create_mem()
1354 sm->mem_res = platform_get_resource(dev, IORESOURCE_MEM, 0); in sm501_plat_probe()
1355 if (!sm->io_res || !sm->mem_res) { in sm501_plat_probe()
1569 sm->mem_res = &dev->resource[0]; in sm501_pci_probe()
/linux/drivers/mmc/host/
H A Djz4740_mmc.c159 struct resource *mem_res; member
342 conf.dst_addr = host->mem_res->start + JZ_REG_MMC_TXFIFO; in jz4740_mmc_start_dma_transfer()
345 conf.src_addr = host->mem_res->start + JZ_REG_MMC_RXFIFO; in jz4740_mmc_start_dma_transfer()
1073 host->base = devm_platform_get_and_ioremap_resource(pdev, 0, &host->mem_res); in jz4740_mmc_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/pci/controller/cadence/
H A Dpcie-cadence-ep.c690 pcie->mem_res = res; in cdns_pcie_ep_setup()
739 ret = pci_epc_mem_init(epc, pcie->mem_res->start, in cdns_pcie_ep_setup()
740 resource_size(pcie->mem_res), PAGE_SIZE); in cdns_pcie_ep_setup()