Home
last modified time | relevance | path

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

/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()
/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
Dpcie-rockchip-ep.c563 windows[i].phys_base = rockchip->mem_res->start + (SZ_1M * i); in rockchip_pcie_ep_probe()
/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()
/drivers/spi/
Dspi-ingenic.c64 struct resource *mem_res; member
128 .src_addr = priv->mem_res->start + REG_SSIDR, in spi_ingenic_prepare_dma()
129 .dst_addr = priv->mem_res->start + REG_SSIDR, in spi_ingenic_prepare_dma()
410 base = devm_platform_get_and_ioremap_resource(pdev, 0, &priv->mem_res); in spi_ingenic_probe()
Dspi-s3c64xx.c1181 struct resource *mem_res; in s3c64xx_spi_probe() local
1255 sdd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &mem_res); in s3c64xx_spi_probe()
1258 sdd->sfr_start = mem_res->start; in s3c64xx_spi_probe()
1317 mem_res, sdd->fifo_depth); in s3c64xx_spi_probe()
/drivers/vlynq/
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()
/drivers/ata/
Dpata_ep93xx.c926 struct resource *mem_res; in ep93xx_pata_probe() local
941 ide_base = devm_platform_get_and_ioremap_resource(pdev, 0, &mem_res); in ep93xx_pata_probe()
955 drv_data->udma_in_phys = mem_res->start + IDEUDMADATAIN; in ep93xx_pata_probe()
956 drv_data->udma_out_phys = mem_res->start + IDEUDMADATAOUT; in ep93xx_pata_probe()
/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()
/drivers/tty/serial/
Dar933x_uart.c711 struct resource *mem_res; in ar933x_uart_probe() local
752 port->membase = devm_platform_get_and_ioremap_resource(pdev, 0, &mem_res); in ar933x_uart_probe()
766 port->mapbase = mem_res->start; in ar933x_uart_probe()
/drivers/mmc/host/
Djz4740_mmc.c158 struct resource *mem_res; member
341 conf.dst_addr = host->mem_res->start + JZ_REG_MMC_TXFIFO; in jz4740_mmc_start_dma_transfer()
344 conf.src_addr = host->mem_res->start + JZ_REG_MMC_RXFIFO; in jz4740_mmc_start_dma_transfer()
1082 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
409 .dst_addr = host->mem_res->start + DAVINCI_MMCDXR, in mmc_davinci_send_dma_request()
431 .src_addr = host->mem_res->start + DAVINCI_MMCDRR, in mmc_davinci_send_dma_request()
1218 host->mem_res = mem; in davinci_mmcsd_probe()
/drivers/pci/controller/cadence/
Dpcie-cadence-ep.c665 pcie->mem_res = res; in cdns_pcie_ep_setup()
714 ret = pci_epc_mem_init(epc, pcie->mem_res->start, in cdns_pcie_ep_setup()
715 resource_size(pcie->mem_res), PAGE_SIZE); in cdns_pcie_ep_setup()
Dpcie-cadence.h299 struct resource *mem_res; member
/drivers/ufs/host/
Dufs-qcom.c1744 struct ufshcd_res_info *mem_res, *sqdao_res; in ufs_qcom_op_runtime_config() local
1748 mem_res = &hba->res[RES_UFS]; in ufs_qcom_op_runtime_config()
1751 if (!mem_res->base || !sqdao_res->base) in ufs_qcom_op_runtime_config()
1757 mem_res->resource->start + 0x40 * i; in ufs_qcom_op_runtime_config()
/drivers/net/wireless/ath/ath11k/
Dahb.c894 struct resource *mem_res; in ath11k_ahb_setup_resources() local
900 mem = devm_platform_get_and_ioremap_resource(pdev, 0, &mem_res); in ath11k_ahb_setup_resources()
907 ab->mem_len = resource_size(mem_res); in ath11k_ahb_setup_resources()