Home
last modified time | relevance | path

Searched refs:to (Results 1 – 25 of 96) sorted by relevance

1234

/include/linux/
Dinstrumented.h110 instrument_copy_to_user(void __user *to, const void *from, unsigned long n) in instrument_copy_to_user() argument
114 kmsan_copy_to_user(to, from, n, 0); in instrument_copy_to_user()
127 instrument_copy_from_user_before(const void *to, const void __user *from, unsigned long n) in instrument_copy_from_user_before() argument
129 kasan_check_write(to, n); in instrument_copy_from_user_before()
130 kcsan_check_write(to, n); in instrument_copy_from_user_before()
144 instrument_copy_from_user_after(const void *to, const void __user *from, in instrument_copy_from_user_after() argument
147 kmsan_unpoison_memory(to, n - left); in instrument_copy_from_user_after()
159 static __always_inline void instrument_memcpy_before(void *to, const void *from, in instrument_memcpy_before() argument
162 kasan_check_write(to, n); in instrument_memcpy_before()
164 kcsan_check_write(to, n); in instrument_memcpy_before()
[all …]
Duaccess.h90 __copy_from_user_inatomic(void *to, const void __user *from, unsigned long n) in __copy_from_user_inatomic() argument
94 instrument_copy_from_user_before(to, from, n); in __copy_from_user_inatomic()
95 check_object_size(to, n, false); in __copy_from_user_inatomic()
96 res = raw_copy_from_user(to, from, n); in __copy_from_user_inatomic()
97 instrument_copy_from_user_after(to, from, n, res); in __copy_from_user_inatomic()
102 __copy_from_user(void *to, const void __user *from, unsigned long n) in __copy_from_user() argument
107 instrument_copy_from_user_before(to, from, n); in __copy_from_user()
110 check_object_size(to, n, false); in __copy_from_user()
111 res = raw_copy_from_user(to, from, n); in __copy_from_user()
112 instrument_copy_from_user_after(to, from, n, res); in __copy_from_user()
[all …]
Dhighmem.h303 static inline void copy_user_highpage(struct page *to, struct page *from, in copy_user_highpage() argument
309 vto = kmap_local_page(to); in copy_user_highpage()
310 copy_user_page(vto, vfrom, vaddr, to); in copy_user_highpage()
311 kmsan_unpoison_memory(page_address(to), PAGE_SIZE); in copy_user_highpage()
320 static inline void copy_highpage(struct page *to, struct page *from) in copy_highpage() argument
325 vto = kmap_local_page(to); in copy_highpage()
327 kmsan_copy_page_meta(to, from); in copy_highpage()
341 static inline int copy_mc_user_highpage(struct page *to, struct page *from, in copy_mc_user_highpage() argument
348 vto = kmap_local_page(to); in copy_mc_user_highpage()
351 kmsan_unpoison_memory(page_address(to), PAGE_SIZE); in copy_mc_user_highpage()
[all …]
Dhwspinlock.h114 int __hwspin_lock_timeout(struct hwspinlock *hwlock, unsigned int to, in __hwspin_lock_timeout() argument
288 unsigned int to, unsigned long *flags) in hwspin_lock_timeout_irqsave() argument
290 return __hwspin_lock_timeout(hwlock, to, HWLOCK_IRQSTATE, flags); in hwspin_lock_timeout_irqsave()
311 int hwspin_lock_timeout_irq(struct hwspinlock *hwlock, unsigned int to) in hwspin_lock_timeout_irq() argument
313 return __hwspin_lock_timeout(hwlock, to, HWLOCK_IRQ, NULL); in hwspin_lock_timeout_irq()
334 int hwspin_lock_timeout_raw(struct hwspinlock *hwlock, unsigned int to) in hwspin_lock_timeout_raw() argument
336 return __hwspin_lock_timeout(hwlock, to, HWLOCK_RAW, NULL); in hwspin_lock_timeout_raw()
356 int hwspin_lock_timeout_in_atomic(struct hwspinlock *hwlock, unsigned int to) in hwspin_lock_timeout_in_atomic() argument
358 return __hwspin_lock_timeout(hwlock, to, HWLOCK_IN_ATOMIC, NULL); in hwspin_lock_timeout_in_atomic()
381 int hwspin_lock_timeout(struct hwspinlock *hwlock, unsigned int to) in hwspin_lock_timeout() argument
[all …]
Dkmsan-checks.h61 void kmsan_copy_to_user(void __user *to, const void *from, size_t to_copy,
73 void kmsan_memmove(void *to, const void *from, size_t to_copy);
87 static inline void kmsan_copy_to_user(void __user *to, const void *from, in kmsan_copy_to_user() argument
92 static inline void kmsan_memmove(void *to, const void *from, size_t to_copy) in kmsan_memmove() argument
Duidgid.h118 extern uid_t from_kuid(struct user_namespace *to, kuid_t uid);
119 extern gid_t from_kgid(struct user_namespace *to, kgid_t gid);
120 extern uid_t from_kuid_munged(struct user_namespace *to, kuid_t uid);
121 extern gid_t from_kgid_munged(struct user_namespace *to, kgid_t gid);
148 static inline uid_t from_kuid(struct user_namespace *to, kuid_t kuid) in from_kuid() argument
153 static inline gid_t from_kgid(struct user_namespace *to, kgid_t kgid) in from_kgid() argument
158 static inline uid_t from_kuid_munged(struct user_namespace *to, kuid_t kuid) in from_kuid_munged() argument
160 uid_t uid = from_kuid(to, kuid); in from_kuid_munged()
166 static inline gid_t from_kgid_munged(struct user_namespace *to, kgid_t kgid) in from_kgid_munged() argument
168 gid_t gid = from_kgid(to, kgid); in from_kgid_munged()
Dprojid.h55 extern projid_t from_kprojid(struct user_namespace *to, kprojid_t projid);
56 extern projid_t from_kprojid_munged(struct user_namespace *to, kprojid_t projid);
70 static inline projid_t from_kprojid(struct user_namespace *to, kprojid_t kprojid) in from_kprojid() argument
75 static inline projid_t from_kprojid_munged(struct user_namespace *to, kprojid_t kprojid) in from_kprojid_munged() argument
77 projid_t projid = from_kprojid(to, kprojid); in from_kprojid_munged()
Dsonet.h16 extern void sonet_copy_stats(struct k_sonet_stats *from,struct sonet_stats *to);
18 struct sonet_stats *to);
Dpsi.h42 void cgroup_move_task(struct task_struct *p, struct css_set *to);
61 static inline void cgroup_move_task(struct task_struct *p, struct css_set *to) in cgroup_move_task() argument
63 rcu_assign_pointer(p->cgroups, to); in cgroup_move_task()
Dpoll.h124 extern int poll_select_set_timeout(struct timespec64 *to, time64_t sec,
127 #define __MAP(v, from, to) \ argument
128 (from < to ? (v & from) * (to/from) : (v & from) / (from/to))
Dsignal.h15 static inline void copy_siginfo(kernel_siginfo_t *to, in copy_siginfo() argument
18 memcpy(to, from, sizeof(*to)); in copy_siginfo()
28 static inline void copy_siginfo_to_external(siginfo_t *to, in copy_siginfo_to_external() argument
31 memcpy(to, from, sizeof(*from)); in copy_siginfo_to_external()
32 memset(((char *)to) + sizeof(struct kernel_siginfo), 0, in copy_siginfo_to_external()
36 int copy_siginfo_to_user(siginfo_t __user *to, const kernel_siginfo_t *from);
37 int copy_siginfo_from_user(kernel_siginfo_t *to, const siginfo_t __user *from);
/include/asm-generic/
Duaccess.h17 __get_user_fn(size_t size, const void __user *from, void *to) in __get_user_fn() argument
23 *(u8 *)to = *((u8 __force *)from); in __get_user_fn()
26 *(u16 *)to = get_unaligned((u16 __force *)from); in __get_user_fn()
29 *(u32 *)to = get_unaligned((u32 __force *)from); in __get_user_fn()
32 *(u64 *)to = get_unaligned((u64 __force *)from); in __get_user_fn()
43 __put_user_fn(size_t size, void __user *to, void *from) in __put_user_fn() argument
49 *(u8 __force *)to = *(u8 *)from; in __put_user_fn()
52 put_unaligned(*(u16 *)from, (u16 __force *)to); in __put_user_fn()
55 put_unaligned(*(u32 *)from, (u32 __force *)to); in __put_user_fn()
58 put_unaligned(*(u64 *)from, (u64 __force *)to); in __put_user_fn()
[all …]
Dvideo.h113 static inline void fb_memcpy_fromio(void *to, const volatile void __iomem *from, size_t n) in fb_memcpy_fromio() argument
115 memcpy_fromio(to, from, n); in fb_memcpy_fromio()
121 static inline void fb_memcpy_toio(volatile void __iomem *to, const void *from, size_t n) in fb_memcpy_toio() argument
123 memcpy_toio(to, from, n); in fb_memcpy_toio()
Dtlbflush.h10 #error need to implement an architecture specific asm/tlbflush.h
/include/net/
Dseg6.h18 __be32 to) in update_csum_diff4() argument
20 __be32 diff[] = { ~from, to }; in update_csum_diff4()
26 __be32 *to) in update_csum_diff16() argument
30 to[0], to[1], to[2], to[3], in update_csum_diff16()
Dmptcp.h159 static inline void mptcp_skb_ext_move(struct sk_buff *to, in mptcp_skb_ext_move() argument
165 if (WARN_ON_ONCE(to->active_extensions)) in mptcp_skb_ext_move()
166 skb_ext_put(to); in mptcp_skb_ext_move()
168 to->active_extensions = from->active_extensions; in mptcp_skb_ext_move()
169 to->extensions = from->extensions; in mptcp_skb_ext_move()
173 static inline void mptcp_skb_ext_copy(struct sk_buff *to, in mptcp_skb_ext_copy() argument
183 skb_ext_copy(to, from); in mptcp_skb_ext_copy()
202 static inline bool mptcp_skb_can_collapse(const struct sk_buff *to, in mptcp_skb_can_collapse() argument
205 return mptcp_ext_matches(skb_ext_find(to, SKB_EXT_MPTCP), in mptcp_skb_can_collapse()
278 static inline void mptcp_skb_ext_move(struct sk_buff *to, in mptcp_skb_ext_move() argument
[all …]
Dinet_ecn.h136 __be32 from, to; in IP6_ECN_set_ce() local
142 to = from | htonl(INET_ECN_CE << 20); in IP6_ECN_set_ce()
143 *(__be32 *)iph = to; in IP6_ECN_set_ce()
146 (__force __wsum)to); in IP6_ECN_set_ce()
152 __be32 from, to; in IP6_ECN_set_ect1() local
158 to = from ^ htonl(INET_ECN_MASK << 20); in IP6_ECN_set_ect1()
159 *(__be32 *)iph = to; in IP6_ECN_set_ect1()
162 (__force __wsum)to); in IP6_ECN_set_ect1()
Dchecksum.h131 static __always_inline void csum_replace4(__sum16 *sum, __be32 from, __be32 to) in csum_replace4() argument
135 *sum = csum_fold(csum_add(tmp, (__force __wsum)to)); in csum_replace4()
156 __be32 from, __be32 to, bool pseudohdr);
158 const __be32 *from, const __be32 *to,
165 __be16 from, __be16 to, bool pseudohdr) in inet_proto_csum_replace2() argument
168 (__force __be32)to, pseudohdr); in inet_proto_csum_replace2()
Dudplite.h21 static __inline__ int udplite_getfrag(void *from, char *to, int offset, in udplite_getfrag() argument
25 return copy_from_iter_full(to, len, &msg->msg_iter) ? 0 : -EFAULT; in udplite_getfrag()
/include/linux/netfilter/ipset/
Dpfxlen.h37 extern u32 ip_set_range_to_cidr(u32 from, u32 to, u8 *cidr);
39 #define ip_set_mask_from_to(from, to, cidr) \ argument
42 to = from | ~ip_set_hostmask(cidr); \
/include/rdma/
Duverbs_ioctl.h793 static inline int _uverbs_copy_from(void *to, in _uverbs_copy_from() argument
812 memcpy(to, &attr->ptr_attr.data, attr->ptr_attr.len); in _uverbs_copy_from()
813 else if (copy_from_user(to, u64_to_user_ptr(attr->ptr_attr.data), in _uverbs_copy_from()
820 static inline int _uverbs_copy_from_or_zero(void *to, in _uverbs_copy_from_or_zero() argument
834 memcpy(to, &attr->ptr_attr.data, min_size); in _uverbs_copy_from_or_zero()
835 else if (copy_from_user(to, u64_to_user_ptr(attr->ptr_attr.data), in _uverbs_copy_from_or_zero()
840 memset(to + min_size, 0, size - min_size); in _uverbs_copy_from_or_zero()
845 #define uverbs_copy_from(to, attrs_bundle, idx) \ argument
846 _uverbs_copy_from(to, attrs_bundle, idx, sizeof(*to))
848 #define uverbs_copy_from_or_zero(to, attrs_bundle, idx) \ argument
[all …]
/include/linux/mtd/
Dmap.h430 static inline void inline_map_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t… in inline_map_copy_from() argument
433 memcpy(to, (char *)map->cached + from, len); in inline_map_copy_from()
435 memcpy_fromio(to, map->virt + from, len); in inline_map_copy_from()
438 static inline void inline_map_copy_to(struct map_info *map, unsigned long to, const void *from, ssi… in inline_map_copy_to() argument
440 memcpy_toio(map->virt + to, from, len); in inline_map_copy_to()
445 #define map_copy_from(map, to, from, len) (map)->copy_from(map, to, from, len) argument
447 #define map_copy_to(map, to, from, len) (map)->copy_to(map, to, from, len) argument
454 #define map_copy_from(map, to, from, len) inline_map_copy_from(map, to, from, len) argument
456 #define map_copy_to(map, to, from, len) inline_map_copy_to(map, to, from, len) argument
Dhyperbus.h61 void (*copy_from)(struct hyperbus_device *hbdev, void *to,
63 void (*copy_to)(struct hyperbus_device *dev, unsigned long to,
Dplat-ram.h27 void (*set_rw)(struct device *dev, int to);
/include/media/
Dv4l2-rect.h146 const struct v4l2_rect *to) in v4l2_rect_scale() argument
152 r->left = (((r->left - from->left) * to->width) / from->width) & ~1; in v4l2_rect_scale()
153 r->width = ((r->width * to->width) / from->width) & ~1; in v4l2_rect_scale()
154 r->top = ((r->top - from->top) * to->height) / from->height; in v4l2_rect_scale()
155 r->height = (r->height * to->height) / from->height; in v4l2_rect_scale()

1234