/linux-6.12.1/drivers/infiniband/hw/irdma/ |
D | puda.c | 36 struct irdma_puda_buf *irdma_puda_get_bufpool(struct irdma_puda_rsrc *rsrc) in irdma_puda_get_bufpool() argument 39 struct list_head *list = &rsrc->bufpool; in irdma_puda_get_bufpool() 42 spin_lock_irqsave(&rsrc->bufpool_lock, flags); in irdma_puda_get_bufpool() 45 rsrc->avail_buf_count--; in irdma_puda_get_bufpool() 46 buf->vsi = rsrc->vsi; in irdma_puda_get_bufpool() 48 rsrc->stats_buf_alloc_fail++; in irdma_puda_get_bufpool() 50 spin_unlock_irqrestore(&rsrc->bufpool_lock, flags); in irdma_puda_get_bufpool() 60 void irdma_puda_ret_bufpool(struct irdma_puda_rsrc *rsrc, in irdma_puda_ret_bufpool() argument 66 spin_lock_irqsave(&rsrc->bufpool_lock, flags); in irdma_puda_ret_bufpool() 67 list_add(&buf->list, &rsrc->bufpool); in irdma_puda_ret_bufpool() [all …]
|
/linux-6.12.1/drivers/mtd/maps/ |
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() 147 window->rsrc.start = window->phys; in amd76xrom_init_one() 148 window->rsrc.end = window->phys + window->size - 1; in amd76xrom_init_one() 149 window->rsrc.flags = IORESOURCE_MEM | IORESOURCE_BUSY; in amd76xrom_init_one() [all …]
|
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() 104 release_resource(&window->rsrc); in ck804xrom_cleanup() 175 window->rsrc.name = MOD_NAME; in ck804xrom_init_one() 176 window->rsrc.start = window->phys; in ck804xrom_init_one() 177 window->rsrc.end = window->phys + window->size - 1; in ck804xrom_init_one() 178 window->rsrc.flags = IORESOURCE_MEM | IORESOURCE_BUSY; in ck804xrom_init_one() [all …]
|
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() 176 window->rsrc.start = window->phys; in ichxrom_init_one() 177 window->rsrc.end = window->phys + window->size - 1; in ichxrom_init_one() 178 window->rsrc.flags = IORESOURCE_MEM | IORESOURCE_BUSY; in ichxrom_init_one() [all …]
|
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() 138 release_resource(&window->rsrc); in esb2rom_cleanup() 240 window->rsrc.name = MOD_NAME; in esb2rom_init_one() 241 window->rsrc.start = window->phys; in esb2rom_init_one() 242 window->rsrc.end = window->phys + window->size - 1; in esb2rom_init_one() 243 window->rsrc.flags = IORESOURCE_MEM | IORESOURCE_BUSY; in esb2rom_init_one() [all …]
|
/linux-6.12.1/sound/soc/intel/atom/sst/ |
D | sst_acpi.c | 172 struct resource *rsrc; in sst_platform_get_resources() local 177 rsrc = platform_get_resource(pdev, IORESOURCE_MEM, in sst_platform_get_resources() 179 if (!rsrc) { in sst_platform_get_resources() 183 dev_info(ctx->dev, "LPE base: %#x size:%#x", (unsigned int) rsrc->start, in sst_platform_get_resources() 184 (unsigned int)resource_size(rsrc)); in sst_platform_get_resources() 186 ctx->iram_base = rsrc->start + ctx->pdata->res_info->iram_offset; in sst_platform_get_resources() 196 ctx->dram_base = rsrc->start + ctx->pdata->res_info->dram_offset; in sst_platform_get_resources() 206 ctx->shim_phy_add = rsrc->start + ctx->pdata->res_info->shim_offset; in sst_platform_get_resources() 219 ctx->mailbox_add = rsrc->start + ctx->pdata->res_info->mbox_offset; in sst_platform_get_resources() 231 rsrc = platform_get_resource(pdev, IORESOURCE_MEM, in sst_platform_get_resources() [all …]
|
/linux-6.12.1/include/linux/ |
D | vgaarb.h | 30 int vga_get(struct pci_dev *pdev, unsigned int rsrc, int interruptible); 31 void vga_put(struct pci_dev *pdev, unsigned int rsrc); 42 static inline int vga_get(struct pci_dev *pdev, unsigned int rsrc, in vga_get() argument 47 static inline void vga_put(struct pci_dev *pdev, unsigned int rsrc) in vga_put() argument 78 unsigned int rsrc) in vga_get_interruptible() argument 80 return vga_get(pdev, rsrc, 1); in vga_get_interruptible() 93 unsigned int rsrc) in vga_get_uninterruptible() argument 95 return vga_get(pdev, rsrc, 0); in vga_get_uninterruptible()
|
/linux-6.12.1/sound/soc/amd/acp/ |
D | acp-i2s.c | 196 struct acp_resource *rsrc; in acp_i2s_hwparams() local 203 rsrc = adata->rsrc; in acp_i2s_hwparams() 279 if (rsrc->soc_mclk) { in acp_i2s_hwparams() 390 struct acp_resource *rsrc = adata->rsrc; in acp_i2s_trigger() local 453 if (rsrc->soc_mclk) in acp_i2s_trigger() 521 struct acp_resource *rsrc = adata->rsrc; in acp_i2s_prepare() local 532 acp_fifo_addr = rsrc->sram_pte_offset + in acp_i2s_prepare() 544 acp_fifo_addr = rsrc->sram_pte_offset + in acp_i2s_prepare() 559 acp_fifo_addr = rsrc->sram_pte_offset + in acp_i2s_prepare() 571 acp_fifo_addr = rsrc->sram_pte_offset + in acp_i2s_prepare() [all …]
|
D | acp-legacy-common.c | 26 struct acp_resource *rsrc = adata->rsrc; in acp_enable_interrupts() local 30 ext_intr_ctrl = readl(ACP_EXTERNAL_INTR_CNTL(adata, rsrc->irqp_used)); in acp_enable_interrupts() 32 writel(ext_intr_ctrl, ACP_EXTERNAL_INTR_CNTL(adata, rsrc->irqp_used)); in acp_enable_interrupts() 38 struct acp_resource *rsrc = adata->rsrc; in acp_disable_interrupts() local 40 writel(ACP_EXT_INTR_STAT_CLEAR_MASK, ACP_EXTERNAL_INTR_STAT(adata, rsrc->irqp_used)); in acp_disable_interrupts() 107 struct acp_resource *rsrc = adata->rsrc; in set_acp_i2s_dma_fifo() local 117 acp_fifo_addr = rsrc->sram_pte_offset + in set_acp_i2s_dma_fifo() 125 acp_fifo_addr = rsrc->sram_pte_offset + in set_acp_i2s_dma_fifo() 136 acp_fifo_addr = rsrc->sram_pte_offset + in set_acp_i2s_dma_fifo() 144 acp_fifo_addr = rsrc->sram_pte_offset + in set_acp_i2s_dma_fifo() [all …]
|
D | acp-platform.c | 140 struct acp_resource *rsrc = adata->rsrc; in i2s_irq_handler() local 148 if (adata->rsrc->no_of_ctrls == 2) in i2s_irq_handler() 149 ext_intr_stat1 = readl(ACP_EXTERNAL_INTR_STAT(adata, (rsrc->irqp_used - 1))); in i2s_irq_handler() 151 ext_intr_stat = readl(ACP_EXTERNAL_INTR_STAT(adata, rsrc->irqp_used)); in i2s_irq_handler() 157 ACP_EXTERNAL_INTR_STAT(adata, rsrc->irqp_used)); in i2s_irq_handler() 161 if (adata->rsrc->no_of_ctrls == 2) { in i2s_irq_handler() 164 (rsrc->irqp_used - 1))); in i2s_irq_handler() 179 struct acp_resource *rsrc = adata->rsrc; in config_pte_for_stream() local 182 reg_val = rsrc->sram_pte_offset; in config_pte_for_stream() 201 struct acp_resource *rsrc = adata->rsrc; in config_acp_dma() local [all …]
|
D | chip_offset_byte.h | 33 (adata->acp_base + adata->rsrc->irq_reg_offset + offset + (ctrl * 0x04)) 38 (0x4 + (adata->rsrc->no_of_ctrls * 0x04)), ctrl) 43 ((addr) + (acp_adata->rsrc->irqp_used * \ 44 acp_adata->rsrc->irq_reg_offset))
|
D | acp-rembrandt.c | 36 static struct acp_resource rsrc = { variable 229 adata->rsrc = &rsrc; in rembrandt_audio_probe() 238 if (chip->is_i2s_config && rsrc.soc_mclk) { in rembrandt_audio_probe() 271 if (adata->is_i2s_config && adata->rsrc->soc_mclk) in rmb_pcm_resume()
|
D | acp63.c | 52 static struct acp_resource rsrc = { variable 239 adata->rsrc = &rsrc; in acp63_audio_probe() 247 if (chip->is_i2s_config && rsrc.soc_mclk) { in acp63_audio_probe() 280 if (adata->is_i2s_config && adata->rsrc->soc_mclk) in acp63_pcm_resume()
|
/linux-6.12.1/drivers/pmdomain/imx/ |
D | scu-pd.c | 95 u32 rsrc; member 100 u32 rsrc; member 331 static int imx_sc_get_pd_power(struct device *dev, u32 rsrc) in imx_sc_get_pd_power() argument 342 msg.data.req.resource = rsrc; in imx_sc_get_pd_power() 347 rsrc, ret); in imx_sc_get_pd_power() 366 msg.resource = pd->rsrc; in imx_sc_pd_power() 370 if (imx_con_rsrc == pd->rsrc && !console_suspend_enabled && !power_on) in imx_sc_pd_power() 376 power_on ? "up" : "off", pd->rsrc, ret); in imx_sc_pd_power() 402 if (sc_pd->rsrc == spec->args[0]) { in imx_scu_pd_xlate() 419 if (!imx_sc_rm_is_resource_owned(pm_ipc_handle, pd_ranges->rsrc + idx)) in imx_scu_add_pm_domain() [all …]
|
/linux-6.12.1/drivers/clk/imx/ |
D | clk-scu.c | 32 u32 rsrc; member 176 static inline int imx_scu_clk_search_cmp(const void *rsrc, const void *rsrc_p) in imx_scu_clk_search_cmp() argument 178 return *(u32 *)rsrc - *(u32 *)rsrc_p; in imx_scu_clk_search_cmp() 188 p = bsearch(&rsrc_id, rsrc_table->rsrc, rsrc_table->num, in imx_scu_clk_is_valid() 189 sizeof(rsrc_table->rsrc[0]), imx_scu_clk_search_cmp); in imx_scu_clk_is_valid() 523 unsigned int rsrc = clkspec->args[0]; in imx_scu_of_clk_src_get() local 528 list_for_each_entry(clk, &scu_clks[rsrc], node) { in imx_scu_of_clk_src_get() 543 if (!((clk->rsrc == IMX_SC_R_A35) || (clk->rsrc == IMX_SC_R_A53) || in imx_clk_scu_probe() 544 (clk->rsrc == IMX_SC_R_A72))) { in imx_clk_scu_probe() 559 clk->rsrc, clk->clk_type); in imx_clk_scu_probe() [all …]
|
/linux-6.12.1/arch/mips/pci/ |
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-6.12.1/drivers/pci/ |
D | vgaarb.c | 211 unsigned int rsrc) in __vga_tryget() argument 223 if ((rsrc & VGA_RSRC_NORMAL_IO) && in __vga_tryget() 225 rsrc |= VGA_RSRC_LEGACY_IO; in __vga_tryget() 226 if ((rsrc & VGA_RSRC_NORMAL_MEM) && in __vga_tryget() 228 rsrc |= VGA_RSRC_LEGACY_MEM; in __vga_tryget() 230 vgaarb_dbg(dev, "%s: %d\n", __func__, rsrc); in __vga_tryget() 234 wants = rsrc & ~vgadev->owns; in __vga_tryget() 344 vgadev->locks |= (rsrc & VGA_RSRC_LEGACY_MASK); in __vga_tryget() 345 if (rsrc & VGA_RSRC_LEGACY_IO) in __vga_tryget() 347 if (rsrc & VGA_RSRC_LEGACY_MEM) in __vga_tryget() [all …]
|
/linux-6.12.1/arch/powerpc/platforms/powermac/ |
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 = early_ioremap(rsrc.start, resource_size(&rsrc)); in via_calibrate_decr() 210 early_iounmap((void *)via, resource_size(&rsrc)); in via_calibrate_decr()
|
/linux-6.12.1/drivers/of/ |
D | of_numa.c | 46 struct resource rsrc; in of_numa_parse_memory_nodes() local 65 for (i = 0; !r && !of_address_to_resource(np, i, &rsrc); i++) in of_numa_parse_memory_nodes() 66 r = numa_add_memblk(nid, rsrc.start, rsrc.end + 1); in of_numa_parse_memory_nodes()
|
/linux-6.12.1/arch/powerpc/platforms/85xx/ |
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-6.12.1/arch/powerpc/sysdev/ |
D | mpic_msgr.c | 171 struct resource rsrc; in mpic_msgr_probe() local 202 of_address_to_resource(np, 0, &rsrc); in mpic_msgr_probe() 203 msgr_block_addr = devm_ioremap(&dev->dev, rsrc.start, resource_size(&rsrc)); in mpic_msgr_probe()
|
/linux-6.12.1/sound/ppc/ |
D | pmac.c | 836 release_mem_region(chip->rsrc[i].start, in snd_pmac_free() 837 resource_size(&chip->rsrc[i])); in snd_pmac_free() 1176 &chip->rsrc[i])) { in snd_pmac_new() 1183 if (request_mem_region(chip->rsrc[i].start, in snd_pmac_new() 1184 resource_size(&chip->rsrc[i]), in snd_pmac_new() 1188 i, rnames[i], &chip->rsrc[i]); in snd_pmac_new() 1194 ctrl_addr = chip->rsrc[0].start; in snd_pmac_new() 1195 txdma_addr = chip->rsrc[1].start; in snd_pmac_new() 1202 &chip->rsrc[i])) { in snd_pmac_new() 1209 if (request_mem_region(chip->rsrc[i].start, in snd_pmac_new() [all …]
|
/linux-6.12.1/arch/powerpc/platforms/52xx/ |
D | mpc52xx_pci.c | 361 struct resource rsrc; in mpc52xx_add_bridge() local 367 if (of_address_to_resource(node, 0, &rsrc) != 0) { in mpc52xx_add_bridge() 396 pci_regs = ioremap(rsrc.start, resource_size(&rsrc)); in mpc52xx_add_bridge() 404 mpc52xx_pci_setup(hose, pci_regs, rsrc.start); in mpc52xx_add_bridge()
|
/linux-6.12.1/drivers/vfio/pci/ |
D | vfio_pci_rdwr.c | 304 unsigned int rsrc; in vfio_pci_vga_rw() local 319 rsrc = VGA_RSRC_LEGACY_MEM; in vfio_pci_vga_rw() 326 rsrc = VGA_RSRC_LEGACY_IO; in vfio_pci_vga_rw() 333 rsrc = VGA_RSRC_LEGACY_IO; in vfio_pci_vga_rw() 343 ret = vga_get_interruptible(vdev->pdev, rsrc); in vfio_pci_vga_rw() 357 vga_put(vdev->pdev, rsrc); in vfio_pci_vga_rw()
|
/linux-6.12.1/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu.c | 128 int rvu_alloc_rsrc(struct rsrc_bmap *rsrc) in rvu_alloc_rsrc() argument 132 if (!rsrc->bmap) in rvu_alloc_rsrc() 135 id = find_first_zero_bit(rsrc->bmap, rsrc->max); in rvu_alloc_rsrc() 136 if (id >= rsrc->max) in rvu_alloc_rsrc() 139 __set_bit(id, rsrc->bmap); in rvu_alloc_rsrc() 144 int rvu_alloc_rsrc_contig(struct rsrc_bmap *rsrc, int nrsrc) in rvu_alloc_rsrc_contig() argument 148 if (!rsrc->bmap) in rvu_alloc_rsrc_contig() 151 start = bitmap_find_next_zero_area(rsrc->bmap, rsrc->max, 0, nrsrc, 0); in rvu_alloc_rsrc_contig() 152 if (start >= rsrc->max) in rvu_alloc_rsrc_contig() 155 bitmap_set(rsrc->bmap, start, nrsrc); in rvu_alloc_rsrc_contig() [all …]
|