Home
last modified time | relevance | path

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

12345678910>>...30

/linux-6.6.21/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.6.21/tools/testing/selftests/kvm/lib/riscv/
Ducall.c18 register uintptr_t a0 asm ("a0") = (uintptr_t)(arg0); in sbi_ecall()
19 register uintptr_t a1 asm ("a1") = (uintptr_t)(arg1); in sbi_ecall()
20 register uintptr_t a2 asm ("a2") = (uintptr_t)(arg2); in sbi_ecall()
21 register uintptr_t a3 asm ("a3") = (uintptr_t)(arg3); in sbi_ecall()
22 register uintptr_t a4 asm ("a4") = (uintptr_t)(arg4); in sbi_ecall()
23 register uintptr_t a5 asm ("a5") = (uintptr_t)(arg5); in sbi_ecall()
24 register uintptr_t a6 asm ("a6") = (uintptr_t)(fid); in sbi_ecall()
25 register uintptr_t a7 asm ("a7") = (uintptr_t)(ext); in sbi_ecall()
/linux-6.6.21/arch/riscv/include/asm/
Dsections.h18 static inline bool is_va_kernel_text(uintptr_t va) in is_va_kernel_text()
20 uintptr_t start = (uintptr_t)_start; in is_va_kernel_text()
21 uintptr_t end = (uintptr_t)__init_data_begin; 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()
28 uintptr_t start = (uintptr_t)lm_alias(_start); in is_va_kernel_lm_alias_text()
29 uintptr_t end = (uintptr_t)lm_alias(__init_data_begin); in is_va_kernel_lm_alias_text()
/linux-6.6.21/arch/riscv/mm/
Dinit.c66 uintptr_t _dtb_early_pa __initdata;
335 return (pte_t *)((uintptr_t)pa); in get_pte_virt_early()
349 static inline phys_addr_t __init alloc_pte_early(uintptr_t va) in alloc_pte_early()
358 static inline phys_addr_t __init alloc_pte_fixmap(uintptr_t va) in alloc_pte_fixmap()
363 static phys_addr_t __init alloc_pte_late(uintptr_t va) in alloc_pte_late()
372 uintptr_t va, phys_addr_t pa, in create_pte_mapping()
375 uintptr_t pte_idx = pte_index(va); in create_pte_mapping()
418 return (pmd_t *)((uintptr_t)pa); in get_pmd_virt_early()
432 static phys_addr_t __init alloc_pmd_early(uintptr_t va) in alloc_pmd_early()
436 return (uintptr_t)early_pmd; in alloc_pmd_early()
[all …]
/linux-6.6.21/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.6.21/mm/kmsan/
Dinstrumentation.c21 static inline bool is_bad_asm_addr(void *addr, uintptr_t size, bool is_store) in is_bad_asm_addr()
49 uintptr_t size);
51 uintptr_t size) in __msan_metadata_ptr_for_load_n()
59 uintptr_t size);
61 uintptr_t size) in __msan_metadata_ptr_for_store_n()
103 void __msan_instrument_asm_store(void *addr, uintptr_t size);
104 void __msan_instrument_asm_store(void *addr, uintptr_t size) in __msan_instrument_asm_store()
156 void *__msan_memmove(void *dst, const void *src, uintptr_t n);
157 void *__msan_memmove(void *dst, const void *src, uintptr_t n) in __msan_memmove()
181 void *__msan_memcpy(void *dst, const void *src, uintptr_t n);
[all …]
/linux-6.6.21/arch/powerpc/net/
Dbpf_jit.h55 if ((int)(uintptr_t)(i) >= -32768 && \
56 (int)(uintptr_t)(i) < 32768) \
70 if (!((uintptr_t)(i) & 0xffff800000000000ULL)) \
71 EMIT(PPC_RAW_LI(d, ((uintptr_t)(i) >> 32) & \
74 EMIT(PPC_RAW_LIS(d, ((uintptr_t)(i) >> 48))); \
75 if ((uintptr_t)(i) & 0x0000ffff00000000ULL) \
77 ((uintptr_t)(i) >> 32) & 0xffff)); \
80 if ((uintptr_t)(i) & 0x00000000ffff0000ULL) \
82 ((uintptr_t)(i) >> 16) & 0xffff)); \
83 if ((uintptr_t)(i) & 0x000000000000ffffULL) \
[all …]
/linux-6.6.21/tools/testing/selftests/kvm/lib/x86_64/
Dhyperv.c19 hv->vp_assist_hva = addr_gva2hva(vm, (uintptr_t)hv->vp_assist); in vcpu_alloc_hyperv_test_pages()
20 hv->vp_assist_gpa = addr_gva2gpa(vm, (uintptr_t)hv->vp_assist); in vcpu_alloc_hyperv_test_pages()
24 hv->partition_assist_hva = addr_gva2hva(vm, (uintptr_t)hv->partition_assist); in vcpu_alloc_hyperv_test_pages()
25 hv->partition_assist_gpa = addr_gva2gpa(vm, (uintptr_t)hv->partition_assist); in vcpu_alloc_hyperv_test_pages()
29 hv->enlightened_vmcs_hva = addr_gva2hva(vm, (uintptr_t)hv->enlightened_vmcs); in vcpu_alloc_hyperv_test_pages()
30 hv->enlightened_vmcs_gpa = addr_gva2gpa(vm, (uintptr_t)hv->enlightened_vmcs); in vcpu_alloc_hyperv_test_pages()
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.6.21/arch/riscv/kernel/
Dpatch.c30 static inline bool is_kernel_exittext(uintptr_t addr) in is_kernel_exittext()
33 addr >= (uintptr_t)__exittext_begin && in is_kernel_exittext()
34 addr < (uintptr_t)__exittext_end; in is_kernel_exittext()
44 uintptr_t uintaddr = (uintptr_t) addr; in patch_map()
69 bool across_pages = (((uintptr_t)addr & ~PAGE_MASK) + len) > PAGE_SIZE; in __patch_insn_set()
102 bool across_pages = (((uintptr_t) addr & ~PAGE_MASK) + len) > PAGE_SIZE; in __patch_insn_write()
185 flush_icache_range((uintptr_t)tp, (uintptr_t)tp + len); in patch_text_set_nosync()
220 flush_icache_range((uintptr_t) tp, (uintptr_t) tp + len); in patch_text_nosync()
Dsbi.c33 register uintptr_t a0 asm ("a0") = (uintptr_t)(arg0); in sbi_ecall()
34 register uintptr_t a1 asm ("a1") = (uintptr_t)(arg1); in sbi_ecall()
35 register uintptr_t a2 asm ("a2") = (uintptr_t)(arg2); in sbi_ecall()
36 register uintptr_t a3 asm ("a3") = (uintptr_t)(arg3); in sbi_ecall()
37 register uintptr_t a4 asm ("a4") = (uintptr_t)(arg4); in sbi_ecall()
38 register uintptr_t a5 asm ("a5") = (uintptr_t)(arg5); in sbi_ecall()
39 register uintptr_t a6 asm ("a6") = (uintptr_t)(fid); in sbi_ecall()
40 register uintptr_t a7 asm ("a7") = (uintptr_t)(ext); in sbi_ecall()
/linux-6.6.21/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.6.21/arch/riscv/kernel/pi/
Dcmdline_early.c16 u64 set_satp_mode_from_cmdline(uintptr_t dtb_pa);
17 bool set_nokaslr_from_cmdline(uintptr_t dtb_pa);
19 static char *get_early_cmdline(uintptr_t dtb_pa) in get_early_cmdline()
57 u64 set_satp_mode_from_cmdline(uintptr_t dtb_pa) in set_satp_mode_from_cmdline()
69 bool set_nokaslr_from_cmdline(uintptr_t dtb_pa) in set_nokaslr_from_cmdline()
/linux-6.6.21/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.6.21/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.6.21/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.6.21/include/linux/
Dutil_macros.h52 ((uintptr_t)(ptr) >= (uintptr_t)(var) && \
53 (uintptr_t)(ptr) < (uintptr_t)(var) + sizeof(var))
/linux-6.6.21/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.6.21/drivers/accel/habanalabs/common/
Dhabanalabs_ioctl.c35 void __user *out = (void __user *) (uintptr_t) args->return_pointer; in device_status_info()
50 void __user *out = (void __user *) (uintptr_t) args->return_pointer; in hw_ip_info()
120 void __user *out = (void __user *) (uintptr_t) args->return_pointer; in hw_events_info()
139 void __user *out = (void __user *) (uintptr_t) args->return_pointer; in events_info()
157 void __user *out = (void __user *) (uintptr_t) args->return_pointer; in dram_usage_info()
180 void __user *out = (void __user *) (uintptr_t) args->return_pointer; in hw_idle()
244 if (output && copy_to_user((void __user *) (uintptr_t) args->output_ptr, in debug_coresight()
264 void __user *out = (void __user *) (uintptr_t) args->return_pointer; in device_utilization()
282 void __user *out = (void __user *) (uintptr_t) args->return_pointer; in get_clk_rate()
300 void __user *out = (void __user *) (uintptr_t) args->return_pointer; in get_reset_count()
[all …]
/linux-6.6.21/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.6.21/tools/include/nolibc/
Dstackprotector.h38 uintptr_t __stack_chk_guard;
44 if (__stack_chk_guard != (uintptr_t) &__stack_chk_guard) in __stack_chk_init()
45 __stack_chk_guard ^= (uintptr_t) &__stack_chk_guard; in __stack_chk_init()
/linux-6.6.21/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>>...30