Home
last modified time | relevance | path

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

12

/linux-6.12.1/drivers/tty/serial/8250/
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-6.12.1/arch/riscv/kernel/
Dsetup.c140 struct resource *mem_res = NULL; in init_resources() local
149 mem_res_sz = num_resources * sizeof(*mem_res); in init_resources()
150 mem_res = memblock_alloc(mem_res_sz, SMP_CACHE_BYTES); in init_resources()
151 if (!mem_res) in init_resources()
173 res = &mem_res[res_idx--]; in init_resources()
197 res = &mem_res[res_idx--]; in init_resources()
217 memblock_free(mem_res, (res_idx + 1) * sizeof(*mem_res)); in init_resources()
223 memblock_free(mem_res, mem_res_sz); in init_resources()
/linux-6.12.1/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.12.1/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
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()
Dpcie-rockchip.c43 rockchip->mem_res = in rockchip_pcie_parse_dt()
46 if (!rockchip->mem_res) in rockchip_pcie_parse_dt()
Dpcie-rockchip.h320 struct resource *mem_res; member
/linux-6.12.1/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
486 rpc->pci_controller.mem_resource = &rpc->mem_res; in rt3883_pci_probe()
492 rt3883_pci_w32(rpc, rpc->mem_res.start, RT3883_PCI_REG_MEMBASE); in rt3883_pci_probe()
/linux-6.12.1/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.12.1/arch/arm64/kernel/
Dsetup.c66 static struct resource mem_res[] = { variable
81 #define kernel_code mem_res[0]
82 #define kernel_data mem_res[1]
/linux-6.12.1/drivers/spi/
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()
Dspi-s3c64xx.c1248 struct resource *mem_res; in s3c64xx_spi_probe() local
1321 sdd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &mem_res); in s3c64xx_spi_probe()
1324 sdd->sfr_start = mem_res->start; in s3c64xx_spi_probe()
1383 mem_res, sdd->fifo_depth); in s3c64xx_spi_probe()
/linux-6.12.1/arch/arm/kernel/
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-6.12.1/drivers/ata/
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-6.12.1/drivers/mfd/
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()
1609 sm->mem_res = &dev->resource[0]; in sm501_pci_probe()
/linux-6.12.1/drivers/tty/serial/
Dar933x_uart.c703 struct resource *mem_res; in ar933x_uart_probe() local
744 port->membase = devm_platform_get_and_ioremap_resource(pdev, 0, &mem_res); in ar933x_uart_probe()
758 port->mapbase = mem_res->start; in ar933x_uart_probe()
/linux-6.12.1/drivers/mmc/host/
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()
1077 host->base = devm_platform_get_and_ioremap_resource(pdev, 0, &host->mem_res); in jz4740_mmc_probe()
Ddavinci_mmc.c174 struct resource *mem_res; member
400 .dst_addr = host->mem_res->start + DAVINCI_MMCDXR, in mmc_davinci_send_dma_request()
422 .src_addr = host->mem_res->start + DAVINCI_MMCDRR, in mmc_davinci_send_dma_request()
1214 host->mem_res = mem; in davinci_mmcsd_probe()
/linux-6.12.1/drivers/pci/controller/cadence/
Dpcie-cadence-ep.c674 pcie->mem_res = res; in cdns_pcie_ep_setup()
723 ret = pci_epc_mem_init(epc, pcie->mem_res->start, in cdns_pcie_ep_setup()
724 resource_size(pcie->mem_res), PAGE_SIZE); in cdns_pcie_ep_setup()
Dpcie-cadence.h305 struct resource *mem_res; member
/linux-6.12.1/drivers/ufs/host/
Dufs-qcom.c1666 struct ufshcd_res_info *mem_res, *sqdao_res; in ufs_qcom_op_runtime_config() local
1670 mem_res = &hba->res[RES_UFS]; in ufs_qcom_op_runtime_config()
1673 if (!mem_res->base || !sqdao_res->base) in ufs_qcom_op_runtime_config()
1679 mem_res->resource->start + 0x40 * i; in ufs_qcom_op_runtime_config()
/linux-6.12.1/drivers/net/wireless/ath/ath11k/
Dahb.c900 struct resource *mem_res; in ath11k_ahb_setup_resources() local
906 mem = devm_platform_get_and_ioremap_resource(pdev, 0, &mem_res); in ath11k_ahb_setup_resources()
913 ab->mem_len = resource_size(mem_res); in ath11k_ahb_setup_resources()

12