Home
last modified time | relevance | path

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

1234

/include/linux/
A Dinstrumented.h114 kmsan_copy_to_user(to, from, n, 0); in instrument_copy_to_user()
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()
162 kasan_check_write(to, n); in instrument_memcpy_before()
164 kcsan_check_write(to, n); in instrument_memcpy_before()
182 kmsan_memmove(to, from, n - left); in instrument_memcpy_after()
193 #define instrument_get_user(to) \ argument
195 u64 __tmp = (u64)(to); \
[all …]
A Duaccess.h95 check_object_size(to, n, false); in __copy_from_user_inatomic()
110 check_object_size(to, n, false); in __copy_from_user()
134 instrument_copy_to_user(to, from, n); in __copy_to_user_inatomic()
136 return raw_copy_to_user(to, from, n); in __copy_to_user_inatomic()
145 instrument_copy_to_user(to, from, n); in __copy_to_user()
183 memset(to + (n - res), 0, res); in _inline_copy_from_user()
195 if (access_ok(to, n)) { in _inline_copy_to_user()
197 n = raw_copy_to_user(to, from, n); in _inline_copy_to_user()
207 if (!check_copy_size(to, n, false)) in copy_from_user()
212 return _copy_from_user(to, from, n); in copy_from_user()
[all …]
A Dhighmem.h383 copy_highpage(to, from); in copy_mc_highpage()
456 kunmap_local(to); in memcpy_to_page()
488 memcpy(to, from, chunk); in memcpy_from_folio()
491 to += chunk; in memcpy_from_folio()
517 kunmap_local(to); in memcpy_to_folio()
588 memcpy(to, from, max); in folio_fill_tail()
589 kunmap_local(to); in folio_fill_tail()
598 memcpy(to, from, len); in folio_fill_tail()
599 to = folio_zero_tail(folio, offset + len, to + len); in folio_fill_tail()
600 kunmap_local(to); in folio_fill_tail()
[all …]
A Dhwspinlock.h106 int __hwspin_lock_timeout(struct hwspinlock *hwlock, unsigned int to, in __hwspin_lock_timeout() argument
270 unsigned int to, unsigned long *flags) in hwspin_lock_timeout_irqsave() argument
272 return __hwspin_lock_timeout(hwlock, to, HWLOCK_IRQSTATE, flags); in hwspin_lock_timeout_irqsave()
293 int hwspin_lock_timeout_irq(struct hwspinlock *hwlock, unsigned int to) in hwspin_lock_timeout_irq() argument
295 return __hwspin_lock_timeout(hwlock, to, HWLOCK_IRQ, NULL); in hwspin_lock_timeout_irq()
316 int hwspin_lock_timeout_raw(struct hwspinlock *hwlock, unsigned int to) in hwspin_lock_timeout_raw() argument
318 return __hwspin_lock_timeout(hwlock, to, HWLOCK_RAW, NULL); in hwspin_lock_timeout_raw()
338 int hwspin_lock_timeout_in_atomic(struct hwspinlock *hwlock, unsigned int to) in hwspin_lock_timeout_in_atomic() argument
340 return __hwspin_lock_timeout(hwlock, to, HWLOCK_IN_ATOMIC, NULL); in hwspin_lock_timeout_in_atomic()
363 int hwspin_lock_timeout(struct hwspinlock *hwlock, unsigned int to) in hwspin_lock_timeout() argument
[all …]
A 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
A 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()
A Dvirtio_features.h75 static inline void virtio_features_copy(u64 *to, const u64 *from) in virtio_features_copy() argument
77 memcpy(to, from, sizeof(to[0]) * VIRTIO_FEATURES_DWORDS); in virtio_features_copy()
80 static inline void virtio_features_andnot(u64 *to, const u64 *f1, const u64 *f2) in virtio_features_andnot() argument
85 to[i] = f1[i] & ~f2[i]; in virtio_features_andnot()
A 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);
149 static inline uid_t from_kuid(struct user_namespace *to, kuid_t kuid) in from_kuid() argument
154 static inline gid_t from_kgid(struct user_namespace *to, kgid_t kgid) in from_kgid() argument
159 static inline uid_t from_kuid_munged(struct user_namespace *to, kuid_t kuid) in from_kuid_munged() argument
161 uid_t uid = from_kuid(to, kuid); in from_kuid_munged()
167 static inline gid_t from_kgid_munged(struct user_namespace *to, kgid_t kgid) in from_kgid_munged() argument
169 gid_t gid = from_kgid(to, kgid); in from_kgid_munged()
A Dsonet.h16 extern void sonet_copy_stats(struct k_sonet_stats *from,struct sonet_stats *to);
18 struct sonet_stats *to);
A 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()
A Dio.h18 void __iowrite32_copy(void __iomem *to, const void *from, size_t count);
21 void __ioread32_copy(void *to, const void __iomem *from, size_t count);
24 void __iowrite64_copy(void __iomem *to, const void *from, size_t count);
190 u64 to = from + size; in range_is_allowed() local
193 while (cursor < to) { in range_is_allowed()
A Dpoll.h114 extern int poll_select_set_timeout(struct timespec64 *to, time64_t sec,
117 #define __MAP(v, from, to) \ argument
118 (from < to ? (v & from) * (to/from) : (v & from) / (from/to))
A 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/
A Duaccess.h23 *(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()
49 *(u8 __force *)to = *(u8 *)from; in __put_user_fn()
84 memcpy(to, (const void __force *)from, n); in raw_copy_from_user()
91 memcpy((void __force *)to, from, n); in raw_copy_to_user()
214 memset((void __force *)to, 0, n); in __clear_user()
220 clear_user(void __user *to, unsigned long n) in clear_user() argument
223 if (!access_ok(to, n)) in clear_user()
[all …]
A 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()
A Dtlbflush.h10 #error need to implement an architecture specific asm/tlbflush.h
/include/net/
A 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()
A Dmptcp.h165 static inline void mptcp_skb_ext_move(struct sk_buff *to, in mptcp_skb_ext_move() argument
171 if (WARN_ON_ONCE(to->active_extensions)) in mptcp_skb_ext_move()
172 skb_ext_put(to); in mptcp_skb_ext_move()
174 to->active_extensions = from->active_extensions; in mptcp_skb_ext_move()
175 to->extensions = from->extensions; in mptcp_skb_ext_move()
179 static inline void mptcp_skb_ext_copy(struct sk_buff *to, in mptcp_skb_ext_copy() argument
189 skb_ext_copy(to, from); in mptcp_skb_ext_copy()
208 static inline bool mptcp_skb_can_collapse(const struct sk_buff *to, in mptcp_skb_can_collapse() argument
211 return mptcp_ext_matches(skb_ext_find(to, SKB_EXT_MPTCP), in mptcp_skb_can_collapse()
284 static inline void mptcp_skb_ext_move(struct sk_buff *to, in mptcp_skb_ext_move() argument
[all …]
A 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()
A Dchecksum.h119 static __always_inline void csum_replace4(__sum16 *sum, __be32 from, __be32 to) in csum_replace4() argument
123 *sum = csum_fold(csum_add(tmp, (__force __wsum)to)); in csum_replace4()
150 __be32 from, __be32 to, bool pseudohdr);
152 const __be32 *from, const __be32 *to,
159 __be16 from, __be16 to, bool pseudohdr) in inet_proto_csum_replace2() argument
162 (__force __be32)to, pseudohdr); in inet_proto_csum_replace2()
/include/linux/netfilter/ipset/
A 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/
A 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()
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()
840 memset(to + min_size, 0, size - min_size); in _uverbs_copy_from_or_zero()
846 _uverbs_copy_from(to, attrs_bundle, idx, sizeof(*to))
849 _uverbs_copy_from_or_zero(to, attrs_bundle, idx, sizeof(*to))
889 int _uverbs_get_const_signed(s64 *to,
893 int _uverbs_get_const_unsigned(u64 *to,
940 _uverbs_get_const_signed(s64 *to, in _uverbs_get_const_signed() argument
[all …]
/include/linux/mtd/
A Dmap.h431 static inline void inline_map_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t… in inline_map_copy_from() argument
434 memcpy(to, (char *)map->cached + from, len); in inline_map_copy_from()
436 memcpy_fromio(to, map->virt + from, len); in inline_map_copy_from()
439 static inline void inline_map_copy_to(struct map_info *map, unsigned long to, const void *from, ssi… in inline_map_copy_to() argument
441 memcpy_toio(map->virt + to, from, len); in inline_map_copy_to()
446 #define map_copy_from(map, to, from, len) (map)->copy_from(map, to, from, len) argument
448 #define map_copy_to(map, to, from, len) (map)->copy_to(map, to, from, len) argument
455 #define map_copy_from(map, to, from, len) inline_map_copy_from(map, to, from, len) argument
457 #define map_copy_to(map, to, from, len) inline_map_copy_to(map, to, from, len) argument
A Dhyperbus.h61 void (*copy_from)(struct hyperbus_device *hbdev, void *to,
63 void (*copy_to)(struct hyperbus_device *dev, unsigned long to,
/include/media/
A 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()

Completed in 37 milliseconds

1234