| /include/linux/ |
| A D | instrumented.h | 110 instrument_copy_to_user(void __user *to, const void *from, unsigned long n) in instrument_copy_to_user() argument 112 kasan_check_read(from, n); in instrument_copy_to_user() 113 kcsan_check_read(from, n); in instrument_copy_to_user() 114 kmsan_copy_to_user(to, from, n, 0); in instrument_copy_to_user() 144 instrument_copy_from_user_after(const void *to, const void __user *from, in instrument_copy_from_user_after() argument 163 kasan_check_read(from, n); in instrument_memcpy_before() 165 kcsan_check_read(from, n); in instrument_memcpy_before() 178 static __always_inline void instrument_memcpy_after(void *to, const void *from, in instrument_memcpy_after() argument 182 kmsan_memmove(to, from, n - left); in instrument_memcpy_after() 211 #define instrument_put_user(from, ptr, size) \ argument [all …]
|
| A D | uaccess.h | 134 instrument_copy_to_user(to, from, n); in __copy_to_user_inatomic() 135 check_object_size(from, n, true); 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() 146 check_object_size(from, n, true); in __copy_to_user() 166 from = mask_user_address(from); in _inline_copy_from_user() 168 if (!access_ok(from, n)) in _inline_copy_from_user() 197 n = raw_copy_to_user(to, from, n); in _inline_copy_to_user() 212 return _copy_from_user(to, from, n); in copy_from_user() 219 if (!check_copy_size(from, n, true)) in copy_to_user() [all …]
|
| A D | highmem.h | 383 copy_highpage(to, from); in copy_mc_highpage() 445 kunmap_local(from); in memcpy_from_page() 488 memcpy(to, from, chunk); in memcpy_from_folio() 489 kunmap_local(from); in memcpy_from_folio() 516 memcpy(to, from, chunk); in memcpy_to_folio() 519 from += chunk; in memcpy_to_folio() 588 memcpy(to, from, max); in folio_fill_tail() 591 from += max; in folio_fill_tail() 598 memcpy(to, from, len); in folio_fill_tail() 627 memcpy(to, from, len); in memcpy_from_file_folio() [all …]
|
| A D | kmsan-checks.h | 61 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 D | sonet.h | 16 extern void sonet_copy_stats(struct k_sonet_stats *from,struct sonet_stats *to); 17 extern void sonet_subtract_stats(struct k_sonet_stats *from,
|
| A D | prime_numbers.h | 35 #define for_each_prime_number_from(prime, from, max) \ argument 36 for (prime = (from); prime <= (max); prime = next_prime_number(prime))
|
| A D | virtio_features.h | 59 static inline void virtio_features_from_u64(u64 *features, u64 from) in virtio_features_from_u64() argument 62 features[0] = from; in virtio_features_from_u64() 75 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()
|
| A D | io.h | 18 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); 189 u64 from = ((u64)pfn) << PAGE_SHIFT; in range_is_allowed() local 190 u64 to = from + size; in range_is_allowed() 191 u64 cursor = from; in range_is_allowed()
|
| A D | poll.h | 117 #define __MAP(v, from, to) \ argument 118 (from < to ? (v & from) * (to/from) : (v & from) / (from/to))
|
| A D | debug_locks.h | 53 extern void debug_check_no_locks_freed(const void *from, unsigned long len); 65 debug_check_no_locks_freed(const void *from, unsigned long len) in debug_check_no_locks_freed() argument
|
| A D | projid.h | 53 extern kprojid_t make_kprojid(struct user_namespace *from, projid_t projid); 65 static inline kprojid_t make_kprojid(struct user_namespace *from, projid_t projid) in make_kprojid() argument
|
| /include/net/ |
| A D | seg6.h | 17 static inline void update_csum_diff4(struct sk_buff *skb, __be32 from, in update_csum_diff4() argument 20 __be32 diff[] = { ~from, to }; in update_csum_diff4() 25 static inline void update_csum_diff16(struct sk_buff *skb, __be32 *from, in update_csum_diff16() argument 29 ~from[0], ~from[1], ~from[2], ~from[3], in update_csum_diff16()
|
| A D | mptcp.h | 166 struct sk_buff *from) in mptcp_skb_ext_move() argument 168 if (!skb_ext_exist(from, SKB_EXT_MPTCP)) in mptcp_skb_ext_move() 175 to->extensions = from->extensions; in mptcp_skb_ext_move() 176 from->active_extensions = 0; in mptcp_skb_ext_move() 180 struct sk_buff *from) in mptcp_skb_ext_copy() argument 189 skb_ext_copy(to, from); in mptcp_skb_ext_copy() 209 const struct sk_buff *from) in mptcp_skb_can_collapse() argument 212 skb_ext_find(from, SKB_EXT_MPTCP)); in mptcp_skb_can_collapse() 285 const struct sk_buff *from) in mptcp_skb_ext_move() argument 290 struct sk_buff *from) in mptcp_skb_ext_copy() argument [all …]
|
| A D | inet_ecn.h | 136 __be32 from, to; in IP6_ECN_set_ce() local 141 from = *(__be32 *)iph; in IP6_ECN_set_ce() 142 to = from | htonl(INET_ECN_CE << 20); in IP6_ECN_set_ce() 145 skb->csum = csum_add(csum_sub(skb->csum, (__force __wsum)from), in IP6_ECN_set_ce() 152 __be32 from, to; in IP6_ECN_set_ect1() local 157 from = *(__be32 *)iph; in IP6_ECN_set_ect1() 158 to = from ^ htonl(INET_ECN_MASK << 20); in IP6_ECN_set_ect1() 161 skb->csum = csum_add(csum_sub(skb->csum, (__force __wsum)from), in IP6_ECN_set_ect1()
|
| A D | checksum.h | 119 static __always_inline void csum_replace4(__sum16 *sum, __be32 from, __be32 to) in csum_replace4() argument 121 __wsum tmp = csum_sub(~csum_unfold(*sum), (__force __wsum)from); 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 161 inet_proto_csum_replace4(sum, skb, (__force __be32)from, in inet_proto_csum_replace2()
|
| A D | udplite.h | 21 static __inline__ int udplite_getfrag(void *from, char *to, int offset, in udplite_getfrag() argument 24 struct msghdr *msg = from; in udplite_getfrag()
|
| A D | ip6_fib.h | 209 struct fib6_info __rcu *from; member 301 struct fib6_info *from; in rt6_get_cookie() local 309 from = rcu_dereference(rt->from); in rt6_get_cookie() 310 if (from) in rt6_get_cookie() 311 fib6_get_cookie_safe(from, &cookie); in rt6_get_cookie() 476 const struct fib6_info *from; in rt6_get_prefsrc() local 480 from = rcu_dereference(rt->from); in rt6_get_prefsrc() 481 if (from) in rt6_get_prefsrc() 482 *addr = from->fib6_prefsrc.addr; in rt6_get_prefsrc()
|
| /include/asm-generic/ |
| A D | uaccess.h | 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() 84 memcpy(to, (const void __force *)from, n); in raw_copy_from_user() [all …]
|
| A D | video.h | 113 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()
|
| /include/linux/netfilter/ipset/ |
| A D | pfxlen.h | 37 extern u32 ip_set_range_to_cidr(u32 from, u32 to, u8 *cidr); 39 #define ip_set_mask_from_to(from, to, cidr) \ argument 41 from &= ip_set_hostmask(cidr); \ 42 to = from | ~ip_set_hostmask(cidr); \
|
| /include/media/ |
| A D | v4l2-rect.h | 145 const struct v4l2_rect *from, in v4l2_rect_scale() argument 148 if (from->width == 0 || from->height == 0) { in v4l2_rect_scale() 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()
|
| /include/linux/mtd/ |
| A D | map.h | 257 #define INVALIDATE_CACHED_RANGE(map, from, size) \ argument 258 do { if (map->inval_cache) map->inval_cache(map, from, size); } while (0) 431 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 [all …]
|
| A D | mtd.h | 317 int (*_point) (struct mtd_info *mtd, loff_t from, size_t len, 319 int (*_unpoint) (struct mtd_info *mtd, loff_t from, size_t len); 320 int (*_read) (struct mtd_info *mtd, loff_t from, size_t len, 326 int (*_read_oob) (struct mtd_info *mtd, loff_t from, 332 int (*_read_fact_prot_reg) (struct mtd_info *mtd, loff_t from, 336 int (*_read_user_prot_reg) (struct mtd_info *mtd, loff_t from, 341 int (*_lock_user_prot_reg) (struct mtd_info *mtd, loff_t from, 343 int (*_erase_user_prot_reg) (struct mtd_info *mtd, loff_t from, 502 int mtd_unpoint(struct mtd_info *mtd, loff_t from, size_t len); 517 int mtd_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, [all …]
|
| A D | hyperbus.h | 62 unsigned long from, ssize_t len); 64 const void *from, ssize_t len);
|
| /include/uapi/linux/netfilter/ |
| A D | xt_connbytes.h | 21 __aligned_u64 from; /* count to be matched */ member
|