Home
last modified time | relevance | path

Searched refs:uintptr_t (Results 1 – 25 of 644) sorted by relevance

12345678910>>...26

/linux-6.1.9/arch/powerpc/include/asm/
Dfsl_hcalls.h93 register uintptr_t r11 __asm__("r11"); in fh_send_nmi()
94 register uintptr_t r3 __asm__("r3"); in fh_send_nmi()
127 register uintptr_t r11 __asm__("r11"); in fh_partition_get_dtprop()
128 register uintptr_t r3 __asm__("r3"); in fh_partition_get_dtprop()
129 register uintptr_t r4 __asm__("r4"); in fh_partition_get_dtprop()
130 register uintptr_t r5 __asm__("r5"); in fh_partition_get_dtprop()
131 register uintptr_t r6 __asm__("r6"); in fh_partition_get_dtprop()
132 register uintptr_t r7 __asm__("r7"); in fh_partition_get_dtprop()
133 register uintptr_t r8 __asm__("r8"); in fh_partition_get_dtprop()
134 register uintptr_t r9 __asm__("r9"); in fh_partition_get_dtprop()
[all …]
Depapr_hcalls.h139 register uintptr_t r11 __asm__("r11"); in ev_int_set_config()
140 register uintptr_t r3 __asm__("r3"); in ev_int_set_config()
141 register uintptr_t r4 __asm__("r4"); in ev_int_set_config()
142 register uintptr_t r5 __asm__("r5"); in ev_int_set_config()
143 register uintptr_t r6 __asm__("r6"); in ev_int_set_config()
171 register uintptr_t r11 __asm__("r11"); in ev_int_get_config()
172 register uintptr_t r3 __asm__("r3"); in ev_int_get_config()
173 register uintptr_t r4 __asm__("r4"); in ev_int_get_config()
174 register uintptr_t r5 __asm__("r5"); in ev_int_get_config()
175 register uintptr_t r6 __asm__("r6"); in ev_int_get_config()
[all …]
/linux-6.1.9/tools/testing/selftests/kvm/lib/riscv/
Ducall.c26 register uintptr_t a0 asm ("a0") = (uintptr_t)(arg0); in sbi_ecall()
27 register uintptr_t a1 asm ("a1") = (uintptr_t)(arg1); in sbi_ecall()
28 register uintptr_t a2 asm ("a2") = (uintptr_t)(arg2); in sbi_ecall()
29 register uintptr_t a3 asm ("a3") = (uintptr_t)(arg3); in sbi_ecall()
30 register uintptr_t a4 asm ("a4") = (uintptr_t)(arg4); in sbi_ecall()
31 register uintptr_t a5 asm ("a5") = (uintptr_t)(arg5); in sbi_ecall()
32 register uintptr_t a6 asm ("a6") = (uintptr_t)(fid); in sbi_ecall()
33 register uintptr_t a7 asm ("a7") = (uintptr_t)(ext); in sbi_ecall()
/linux-6.1.9/arch/riscv/include/asm/
Dsections.h17 static inline bool is_va_kernel_text(uintptr_t va) in is_va_kernel_text()
19 uintptr_t start = (uintptr_t)_start; in is_va_kernel_text()
20 uintptr_t end = (uintptr_t)__init_data_begin; in is_va_kernel_text()
25 static inline bool is_va_kernel_lm_alias_text(uintptr_t va) in is_va_kernel_lm_alias_text()
27 uintptr_t start = (uintptr_t)lm_alias(_start); in is_va_kernel_lm_alias_text()
28 uintptr_t end = (uintptr_t)lm_alias(__init_data_begin); in is_va_kernel_lm_alias_text()
Dsyscall.h77 asmlinkage long sys_riscv_flush_icache(uintptr_t, uintptr_t, uintptr_t);
/linux-6.1.9/arch/riscv/mm/
Dinit.c62 uintptr_t _dtb_early_pa __initdata;
332 return (pte_t *)((uintptr_t)pa); in get_pte_virt_early()
346 static inline phys_addr_t __init alloc_pte_early(uintptr_t va) in alloc_pte_early()
355 static inline phys_addr_t __init alloc_pte_fixmap(uintptr_t va) in alloc_pte_fixmap()
360 static phys_addr_t __init alloc_pte_late(uintptr_t va) in alloc_pte_late()
371 uintptr_t va, phys_addr_t pa, in create_pte_mapping()
374 uintptr_t pte_idx = pte_index(va); in create_pte_mapping()
417 return (pmd_t *)((uintptr_t)pa); in get_pmd_virt_early()
431 static phys_addr_t __init alloc_pmd_early(uintptr_t va) in alloc_pmd_early()
435 return (uintptr_t)early_pmd; in alloc_pmd_early()
[all …]
Dkasan_init.c134 phys_addr = __pa(((uintptr_t)kasan_early_shadow_pmd)); in kasan_populate_pud()
192 phys_addr = __pa(((uintptr_t)kasan_early_shadow_pud)); in kasan_populate_p4d()
218 (uintptr_t)kasan_early_shadow_p4d : \
220 (uintptr_t)kasan_early_shadow_pud : \
221 (uintptr_t)kasan_early_shadow_pmd))
241 phys_addr = __pa((uintptr_t)kasan_early_shadow_pgd_next); in kasan_populate_pgd()
267 uintptr_t i; in kasan_early_init()
279 (__pa((uintptr_t)kasan_early_shadow_pte)), in kasan_early_init()
286 (__pa(((uintptr_t)kasan_early_shadow_pmd))), in kasan_early_init()
294 (__pa(((uintptr_t)kasan_early_shadow_pud))), in kasan_early_init()
/linux-6.1.9/arch/x86/include/asm/
Dxor_avx.h49 p0 = (unsigned long *)((uintptr_t)p0 + 512); in xor_avx_2()
50 p1 = (unsigned long *)((uintptr_t)p1 + 512); in xor_avx_2()
79 p0 = (unsigned long *)((uintptr_t)p0 + 512); in xor_avx_3()
80 p1 = (unsigned long *)((uintptr_t)p1 + 512); in xor_avx_3()
81 p2 = (unsigned long *)((uintptr_t)p2 + 512); in xor_avx_3()
113 p0 = (unsigned long *)((uintptr_t)p0 + 512); in xor_avx_4()
114 p1 = (unsigned long *)((uintptr_t)p1 + 512); in xor_avx_4()
115 p2 = (unsigned long *)((uintptr_t)p2 + 512); in xor_avx_4()
116 p3 = (unsigned long *)((uintptr_t)p3 + 512); in xor_avx_4()
151 p0 = (unsigned long *)((uintptr_t)p0 + 512); in xor_avx_5()
[all …]
/linux-6.1.9/arch/powerpc/net/
Dbpf_jit.h53 if ((int)(uintptr_t)(i) >= -32768 && \
54 (int)(uintptr_t)(i) < 32768) \
68 if (!((uintptr_t)(i) & 0xffff800000000000ULL)) \
69 EMIT(PPC_RAW_LI(d, ((uintptr_t)(i) >> 32) & \
72 EMIT(PPC_RAW_LIS(d, ((uintptr_t)(i) >> 48))); \
73 if ((uintptr_t)(i) & 0x0000ffff00000000ULL) \
75 ((uintptr_t)(i) >> 32) & 0xffff)); \
78 if ((uintptr_t)(i) & 0x00000000ffff0000ULL) \
80 ((uintptr_t)(i) >> 16) & 0xffff)); \
81 if ((uintptr_t)(i) & 0x000000000000ffffULL) \
[all …]
/linux-6.1.9/tools/testing/selftests/vDSO/
Dparse_vdso.c44 uintptr_t load_addr;
45 uintptr_t load_offset; /* load_addr - recorded vaddr */
72 void vdso_init_from_sysinfo_ehdr(uintptr_t base) in vdso_init_from_sysinfo_ehdr()
99 + (uintptr_t)pt[i].p_offset in vdso_init_from_sysinfo_ehdr()
100 - (uintptr_t)pt[i].p_vaddr; in vdso_init_from_sysinfo_ehdr()
121 ((uintptr_t)dyn[i].d_un.d_ptr in vdso_init_from_sysinfo_ehdr()
126 ((uintptr_t)dyn[i].d_un.d_ptr in vdso_init_from_sysinfo_ehdr()
131 ((uintptr_t)dyn[i].d_un.d_ptr in vdso_init_from_sysinfo_ehdr()
136 ((uintptr_t)dyn[i].d_un.d_ptr in vdso_init_from_sysinfo_ehdr()
141 ((uintptr_t)dyn[i].d_un.d_ptr in vdso_init_from_sysinfo_ehdr()
/linux-6.1.9/arch/riscv/kernel/
Dsbi.c32 register uintptr_t a0 asm ("a0") = (uintptr_t)(arg0); in sbi_ecall()
33 register uintptr_t a1 asm ("a1") = (uintptr_t)(arg1); in sbi_ecall()
34 register uintptr_t a2 asm ("a2") = (uintptr_t)(arg2); in sbi_ecall()
35 register uintptr_t a3 asm ("a3") = (uintptr_t)(arg3); in sbi_ecall()
36 register uintptr_t a4 asm ("a4") = (uintptr_t)(arg4); in sbi_ecall()
37 register uintptr_t a5 asm ("a5") = (uintptr_t)(arg5); in sbi_ecall()
38 register uintptr_t a6 asm ("a6") = (uintptr_t)(fid); in sbi_ecall()
39 register uintptr_t a7 asm ("a7") = (uintptr_t)(ext); in sbi_ecall()
Dpatch.c30 uintptr_t uintaddr = (uintptr_t) addr; in patch_map()
55 bool across_pages = (((uintptr_t) addr & ~PAGE_MASK) + len) > PAGE_SIZE; in patch_insn_write()
96 flush_icache_range((uintptr_t) tp, (uintptr_t) tp + len); in patch_text_nosync()
Dsys_riscv.c61 SYSCALL_DEFINE3(riscv_flush_icache, uintptr_t, start, uintptr_t, end, in SYSCALL_DEFINE3() argument
62 uintptr_t, flags) in SYSCALL_DEFINE3()
/linux-6.1.9/mm/kmsan/
Dinstrumentation.c21 static inline bool is_bad_asm_addr(void *addr, uintptr_t size, bool is_store) in is_bad_asm_addr()
43 uintptr_t size) in __msan_metadata_ptr_for_load_n()
51 uintptr_t size) in __msan_metadata_ptr_for_store_n()
85 void __msan_instrument_asm_store(void *addr, uintptr_t size) in __msan_instrument_asm_store()
139 void *__msan_memmove(void *dst, const void *src, uintptr_t n) in __msan_memmove()
163 void *__msan_memcpy(void *dst, const void *src, uintptr_t n) in __msan_memcpy()
189 void *__msan_memset(void *dst, int c, uintptr_t n) in __msan_memset()
238 void __msan_poison_alloca(void *address, uintptr_t size, char *descr) in __msan_poison_alloca()
273 void __msan_unpoison_alloca(void *address, uintptr_t size) in __msan_unpoison_alloca()
/linux-6.1.9/tools/testing/selftests/arm64/mte/
Dcheck_tags_inclusion.c24 mte_initialize_current_context(mode, (uintptr_t)ptr, BUFFER_SIZE); in verify_mte_pointer_validity()
34 if (!MT_FETCH_TAG((uintptr_t)ptr)) in verify_mte_pointer_validity()
36 mte_initialize_current_context(mode, (uintptr_t)ptr, BUFFER_SIZE + 1); in verify_mte_pointer_validity()
67 if (MT_FETCH_TAG((uintptr_t)ptr) == tag) { in check_single_included_tags()
69 MT_FETCH_TAG((uintptr_t)ptr), in check_single_included_tags()
99 if (MT_FETCH_TAG((uintptr_t)ptr) < tag) { in check_multiple_included_tags()
101 MT_FETCH_TAG((uintptr_t)ptr), in check_multiple_included_tags()
155 if (MT_FETCH_TAG((uintptr_t)ptr)) { in check_none_included_tags()
160 mte_initialize_current_context(mode, (uintptr_t)ptr, BUFFER_SIZE); in check_none_included_tags()
Dcheck_child_memory.c34 parent_tag = MT_FETCH_TAG((uintptr_t)ptr); in check_child_tag_inheritance()
42 mte_initialize_current_context(mode, (uintptr_t)ptr, size); in check_child_tag_inheritance()
51 child_tag = MT_FETCH_TAG((uintptr_t)(mte_get_tag_address(ptr + i))); in check_child_tag_inheritance()
58 mte_initialize_current_context(mode, (uintptr_t)ptr, -UNDERFLOW); in check_child_tag_inheritance()
65 mte_initialize_current_context(mode, (uintptr_t)ptr, size + OVERFLOW); in check_child_tag_inheritance()
125 mte_initialize_current_context(mode, (uintptr_t)ptr, sizes[run]); in check_child_file_mapping()
/linux-6.1.9/tools/testing/selftests/kvm/lib/x86_64/
Dvmx.c82 vmx->vmxon_hva = addr_gva2hva(vm, (uintptr_t)vmx->vmxon); in vcpu_alloc_vmx()
83 vmx->vmxon_gpa = addr_gva2gpa(vm, (uintptr_t)vmx->vmxon); in vcpu_alloc_vmx()
87 vmx->vmcs_hva = addr_gva2hva(vm, (uintptr_t)vmx->vmcs); in vcpu_alloc_vmx()
88 vmx->vmcs_gpa = addr_gva2gpa(vm, (uintptr_t)vmx->vmcs); in vcpu_alloc_vmx()
92 vmx->msr_hva = addr_gva2hva(vm, (uintptr_t)vmx->msr); in vcpu_alloc_vmx()
93 vmx->msr_gpa = addr_gva2gpa(vm, (uintptr_t)vmx->msr); in vcpu_alloc_vmx()
98 vmx->shadow_vmcs_hva = addr_gva2hva(vm, (uintptr_t)vmx->shadow_vmcs); in vcpu_alloc_vmx()
99 vmx->shadow_vmcs_gpa = addr_gva2gpa(vm, (uintptr_t)vmx->shadow_vmcs); in vcpu_alloc_vmx()
103 vmx->vmread_hva = addr_gva2hva(vm, (uintptr_t)vmx->vmread); in vcpu_alloc_vmx()
104 vmx->vmread_gpa = addr_gva2gpa(vm, (uintptr_t)vmx->vmread); in vcpu_alloc_vmx()
[all …]
Dsvm.c38 svm->vmcb_hva = addr_gva2hva(vm, (uintptr_t)svm->vmcb); in vcpu_alloc_svm()
39 svm->vmcb_gpa = addr_gva2gpa(vm, (uintptr_t)svm->vmcb); in vcpu_alloc_svm()
42 svm->save_area_hva = addr_gva2hva(vm, (uintptr_t)svm->save_area); in vcpu_alloc_svm()
43 svm->save_area_gpa = addr_gva2gpa(vm, (uintptr_t)svm->save_area); in vcpu_alloc_svm()
46 svm->msr_hva = addr_gva2hva(vm, (uintptr_t)svm->msr); in vcpu_alloc_svm()
47 svm->msr_gpa = addr_gva2gpa(vm, (uintptr_t)svm->msr); in vcpu_alloc_svm()
/linux-6.1.9/arch/arm/include/asm/
Dfncpy.h60 uintptr_t __funcp_address; \
69 BUG_ON((uintptr_t)(dest_buf) & (FNCPY_ALIGN - 1) || \
70 (__funcp_address & ~(uintptr_t)1 & (FNCPY_ALIGN - 1))); \
77 : "0" ((uintptr_t)(dest_buf) | (__funcp_address & 1))); \
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_subprogs.c54 __noinline int get_task_tgid(uintptr_t t) in get_task_tgid()
73 if (!BPF_CORE_READ(t, pid) || !get_task_tgid((uintptr_t)t)) in prog1()
85 if (!BPF_CORE_READ(t, pid) || !get_task_tgid((uintptr_t)t)) in prog2()
103 if (!BPF_CORE_READ(t, pid) || !get_task_tgid((uintptr_t)t)) in prog3()
119 if (!BPF_CORE_READ(t, pid) || !get_task_tgid((uintptr_t)t)) in prog4()
/linux-6.1.9/fs/vboxsf/
Dvboxsf_wrappers.c82 parms.path.u.pointer.u.linear_addr = (uintptr_t)folder_name; in vboxsf_map_folder()
140 parms.path.u.pointer.u.linear_addr = (uintptr_t)parsed_path; in vboxsf_create()
144 parms.parms.u.pointer.u.linear_addr = (uintptr_t)create_parms; in vboxsf_create()
171 parms.path.u.pointer.u.linear_addr = (uintptr_t)parsed_path; in vboxsf_remove()
189 parms.src.u.pointer.u.linear_addr = (uintptr_t)src_path; in vboxsf_rename()
193 parms.dest.u.pointer.u.linear_addr = (uintptr_t)dest_path; in vboxsf_rename()
217 parms.buffer.u.pointer.u.linear_addr = (uintptr_t)buf; in vboxsf_read()
241 parms.buffer.u.pointer.u.linear_addr = (uintptr_t)buf; in vboxsf_write()
269 parms.path.u.pointer.u.linear_addr = (uintptr_t)parsed_path; in vboxsf_dirinfo()
278 parms.buffer.u.pointer.u.linear_addr = (uintptr_t)buf; in vboxsf_dirinfo()
[all …]
/linux-6.1.9/tools/testing/selftests/bpf/
Dtrace_helpers.c161 if (buf[2] == 'x' && (uintptr_t)addr >= start && (uintptr_t)addr < end) { in get_uprobe_offset()
196 const u32 *insn = (const u32 *)(uintptr_t)addr; in get_uprobe_offset()
201 return (uintptr_t)(insn + 2) - start + base; in get_uprobe_offset()
204 return (uintptr_t)addr - start + base; in get_uprobe_offset()
207 ssize_t get_rel_offset(uintptr_t addr) in get_rel_offset()
/linux-6.1.9/drivers/misc/habanalabs/common/
Dhabanalabs_ioctl.c34 void __user *out = (void __user *) (uintptr_t) args->return_pointer; in device_status_info()
49 void __user *out = (void __user *) (uintptr_t) args->return_pointer; in hw_ip_info()
117 void __user *out = (void __user *) (uintptr_t) args->return_pointer; in hw_events_info()
132 void __user *out = (void __user *) (uintptr_t) args->return_pointer; in events_info()
150 void __user *out = (void __user *) (uintptr_t) args->return_pointer; in dram_usage_info()
173 void __user *out = (void __user *) (uintptr_t) args->return_pointer; in hw_idle()
237 if (output && copy_to_user((void __user *) (uintptr_t) args->output_ptr, in debug_coresight()
257 void __user *out = (void __user *) (uintptr_t) args->return_pointer; in device_utilization()
275 void __user *out = (void __user *) (uintptr_t) args->return_pointer; in get_clk_rate()
293 void __user *out = (void __user *) (uintptr_t) args->return_pointer; in get_reset_count()
[all …]
/linux-6.1.9/include/linux/iio/
Diio.h49 ssize_t (*read)(struct iio_dev *, uintptr_t private,
51 ssize_t (*write)(struct iio_dev *, uintptr_t private,
54 uintptr_t private;
81 uintptr_t priv, const struct iio_chan_spec *chan, char *buf);
83 uintptr_t priv, const struct iio_chan_spec *chan, char *buf);
85 uintptr_t priv, const struct iio_chan_spec *chan, const char *buf,
102 .private = (uintptr_t)(_e), \
119 .private = (uintptr_t)(_e), \
131 ssize_t iio_show_mount_matrix(struct iio_dev *indio_dev, uintptr_t priv,
149 .private = (uintptr_t)(_get), \
/linux-6.1.9/lib/
Dpci_iomap.c168 uintptr_t start = (uintptr_t) PCI_IOBASE; in pci_iounmap()
169 uintptr_t addr = (uintptr_t) p; in pci_iounmap()

12345678910>>...26