Home
last modified time | relevance | path

Searched refs:ptr (Results 1001 - 1025 of 5285) sorted by relevance

1...<<41424344454647484950>>...212

/kernel/linux/linux-6.6/arch/arm/include/asm/
H A Dprocessor.h110 static inline void prefetch(const void *ptr) in prefetch() argument
114 :: "p" (ptr)); in prefetch()
119 static inline void prefetchw(const void *ptr) in prefetchw() argument
127 :: "p" (ptr)); in prefetchw()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dcgroup_attach_autodetach.c29 void *ptr = NULL; in test_cgroup_attach_autodetach() local
67 ptr = malloc(4 * (1 << 20)); in test_cgroup_attach_autodetach()
68 if (CHECK_FAIL(!ptr)) in test_cgroup_attach_autodetach()
109 free(ptr); in test_cgroup_attach_autodetach()
/kernel/linux/linux-5.10/net/sched/
H A Dem_nbyte.c43 unsigned char *ptr = tcf_get_base_ptr(skb, nbyte->hdr.layer); in em_nbyte_match() local
45 ptr += nbyte->hdr.off; in em_nbyte_match()
47 if (!tcf_valid_offset(skb, ptr, nbyte->hdr.len)) in em_nbyte_match()
50 return !memcmp(ptr, nbyte->pattern, nbyte->hdr.len); in em_nbyte_match()
/kernel/linux/linux-5.10/lib/
H A Dtest_kasan_module.c81 struct kasan_rcu_info *ptr; in kasan_rcu_uaf() local
84 ptr = kmalloc(sizeof(struct kasan_rcu_info), GFP_KERNEL); in kasan_rcu_uaf()
85 if (!ptr) { in kasan_rcu_uaf()
90 global_rcu_ptr = rcu_dereference_protected(ptr, NULL); in kasan_rcu_uaf()
/kernel/linux/linux-6.6/drivers/base/test/
H A Droot-device-test.c30 static void devm_device_action(void *ptr) in devm_device_action() argument
32 struct test_priv *priv = ptr; in devm_device_action()
62 static void devm_put_device_action(void *ptr) in devm_put_device_action() argument
64 struct test_priv *priv = ptr; in devm_put_device_action()
/kernel/linux/linux-6.6/arch/x86/um/
H A Dsyscalls_64.c19 unsigned long *ptr = arg2, tmp; in arch_prctl() local
53 ptr = &tmp; in arch_prctl()
56 ret = os_arch_prctl(pid, option, ptr); in arch_prctl()
62 current->thread.arch.fs = (unsigned long) ptr; in arch_prctl()
/kernel/linux/linux-6.6/net/sched/
H A Dem_nbyte.c43 unsigned char *ptr = tcf_get_base_ptr(skb, nbyte->hdr.layer); in em_nbyte_match() local
45 ptr += nbyte->hdr.off; in em_nbyte_match()
47 if (!tcf_valid_offset(skb, ptr, nbyte->hdr.len)) in em_nbyte_match()
50 return !memcmp(ptr, nbyte->pattern, nbyte->hdr.len); in em_nbyte_match()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dcgroup_attach_autodetach.c29 void *ptr = NULL; in serial_test_cgroup_attach_autodetach() local
67 ptr = malloc(4 * (1 << 20)); in serial_test_cgroup_attach_autodetach()
68 if (CHECK_FAIL(!ptr)) in serial_test_cgroup_attach_autodetach()
109 free(ptr); in serial_test_cgroup_attach_autodetach()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dtest_kfunc_dynptr_param.c61 struct bpf_dynptr ptr; in BPF_PROG() local
73 ret = bpf_dynptr_from_mem(value, sizeof(*value), ((__u64)~0ULL), &ptr); in BPF_PROG()
81 err = bpf_verify_pkcs7_signature(&ptr, &ptr, trusted_keyring); in BPF_PROG()
H A Dtask_local_storage_exit_creds.c24 __u64 *ptr; in BPF_PROG() local
26 ptr = bpf_task_storage_get(&task_storage, task, 0, in BPF_PROG()
28 if (ptr) in BPF_PROG()
/kernel/linux/linux-6.6/tools/usb/usbip/libsrc/
H A Dlist.h100 * @ptr: the &struct list_head pointer.
104 #define list_entry(ptr, type, member) \
105 container_of(ptr, type, member)
128 * @ptr: the pointer to the member.
133 #define container_of(ptr, type, member) ({ \
134 const typeof( ((type *)0)->member ) *__mptr = (ptr); \
/kernel/linux/linux-6.6/tools/bpf/runqslower/
H A Drunqslower.bpf.c31 u64 *ptr; in trace_enqueue() local
36 ptr = bpf_task_storage_get(&start, t, 0, in trace_enqueue()
38 if (!ptr) in trace_enqueue()
41 *ptr = bpf_ktime_get_ns(); in trace_enqueue()
/test/xts/hats/kernel/freelist/free_performance/
H A DMalloc_free_performance.cpp204 void *ptr[CLUSTER_SIZE] = {0}; in HWTEST_F() local
217 ptr[j] = malloc(g_sizes[index]); in HWTEST_F()
218 if (!ptr[j]) { in HWTEST_F()
225 free(ptr[j]); in HWTEST_F()
/test/xts/hats/kernel/syscalls/signal/sigaltstack/
H A DSigaltstackApiTest.cpp50 uintptr_t* ptr; in Handle() local
53 ptr = reinterpret_cast<uintptr_t*>(&i); in Handle()
54 EXPECT_TRUE(ptr >= reinterpret_cast<uintptr_t*>(g_stack)); in Handle()
55 EXPECT_TRUE(ptr < reinterpret_cast<uintptr_t*>(g_stack + SIGSTKSZ)); in Handle()
/kernel/linux/linux-5.10/drivers/spi/
H A Dspi-loopback-test.c377 #define RANGE_CHECK(ptr, plen, start, slen) \
378 ((ptr >= start) && (ptr + plen <= start + slen))
383 static void spi_test_print_hex_dump(char *pre, const void *ptr, size_t len) in spi_test_print_hex_dump() argument
389 ptr, len, 0); in spi_test_print_hex_dump()
395 ptr, 512, 0); in spi_test_print_hex_dump()
401 ptr + (len - 512), 512, 0); in spi_test_print_hex_dump()
628 void **ptr, size_t len, in spi_test_translate()
634 if (!*ptr) in spi_test_translate()
638 if (((size_t)*ptr) in spi_test_translate()
627 spi_test_translate(struct spi_device *spi, void **ptr, size_t len, void *tx, void *rx) spi_test_translate() argument
[all...]
/kernel/linux/linux-6.6/drivers/spi/
H A Dspi-loopback-test.c415 #define RANGE_CHECK(ptr, plen, start, slen) \
416 ((ptr >= start) && (ptr + plen <= start + slen))
421 static void spi_test_print_hex_dump(char *pre, const void *ptr, size_t len) in spi_test_print_hex_dump() argument
427 ptr, len, 0); in spi_test_print_hex_dump()
433 ptr, 512, 0); in spi_test_print_hex_dump()
439 ptr + (len - 512), 512, 0); in spi_test_print_hex_dump()
666 void **ptr, size_t len, in spi_test_translate()
672 if (!*ptr) in spi_test_translate()
676 if (((size_t)*ptr) in spi_test_translate()
665 spi_test_translate(struct spi_device *spi, void **ptr, size_t len, void *tx, void *rx) spi_test_translate() argument
[all...]
/kernel/linux/linux-5.10/arch/arm/include/asm/
H A Dtraps.h22 static inline int __in_irqentry_text(unsigned long ptr) in __in_irqentry_text() argument
27 return ptr >= (unsigned long)&__irqentry_text_start && in __in_irqentry_text()
28 ptr < (unsigned long)&__irqentry_text_end; in __in_irqentry_text()
/kernel/linux/linux-5.10/arch/mips/include/asm/
H A Dtlbex.h19 unsigned int tmp, unsigned int ptr);
20 void build_get_pgde32(u32 **p, unsigned int tmp, unsigned int ptr);
21 void build_get_ptep(u32 **p, unsigned int tmp, unsigned int ptr);
/kernel/linux/linux-6.6/arch/mips/include/asm/
H A Dtlbex.h19 unsigned int tmp, unsigned int ptr);
20 void build_get_pgde32(u32 **p, unsigned int tmp, unsigned int ptr);
21 void build_get_ptep(u32 **p, unsigned int tmp, unsigned int ptr);
/kernel/linux/linux-6.6/arch/powerpc/perf/
H A Dcallchain.h24 static inline int __read_user_stack(const void __user *ptr, void *ret, in __read_user_stack() argument
27 unsigned long addr = (unsigned long)ptr; in __read_user_stack()
32 return copy_from_user_nofault(ret, ptr, size); in __read_user_stack()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxfw/
H A Dmlxfw_mfa2_file.h21 const void *ptr) in mlxfw_mfa2_valid_ptr()
26 return ptr > valid_from && ptr < valid_to; in mlxfw_mfa2_valid_ptr()
20 mlxfw_mfa2_valid_ptr(const struct mlxfw_mfa2_file *mfa2_file, const void *ptr) mlxfw_mfa2_valid_ptr() argument
/kernel/linux/linux-5.10/include/linux/
H A Dutil_macros.h42 * is_insidevar - check if the @ptr points inside the @var memory range.
43 * @ptr: the pointer to a memory address.
46 * Evaluates to true if the address in @ptr lies within the memory
49 #define is_insidevar(ptr, var) \
50 ((uintptr_t)(ptr) >= (uintptr_t)(var) && \
51 (uintptr_t)(ptr) < (uintptr_t)(var) + sizeof(var))
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxfw/
H A Dmlxfw_mfa2_file.h21 const void *ptr) in mlxfw_mfa2_valid_ptr()
26 return ptr > valid_from && ptr < valid_to; in mlxfw_mfa2_valid_ptr()
20 mlxfw_mfa2_valid_ptr(const struct mlxfw_mfa2_file *mfa2_file, const void *ptr) mlxfw_mfa2_valid_ptr() argument
/kernel/linux/linux-6.6/include/linux/
H A Dutil_macros.h44 * is_insidevar - check if the @ptr points inside the @var memory range.
45 * @ptr: the pointer to a memory address.
48 * Evaluates to true if the address in @ptr lies within the memory
51 #define is_insidevar(ptr, var) \
52 ((uintptr_t)(ptr) >= (uintptr_t)(var) && \
53 (uintptr_t)(ptr) < (uintptr_t)(var) + sizeof(var))
/kernel/linux/linux-5.10/security/keys/
H A Dkeyring.c674 struct assoc_array_ptr *ptr; in search_nested_keyrings() local
732 ptr = READ_ONCE(keyring->keys.root); in search_nested_keyrings()
733 if (!ptr) in search_nested_keyrings()
736 if (assoc_array_ptr_is_shortcut(ptr)) { in search_nested_keyrings()
741 shortcut = assoc_array_ptr_to_shortcut(ptr); in search_nested_keyrings()
745 ptr = READ_ONCE(shortcut->next_node); in search_nested_keyrings()
746 node = assoc_array_ptr_to_node(ptr); in search_nested_keyrings()
750 node = assoc_array_ptr_to_node(ptr); in search_nested_keyrings()
751 ptr = node->slots[0]; in search_nested_keyrings()
752 if (!assoc_array_ptr_is_meta(ptr)) in search_nested_keyrings()
[all...]

Completed in 11 milliseconds

1...<<41424344454647484950>>...212