Home
last modified time | relevance | path

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

12

/kernel/power/
Dsnapshot.c430 struct rtree_node *node, *block, **dst; in add_rtree_block() local
462 dst = &zone->rtree; in add_rtree_block()
472 *dst = node; in add_rtree_block()
477 dst = (struct rtree_node **)&((*dst)->data[index]); in add_rtree_block()
478 node = *dst; in add_rtree_block()
482 *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/events/
Dinternal.h177 memcpy_common(void *dst, const void *src, unsigned long n) in memcpy_common() argument
179 memcpy(dst, src, n); in memcpy_common()
186 memcpy_skip(void *dst, const void *src, unsigned long n) in DEFINE_OUTPUT_COPY()
197 arch_perf_out_copy_user(void *dst, const void *src, unsigned long n) in DEFINE_OUTPUT_COPY()
202 ret = __copy_from_user_inatomic(dst, src, n); in DEFINE_OUTPUT_COPY()
Duprobes.c244 static void copy_from_page(struct page *page, unsigned long vaddr, void *dst, int len) in copy_from_page() argument
247 memcpy(dst, kaddr + (vaddr & ~PAGE_MASK), len); in copy_from_page()
/kernel/trace/
Dbpf_trace.c150 bpf_probe_read_user_common(void *dst, u32 size, const void __user *unsafe_ptr) in bpf_probe_read_user_common() argument
154 ret = copy_from_user_nofault(dst, unsafe_ptr, size); in bpf_probe_read_user_common()
156 memset(dst, 0, size); in bpf_probe_read_user_common()
160 BPF_CALL_3(bpf_probe_read_user, void *, dst, u32, size, in BPF_CALL_3() argument
163 return bpf_probe_read_user_common(dst, size, unsafe_ptr); in BPF_CALL_3()
176 bpf_probe_read_user_str_common(void *dst, u32 size, in bpf_probe_read_user_str_common() argument
191 ret = strncpy_from_user_nofault(dst, unsafe_ptr, size); in bpf_probe_read_user_str_common()
193 memset(dst, 0, size); in bpf_probe_read_user_str_common()
197 BPF_CALL_3(bpf_probe_read_user_str, void *, dst, u32, size, in BPF_CALL_3() argument
200 return bpf_probe_read_user_str_common(dst, size, unsafe_ptr); in BPF_CALL_3()
[all …]
Dtrace_uprobe.c154 u8 *dst = get_loc_data(dest, base); in fetch_store_string() local
161 ret = strlcpy(dst, current->comm, maxlen); in fetch_store_string()
163 ret = strncpy_from_user(dst, src, maxlen); in fetch_store_string()
166 dst[ret - 1] = '\0'; in fetch_store_string()
174 *(u32 *)dest = make_data_loc(ret, (void *)dst - base); in fetch_store_string()
/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/kcsan/
Dcore.c1072 void *__tsan_memmove(void *dst, const void *src, size_t len);
1073 noinline void *__tsan_memmove(void *dst, const void *src, size_t len) in __tsan_memmove() argument
1077 check_access(dst, check_len, KCSAN_ACCESS_WRITE); in __tsan_memmove()
1079 return memmove(dst, src, len); in __tsan_memmove()
1082 void *__tsan_memmove(void *dst, const void *src, size_t len) __alias(memmove);
1087 void *__tsan_memcpy(void *dst, const void *src, size_t len);
1088 noinline void *__tsan_memcpy(void *dst, const void *src, size_t len) in __tsan_memcpy() argument
1092 check_access(dst, check_len, KCSAN_ACCESS_WRITE); in __tsan_memcpy()
1094 return memcpy(dst, src, len); in __tsan_memcpy()
1097 void *__tsan_memcpy(void *dst, const void *src, size_t len) __alias(memcpy);
/kernel/bpf/
Dhelpers.c315 void copy_map_value_locked(struct bpf_map *map, void *dst, void *src, in copy_map_value_locked() argument
323 lock = dst + map->spin_lock_off; in copy_map_value_locked()
326 copy_map_value(map, dst, src); in copy_map_value_locked()
612 BPF_CALL_3(bpf_copy_from_user, void *, dst, u32, size, in BPF_CALL_3() argument
615 int ret = copy_from_user(dst, user_ptr, size); in BPF_CALL_3()
618 memset(dst, 0, size); in BPF_CALL_3()
Ddevmap.c501 int dev_map_enqueue(struct bpf_dtab_netdev *dst, struct xdp_buff *xdp, in dev_map_enqueue() argument
504 struct net_device *dev = dst->dev; in dev_map_enqueue()
506 if (dst->xdp_prog) { in dev_map_enqueue()
507 xdp = dev_map_run_prog(dev, xdp, dst->xdp_prog); in dev_map_enqueue()
514 int dev_map_generic_redirect(struct bpf_dtab_netdev *dst, struct sk_buff *skb, in dev_map_generic_redirect() argument
519 err = xdp_ok_fwd_dev(dst->dev, skb->len); in dev_map_generic_redirect()
522 skb->dev = dst->dev; in dev_map_generic_redirect()
Dqueue_stack_maps.c208 void *dst; in queue_stack_map_push_elem() local
236 dst = &qs->elements[qs->head * qs->map.value_size]; in queue_stack_map_push_elem()
237 memcpy(dst, value, qs->map.value_size); in queue_stack_map_push_elem()
Dcore.c281 struct bpf_insn *dst; in bpf_prog_calc_tag() local
297 dst = (void *)raw; in bpf_prog_calc_tag()
299 dst[i] = fp->insnsi[i]; in bpf_prog_calc_tag()
301 dst[i].code == (BPF_LD | BPF_IMM | BPF_DW) && in bpf_prog_calc_tag()
302 (dst[i].src_reg == BPF_PSEUDO_MAP_FD || in bpf_prog_calc_tag()
303 dst[i].src_reg == BPF_PSEUDO_MAP_VALUE)) { in bpf_prog_calc_tag()
305 dst[i].imm = 0; in bpf_prog_calc_tag()
307 dst[i].code == 0 && in bpf_prog_calc_tag()
308 dst[i].dst_reg == 0 && in bpf_prog_calc_tag()
309 dst[i].src_reg == 0 && in bpf_prog_calc_tag()
[all …]
Dcgroup.c73 static void bpf_cgroup_storages_assign(struct bpf_cgroup_storage *dst[], in bpf_cgroup_storages_assign() argument
79 dst[stype] = src[stype]; in bpf_cgroup_storages_assign()
1613 static int copy_sysctl_value(char *dst, size_t dst_len, char *src, in copy_sysctl_value() argument
1616 if (!dst) in copy_sysctl_value()
1623 memset(dst, 0, dst_len); in copy_sysctl_value()
1627 memcpy(dst, src, min(dst_len, src_len)); in copy_sysctl_value()
1630 memset(dst + src_len, '\0', dst_len - src_len); in copy_sysctl_value()
1634 dst[dst_len - 1] = '\0'; in copy_sysctl_value()
Dverifier.c705 static int copy_##NAME##_state(struct bpf_func_state *dst, \
710 if (WARN_ON_ONCE(dst->COUNT < src->COUNT)) { \
712 memset(dst, 0, sizeof(*dst)); \
715 memcpy(dst->FIELD, src->FIELD, \
821 static int transfer_reference_state(struct bpf_func_state *dst, in transfer_reference_state() argument
824 int err = realloc_reference_state(dst, src->acquired_refs, false); in transfer_reference_state()
827 err = copy_reference_state(dst, src); in transfer_reference_state()
866 static int copy_func_state(struct bpf_func_state *dst, in copy_func_state() argument
871 err = realloc_func_state(dst, src->allocated_stack, src->acquired_refs, in copy_func_state()
875 memcpy(dst, src, offsetof(struct bpf_func_state, acquired_refs)); in copy_func_state()
[all …]
Dsyscall.c407 void bpf_map_charge_move(struct bpf_map_memory *dst, in bpf_map_charge_move() argument
410 *dst = *src; in bpf_map_charge_move()
730 int bpf_obj_name_cpy(char *dst, const char *src, unsigned int size) in bpf_obj_name_cpy() argument
735 memset(dst, 0, size); in bpf_obj_name_cpy()
741 *dst++ = *src++; in bpf_obj_name_cpy()
/kernel/sched/
Dcputime.c1008 static int kcpustat_cpu_fetch_vtime(struct kernel_cpustat *dst, in kcpustat_cpu_fetch_vtime() argument
1026 *dst = *src; in kcpustat_cpu_fetch_vtime()
1027 cpustat = dst->cpustat; in kcpustat_cpu_fetch_vtime()
1061 void kcpustat_cpu_fetch(struct kernel_cpustat *dst, int cpu) in kcpustat_cpu_fetch() argument
1068 *dst = *src; in kcpustat_cpu_fetch()
1081 *dst = *src; in kcpustat_cpu_fetch()
1085 err = kcpustat_cpu_fetch_vtime(dst, src, curr, cpu); in kcpustat_cpu_fetch()
/kernel/
Dptrace.c631 int ptrace_readdata(struct task_struct *tsk, unsigned long src, char __user *dst, int len) in ptrace_readdata() argument
647 if (copy_to_user(dst, buf, retval)) in ptrace_readdata()
651 dst += retval; in ptrace_readdata()
657 int ptrace_writedata(struct task_struct *tsk, char __user *src, unsigned long dst, int len) in ptrace_writedata() argument
668 retval = ptrace_access_vm(tsk, dst, buf, this_len, in ptrace_writedata()
677 dst += retval; in ptrace_writedata()
Dsmp.c135 return csd->dst; /* Other CSD_TYPE_ values might not have ->dst. */ in csd_lock_wait_getcpu()
511 csd->dst = cpu; in smp_call_function_single()
680 csd->dst = cpu; in smp_call_function_many_cond()
Dkexec_file.c899 void *src, *dst; in kexec_purgatory_setup_sechdrs() local
934 dst = pi->purgatory_buf + offset; in kexec_purgatory_setup_sechdrs()
935 memcpy(dst, src, sechdrs[i].sh_size); in kexec_purgatory_setup_sechdrs()
Dmodule.c2833 Elf_Sym *dst; in add_kallsyms() local
2850 mod->core_kallsyms.symtab = dst = mod->core_layout.base + info->symoffs; in add_kallsyms()
2861 dst[ndst] = src[i]; in add_kallsyms()
2862 dst[ndst++].st_name = s - mod->core_kallsyms.strtab; in add_kallsyms()
3110 static int copy_chunked_from_user(void *dst, const void __user *usrc, unsigned long len) in copy_chunked_from_user() argument
3115 if (copy_from_user(dst, usrc, n) != 0) in copy_chunked_from_user()
3118 dst += n; in copy_chunked_from_user()
Dfork.c882 int __weak arch_dup_task_struct(struct task_struct *dst, in arch_dup_task_struct() argument
885 *dst = *src; in arch_dup_task_struct()
/kernel/gcov/
Dgcc_4_7.c249 void gcov_info_add(struct gcov_info *dst, struct gcov_info *src) in gcov_info_add() argument
258 dci_ptr = dst->functions[fi_idx]->ctrs; in gcov_info_add()
Dclang.c319 void gcov_info_add(struct gcov_info *dst, struct gcov_info *src) in gcov_info_add() argument
325 list_for_each_entry(dfn_ptr, &dst->functions, head) { in gcov_info_add()
/kernel/time/
Dtick-internal.h59 extern ssize_t sysfs_get_uname(const char *buf, char *dst, size_t cnt);
Dclocksource.c1162 ssize_t sysfs_get_uname(const char *buf, char *dst, size_t cnt) in sysfs_get_uname() argument
1174 memcpy(dst, buf, cnt); in sysfs_get_uname()
1175 dst[cnt] = 0; in sysfs_get_uname()
/kernel/locking/
Dlockdep.c247 static inline void lock_time_add(struct lock_time *src, struct lock_time *dst) in lock_time_add() argument
252 if (src->max > dst->max) in lock_time_add()
253 dst->max = src->max; in lock_time_add()
255 if (src->min < dst->min || !dst->nr) in lock_time_add()
256 dst->min = src->min; in lock_time_add()
258 dst->total += src->total; in lock_time_add()
259 dst->nr += src->nr; in lock_time_add()

12