/openbmc/linux/sound/soc/codecs/ |
H A D | lpass-va-macro.c | 21 /* VA macro registers */ 255 /* VA macro */ 279 /* VA core */ 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 [all …]
|
/openbmc/qemu/tests/tcg/s390x/ |
H A D | vxeh2_vlstr.c | 12 static inline void vler(S390Vector *v1, const void *va, uint8_t m3) in vler() argument 14 asm volatile("vler %[v1], 0(%[va]), %[m3]\n" in vler() 16 : [va] "a" (va) in vler() 21 static inline void vster(S390Vector *v1, const void *va, uint8_t m3) in vster() argument 23 asm volatile("vster %[v1], 0(%[va]), %[m3]\n" in vster() 24 : [va] "+a" (va) in vster() 30 static inline void vlbr(S390Vector *v1, void *va, const uint8_t m3) in vlbr() argument 32 asm volatile("vlbr %[v1], 0(%[va]), %[m3]\n" in vlbr() 34 : [va] "a" (va) in vlbr() 39 static inline void vstbr(S390Vector *v1, void *va, const uint8_t m3) in vstbr() argument [all …]
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_gpuva_mgr.c | 36 * The DRM GPU VA Manager, represented by struct drm_gpuva_manager keeps track 37 * of a GPU's virtual address (VA) space and manages the corresponding virtual 42 * all existent GPU VA mappings using this &drm_gem_object as backing buffer. 47 * The GPU VA manager internally uses a rb-tree to manage the 51 * portion of VA space reserved by the kernel. This node is initialized together 52 * with the GPU VA manager instance and removed when the GPU VA manager is 69 * Besides its capability to manage and represent a GPU VA space, the 73 * Therefore the DRM GPU VA manager provides an algorithm implementing splitting 74 * and merging of existent GPU VA mappings with the ones that are requested to 83 * of the GPU VA space. [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/ |
H A D | nouveau_uvmm.c | 6 * The uvmm mutex protects any operations on the GPU VA space provided by the 7 * DRM GPU VA manager. 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() [all …]
|
/openbmc/qemu/contrib/elf2dmp/ |
H A D | addrspace.c | 123 static bool get_pml4e(struct va_space *vs, uint64_t va, uint64_t *value) in get_pml4e() argument 125 uint64_t pa = (vs->dtb & 0xffffffffff000) | ((va & 0xff8000000000) >> 36); in get_pml4e() 130 static bool get_pdpi(struct va_space *vs, uint64_t va, uint64_t pml4e, in get_pdpi() argument 134 ((va & 0x7FC0000000) >> 27); in get_pdpi() 139 static uint64_t pde_index(uint64_t va) in pde_index() argument 141 return (va >> 21) & 0x1FF; in pde_index() 149 static bool get_pgd(struct va_space *vs, uint64_t va, uint64_t pdpe, in get_pgd() argument 152 uint64_t pgd_entry = pdba_base(pdpe) + pde_index(va) * 8; in get_pgd() 157 static uint64_t pte_index(uint64_t va) in pte_index() argument 159 return (va >> 12) & 0x1FF; in pte_index() [all …]
|
/openbmc/linux/drivers/scsi/qedi/ |
H A 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 …]
|
/openbmc/linux/include/drm/ |
H A D | drm_gpuva_mgr.h | 62 * struct drm_gpuva - structure to track a GPU VA mapping 64 * This structure represents a GPU VA mapping and is associated with a 81 * @va: structure containing the address and range of the &drm_gpuva 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() [all …]
|
/openbmc/linux/mm/ |
H A D | vmalloc.c | 758 * All vmap_area objects in this tree are sorted by va->va_start 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() 805 /* Look up the first VA which satisfies addr < va_end, NULL if none. */ 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() [all …]
|
/openbmc/qemu/target/alpha/ |
H A D | translate.c | 764 static void gen_cpy_mask(TCGv vc, TCGv va, TCGv vb, bool inv_a, uint64_t mask) in IEEE_INTCVT() 770 tcg_gen_andc_i64(tmp, vmask, va); in IEEE_INTCVT() 772 tcg_gen_and_i64(tmp, va, vmask); in IEEE_INTCVT() 783 TCGv va, vb, vc; in gen_ieee_arith3() local 788 va = gen_ieee_input(ctx, ra, fn11, 0); in gen_ieee_arith3() 791 helper(vc, tcg_env, va, vb); in gen_ieee_arith3() 815 TCGv va, vb, vc; in IEEE_ARITH3() local 817 va = gen_ieee_input(ctx, ra, fn11, 1); in IEEE_ARITH3() 820 helper(vc, tcg_env, va, vb); in IEEE_ARITH3() 877 static void gen_ext_h(DisasContext *ctx, TCGv vc, TCGv va, int rb, bool islit, in gen_ext_h() argument [all …]
|
/openbmc/linux/drivers/scsi/qedf/ |
H A 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 …]
|
/openbmc/linux/drivers/gpu/drm/i915/gt/ |
H A D | selftest_tlb.c | 33 struct i915_vma *va, in pte_tlbinv() argument 64 /* Pin va at random but aligned offset after vma */ in pte_tlbinv() 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() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | qcom,lpass-va-macro.yaml | 4 $id: http://devicetree.org/schemas/sound/qcom,lpass-va-macro.yaml# 7 title: LPASS(Low Power Audio Subsystem) VA Macro audio codec 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 [all …]
|
H A D | cs42l56.txt | 9 - VA-supply, VCP-supply, VLDO-supply : power supplies for the device, 31 0 = 0.5 x VA 32 1 = 0.6 x VA 33 2 = 0.7 x VA 34 3 = 0.8 x VA 35 4 = 0.83 x VA 36 5 = 0.91 x VA 62 VA-supply = <®_audio>;
|
/openbmc/linux/arch/powerpc/mm/nohash/ |
H A D | 8xx.c | 20 * Return PA for this VA if it is in an area mapped with LTLBs or fixmap. 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() 35 * Return VA for a given PA mapped with LTLBs or fixmap 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 [all …]
|
/openbmc/u-boot/lib/ |
H A D | tiny-printf.c | 198 static int _vprintf(struct printf_info *info, const char *fmt, va_list va) in _vprintf() argument 246 num = va_arg(va, unsigned long); in _vprintf() 250 num = va_arg(va, unsigned int); in _vprintf() 271 num = va_arg(va, unsigned long); in _vprintf() 274 num = va_arg(va, unsigned int); in _vprintf() 285 out(info, (char)(va_arg(va, int))); in _vprintf() 288 p = va_arg(va, char*); in _vprintf() 291 pointer(info, fmt, va_arg(va, void *)); in _vprintf() 324 int vprintf(const char *fmt, va_list va) in vprintf() argument 329 return _vprintf(&info, fmt, va); in vprintf() [all …]
|
/openbmc/linux/lib/ |
H A 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()
|
/openbmc/linux/tools/testing/selftests/kvm/lib/ |
H A 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 …]
|
/openbmc/linux/drivers/dio/ |
H A 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 …]
|
/openbmc/linux/arch/riscv/mm/ |
H A D | init.c | 371 static inline phys_addr_t __init alloc_pte_early(uintptr_t va) in alloc_pte_early() argument 380 static inline phys_addr_t __init alloc_pte_fixmap(uintptr_t va) in alloc_pte_fixmap() argument 385 static phys_addr_t __init alloc_pte_late(uintptr_t va) in alloc_pte_late() argument 394 uintptr_t va, phys_addr_t pa, in create_pte_mapping() argument 397 uintptr_t pte_idx = pte_index(va); in create_pte_mapping() 454 static phys_addr_t __init alloc_pmd_early(uintptr_t va) in alloc_pmd_early() argument 456 BUG_ON((va - kernel_map.virt_addr) >> PUD_SHIFT); in alloc_pmd_early() 461 static phys_addr_t __init alloc_pmd_fixmap(uintptr_t va) in alloc_pmd_fixmap() argument 466 static phys_addr_t __init alloc_pmd_late(uintptr_t va) in alloc_pmd_late() argument 475 uintptr_t va, phys_addr_t pa, in create_pmd_mapping() argument [all …]
|
/openbmc/linux/arch/powerpc/mm/book3s64/ |
H A D | hash_native.c | 72 unsigned long va; in ___tlbie() local 77 * We need 14 to 65 bits of va for a tlibe of 4K page in ___tlbie() 83 va = vpn << VPN_SHIFT; in ___tlbie() 85 * clear top 16 bits of 64bit va, non SLS segment 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() 104 /* We need 14 to 14 + i bits of va */ in ___tlbie() [all …]
|
/openbmc/linux/fs/ceph/ |
H A 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()
|
/openbmc/linux/drivers/video/fbdev/vermilion/ |
H A 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 …]
|
/openbmc/linux/arch/riscv/include/asm/ |
H A 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()
|
/openbmc/linux/drivers/infiniband/hw/usnic/ |
H A D | usnic_uiom.c | 59 usnic_err("Device %s iommu fault domain 0x%pK va 0x%lx flags 0x%x\n", in usnic_uiom_dma_fault() 166 usnic_dbg("va: 0x%lx pa: %pa\n", in usnic_uiom_get_pages() 194 long unsigned va, size; in usnic_uiom_unmap_sorted_intervals() local 197 va = interval->start << PAGE_SHIFT; in usnic_uiom_unmap_sorted_intervals() 201 usnic_dbg("va 0x%lx size 0x%lx", va, PAGE_SIZE); in usnic_uiom_unmap_sorted_intervals() 202 iommu_unmap(pd->domain, va, PAGE_SIZE); in usnic_uiom_unmap_sorted_intervals() 203 va += PAGE_SIZE; in usnic_uiom_unmap_sorted_intervals() 220 vpn_start = (uiomr->va & PAGE_MASK) >> PAGE_SHIFT; in __usnic_uiom_reg_release() 251 long int va = uiomr->va & PAGE_MASK; in usnic_uiom_map_sorted_intervals() local 259 for (i = 0; i < chunk->nents; i++, va += PAGE_SIZE) { in usnic_uiom_map_sorted_intervals() [all …]
|
/openbmc/qemu/target/hexagon/ |
H A D | macros.h | 83 #define CHECK_NOSHUF(VA, SIZE) \ argument 86 probe_noshuf_load(VA, SIZE, ctx->mem_idx); \ 105 #define MEM_LOAD1s(DST, VA) \ argument 107 CHECK_NOSHUF(VA, 1); \ 108 tcg_gen_qemu_ld_tl(DST, VA, ctx->mem_idx, MO_SB); \ 110 #define MEM_LOAD1u(DST, VA) \ argument 112 CHECK_NOSHUF(VA, 1); \ 113 tcg_gen_qemu_ld_tl(DST, VA, ctx->mem_idx, MO_UB); \ 115 #define MEM_LOAD2s(DST, VA) \ argument 117 CHECK_NOSHUF(VA, 2); \ [all …]
|