Home
last modified time | relevance | path

Searched refs:ptr (Results 1 – 25 of 43) sorted by relevance

12

/kernel/debug/
Dgdbstub.c293 int kgdb_hex2long(char **ptr, unsigned long *long_val) in kgdb_hex2long() argument
301 if (**ptr == '-') { in kgdb_hex2long()
303 (*ptr)++; in kgdb_hex2long()
305 while (**ptr) { in kgdb_hex2long()
306 hex_val = hex_to_bin(**ptr); in kgdb_hex2long()
312 (*ptr)++; in kgdb_hex2long()
346 char *ptr = (char *)gdb_regs; in pt_regs_to_gdb_regs() local
349 dbg_get_reg(i, ptr + idx, regs); in pt_regs_to_gdb_regs()
358 char *ptr = (char *)gdb_regs; in gdb_regs_to_pt_regs() local
361 dbg_set_reg(i, ptr + idx, regs); in gdb_regs_to_pt_regs()
[all …]
/kernel/
Dcfi.c26 static inline void handle_cfi_failure(void *ptr) in handle_cfi_failure() argument
29 WARN_RATELIMIT(1, "CFI failure (target: %pS):\n", ptr); in handle_cfi_failure()
31 panic("CFI failure (target: %pS)\n", ptr); in handle_cfi_failure()
61 static inline int ptr_to_shadow(const struct cfi_shadow *s, unsigned long ptr) in ptr_to_shadow() argument
64 unsigned long page = ptr >> PAGE_SHIFT; in ptr_to_shadow()
135 unsigned long ptr; in add_module_to_shadow() local
153 for (ptr = min_page_addr; ptr <= max_page_addr; ptr += PAGE_SIZE) { in add_module_to_shadow()
154 int index = ptr_to_shadow(s, ptr); in add_module_to_shadow()
166 unsigned long ptr; in remove_module_from_shadow() local
175 for (ptr = min_page_addr; ptr <= max_page_addr; ptr += PAGE_SIZE) { in remove_module_from_shadow()
[all …]
Diomem.c142 void **ptr, *addr; in devm_memremap() local
144 ptr = devres_alloc_node(devm_memremap_release, sizeof(*ptr), GFP_KERNEL, in devm_memremap()
146 if (!ptr) in devm_memremap()
151 *ptr = addr; in devm_memremap()
152 devres_add(dev, ptr); in devm_memremap()
154 devres_free(ptr); in devm_memremap()
Dkexec_core.c600 #define for_each_kimage_entry(image, ptr, entry) \ argument
601 for (ptr = &image->head; (entry = *ptr) && !(entry & IND_DONE); \
602 ptr = (entry & IND_INDIRECTION) ? \
603 boot_phys_to_virt((entry & PAGE_MASK)) : ptr + 1)
615 kimage_entry_t *ptr, entry; in kimage_free() local
627 for_each_kimage_entry(image, ptr, entry) { in kimage_free()
662 kimage_entry_t *ptr, entry; in kimage_dst_used() local
665 for_each_kimage_entry(image, ptr, entry) { in kimage_dst_used()
670 return ptr; in kimage_dst_used()
799 char *ptr; in kimage_load_normal_segment() local
[all …]
Drseq.c118 u64 ptr; in rseq_get_rseq_cs() local
123 if (copy_from_user(&ptr, &t->rseq->rseq_cs.ptr64, sizeof(ptr))) in rseq_get_rseq_cs()
125 if (!ptr) { in rseq_get_rseq_cs()
129 if (ptr >= TASK_SIZE) in rseq_get_rseq_cs()
131 urseq_cs = (struct rseq_cs __user *)(unsigned long)ptr; in rseq_get_rseq_cs()
Dresource.c1354 static void devm_resource_release(struct device *dev, void *ptr) in devm_resource_release() argument
1356 struct resource **r = ptr; in devm_resource_release()
1382 struct resource *conflict, **ptr; in devm_request_resource() local
1384 ptr = devres_alloc(devm_resource_release, sizeof(*ptr), GFP_KERNEL); in devm_request_resource()
1385 if (!ptr) in devm_request_resource()
1388 *ptr = new; in devm_request_resource()
1394 devres_free(ptr); in devm_request_resource()
1398 devres_add(dev, ptr); in devm_request_resource()
1405 struct resource **ptr = res; in devm_resource_match() local
1407 return *ptr == data; in devm_resource_match()
Dextable.c164 int func_ptr_is_kernel_text(void *ptr) in func_ptr_is_kernel_text() argument
167 addr = (unsigned long) dereference_function_descriptor(ptr); in func_ptr_is_kernel_text()
Dcompat.c367 void __user *ptr; in compat_alloc_user_space() local
373 ptr = arch_compat_alloc_user_space(len); in compat_alloc_user_space()
375 if (unlikely(!access_ok(ptr, len))) in compat_alloc_user_space()
378 return ptr; in compat_alloc_user_space()
Dcrash_core.c328 void crash_update_vmcoreinfo_safecopy(void *ptr) in crash_update_vmcoreinfo_safecopy() argument
330 if (ptr) in crash_update_vmcoreinfo_safecopy()
331 memcpy(ptr, vmcoreinfo_data, vmcoreinfo_size); in crash_update_vmcoreinfo_safecopy()
333 vmcoreinfo_data_safecopy = ptr; in crash_update_vmcoreinfo_safecopy()
Daudit.c1908 unsigned char *ptr; in audit_log_n_hex() local
1926 ptr = skb_tail_pointer(skb); in audit_log_n_hex()
1928 ptr = hex_byte_pack_upper(ptr, buf[i]); in audit_log_n_hex()
1929 *ptr = 0; in audit_log_n_hex()
1941 unsigned char *ptr; in audit_log_n_string() local
1956 ptr = skb_tail_pointer(skb); in audit_log_n_string()
1957 *ptr++ = '"'; in audit_log_n_string()
1958 memcpy(ptr, string, slen); in audit_log_n_string()
1959 ptr += slen; in audit_log_n_string()
1960 *ptr++ = '"'; in audit_log_n_string()
[all …]
/kernel/locking/
Dlockdep_internals.h195 #define __debug_atomic_inc(ptr) \ argument
196 this_cpu_inc(lockdep_stats.ptr);
198 #define debug_atomic_inc(ptr) { \ argument
200 __this_cpu_inc(lockdep_stats.ptr); \
203 #define debug_atomic_dec(ptr) { \ argument
205 __this_cpu_dec(lockdep_stats.ptr); \
208 #define debug_atomic_read(ptr) ({ \ argument
214 __total += __cpu_lockdep_stats->ptr; \
239 # define __debug_atomic_inc(ptr) do { } while (0) argument
240 # define debug_atomic_inc(ptr) do { } while (0) argument
[all …]
Dlock_events.c101 unsigned long *ptr = per_cpu_ptr(lockevents, cpu); in lockevent_write() local
104 WRITE_ONCE(ptr[i], 0); in lockevent_write()
Dqspinlock_stat.h120 static inline void __pv_wait(u8 *ptr, u8 val) in __pv_wait() argument
125 pv_wait(ptr, val); in __pv_wait()
/kernel/bpf/
Darraymap.c31 void __percpu *ptr; in bpf_array_alloc_percpu() local
35 ptr = __alloc_percpu_gfp(array->elem_size, 8, in bpf_array_alloc_percpu()
37 if (!ptr) { in bpf_array_alloc_percpu()
41 array->pptrs[i] = ptr; in bpf_array_alloc_percpu()
507 void **elem, *ptr; in bpf_fd_array_map_lookup_elem() local
515 if (elem && (ptr = READ_ONCE(*elem))) in bpf_fd_array_map_lookup_elem()
516 *value = map->ops->map_fd_sys_lookup_elem(ptr); in bpf_fd_array_map_lookup_elem()
585 static void prog_fd_array_put_ptr(void *ptr) in prog_fd_array_put_ptr() argument
587 bpf_prog_put(ptr); in prog_fd_array_put_ptr()
590 static u32 prog_fd_array_sys_lookup_elem(void *ptr) in prog_fd_array_sys_lookup_elem() argument
[all …]
Dqueue_stack_maps.c119 void *ptr; in __queue_map_get() local
129 ptr = &qs->elements[qs->tail * qs->map.value_size]; in __queue_map_get()
130 memcpy(value, ptr, qs->map.value_size); in __queue_map_get()
148 void *ptr; in __stack_map_get() local
163 ptr = &qs->elements[index * qs->map.value_size]; in __stack_map_get()
164 memcpy(value, ptr, qs->map.value_size); in __stack_map_get()
Dmap_in_map.c109 void bpf_map_fd_put_ptr(void *ptr) in bpf_map_fd_put_ptr() argument
114 bpf_map_put(ptr); in bpf_map_fd_put_ptr()
117 u32 bpf_map_fd_sys_lookup_elem(void *ptr) in bpf_map_fd_sys_lookup_elem() argument
119 return ((struct bpf_map *)ptr)->id; in bpf_map_fd_sys_lookup_elem()
Dmap_in_map.h18 void bpf_map_fd_put_ptr(void *ptr);
19 u32 bpf_map_fd_sys_lookup_elem(void *ptr);
Dhashtab.c683 void *ptr = fd_htab_map_get_ptr(map, l); in free_htab_elem() local
685 map->ops->map_fd_put_ptr(ptr); in free_htab_elem()
1403 void *ptr = fd_htab_map_get_ptr(map, l); in fd_htab_map_free() local
1405 map->ops->map_fd_put_ptr(ptr); in fd_htab_map_free()
1415 void **ptr; in bpf_fd_htab_map_lookup_elem() local
1422 ptr = htab_map_lookup_elem(map, key); in bpf_fd_htab_map_lookup_elem()
1423 if (ptr) in bpf_fd_htab_map_lookup_elem()
1424 *value = map->ops->map_fd_sys_lookup_elem(READ_ONCE(*ptr)); in bpf_fd_htab_map_lookup_elem()
1436 void *ptr; in bpf_fd_htab_map_update_elem() local
1440 ptr = map->ops->map_fd_get_ptr(map, map_file, ufd); in bpf_fd_htab_map_update_elem()
[all …]
Dhelpers.c341 void *ptr; in BPF_CALL_2() local
346 ptr = &READ_ONCE(storage->buf)->data[0]; in BPF_CALL_2()
348 ptr = this_cpu_ptr(storage->percpu_buf); in BPF_CALL_2()
350 return (unsigned long)ptr; in BPF_CALL_2()
/kernel/trace/
Dtrace_events.c2104 static char *eval_replace(char *ptr, struct trace_eval_map *map, int len) in eval_replace() argument
2110 elen = snprintf(ptr, 0, "%ld", map->eval_value); in eval_replace()
2115 snprintf(ptr, elen + 1, "%ld", map->eval_value); in eval_replace()
2118 rlen = strlen(ptr + len); in eval_replace()
2119 memmove(ptr + elen, ptr + len, rlen); in eval_replace()
2121 ptr[elen + rlen] = 0; in eval_replace()
2123 return ptr + elen; in eval_replace()
2129 char *ptr; in update_event_printk() local
2133 for (ptr = call->print_fmt; *ptr; ptr++) { in update_event_printk()
2134 if (*ptr == '\\') { in update_event_printk()
[all …]
Dtrace_stack.c328 unsigned long *ptr = filp->private_data; in stack_max_size_read() local
332 r = snprintf(buf, sizeof(buf), "%ld\n", *ptr); in stack_max_size_read()
342 long *ptr = filp->private_data; in stack_max_size_write() local
360 *ptr = val; in stack_max_size_write()
Dtrace.c5029 int *ptr = v; in saved_tgids_next() local
5032 ptr++; in saved_tgids_next()
5036 for (; ptr <= &tgid_map[PID_MAX_DEFAULT]; ptr++) { in saved_tgids_next()
5037 if (trace_find_tgid(*ptr)) in saved_tgids_next()
5038 return ptr; in saved_tgids_next()
5102 unsigned int *ptr = v; in saved_cmdlines_next() local
5105 ptr++; in saved_cmdlines_next()
5109 for (; ptr < &savedcmd->map_cmdline_to_pid[savedcmd->cmdline_num]; in saved_cmdlines_next()
5110 ptr++) { in saved_cmdlines_next()
5111 if (*ptr == -1 || *ptr == NO_CMDLINE_MAP) in saved_cmdlines_next()
[all …]
/kernel/time/
Dalarmtimer.c536 struct k_itimer *ptr = container_of(alarm, struct k_itimer, in alarm_handle_timer() local
542 spin_lock_irqsave(&ptr->it_lock, flags); in alarm_handle_timer()
544 ptr->it_active = 0; in alarm_handle_timer()
545 if (ptr->it_interval) in alarm_handle_timer()
546 si_private = ++ptr->it_requeue_pending; in alarm_handle_timer()
548 if (posix_timer_event(ptr, si_private) && ptr->it_interval) { in alarm_handle_timer()
553 ptr->it_overrun += alarm_forward_now(alarm, ptr->it_interval); in alarm_handle_timer()
554 ++ptr->it_requeue_pending; in alarm_handle_timer()
555 ptr->it_active = 1; in alarm_handle_timer()
558 spin_unlock_irqrestore(&ptr->it_lock, flags); in alarm_handle_timer()
/kernel/sched/
Dclock.c302 u64 *ptr, old_val, val; in sched_clock_remote() local
342 ptr = &scd->clock; in sched_clock_remote()
349 ptr = &my_scd->clock; in sched_clock_remote()
354 if (cmpxchg64(ptr, old_val, val) != old_val) in sched_clock_remote()
/kernel/dma/
Dremap.c187 void *ptr = NULL; in dma_alloc_from_pool() local
199 ptr = (void *)val; in dma_alloc_from_pool()
200 memset(ptr, 0, size); in dma_alloc_from_pool()
203 return ptr; in dma_alloc_from_pool()

12