/linux-6.6.21/drivers/gpu/drm/ |
D | drm_gpuva_mgr.c | 602 #define GPUVA_START(node) ((node)->va.addr) 603 #define GPUVA_LAST(node) ((node)->va.addr + (node)->va.range - 1) 613 struct drm_gpuva *va); 614 static void __drm_gpuva_remove(struct drm_gpuva *va); 639 u64 kstart = mgr->kernel_alloc_node.va.addr; in drm_gpuva_in_kernel_node() 640 u64 krange = mgr->kernel_alloc_node.va.range; in drm_gpuva_in_kernel_node() 690 mgr->kernel_alloc_node.va.addr = reserve_offset; in drm_gpuva_manager_init() 691 mgr->kernel_alloc_node.va.range = reserve_range; in drm_gpuva_manager_init() 712 if (mgr->kernel_alloc_node.va.range) in drm_gpuva_manager_destroy() 722 struct drm_gpuva *va) in __drm_gpuva_insert() argument [all …]
|
/linux-6.6.21/sound/soc/codecs/ |
D | lpass-va-macro.c | 441 static int va_clk_rsc_fs_gen_request(struct va_macro *va, bool enable) in va_clk_rsc_fs_gen_request() argument 443 struct regmap *regmap = va->regmap; in va_clk_rsc_fs_gen_request() 474 static int va_macro_mclk_enable(struct va_macro *va, bool mclk_enable) in va_macro_mclk_enable() argument 476 struct regmap *regmap = va->regmap; in va_macro_mclk_enable() 479 va_clk_rsc_fs_gen_request(va, true); in va_macro_mclk_enable() 483 va_clk_rsc_fs_gen_request(va, false); in va_macro_mclk_enable() 493 struct va_macro *va = snd_soc_component_get_drvdata(comp); in va_macro_mclk_event() local 497 return clk_prepare_enable(va->fsgen); in va_macro_mclk_event() 499 clk_disable_unprepare(va->fsgen); in va_macro_mclk_event() 556 struct va_macro *va = snd_soc_component_get_drvdata(component); in va_macro_tx_mixer_get() local [all …]
|
/linux-6.6.21/mm/ |
D | vmalloc.c | 776 va_size(struct vmap_area *va) in va_size() argument 778 return (va->va_end - va->va_start); in va_size() 784 struct vmap_area *va; in get_subtree_max_size() local 786 va = rb_entry_safe(node, struct vmap_area, rb_node); in get_subtree_max_size() 787 return va ? va->subtree_max_size : 0; in get_subtree_max_size() 808 struct vmap_area *va = NULL; in find_vmap_area_exceed_addr() local 818 va = tmp; in find_vmap_area_exceed_addr() 827 return va; in find_vmap_area_exceed_addr() 837 struct vmap_area *va; in __find_vmap_area() local 839 va = rb_entry(n, struct vmap_area, rb_node); in __find_vmap_area() [all …]
|
/linux-6.6.21/include/drm/ |
D | drm_gpuva_mgr.h | 93 } va; member 140 int drm_gpuva_insert(struct drm_gpuva_manager *mgr, struct drm_gpuva *va); 141 void drm_gpuva_remove(struct drm_gpuva *va); 143 void drm_gpuva_link(struct drm_gpuva *va); 144 void drm_gpuva_unlink(struct drm_gpuva *va); 155 static inline void drm_gpuva_init(struct drm_gpuva *va, u64 addr, u64 range, in drm_gpuva_init() argument 158 va->va.addr = addr; in drm_gpuva_init() 159 va->va.range = range; in drm_gpuva_init() 160 va->gem.obj = obj; in drm_gpuva_init() 161 va->gem.offset = offset; in drm_gpuva_init() [all …]
|
/linux-6.6.21/drivers/scsi/qedi/ |
D | qedi_dbg.c | 14 va_list va; in qedi_dbg_err() local 17 va_start(va, fmt); in qedi_dbg_err() 20 vaf.va = &va; in qedi_dbg_err() 28 va_end(va); in qedi_dbg_err() 35 va_list va; in qedi_dbg_warn() local 38 va_start(va, fmt); in qedi_dbg_warn() 41 vaf.va = &va; in qedi_dbg_warn() 53 va_end(va); in qedi_dbg_warn() 60 va_list va; in qedi_dbg_notice() local 63 va_start(va, fmt); in qedi_dbg_notice() [all …]
|
/linux-6.6.21/drivers/gpu/drm/nouveau/ |
D | nouveau_uvmm.c | 68 } va; member 172 u64 addr = reg->va.addr; in nouveau_uvma_region_sparse_unref() 173 u64 range = reg->va.range; in nouveau_uvma_region_sparse_unref() 181 u64 addr = uvma->va.va.addr; in nouveau_uvma_vmm_put() 182 u64 range = uvma->va.va.range; in nouveau_uvma_vmm_put() 191 u64 addr = uvma->va.va.addr; in nouveau_uvma_map() 192 u64 offset = uvma->va.gem.offset; in nouveau_uvma_map() 193 u64 range = uvma->va.va.range; in nouveau_uvma_map() 202 u64 addr = uvma->va.va.addr; in nouveau_uvma_unmap() 203 u64 range = uvma->va.va.range; in nouveau_uvma_unmap() [all …]
|
/linux-6.6.21/drivers/scsi/qedf/ |
D | qedf_dbg.c | 13 va_list va; in qedf_dbg_err() local 16 va_start(va, fmt); in qedf_dbg_err() 19 vaf.va = &va; in qedf_dbg_err() 27 va_end(va); in qedf_dbg_err() 34 va_list va; in qedf_dbg_warn() local 37 va_start(va, fmt); in qedf_dbg_warn() 40 vaf.va = &va; in qedf_dbg_warn() 52 va_end(va); in qedf_dbg_warn() 59 va_list va; in qedf_dbg_notice() local 62 va_start(va, fmt); in qedf_dbg_notice() [all …]
|
/linux-6.6.21/drivers/gpu/drm/i915/gt/ |
D | selftest_tlb.c | 33 struct i915_vma *va, in pte_tlbinv() argument 68 va->size, align); in pte_tlbinv() 69 err = i915_vma_pin(va, 0, 0, addr | PIN_OFFSET_FIXED | PIN_USER); in pte_tlbinv() 71 pr_err("Cannot pin at %llx+%llx\n", addr, va->size); in pte_tlbinv() 74 GEM_BUG_ON(i915_vma_offset(va) != addr); in pte_tlbinv() 75 if (vb != va) { in pte_tlbinv() 77 vb->node = va->node; /* overwrites the _same_ PTE */ in pte_tlbinv() 93 if (va != vb) in pte_tlbinv() 95 ce->engine->name, va->obj->mm.region->name ?: "smem", in pte_tlbinv() 96 addr, align, va->resource->page_sizes_gtt, in pte_tlbinv() [all …]
|
/linux-6.6.21/drivers/dio/ |
D | dio.c | 127 void *va; in dio_find() local 139 va = (void *)(pa + DIO_VIRADDRBASE); in dio_find() 141 va = ioremap(pa, PAGE_SIZE); in dio_find() 144 (unsigned char *)va + DIO_IDOFF, 1)) { in dio_find() 146 iounmap(va); in dio_find() 150 prid = DIO_ID(va); in dio_find() 153 secid = DIO_SECID(va); in dio_find() 160 iounmap(va); in dio_find() 200 u_char *va; in dio_init() local 212 va = (void *)(pa + DIO_VIRADDRBASE); in dio_init() [all …]
|
/linux-6.6.21/arch/powerpc/mm/nohash/ |
D | 8xx.c | 23 phys_addr_t v_block_mapped(unsigned long va) in v_block_mapped() argument 27 if (va >= VIRT_IMMR_BASE && va < VIRT_IMMR_BASE + IMMR_SIZE) in v_block_mapped() 28 return p + va - VIRT_IMMR_BASE; in v_block_mapped() 29 if (va >= PAGE_OFFSET && va < PAGE_OFFSET + block_mapped_ram) in v_block_mapped() 30 return __pa(va); in v_block_mapped() 49 static pte_t __init *early_hugepd_alloc_kernel(hugepd_t *pmdp, unsigned long va) in early_hugepd_alloc_kernel() argument 60 return hugepte_offset(*(hugepd_t *)pmdp, va, PGDIR_SHIFT); in early_hugepd_alloc_kernel() 63 static int __ref __early_map_kernel_hugepage(unsigned long va, phys_addr_t pa, in __early_map_kernel_hugepage() argument 66 pmd_t *pmdp = pmd_off_k(va); in __early_map_kernel_hugepage() 77 ptep = early_pte_alloc_kernel(pmdp, va); in __early_map_kernel_hugepage() [all …]
|
/linux-6.6.21/arch/riscv/mm/ |
D | init.c | 349 static inline phys_addr_t __init alloc_pte_early(uintptr_t va) in alloc_pte_early() argument 358 static inline phys_addr_t __init alloc_pte_fixmap(uintptr_t va) in alloc_pte_fixmap() argument 363 static phys_addr_t __init alloc_pte_late(uintptr_t va) in alloc_pte_late() argument 372 uintptr_t va, phys_addr_t pa, in create_pte_mapping() argument 375 uintptr_t pte_idx = pte_index(va); in create_pte_mapping() 432 static phys_addr_t __init alloc_pmd_early(uintptr_t va) in alloc_pmd_early() argument 434 BUG_ON((va - kernel_map.virt_addr) >> PUD_SHIFT); in alloc_pmd_early() 439 static phys_addr_t __init alloc_pmd_fixmap(uintptr_t va) in alloc_pmd_fixmap() argument 444 static phys_addr_t __init alloc_pmd_late(uintptr_t va) in alloc_pmd_late() argument 453 uintptr_t va, phys_addr_t pa, in create_pmd_mapping() argument [all …]
|
/linux-6.6.21/tools/testing/selftests/kvm/lib/ |
D | ucall_common.c | 82 va_list va; in ucall_assert() local 91 va_start(va, fmt); in ucall_assert() 92 guest_vsnprintf(uc->buffer, UCALL_BUFFER_LEN, fmt, va); in ucall_assert() 93 va_end(va); in ucall_assert() 103 va_list va; in ucall_fmt() local 108 va_start(va, fmt); in ucall_fmt() 109 guest_vsnprintf(uc->buffer, UCALL_BUFFER_LEN, fmt, va); in ucall_fmt() 110 va_end(va); in ucall_fmt() 120 va_list va; in ucall() local 129 va_start(va, nargs); in ucall() [all …]
|
/linux-6.6.21/fs/ceph/ |
D | ceph_frag.c | 10 unsigned va = ceph_frag_value(a); in ceph_frag_compare() local 12 if (va < vb) in ceph_frag_compare() 14 if (va > vb) in ceph_frag_compare() 16 va = ceph_frag_bits(a); in ceph_frag_compare() 18 if (va < vb) in ceph_frag_compare() 20 if (va > vb) in ceph_frag_compare()
|
/linux-6.6.21/Documentation/devicetree/bindings/sound/ |
D | qcom,lpass-va-macro.yaml | 4 $id: http://devicetree.org/schemas/sound/qcom,lpass-va-macro.yaml# 15 - qcom,sc7280-lpass-va-macro 16 - qcom,sm8250-lpass-va-macro 17 - qcom,sm8450-lpass-va-macro 18 - qcom,sm8550-lpass-va-macro 19 - qcom,sc8280xp-lpass-va-macro 70 const: qcom,sc7280-lpass-va-macro 83 const: qcom,sm8250-lpass-va-macro 100 - qcom,sc8280xp-lpass-va-macro 101 - qcom,sm8450-lpass-va-macro [all …]
|
/linux-6.6.21/lib/ |
D | test_debug_virtual.c | 25 void *va; in test_debug_virtual_init() local 27 va = (void *)VMALLOC_START; in test_debug_virtual_init() 28 pa = virt_to_phys(va); in test_debug_virtual_init() 30 pr_info("PA: %pa for VA: 0x%lx\n", &pa, (unsigned long)va); in test_debug_virtual_init() 37 va = foo; in test_debug_virtual_init() 38 pr_info("PA: %pa for VA: 0x%lx\n", &pa, (unsigned long)va); in test_debug_virtual_init()
|
/linux-6.6.21/arch/riscv/include/asm/ |
D | sections.h | 18 static inline bool is_va_kernel_text(uintptr_t va) in is_va_kernel_text() argument 23 return va >= start && va < end; in is_va_kernel_text() 26 static inline bool is_va_kernel_lm_alias_text(uintptr_t va) in is_va_kernel_lm_alias_text() argument 31 return va >= start && va < end; in is_va_kernel_lm_alias_text()
|
/linux-6.6.21/drivers/video/fbdev/vermilion/ |
D | vermilion.c | 74 static int vmlfb_alloc_vram_area(struct vram_area *va, unsigned max_order, in vmlfb_alloc_vram_area() argument 90 va->logical = in vmlfb_alloc_vram_area() 92 } while (va->logical == 0 && max_order > min_order); in vmlfb_alloc_vram_area() 94 if (!va->logical) in vmlfb_alloc_vram_area() 97 va->phys = virt_to_phys((void *)va->logical); in vmlfb_alloc_vram_area() 98 va->size = PAGE_SIZE << max_order; in vmlfb_alloc_vram_area() 99 va->order = max_order; in vmlfb_alloc_vram_area() 108 memset((void *)va->logical, 0x00, va->size); in vmlfb_alloc_vram_area() 109 for (i = va->logical; i < va->logical + va->size; i += PAGE_SIZE) { in vmlfb_alloc_vram_area() 117 set_pages_uc(virt_to_page(va->logical), va->size >> PAGE_SHIFT); in vmlfb_alloc_vram_area() [all …]
|
/linux-6.6.21/arch/alpha/kernel/ |
D | traps.c | 426 unsigned long count, va, pc; member 435 do_entUna(void * va, unsigned long opcode, unsigned long reg, in do_entUna() argument 444 unaligned[0].va = (unsigned long) va; in do_entUna() 462 : "r"(va), "0"(0)); in do_entUna() 478 : "r"(va), "0"(0)); in do_entUna() 494 : "r"(va), "0"(0)); in do_entUna() 522 : "r"(va), "r"(una_reg(reg)), "0"(0)); in do_entUna() 546 : "r"(va), "r"(una_reg(reg)), "0"(0)); in do_entUna() 570 : "r"(va), "r"(una_reg(reg)), "0"(0)); in do_entUna() 577 pc, va, opcode, reg); in do_entUna() [all …]
|
/linux-6.6.21/arch/powerpc/mm/book3s64/ |
D | hash_native.c | 72 unsigned long va; in ___tlbie() local 83 va = vpn << VPN_SHIFT; in ___tlbie() 90 va &= ~(0xffffULL << 48); in ___tlbie() 95 va &= ~((1ul << (64 - 52)) - 1); in ___tlbie() 96 va |= ssize << 8; in ___tlbie() 98 va |= sllp << 5; in ___tlbie() 100 : : "r" (va), "r"(0), "i" (CPU_FTR_ARCH_206) in ___tlbie() 106 va &= ~((1ul << mmu_psize_defs[apsize].shift) - 1); in ___tlbie() 107 va |= penc << 12; in ___tlbie() 108 va |= ssize << 8; in ___tlbie() [all …]
|
/linux-6.6.21/tools/testing/selftests/proc/ |
D | proc-self-map-files-002.c | 55 unsigned long va; in main() local 64 for (va = 0; va < va_max; va += PAGE_SIZE) { in main() 65 p = mmap((void *)va, PAGE_SIZE, PROT_NONE, MAP_PRIVATE|MAP_FILE|MAP_FIXED, fd, 0); in main() 66 if (p == (void *)va) in main() 69 if (va == va_max) { in main()
|
/linux-6.6.21/arch/x86/kernel/ |
D | irq_64.c | 39 void *va; in map_irq_stack() local 48 va = vmap(pages, IRQ_STACK_SIZE / PAGE_SIZE, VM_MAP, PAGE_KERNEL); in map_irq_stack() 49 if (!va) in map_irq_stack() 53 per_cpu(pcpu_hot.hardirq_stack_ptr, cpu) = va + IRQ_STACK_SIZE - 8; in map_irq_stack() 63 void *va = per_cpu_ptr(&irq_stack_backing_store, cpu); in map_irq_stack() local 66 per_cpu(pcpu_hot.hardirq_stack_ptr, cpu) = va + IRQ_STACK_SIZE - 8; in map_irq_stack()
|
/linux-6.6.21/drivers/tee/amdtee/ |
D | shm_pool.c | 15 unsigned long va; in pool_op_alloc() local 22 va = __get_free_pages(GFP_KERNEL | __GFP_ZERO, order); in pool_op_alloc() 23 if (!va) in pool_op_alloc() 26 shm->kaddr = (void *)va; in pool_op_alloc() 27 shm->paddr = __psp_pa((void *)va); in pool_op_alloc() 33 free_pages(va, order); in pool_op_alloc()
|
/linux-6.6.21/arch/xtensa/mm/ |
D | ioremap.c | 25 unsigned long va = (unsigned long) addr; in iounmap() local 27 if ((va >= XCHAL_KIO_CACHED_VADDR && in iounmap() 28 va - XCHAL_KIO_CACHED_VADDR < XCHAL_KIO_SIZE) || in iounmap() 29 (va >= XCHAL_KIO_BYPASS_VADDR && in iounmap() 30 va - XCHAL_KIO_BYPASS_VADDR < XCHAL_KIO_SIZE)) in iounmap()
|
/linux-6.6.21/arch/arm/mach-omap1/ |
D | irq.c | 59 void __iomem *va; member 71 return readl_relaxed(irq_banks[bank].va + offset); in irq_bank_readl() 75 writel_relaxed(value, irq_banks[bank].va + offset); in irq_bank_writel() 81 writel_relaxed(0x1, irq_banks[1].va + IRQ_CONTROL_REG_OFFSET); in omap_ack_irq() 83 writel_relaxed(0x1, irq_banks[0].va + IRQ_CONTROL_REG_OFFSET); in omap_ack_irq() 137 void __iomem *l1 = irq_banks[0].va; in omap1_handle_irq() 138 void __iomem *l2 = irq_banks[1].va; in omap1_handle_irq() 208 irq_banks[i].va = ioremap(irq_banks[i].base_reg, 0xff); in omap1_init_irq() 209 if (WARN_ON(!irq_banks[i].va)) in omap1_init_irq() 248 omap_alloc_gc(irq_banks[i].va, irq_base + i * 32, 32); in omap1_init_irq()
|
/linux-6.6.21/drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
D | vdec_vp9_if.c | 36 unsigned long va; member 226 if (fb->base_y.va == addr) { in vp9_rm_from_fb_use_list() 277 vsi->frm_bufs[ref_idx].buf.fb->base_y.va); in vp9_ref_cnt_fb() 295 if (vsi->sf_ref_fb[i].fb.base_y.va) { in vp9_free_all_sf_ref_fb() 320 if (vsi->sf_ref_fb[idx].fb.base_y.va && in vp9_get_sf_ref_fb() 329 if (vsi->sf_ref_fb[idx].fb.base_y.va == NULL) in vp9_get_sf_ref_fb() 390 if (mem->va) in vp9_alloc_work_buf() 402 vsi->mv_buf.va = (unsigned long)mem->va; in vp9_alloc_work_buf() 408 if (mem->va) in vp9_alloc_work_buf() 419 vsi->seg_id_buf.va = (unsigned long)mem->va; in vp9_alloc_work_buf() [all …]
|