Home
last modified time | relevance | path

Searched refs:dst (Results 1 – 23 of 23) sorted by relevance

/kernel/events/
Dinternal.h171 memcpy_common(void *dst, const void *src, unsigned long n) in memcpy_common() argument
173 memcpy(dst, src, n); in memcpy_common()
180 memcpy_skip(void *dst, const void *src, unsigned long n) in DEFINE_OUTPUT_COPY()
191 arch_perf_out_copy_user(void *dst, const void *src, unsigned long n) in DEFINE_OUTPUT_COPY()
196 ret = __copy_from_user_inatomic(dst, src, n); in DEFINE_OUTPUT_COPY()
Duprobes.c250 static void copy_from_page(struct page *page, unsigned long vaddr, void *dst, int len) in copy_from_page() argument
253 memcpy(dst, kaddr + (vaddr & ~PAGE_MASK), len); in copy_from_page()
/kernel/power/
Dsnapshot.c431 struct rtree_node *node, *block, **dst; in add_rtree_block() local
463 dst = &zone->rtree; in add_rtree_block()
473 *dst = node; in add_rtree_block()
478 dst = (struct rtree_node **)&((*dst)->data[index]); in add_rtree_block()
479 node = *dst; in add_rtree_block()
483 *dst = block; in add_rtree_block()
1338 static inline void do_copy_page(long *dst, long *src) in do_copy_page() argument
1343 *dst++ = *src++; in do_copy_page()
1354 static void safe_copy_page(void *dst, struct page *s_page) in safe_copy_page() argument
1357 do_copy_page(dst, page_address(s_page)); in safe_copy_page()
[all …]
/kernel/cgroup/
Dfreezer.c223 struct cgroup *src, struct cgroup *dst) in cgroup_freezer_migrate_task() argument
238 !test_bit(CGRP_FREEZE, &dst->flags) && in cgroup_freezer_migrate_task()
248 cgroup_inc_frozen_cnt(dst); in cgroup_freezer_migrate_task()
251 cgroup_update_frozen(dst); in cgroup_freezer_migrate_task()
257 cgroup_freeze_task(task, test_bit(CGRP_FREEZE, &dst->flags)); in cgroup_freezer_migrate_task()
/kernel/bpf/
Dqueue_stack_maps.c205 void *dst; in queue_stack_map_push_elem() local
228 dst = &qs->elements[qs->head * qs->map.value_size]; in queue_stack_map_push_elem()
229 memcpy(dst, value, qs->map.value_size); in queue_stack_map_push_elem()
Ddevmap.c460 int dev_map_enqueue(struct bpf_dtab_netdev *dst, struct xdp_buff *xdp, in dev_map_enqueue() argument
463 struct net_device *dev = dst->dev; in dev_map_enqueue()
478 return bq_enqueue(dst, xdpf, dev_rx); in dev_map_enqueue()
481 int dev_map_generic_redirect(struct bpf_dtab_netdev *dst, struct sk_buff *skb, in dev_map_generic_redirect() argument
486 err = xdp_ok_fwd_dev(dst->dev, skb->len); in dev_map_generic_redirect()
489 skb->dev = dst->dev; in dev_map_generic_redirect()
Dhelpers.c299 void copy_map_value_locked(struct bpf_map *map, void *dst, void *src, in copy_map_value_locked() argument
307 lock = dst + map->spin_lock_off; in copy_map_value_locked()
310 copy_map_value(map, dst, src); in copy_map_value_locked()
Dcore.c270 struct bpf_insn *dst; in bpf_prog_calc_tag() local
286 dst = (void *)raw; in bpf_prog_calc_tag()
288 dst[i] = fp->insnsi[i]; in bpf_prog_calc_tag()
290 dst[i].code == (BPF_LD | BPF_IMM | BPF_DW) && in bpf_prog_calc_tag()
291 (dst[i].src_reg == BPF_PSEUDO_MAP_FD || in bpf_prog_calc_tag()
292 dst[i].src_reg == BPF_PSEUDO_MAP_VALUE)) { in bpf_prog_calc_tag()
294 dst[i].imm = 0; in bpf_prog_calc_tag()
296 dst[i].code == 0 && in bpf_prog_calc_tag()
297 dst[i].dst_reg == 0 && in bpf_prog_calc_tag()
298 dst[i].src_reg == 0 && in bpf_prog_calc_tag()
[all …]
Dverifier.c539 static int copy_##NAME##_state(struct bpf_func_state *dst, \
544 if (WARN_ON_ONCE(dst->COUNT < src->COUNT)) { \
546 memset(dst, 0, sizeof(*dst)); \
549 memcpy(dst->FIELD, src->FIELD, \
655 static int transfer_reference_state(struct bpf_func_state *dst, in transfer_reference_state() argument
658 int err = realloc_reference_state(dst, src->acquired_refs, false); in transfer_reference_state()
661 err = copy_reference_state(dst, src); in transfer_reference_state()
700 static int copy_func_state(struct bpf_func_state *dst, in copy_func_state() argument
705 err = realloc_func_state(dst, src->allocated_stack, src->acquired_refs, in copy_func_state()
709 memcpy(dst, src, offsetof(struct bpf_func_state, acquired_refs)); in copy_func_state()
[all …]
Dcgroup.c1204 static int copy_sysctl_value(char *dst, size_t dst_len, char *src, in copy_sysctl_value() argument
1207 if (!dst) in copy_sysctl_value()
1214 memset(dst, 0, dst_len); in copy_sysctl_value()
1218 memcpy(dst, src, min(dst_len, src_len)); in copy_sysctl_value()
1221 memset(dst + src_len, '\0', dst_len - src_len); in copy_sysctl_value()
1225 dst[dst_len - 1] = '\0'; in copy_sysctl_value()
Dsyscall.c231 void bpf_map_charge_move(struct bpf_map_memory *dst, in bpf_map_charge_move() argument
234 *dst = *src; in bpf_map_charge_move()
473 static int bpf_obj_name_cpy(char *dst, const char *src) in bpf_obj_name_cpy() argument
477 memset(dst, 0, BPF_OBJ_NAME_LEN); in bpf_obj_name_cpy()
483 *dst++ = *src++; in bpf_obj_name_cpy()
/kernel/
Dptrace.c593 int ptrace_readdata(struct task_struct *tsk, unsigned long src, char __user *dst, int len) in ptrace_readdata() argument
609 if (copy_to_user(dst, buf, retval)) in ptrace_readdata()
613 dst += retval; in ptrace_readdata()
619 int ptrace_writedata(struct task_struct *tsk, char __user *src, unsigned long dst, int len) in ptrace_writedata() argument
630 retval = ptrace_access_vm(tsk, dst, buf, this_len, in ptrace_writedata()
639 dst += retval; in ptrace_writedata()
Dkexec_file.c917 void *src, *dst; in kexec_purgatory_setup_sechdrs() local
940 dst = pi->purgatory_buf + offset; in kexec_purgatory_setup_sechdrs()
941 memcpy(dst, src, sechdrs[i].sh_size); in kexec_purgatory_setup_sechdrs()
Dmodule.c2750 Elf_Sym *dst; in add_kallsyms() local
2767 mod->core_kallsyms.symtab = dst = mod->core_layout.base + info->symoffs; in add_kallsyms()
2778 dst[ndst] = src[i]; in add_kallsyms()
2779 dst[ndst++].st_name = s - mod->core_kallsyms.strtab; in add_kallsyms()
2928 static int copy_chunked_from_user(void *dst, const void __user *usrc, unsigned long len) in copy_chunked_from_user() argument
2933 if (copy_from_user(dst, usrc, n) != 0) in copy_chunked_from_user()
2936 dst += n; in copy_chunked_from_user()
Dfork.c848 int __weak arch_dup_task_struct(struct task_struct *dst, in arch_dup_task_struct() argument
851 *dst = *src; in arch_dup_task_struct()
/kernel/trace/
Dbpf_trace.c141 BPF_CALL_3(bpf_probe_read, void *, dst, u32, size, const void *, unsafe_ptr) in BPF_CALL_3() argument
149 ret = probe_kernel_read(dst, unsafe_ptr, size); in BPF_CALL_3()
152 memset(dst, 0, size); in BPF_CALL_3()
586 BPF_CALL_3(bpf_probe_read_str, void *, dst, u32, size, in BPF_CALL_3() argument
604 ret = strncpy_from_unsafe(dst, unsafe_ptr, size); in BPF_CALL_3()
607 memset(dst, 0, size); in BPF_CALL_3()
Dtrace_uprobe.c160 u8 *dst = get_loc_data(dest, base); in fetch_store_string() local
167 ret = strlcpy(dst, current->comm, maxlen); in fetch_store_string()
169 ret = strncpy_from_user(dst, src, maxlen); in fetch_store_string()
172 dst[ret - 1] = '\0'; in fetch_store_string()
180 *(u32 *)dest = make_data_loc(ret, (void *)dst - base); in fetch_store_string()
Dftrace.c1420 struct ftrace_hash **dst, struct ftrace_hash *src) in ftrace_hash_move() argument
1449 rcu_assign_pointer(*dst, new_hash); in ftrace_hash_move()
/kernel/gcov/
Dgcc_4_7.c235 void gcov_info_add(struct gcov_info *dst, struct gcov_info *src) in gcov_info_add() argument
244 dci_ptr = dst->functions[fi_idx]->ctrs; in gcov_info_add()
Dclang.c284 void gcov_info_add(struct gcov_info *dst, struct gcov_info *src) in gcov_info_add() argument
290 list_for_each_entry(dfn_ptr, &dst->functions, head) { in gcov_info_add()
/kernel/time/
Dclocksource.c1047 ssize_t sysfs_get_uname(const char *buf, char *dst, size_t cnt) in sysfs_get_uname() argument
1059 memcpy(dst, buf, cnt); in sysfs_get_uname()
1060 dst[cnt] = 0; in sysfs_get_uname()
Dtick-internal.h60 extern ssize_t sysfs_get_uname(const char *buf, char *dst, size_t cnt);
/kernel/locking/
Dlockdep.c214 static inline void lock_time_add(struct lock_time *src, struct lock_time *dst) in lock_time_add() argument
219 if (src->max > dst->max) in lock_time_add()
220 dst->max = src->max; in lock_time_add()
222 if (src->min < dst->min || !dst->nr) in lock_time_add()
223 dst->min = src->min; in lock_time_add()
225 dst->total += src->total; in lock_time_add()
226 dst->nr += src->nr; in lock_time_add()