/linux/drivers/infiniband/hw/irdma/ |
A D | puda.c | 129 rsrc->rx_wqe_idx = ((rsrc->rx_wqe_idx + 1) % rsrc->rq_size); in irdma_puda_replenish_rq() 385 rsrc->receive(rsrc->vsi, buf); in irdma_puda_poll_cmpl() 400 rsrc->xmit_complete(rsrc->vsi, buf); in irdma_puda_poll_cmpl() 659 rsrc->qpmem.size, &rsrc->qpmem.pa, in irdma_puda_qp_create() 697 rsrc->qpmem.va, rsrc->qpmem.pa); in irdma_puda_qp_create() 713 rsrc->qpmem.va, rsrc->qpmem.pa); in irdma_puda_qp_create() 823 rsrc->cqmem.va, rsrc->cqmem.pa); in irdma_puda_cq_create() 842 rsrc->dev->ws_remove(rsrc->qp.vsi, rsrc->qp.user_pri); in irdma_puda_free_qp() 859 rsrc->dev->ws_remove(rsrc->qp.vsi, rsrc->qp.user_pri); in irdma_puda_free_qp() 938 rsrc->qpmem.va, rsrc->qpmem.pa); in irdma_puda_dele_rsrc() [all …]
|
A D | puda.h | 149 struct irdma_puda_buf *irdma_puda_get_bufpool(struct irdma_puda_rsrc *rsrc); 150 void irdma_puda_ret_bufpool(struct irdma_puda_rsrc *rsrc, 152 void irdma_puda_send_buf(struct irdma_puda_rsrc *rsrc,
|
/linux/drivers/mtd/maps/ |
A D | amd76xrom.c | 36 struct resource rsrc; member 44 struct resource rsrc; member 83 if (map->rsrc.parent) { in amd76xrom_cleanup() 84 release_resource(&map->rsrc); in amd76xrom_cleanup() 91 if (window->rsrc.parent) in amd76xrom_cleanup() 92 release_resource(&window->rsrc); in amd76xrom_cleanup() 146 window->rsrc.name = MOD_NAME; in amd76xrom_init_one() 151 window->rsrc.parent = NULL; in amd76xrom_init_one() 237 if (window->rsrc.parent) { in amd76xrom_init_one() 247 if (request_resource(&window->rsrc, &map->rsrc)) { in amd76xrom_init_one() [all …]
|
A D | ck804xrom.c | 40 struct resource rsrc; member 48 struct resource rsrc; member 95 if (map->rsrc.parent) in ck804xrom_cleanup() 96 release_resource(&map->rsrc); in ck804xrom_cleanup() 103 if (window->rsrc.parent) in ck804xrom_cleanup() 175 window->rsrc.name = MOD_NAME; in ck804xrom_init_one() 180 window->rsrc.parent = NULL; in ck804xrom_init_one() 183 __func__, &window->rsrc); in ck804xrom_init_one() 267 if (window->rsrc.parent) { in ck804xrom_init_one() 277 if (request_resource(&window->rsrc, &map->rsrc)) { in ck804xrom_init_one() [all …]
|
A D | ichxrom.c | 41 struct resource rsrc; member 49 struct resource rsrc; member 71 if (map->rsrc.parent) in ichxrom_cleanup() 72 release_resource(&map->rsrc); in ichxrom_cleanup() 78 if (window->rsrc.parent) in ichxrom_cleanup() 79 release_resource(&window->rsrc); in ichxrom_cleanup() 175 window->rsrc.name = MOD_NAME; in ichxrom_init_one() 180 window->rsrc.parent = NULL; in ichxrom_init_one() 264 if (window->rsrc.parent) { in ichxrom_init_one() 274 if (request_resource(&window->rsrc, &map->rsrc)) { in ichxrom_init_one() [all …]
|
A D | esb2rom.c | 102 struct resource rsrc; member 110 struct resource rsrc; member 130 if (map->rsrc.parent) in esb2rom_cleanup() 131 release_resource(&map->rsrc); in esb2rom_cleanup() 137 if (window->rsrc.parent) in esb2rom_cleanup() 240 window->rsrc.name = MOD_NAME; in esb2rom_init_one() 245 window->rsrc.parent = NULL; in esb2rom_init_one() 248 __func__, &window->rsrc); in esb2rom_init_one() 329 if (window->rsrc.parent) { in esb2rom_init_one() 339 if (request_resource(&window->rsrc, &map->rsrc)) { in esb2rom_init_one() [all …]
|
/linux/include/linux/ |
A D | vgaarb.h | 49 int vga_get(struct pci_dev *pdev, unsigned int rsrc, int interruptible); 50 void vga_put(struct pci_dev *pdev, unsigned int rsrc); 61 static inline int vga_get(struct pci_dev *pdev, unsigned int rsrc, in vga_get() argument 66 static inline void vga_put(struct pci_dev *pdev, unsigned int rsrc) in vga_put() argument 97 unsigned int rsrc) in vga_get_interruptible() argument 99 return vga_get(pdev, rsrc, 1); in vga_get_interruptible() 112 unsigned int rsrc) in vga_get_uninterruptible() argument 114 return vga_get(pdev, rsrc, 0); in vga_get_uninterruptible()
|
/linux/sound/soc/intel/atom/sst/ |
A D | sst_acpi.c | 151 struct resource *rsrc; in sst_platform_get_resources() local 156 rsrc = platform_get_resource(pdev, IORESOURCE_MEM, in sst_platform_get_resources() 158 if (!rsrc) { in sst_platform_get_resources() 163 (unsigned int)resource_size(rsrc)); in sst_platform_get_resources() 165 ctx->iram_base = rsrc->start + ctx->pdata->res_info->iram_offset; in sst_platform_get_resources() 175 ctx->dram_base = rsrc->start + ctx->pdata->res_info->dram_offset; in sst_platform_get_resources() 210 rsrc = platform_get_resource(pdev, IORESOURCE_MEM, in sst_platform_get_resources() 212 if (!rsrc) { in sst_platform_get_resources() 216 ctx->ddr_base = rsrc->start; in sst_platform_get_resources() 217 ctx->ddr_end = rsrc->end; in sst_platform_get_resources() [all …]
|
/linux/drivers/firmware/imx/ |
A D | scu-pd.c | 78 u32 rsrc; member 83 u32 rsrc; member 250 msg.resource = pd->rsrc; in imx_sc_pd_power() 256 power_on ? "up" : "off", pd->rsrc, ret); in imx_sc_pd_power() 282 if (sc_pd->rsrc == spec->args[0]) { in imx_scu_pd_xlate() 299 if (!imx_sc_rm_is_resource_owned(pm_ipc_handle, pd_ranges->rsrc + idx)) in imx_scu_add_pm_domain() 306 sc_pd->rsrc = pd_ranges->rsrc + idx; in imx_scu_add_pm_domain() 318 if (imx_con_rsrc == sc_pd->rsrc) { in imx_scu_add_pm_domain() 323 if (sc_pd->rsrc >= IMX_SC_R_LAST) { in imx_scu_add_pm_domain() 325 sc_pd->name, sc_pd->rsrc); in imx_scu_add_pm_domain() [all …]
|
/linux/drivers/gpu/vga/ |
A D | vgaarb.c | 233 unsigned int rsrc) in __vga_tryget() argument 246 rsrc |= VGA_RSRC_LEGACY_IO; in __vga_tryget() 249 rsrc |= VGA_RSRC_LEGACY_MEM; in __vga_tryget() 255 wants = rsrc & ~vgadev->owns; in __vga_tryget() 359 if (rsrc & VGA_RSRC_LEGACY_IO) in __vga_tryget() 361 if (rsrc & VGA_RSRC_LEGACY_MEM) in __vga_tryget() 363 if (rsrc & VGA_RSRC_NORMAL_IO) in __vga_tryget() 365 if (rsrc & VGA_RSRC_NORMAL_MEM) in __vga_tryget() 384 rsrc |= VGA_RSRC_LEGACY_IO; in __vga_put() 389 rsrc |= VGA_RSRC_LEGACY_MEM; in __vga_put() [all …]
|
/linux/arch/mips/pci/ |
A D | pci.c | 48 const struct resource *rsrc, resource_size_t *start, in pci_resource_to_user() argument 51 phys_addr_t size = resource_size(rsrc); in pci_resource_to_user() 53 *start = fixup_bigphys_addr(rsrc->start, size); in pci_resource_to_user() 54 *end = rsrc->start + size - 1; in pci_resource_to_user()
|
/linux/drivers/clk/imx/ |
A D | clk-scu.c | 30 u32 rsrc; member 176 return *(u32 *)rsrc - *(u32 *)rsrc_p; in imx_scu_clk_search_cmp() 504 unsigned int rsrc = clkspec->args[0]; in imx_scu_of_clk_src_get() local 509 list_for_each_entry(clk, &scu_clks[rsrc], node) { in imx_scu_of_clk_src_get() 524 if (!((clk->rsrc == IMX_SC_R_A35) || (clk->rsrc == IMX_SC_R_A53) || in imx_clk_scu_probe() 525 (clk->rsrc == IMX_SC_R_A72))) { in imx_clk_scu_probe() 540 clk->rsrc, clk->clk_type); in imx_clk_scu_probe() 547 list_add_tail(&clk->node, &imx_scu_clks[clk->rsrc]); in imx_clk_scu_probe() 549 if (!((clk->rsrc == IMX_SC_R_A35) || (clk->rsrc == IMX_SC_R_A53) || in imx_clk_scu_probe() 550 (clk->rsrc == IMX_SC_R_A72))) { in imx_clk_scu_probe() [all …]
|
A D | built-in.a | 28 clk-imx8qxp-rsrc.o/ 29 clk-imx8qm-rsrc.o/
|
A D | .built-in.a.cmd | 1 …rivers/clk/imx/clk-imx8qxp.o drivers/clk/imx/clk-imx8qxp-rsrc.o drivers/clk/imx/clk-imx8qm-rsrc.o …
|
/linux/arch/powerpc/platforms/powermac/ |
A D | time.c | 173 struct resource rsrc; in via_calibrate_decr() local 180 if (vias == NULL || of_address_to_resource(vias, 0, &rsrc)) { in via_calibrate_decr() 185 via = ioremap(rsrc.start, resource_size(&rsrc)); in via_calibrate_decr()
|
/linux/drivers/of/ |
A D | of_numa.c | 45 struct resource rsrc; in of_numa_parse_memory_nodes() local 64 for (i = 0; !r && !of_address_to_resource(np, i, &rsrc); i++) in of_numa_parse_memory_nodes() 65 r = numa_add_memblk(nid, rsrc.start, rsrc.end + 1); in of_numa_parse_memory_nodes()
|
/linux/arch/powerpc/platforms/85xx/ |
A D | ge_imp3a.c | 85 struct resource rsrc; in ge_imp3a_pci_assign_primary() local 91 of_address_to_resource(np, 0, &rsrc); in ge_imp3a_pci_assign_primary() 92 if ((rsrc.start & 0xfffff) == 0x9000) in ge_imp3a_pci_assign_primary()
|
/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
A D | rvu.c | 127 if (!rsrc->bmap) in rvu_alloc_rsrc() 130 id = find_first_zero_bit(rsrc->bmap, rsrc->max); in rvu_alloc_rsrc() 143 if (!rsrc->bmap) in rvu_alloc_rsrc_contig() 156 if (!rsrc->bmap) in rvu_free_rsrc_contig() 168 if (!rsrc->bmap) in rvu_rsrc_check_contig() 180 if (!rsrc->bmap) in rvu_free_rsrc() 190 if (!rsrc->bmap) in rvu_rsrc_free_count() 193 used = bitmap_weight(rsrc->bmap, rsrc->max); in rvu_rsrc_free_count() 199 if (!rsrc->bmap) in is_rsrc_free() 207 rsrc->bmap = kcalloc(BITS_TO_LONGS(rsrc->max), in rvu_alloc_bitmap() [all …]
|
A D | rvu.h | 281 struct rsrc_bmap rsrc; member 298 struct rsrc_bmap rsrc; member 645 int rvu_alloc_bitmap(struct rsrc_bmap *rsrc); 646 void rvu_free_bitmap(struct rsrc_bmap *rsrc); 647 int rvu_alloc_rsrc(struct rsrc_bmap *rsrc); 648 void rvu_free_rsrc(struct rsrc_bmap *rsrc, int id); 649 bool is_rsrc_free(struct rsrc_bmap *rsrc, int id); 650 int rvu_rsrc_free_count(struct rsrc_bmap *rsrc); 651 int rvu_alloc_rsrc_contig(struct rsrc_bmap *rsrc, int nrsrc); 652 bool rvu_rsrc_check_contig(struct rsrc_bmap *rsrc, int nrsrc);
|
/linux/sound/ppc/ |
A D | pmac.c | 843 resource_size(&chip->rsrc[i])); in snd_pmac_free() 1182 &chip->rsrc[i])) { in snd_pmac_new() 1189 resource_size(&chip->rsrc[i]), in snd_pmac_new() 1193 i, rnames[i], &chip->rsrc[i]); in snd_pmac_new() 1199 ctrl_addr = chip->rsrc[0].start; in snd_pmac_new() 1200 txdma_addr = chip->rsrc[1].start; in snd_pmac_new() 1207 &chip->rsrc[i])) { in snd_pmac_new() 1218 i, rnames[i], &chip->rsrc[i]); in snd_pmac_new() 1224 ctrl_addr = chip->rsrc[0].start; in snd_pmac_new() 1225 txdma_addr = chip->rsrc[1].start; in snd_pmac_new() [all …]
|
/linux/arch/powerpc/sysdev/ |
A D | mpic_msgr.c | 162 struct resource rsrc; in mpic_msgr_probe() local 193 of_address_to_resource(np, 0, &rsrc); in mpic_msgr_probe() 194 msgr_block_addr = devm_ioremap(&dev->dev, rsrc.start, resource_size(&rsrc)); in mpic_msgr_probe()
|
A D | fsl_pci.c | 520 struct resource rsrc; in fsl_add_bridge() local 538 if (of_address_to_resource(dev, 0, &rsrc)) { in fsl_add_bridge() 560 (u64)rsrc.start, (u64)resource_size(&rsrc)); in fsl_add_bridge() 562 pci = hose->private_data = ioremap(rsrc.start, resource_size(&rsrc)); in fsl_add_bridge() 566 setup_indirect_pci(hose, rsrc.start, rsrc.start + 0x4, in fsl_add_bridge() 621 (unsigned long long)rsrc.start, hose->first_busno, in fsl_add_bridge()
|
/linux/arch/powerpc/platforms/52xx/ |
A D | mpc52xx_pci.c | 370 struct resource rsrc; in mpc52xx_add_bridge() local 376 if (of_address_to_resource(node, 0, &rsrc) != 0) { in mpc52xx_add_bridge() 405 pci_regs = ioremap(rsrc.start, resource_size(&rsrc)); in mpc52xx_add_bridge() 413 mpc52xx_pci_setup(hose, pci_regs, rsrc.start); in mpc52xx_add_bridge()
|
/linux/drivers/vfio/pci/ |
A D | vfio_pci_rdwr.c | 297 unsigned int rsrc; in vfio_pci_vga_rw() local 312 rsrc = VGA_RSRC_LEGACY_MEM; in vfio_pci_vga_rw() 319 rsrc = VGA_RSRC_LEGACY_IO; in vfio_pci_vga_rw() 326 rsrc = VGA_RSRC_LEGACY_IO; in vfio_pci_vga_rw() 336 ret = vga_get_interruptible(vdev->pdev, rsrc); in vfio_pci_vga_rw() 349 vga_put(vdev->pdev, rsrc); in vfio_pci_vga_rw()
|
/linux/drivers/ptp/ |
A D | ptp_qoriq.c | 579 ptp_qoriq->rsrc = platform_get_resource(dev, IORESOURCE_MEM, 0); in ptp_qoriq_probe() 580 if (!ptp_qoriq->rsrc) { in ptp_qoriq_probe() 584 if (request_resource(&iomem_resource, ptp_qoriq->rsrc)) { in ptp_qoriq_probe() 589 base = ioremap(ptp_qoriq->rsrc->start, in ptp_qoriq_probe() 590 resource_size(ptp_qoriq->rsrc)); in ptp_qoriq_probe() 606 release_resource(ptp_qoriq->rsrc); in ptp_qoriq_probe() 620 release_resource(ptp_qoriq->rsrc); in ptp_qoriq_remove()
|