Home
last modified time | relevance | path

Searched refs:ptr (Results 226 - 250 of 11079) sorted by relevance

12345678910>>...444

/kernel/linux/linux-5.10/drivers/net/ppp/
H A Dppp_mppe.h36 u_char *ptr = ci; /* u_char[4] */ \
40 *ptr++ = 0x0; \
42 *ptr++ = MPPE_H_BIT; \
43 *ptr++ = 0; \
44 *ptr++ = 0; \
47 *ptr = 0; \
49 *ptr |= MPPE_S_BIT; \
51 *ptr |= MPPE_L_BIT; \
58 u_char *ptr = ci; /* u_char[4] */ \
63 if (!(ptr[
[all...]
/kernel/linux/linux-6.6/drivers/net/ppp/
H A Dppp_mppe.h36 u_char *ptr = ci; /* u_char[4] */ \
40 *ptr++ = 0x0; \
42 *ptr++ = MPPE_H_BIT; \
43 *ptr++ = 0; \
44 *ptr++ = 0; \
47 *ptr = 0; \
49 *ptr |= MPPE_S_BIT; \
51 *ptr |= MPPE_L_BIT; \
58 u_char *ptr = ci; /* u_char[4] */ \
63 if (!(ptr[
[all...]
/kernel/liteos_a/compat/posix/src/
H A Dmalloc.c45 void *ptr = NULL; in calloc() local
52 ptr = LOS_KernelMalloc((UINT32) real_size); in calloc()
53 if (ptr != NULL) { in calloc()
54 (void) memset_s((void *) ptr, real_size, 0, real_size); in calloc()
56 return ptr; in calloc()
61 * realloc. The argument ptr points to the space that was previously allocated.
62 * If ptr points to a memory block that was not allocated with calloc, malloc,
66 void free(void *ptr) in free() argument
68 if (ptr == NULL) { in free()
72 LOS_KernelFree(ptr); in free()
91 void *ptr = NULL; zalloc() local
132 realloc(void *ptr, size_t size) realloc() argument
[all...]
/kernel/linux/linux-5.10/arch/loongarch/include/asm/
H A Dpercpu.h34 static __always_inline unsigned long __percpu_##op(void *ptr, \
42 "am"#asm_op".w" " %[ret], %[val], %[ptr] \n" \
43 : [ret] "=&r" (ret), [ptr] "+ZB"(*(u32 *)ptr) \
48 "am"#asm_op".d" " %[ret], %[val], %[ptr] \n" \
49 : [ret] "=&r" (ret), [ptr] "+ZB"(*(u64 *)ptr) \
65 static __always_inline unsigned long __percpu_read(void __percpu *ptr, int size) in __percpu_read() argument
71 __asm__ __volatile__ ("ldx.b %[ret], $r21, %[ptr] \n" in __percpu_read()
73 : [ptr] " in __percpu_read()
102 __percpu_write(void __percpu *ptr, unsigned long val, int size) __percpu_write() argument
134 __percpu_xchg(void *ptr, unsigned long val, int size) __percpu_xchg() argument
[all...]
/kernel/linux/linux-6.6/arch/loongarch/include/asm/
H A Dpercpu.h35 static __always_inline unsigned long __percpu_##op(void *ptr, \
43 "am"#asm_op".w" " %[ret], %[val], %[ptr] \n" \
44 : [ret] "=&r" (ret), [ptr] "+ZB"(*(u32 *)ptr) \
49 "am"#asm_op".d" " %[ret], %[val], %[ptr] \n" \
50 : [ret] "=&r" (ret), [ptr] "+ZB"(*(u64 *)ptr) \
66 static __always_inline unsigned long __percpu_read(void *ptr, int size) in __percpu_read() argument
72 __asm__ __volatile__ ("ldx.b %[ret], $r21, %[ptr] \n" in __percpu_read()
74 : [ptr] " in __percpu_read()
103 __percpu_write(void *ptr, unsigned long val, int size) __percpu_write() argument
135 __percpu_xchg(void *ptr, unsigned long val, int size) __percpu_xchg() argument
[all...]
/third_party/node/deps/uvwasi/src/
H A Dpath_resolver.c40 char* ptr; in uvwasi__normalize_path() local
51 ptr = normalized_path; in uvwasi__normalize_path()
57 if (ptr == normalized_path && next != NULL && is_absolute) { in uvwasi__normalize_path()
58 *ptr = '/'; in uvwasi__normalize_path()
59 ptr++; in uvwasi__normalize_path()
62 *ptr = '\0'; in uvwasi__normalize_path()
67 last = ptr; in uvwasi__normalize_path()
74 if (ptr == normalized_path || in uvwasi__normalize_path()
75 (last == ptr - 2 && last[0] == '.' && last[1] == '.') || in uvwasi__normalize_path()
76 (last == ptr in uvwasi__normalize_path()
131 char* ptr; uvwasi__is_path_sandboxed() local
[all...]
/kernel/linux/linux-6.6/mm/
H A Dusercopy.c105 /* Returns true if any portion of [ptr,ptr+n) over laps with [low,high). */
106 static bool overlaps(const unsigned long ptr, unsigned long n, in overlaps() argument
109 const unsigned long check_low = ptr; in overlaps()
120 static inline void check_kernel_text_object(const unsigned long ptr, in check_kernel_text_object() argument
127 if (overlaps(ptr, n, textlow, texthigh)) in check_kernel_text_object()
128 usercopy_abort("kernel text", NULL, to_user, ptr - textlow, n); in check_kernel_text_object()
145 if (overlaps(ptr, n, textlow_linear, texthigh_linear)) in check_kernel_text_object()
147 ptr - textlow_linear, n); in check_kernel_text_object()
150 static inline void check_bogus_address(const unsigned long ptr, unsigne argument
162 check_heap_object(const void *ptr, unsigned long n, bool to_user) check_heap_object() argument
213 __check_object_size(const void *ptr, unsigned long n, bool to_user) __check_object_size() argument
[all...]
/third_party/musl/libc-test/src/functionalext/locale/
H A Dlanginfo.c39 char *ptr = nl_langinfo(DAY_2); in langinfo_0100() local
40 EXPECT_STREQ("nl_langinfo_0100", ptr, "Monday"); in langinfo_0100()
56 char *ptr = nl_langinfo(DAY_2); in nl_langinfo_0200() local
57 if (ptr) { in nl_langinfo_0200()
58 EXPECT_STRNE("nl_langinfo_0200", ptr, "lm星期一"); in nl_langinfo_0200()
77 char *ptr = nl_langinfo(TIME_ERROR_INFO); in nl_langinfo_0300() local
78 EXPECT_STREQ("nl_langinfo_0300", ptr, ""); in nl_langinfo_0300()
91 char *ptr = nl_langinfo(MESSAGES_ERROR_INFO); in nl_langinfo_0400() local
92 EXPECT_STREQ("nl_langinfo_0400", ptr, ""); in nl_langinfo_0400()
108 char *ptr in nl_langinfo_0500() local
133 char *ptr = nl_langinfo(RADIXCHAR - 1); nl_langinfo_0600() local
150 char *ptr = nl_langinfo(THOUSEP); nl_langinfo_0700() local
167 char *ptr = nl_langinfo(THOUSEP * LC_MONETARY); nl_langinfo_0800() local
184 char *ptr = nl_langinfo(RADIXCHAR * LC_MONETARY); nl_langinfo_0900() local
[all...]
/third_party/rust/crates/rust-openssl/openssl-sys/src/
H A Dsha.rs3 use std::ptr;
17 ptr::null_mut(), in SHA1()
19 ptr::null(), in SHA1()
23 ptr::null_mut(), in SHA1()
28 ptr::null_mut() in SHA1()
34 ptr::null_mut(), in SHA224()
36 ptr::null(), in SHA224()
40 ptr::null_mut(), in SHA224()
44 ptr::null_mut() in SHA224()
50 ptr in SHA256()
[all...]
/third_party/node/deps/openssl/openssl/crypto/
H A Dmem_sec.c89 static void sh_free(void *ptr);
91 static size_t sh_actual_size(char *ptr);
92 static int sh_allocated(const char *ptr);
172 void CRYPTO_secure_free(void *ptr, const char *file, int line) in CRYPTO_secure_free() argument
177 if (ptr == NULL) in CRYPTO_secure_free()
179 if (!CRYPTO_secure_allocated(ptr)) { in CRYPTO_secure_free()
180 CRYPTO_free(ptr, file, line); in CRYPTO_secure_free()
185 actual_size = sh_actual_size(ptr); in CRYPTO_secure_free()
186 CLEAR(ptr, actual_size); in CRYPTO_secure_free()
188 sh_free(ptr); in CRYPTO_secure_free()
195 CRYPTO_secure_clear_free(void *ptr, size_t num, const char *file, int line) CRYPTO_secure_clear_free() argument
223 CRYPTO_secure_allocated(const void *ptr) CRYPTO_secure_allocated() argument
254 CRYPTO_secure_actual_size(void *ptr) CRYPTO_secure_actual_size() argument
324 sh_getlist(char *ptr) sh_getlist() argument
339 sh_testbit(char *ptr, int list, unsigned char *table) sh_testbit() argument
350 sh_clearbit(char *ptr, int list, unsigned char *table) sh_clearbit() argument
362 sh_setbit(char *ptr, int list, unsigned char *table) sh_setbit() argument
374 sh_add_to_list(char **list, char *ptr) sh_add_to_list() argument
394 sh_remove_from_list(char *ptr) sh_remove_from_list() argument
593 sh_allocated(const char *ptr) sh_allocated() argument
598 sh_find_my_buddy(char *ptr, int list) sh_find_my_buddy() argument
677 sh_free(void *ptr) sh_free() argument
718 sh_actual_size(char *ptr) sh_actual_size() argument
[all...]
/third_party/openssl/crypto/
H A Dmem_sec.c89 static void sh_free(void *ptr);
91 static size_t sh_actual_size(char *ptr);
92 static int sh_allocated(const char *ptr);
172 void CRYPTO_secure_free(void *ptr, const char *file, int line) in CRYPTO_secure_free() argument
177 if (ptr == NULL) in CRYPTO_secure_free()
179 if (!CRYPTO_secure_allocated(ptr)) { in CRYPTO_secure_free()
180 CRYPTO_free(ptr, file, line); in CRYPTO_secure_free()
185 actual_size = sh_actual_size(ptr); in CRYPTO_secure_free()
186 CLEAR(ptr, actual_size); in CRYPTO_secure_free()
188 sh_free(ptr); in CRYPTO_secure_free()
195 CRYPTO_secure_clear_free(void *ptr, size_t num, const char *file, int line) CRYPTO_secure_clear_free() argument
223 CRYPTO_secure_allocated(const void *ptr) CRYPTO_secure_allocated() argument
248 CRYPTO_secure_actual_size(void *ptr) CRYPTO_secure_actual_size() argument
318 sh_getlist(char *ptr) sh_getlist() argument
333 sh_testbit(char *ptr, int list, unsigned char *table) sh_testbit() argument
344 sh_clearbit(char *ptr, int list, unsigned char *table) sh_clearbit() argument
356 sh_setbit(char *ptr, int list, unsigned char *table) sh_setbit() argument
368 sh_add_to_list(char **list, char *ptr) sh_add_to_list() argument
388 sh_remove_from_list(char *ptr) sh_remove_from_list() argument
587 sh_allocated(const char *ptr) sh_allocated() argument
592 sh_find_my_buddy(char *ptr, int list) sh_find_my_buddy() argument
671 sh_free(void *ptr) sh_free() argument
712 sh_actual_size(char *ptr) sh_actual_size() argument
[all...]
/kernel/linux/linux-6.6/arch/arm/lib/
H A Dcopy_to_user.S36 .macro ldr1w ptr reg abort
37 W(ldr) \reg, [\ptr], #4
40 .macro ldr4w ptr reg1 reg2 reg3 reg4 abort
41 ldmia \ptr!, {\reg1, \reg2, \reg3, \reg4}
44 .macro ldr8w ptr reg1 reg2 reg3 reg4 reg5 reg6 reg7 reg8 abort
45 ldmia \ptr!, {\reg1, \reg2, \reg3, \reg4, \reg5, \reg6, \reg7, \reg8}
48 .macro ldr1b ptr reg cond=al abort
49 ldrb\cond \reg, [\ptr], #1
60 .macro str1w ptr reg abort
61 strusr \reg, \ptr,
[all...]
/kernel/linux/linux-5.10/drivers/misc/lkdtm/
H A Dperms.c85 volatile unsigned long *ptr = (unsigned long *)&rodata; in lkdtm_WRITE_RO() local
87 pr_info("attempting bad rodata write at %px\n", ptr); in lkdtm_WRITE_RO()
88 *ptr ^= 0xabcd1234; in lkdtm_WRITE_RO()
94 volatile unsigned long *ptr = &ro_after_init; in lkdtm_WRITE_RO_AFTER_INIT() local
101 if ((*ptr & 0xAA) != 0xAA) { in lkdtm_WRITE_RO_AFTER_INIT()
102 pr_info("%p was NOT written during init!?\n", ptr); in lkdtm_WRITE_RO_AFTER_INIT()
106 pr_info("attempting bad ro_after_init write at %px\n", ptr); in lkdtm_WRITE_RO_AFTER_INIT()
107 *ptr ^= 0xabcd1234; in lkdtm_WRITE_RO_AFTER_INIT()
114 volatile unsigned char *ptr; in lkdtm_WRITE_KERN() local
117 ptr in lkdtm_WRITE_KERN()
180 unsigned long *ptr; lkdtm_ACCESS_USERSPACE() local
213 volatile unsigned long *ptr = (unsigned long *)NULL; lkdtm_ACCESS_NULL() local
[all...]
/kernel/linux/linux-5.10/arch/arm64/kvm/hyp/include/hyp/
H A Ddebug-sr.h21 #define save_debug(ptr,reg,nr) \
23 case 15: ptr[15] = read_debug(reg, 15); \
25 case 14: ptr[14] = read_debug(reg, 14); \
27 case 13: ptr[13] = read_debug(reg, 13); \
29 case 12: ptr[12] = read_debug(reg, 12); \
31 case 11: ptr[11] = read_debug(reg, 11); \
33 case 10: ptr[10] = read_debug(reg, 10); \
35 case 9: ptr[9] = read_debug(reg, 9); \
37 case 8: ptr[8] = read_debug(reg, 8); \
39 case 7: ptr[
[all...]
/kernel/linux/linux-5.10/arch/alpha/include/asm/
H A Duaccess.h58 #define put_user(x, ptr) \
59 __put_user_check((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)))
60 #define get_user(x, ptr) \
61 __get_user_check((x), (ptr), sizeof(*(ptr)))
68 #define __put_user(x, ptr) \
69 __put_user_nocheck((__typeof__(*(ptr)))(x), (ptr), sizeo
[all...]
/kernel/linux/linux-6.6/arch/alpha/include/asm/
H A Duaccess.h18 #define put_user(x, ptr) \
19 __put_user_check((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)))
20 #define get_user(x, ptr) \
21 __get_user_check((x), (ptr), sizeof(*(ptr)))
28 #define __put_user(x, ptr) \
29 __put_user_nocheck((__typeof__(*(ptr)))(x), (ptr), sizeo
[all...]
/kernel/linux/linux-5.10/include/asm-generic/
H A Duaccess.h143 #define __put_user(x, ptr) \
145 __typeof__(*(ptr)) __x = (x); \
147 __chk_user_ptr(ptr); \
148 switch (sizeof (*(ptr))) { \
153 __pu_err = __put_user_fn(sizeof (*(ptr)), \
154 ptr, &__x); \
163 #define put_user(x, ptr) \
165 void __user *__p = (ptr); \
167 access_ok(__p, sizeof(*ptr)) ? \
168 __put_user((x), ((__typeof__(*(ptr)) __use
174 __put_user_fn(size_t size, void __user *ptr, void *x) __put_user_fn() argument
235 __get_user_fn(size_t size, const void __user *ptr, void *x) __get_user_fn() argument
[all...]
/kernel/linux/linux-6.6/include/asm-generic/
H A Duaccess.h104 #define __put_user(x, ptr) \
106 __typeof__(*(ptr)) __x = (x); \
108 __chk_user_ptr(ptr); \
109 switch (sizeof (*(ptr))) { \
114 __pu_err = __put_user_fn(sizeof (*(ptr)), \
115 ptr, &__x); \
124 #define put_user(x, ptr) \
126 void __user *__p = (ptr); \
128 access_ok(__p, sizeof(*ptr)) ? \
129 __put_user((x), ((__typeof__(*(ptr)) __use
135 __put_user_fn(size_t size, void __user *ptr, void *x) __put_user_fn() argument
196 __get_user_fn(size_t size, const void __user *ptr, void *x) __get_user_fn() argument
[all...]
/third_party/ltp/testcases/kernel/syscalls/madvise/
H A Dmadvise09.c67 char *ptr; in memory_pressure_child() local
70 ptr = mmap(NULL, 500 * page_size, PROT_READ | PROT_WRITE, in memory_pressure_child()
74 ptr[i * page_size] = i % 100; in memory_pressure_child()
104 static int count_freed(char *ptr) in count_freed() argument
109 if (!ptr[i * page_size]) in count_freed()
116 static int check_page_baaa(char *ptr) in check_page_baaa() argument
120 if (ptr[0] != 'b') { in check_page_baaa()
122 ptr, isprint(ptr[0]) ? ptr[ in check_page_baaa()
139 check_page(char *ptr, char val) check_page() argument
159 char *ptr; child() local
[all...]
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/
H A Dlayout_mbuf.rs111 let ptr = UNINIT.as_ptr(); in bindgen_test_layout_rte_atomic16_t()
123 unsafe { ::std::ptr::addr_of!((*ptr).cnt) as usize - ptr as usize }, in bindgen_test_layout_rte_atomic16_t()
198 let ptr = UNINIT.as_ptr(); in bindgen_test_layout_rte_mbuf__bindgen_ty_1()
211 ::std::ptr::addr_of!((*ptr).refcnt_atomic) as usize - ptr as usize in bindgen_test_layout_rte_mbuf__bindgen_ty_1()
222 unsafe { ::std::ptr::addr_of!((*ptr) in bindgen_test_layout_rte_mbuf__bindgen_ty_1()
[all...]
H A Dconstify-module-enums-types.rs58 let ptr = UNINIT.as_ptr(); in bindgen_test_layout_bar()
70 unsafe { ::std::ptr::addr_of!((*ptr).member1) as usize - ptr as usize }, in bindgen_test_layout_bar()
80 unsafe { ::std::ptr::addr_of!((*ptr).member2) as usize - ptr as usize }, in bindgen_test_layout_bar()
90 unsafe { ::std::ptr::addr_of!((*ptr).member3) as usize - ptr a in bindgen_test_layout_bar()
[all...]
/kernel/linux/linux-5.10/arch/c6x/include/asm/
H A Dcmpxchg.h16 static inline unsigned int __xchg(unsigned int x, volatile void *ptr, int size) in __xchg() argument
26 tmp = *((unsigned char *) ptr); in __xchg()
27 *((unsigned char *) ptr) = (unsigned char) x; in __xchg()
31 tmp = *((unsigned short *) ptr); in __xchg()
32 *((unsigned short *) ptr) = x; in __xchg()
36 tmp = *((unsigned int *) ptr); in __xchg()
37 *((unsigned int *) ptr) = x; in __xchg()
44 #define xchg(ptr, x) \
45 ((__typeof__(*(ptr)))__xchg((unsigned int)(x), (void *) (ptr), \
[all...]
/kernel/linux/linux-5.10/drivers/regulator/
H A Dgpio-regulator.c48 int ptr; in gpio_regulator_get_value() local
50 for (ptr = 0; ptr < data->nr_states; ptr++) in gpio_regulator_get_value()
51 if (data->states[ptr].gpios == data->state) in gpio_regulator_get_value()
52 return data->states[ptr].value; in gpio_regulator_get_value()
62 int ptr, target = 0, state, best_val = INT_MAX; in gpio_regulator_set_voltage() local
64 for (ptr = 0; ptr < data->nr_states; ptr in gpio_regulator_set_voltage()
101 int ptr, target = 0, state, best_val = 0; gpio_regulator_set_current_limit() local
240 int ptr, ret, state, i; gpio_regulator_probe() local
[all...]
/kernel/linux/linux-5.10/security/tomoyo/
H A Dmemory.c39 * @ptr: Pointer to allocated memory.
43 * Returns true if @ptr is not NULL and quota not exceeded, false otherwise.
47 bool tomoyo_memory_ok(void *ptr) in tomoyo_memory_ok() argument
49 if (ptr) { in tomoyo_memory_ok()
50 const size_t s = ksize(ptr); in tomoyo_memory_ok()
76 void *ptr = kzalloc(size, GFP_NOFS); in tomoyo_commit_ok() local
78 if (tomoyo_memory_ok(ptr)) { in tomoyo_commit_ok()
79 memmove(ptr, data, size); in tomoyo_commit_ok()
81 return ptr; in tomoyo_commit_ok()
83 kfree(ptr); in tomoyo_commit_ok()
154 struct tomoyo_name *ptr; tomoyo_get_name() local
[all...]
/kernel/linux/linux-6.6/security/tomoyo/
H A Dmemory.c39 * @ptr: Pointer to allocated memory.
43 * Returns true if @ptr is not NULL and quota not exceeded, false otherwise.
47 bool tomoyo_memory_ok(void *ptr) in tomoyo_memory_ok() argument
49 if (ptr) { in tomoyo_memory_ok()
50 const size_t s = ksize(ptr); in tomoyo_memory_ok()
76 void *ptr = kzalloc(size, GFP_NOFS | __GFP_NOWARN); in tomoyo_commit_ok() local
78 if (tomoyo_memory_ok(ptr)) { in tomoyo_commit_ok()
79 memmove(ptr, data, size); in tomoyo_commit_ok()
81 return ptr; in tomoyo_commit_ok()
83 kfree(ptr); in tomoyo_commit_ok()
154 struct tomoyo_name *ptr; tomoyo_get_name() local
[all...]

Completed in 12 milliseconds

12345678910>>...444