/include/net/ |
D | dst.h | 89 u32 *dst_cow_metrics_generic(struct dst_entry *dst, unsigned long old); 98 static inline bool dst_metrics_read_only(const struct dst_entry *dst) in dst_metrics_read_only() argument 100 return dst->_metrics & DST_METRICS_READ_ONLY; in dst_metrics_read_only() 103 void __dst_destroy_metrics_generic(struct dst_entry *dst, unsigned long old); 105 static inline void dst_destroy_metrics_generic(struct dst_entry *dst) in dst_destroy_metrics_generic() argument 107 unsigned long val = dst->_metrics; in dst_destroy_metrics_generic() 109 __dst_destroy_metrics_generic(dst, val); in dst_destroy_metrics_generic() 112 static inline u32 *dst_metrics_write_ptr(struct dst_entry *dst) in dst_metrics_write_ptr() argument 114 unsigned long p = dst->_metrics; in dst_metrics_write_ptr() 119 return dst->ops->cow_metrics(dst, p); in dst_metrics_write_ptr() [all …]
|
D | dst_ops.h | 29 void (*update_pmtu)(struct dst_entry *dst, struct sock *sk, 32 void (*redirect)(struct dst_entry *dst, struct sock *sk, 35 struct neighbour * (*neigh_lookup)(const struct dst_entry *dst, 38 void (*confirm_neigh)(const struct dst_entry *dst, 46 static inline int dst_entries_get_fast(struct dst_ops *dst) in dst_entries_get_fast() argument 48 return percpu_counter_read_positive(&dst->pcpuc_entries); in dst_entries_get_fast() 51 static inline int dst_entries_get_slow(struct dst_ops *dst) in dst_entries_get_slow() argument 53 return percpu_counter_sum_positive(&dst->pcpuc_entries); in dst_entries_get_slow() 57 static inline void dst_entries_add(struct dst_ops *dst, int val) in dst_entries_add() argument 59 percpu_counter_add_batch(&dst->pcpuc_entries, val, in dst_entries_add() [all …]
|
D | dst_metadata.h | 32 struct dst_entry dst; member 46 if (md_dst && md_dst->dst.flags & DST_METADATA) in skb_metadata_dst() 56 struct dst_entry *dst; in skb_tunnel_info() local 61 dst = skb_dst(skb); in skb_tunnel_info() 62 if (dst && dst->lwtstate && in skb_tunnel_info() 63 (dst->lwtstate->type == LWTUNNEL_ENCAP_IP || in skb_tunnel_info() 64 dst->lwtstate->type == LWTUNNEL_ENCAP_IP6)) in skb_tunnel_info() 65 return lwt_tun_info(dst->lwtstate); in skb_tunnel_info() 78 struct dst_entry *dst; in skb_xfrm_md_info() local 83 dst = skb_dst(skb); in skb_xfrm_md_info() [all …]
|
D | ip6_route.h | 216 const struct dst_entry *dst = skb_dst(skb); in skb_rt6_info() local 219 if (dst) in skb_rt6_info() 220 rt6 = container_of(dst, struct rt6_info, dst); in skb_rt6_info() 228 static inline void ip6_dst_store(struct sock *sk, struct dst_entry *dst, in ip6_dst_store() argument 234 np->dst_cookie = rt6_get_cookie((struct rt6_info *)dst); in ip6_dst_store() 235 sk_setup_caps(sk, dst); in ip6_dst_store() 242 void ip6_sk_dst_store_flow(struct sock *sk, struct dst_entry *dst, 252 static inline bool ipv6_anycast_destination(const struct dst_entry *dst, in ipv6_anycast_destination() argument 255 struct rt6_info *rt = (struct rt6_info *)dst; in ipv6_anycast_destination() 270 const struct dst_entry *dst = skb_dst(skb); in ip6_skb_dst_mtu() local [all …]
|
/include/linux/ |
D | task_io_accounting_ops.h | 49 static inline void task_blk_io_accounting_add(struct task_io_accounting *dst, in task_blk_io_accounting_add() argument 52 dst->read_bytes += src->read_bytes; in task_blk_io_accounting_add() 53 dst->write_bytes += src->write_bytes; in task_blk_io_accounting_add() 54 dst->cancelled_write_bytes += src->cancelled_write_bytes; in task_blk_io_accounting_add() 85 static inline void task_blk_io_accounting_add(struct task_io_accounting *dst, in task_blk_io_accounting_add() argument 93 static inline void task_chr_io_accounting_add(struct task_io_accounting *dst, in task_chr_io_accounting_add() argument 96 dst->rchar += src->rchar; in task_chr_io_accounting_add() 97 dst->wchar += src->wchar; in task_chr_io_accounting_add() 98 dst->syscr += src->syscr; in task_chr_io_accounting_add() 99 dst->syscw += src->syscw; in task_chr_io_accounting_add() [all …]
|
D | bitmap.h | 144 void __bitmap_complement(unsigned long *dst, const unsigned long *src, 146 void __bitmap_shift_right(unsigned long *dst, const unsigned long *src, 148 void __bitmap_shift_left(unsigned long *dst, const unsigned long *src, 150 void bitmap_cut(unsigned long *dst, const unsigned long *src, 152 bool __bitmap_and(unsigned long *dst, const unsigned long *bitmap1, 154 void __bitmap_or(unsigned long *dst, const unsigned long *bitmap1, 156 void __bitmap_xor(unsigned long *dst, const unsigned long *bitmap1, 158 bool __bitmap_andnot(unsigned long *dst, const unsigned long *bitmap1, 160 void __bitmap_replace(unsigned long *dst, 204 unsigned long *dst, int nbits); [all …]
|
D | linkmode.h | 8 static inline void linkmode_zero(unsigned long *dst) in linkmode_zero() argument 10 bitmap_zero(dst, __ETHTOOL_LINK_MODE_MASK_NBITS); in linkmode_zero() 13 static inline void linkmode_copy(unsigned long *dst, const unsigned long *src) in linkmode_copy() argument 15 bitmap_copy(dst, src, __ETHTOOL_LINK_MODE_MASK_NBITS); in linkmode_copy() 18 static inline void linkmode_and(unsigned long *dst, const unsigned long *a, in linkmode_and() argument 21 bitmap_and(dst, a, b, __ETHTOOL_LINK_MODE_MASK_NBITS); in linkmode_and() 24 static inline void linkmode_or(unsigned long *dst, const unsigned long *a, in linkmode_or() argument 27 bitmap_or(dst, a, b, __ETHTOOL_LINK_MODE_MASK_NBITS); in linkmode_or() 35 static inline int linkmode_andnot(unsigned long *dst, const unsigned long *src1, in linkmode_andnot() argument 38 return bitmap_andnot(dst, src1, src2, __ETHTOOL_LINK_MODE_MASK_NBITS); in linkmode_andnot()
|
D | sockptr.h | 44 static inline int copy_from_sockptr_offset(void *dst, sockptr_t src, in copy_from_sockptr_offset() argument 48 return copy_from_user(dst, src.user + offset, size); in copy_from_sockptr_offset() 49 memcpy(dst, src.kernel + offset, size); in copy_from_sockptr_offset() 53 static inline int copy_from_sockptr(void *dst, sockptr_t src, size_t size) in copy_from_sockptr() argument 55 return copy_from_sockptr_offset(dst, src, 0, size); in copy_from_sockptr() 58 static inline int copy_to_sockptr_offset(sockptr_t dst, size_t offset, in copy_to_sockptr_offset() argument 61 if (!sockptr_is_kernel(dst)) in copy_to_sockptr_offset() 62 return copy_to_user(dst.user + offset, src, size); in copy_to_sockptr_offset() 63 memcpy(dst.kernel + offset, src, size); in copy_to_sockptr_offset() 67 static inline int copy_to_sockptr(sockptr_t dst, const void *src, size_t size) in copy_to_sockptr() argument [all …]
|
D | uuid.h | 41 static inline void guid_copy(guid_t *dst, const guid_t *src) in guid_copy() argument 43 memcpy(dst, src, sizeof(guid_t)); in guid_copy() 46 static inline void import_guid(guid_t *dst, const __u8 *src) in import_guid() argument 48 memcpy(dst, src, sizeof(guid_t)); in import_guid() 51 static inline void export_guid(__u8 *dst, const guid_t *src) in export_guid() argument 53 memcpy(dst, src, sizeof(guid_t)); in export_guid() 66 static inline void uuid_copy(uuid_t *dst, const uuid_t *src) in uuid_copy() argument 68 memcpy(dst, src, sizeof(uuid_t)); in uuid_copy() 71 static inline void import_uuid(uuid_t *dst, const __u8 *src) in import_uuid() argument 73 memcpy(dst, src, sizeof(uuid_t)); in import_uuid() [all …]
|
D | string_helpers.h | 35 int string_unescape(char *src, char *dst, size_t size, unsigned int flags); 42 static inline int string_unescape_any(char *src, char *dst, size_t size) in string_unescape_any() argument 44 return string_unescape(src, dst, size, UNESCAPE_ANY); in string_unescape_any() 67 int string_escape_mem(const char *src, size_t isz, char *dst, size_t osz, 71 char *dst, size_t osz, const char *only) in string_escape_mem_any_np() argument 73 return string_escape_mem(src, isz, dst, osz, ESCAPE_ANY_NP, only); in string_escape_mem_any_np() 76 static inline int string_escape_str(const char *src, char *dst, size_t sz, in string_escape_str() argument 79 return string_escape_mem(src, strlen(src), dst, sz, flags, only); in string_escape_str() 82 static inline int string_escape_str_any_np(const char *src, char *dst, in string_escape_str_any_np() argument 85 return string_escape_str(src, dst, sz, ESCAPE_ANY_NP, only); in string_escape_str_any_np() [all …]
|
D | bpfptr.h | 49 static inline int copy_from_bpfptr_offset(void *dst, bpfptr_t src, in copy_from_bpfptr_offset() argument 53 return copy_from_user(dst, src.user + offset, size); in copy_from_bpfptr_offset() 54 return copy_from_kernel_nofault(dst, src.kernel + offset, size); in copy_from_bpfptr_offset() 57 static inline int copy_from_bpfptr(void *dst, bpfptr_t src, size_t size) in copy_from_bpfptr() argument 59 return copy_from_bpfptr_offset(dst, src, 0, size); in copy_from_bpfptr() 62 static inline int copy_to_bpfptr_offset(bpfptr_t dst, size_t offset, in copy_to_bpfptr_offset() argument 65 return copy_to_sockptr_offset((sockptr_t) dst, offset, src, size); in copy_to_bpfptr_offset() 81 static inline long strncpy_from_bpfptr(char *dst, bpfptr_t src, size_t count) in strncpy_from_bpfptr() argument 84 return strncpy_from_kernel_nofault(dst, src.kernel, count); in strncpy_from_bpfptr() 85 return strncpy_from_user(dst, src.user, count); in strncpy_from_bpfptr()
|
D | nodemask.h | 128 #define node_set(node, dst) __node_set((node), &(dst)) argument 134 #define node_clear(node, dst) __node_clear((node), &(dst)) argument 140 #define nodes_setall(dst) __nodes_setall(&(dst), MAX_NUMNODES) argument 146 #define nodes_clear(dst) __nodes_clear(&(dst), MAX_NUMNODES) argument 162 #define nodes_and(dst, src1, src2) \ argument 163 __nodes_and(&(dst), &(src1), &(src2), MAX_NUMNODES) 170 #define nodes_or(dst, src1, src2) \ argument 171 __nodes_or(&(dst), &(src1), &(src2), MAX_NUMNODES) 178 #define nodes_xor(dst, src1, src2) \ argument 179 __nodes_xor(&(dst), &(src1), &(src2), MAX_NUMNODES) [all …]
|
D | blk-crypto.h | 175 static inline void bio_clone_skip_dm_default_key(struct bio *dst, 178 int __bio_crypt_clone(struct bio *dst, struct bio *src, gfp_t gfp_mask); 190 static inline int bio_crypt_clone(struct bio *dst, struct bio *src, in bio_crypt_clone() argument 193 bio_clone_skip_dm_default_key(dst, src); in bio_crypt_clone() 195 return __bio_crypt_clone(dst, src, gfp_mask); in bio_crypt_clone() 210 static inline void bio_clone_skip_dm_default_key(struct bio *dst, in bio_clone_skip_dm_default_key() argument 213 dst->bi_skip_dm_default_key = src->bi_skip_dm_default_key; in bio_clone_skip_dm_default_key() 225 static inline void bio_clone_skip_dm_default_key(struct bio *dst, in bio_clone_skip_dm_default_key() argument
|
D | uaccess.h | 179 copy_mc_to_kernel(void *dst, const void *src, size_t cnt) in copy_mc_to_kernel() argument 181 memcpy(dst, src, cnt); in copy_mc_to_kernel() 326 copy_struct_from_user(void *dst, size_t ksize, const void __user *src, in copy_struct_from_user() argument 333 if (WARN_ON_ONCE(ksize > __builtin_object_size(dst, 1))) in copy_struct_from_user() 338 memset(dst + size, 0, rest); in copy_struct_from_user() 345 if (copy_from_user(dst, src, size)) in copy_struct_from_user() 352 long copy_from_kernel_nofault(void *dst, const void *src, size_t size); 353 long notrace copy_to_kernel_nofault(void *dst, const void *src, size_t size); 355 long copy_from_user_nofault(void *dst, const void __user *src, size_t size); 356 long notrace copy_to_user_nofault(void __user *dst, const void *src, [all …]
|
D | iosys-map.h | 286 static inline void iosys_map_memcpy_to(struct iosys_map *dst, size_t dst_offset, in iosys_map_memcpy_to() argument 289 if (dst->is_iomem) in iosys_map_memcpy_to() 290 memcpy_toio(dst->vaddr_iomem + dst_offset, src, len); in iosys_map_memcpy_to() 292 memcpy(dst->vaddr + dst_offset, src, len); in iosys_map_memcpy_to() 306 static inline void iosys_map_memcpy_from(void *dst, const struct iosys_map *src, in iosys_map_memcpy_from() argument 310 memcpy_fromio(dst, src->vaddr_iomem + src_offset, len); in iosys_map_memcpy_from() 312 memcpy(dst, src->vaddr + src_offset, len); in iosys_map_memcpy_from() 341 static inline void iosys_map_memset(struct iosys_map *dst, size_t offset, in iosys_map_memset() argument 344 if (dst->is_iomem) in iosys_map_memset() 345 memset_io(dst->vaddr_iomem + offset, value, len); in iosys_map_memset() [all …]
|
/include/trace/stages/ |
D | stage6_event_callback.h | 31 #define __assign_str(dst, src) \ argument 32 strcpy(__get_str(dst), (src) ? (const char *)(src) : "(null)"); 35 #define __assign_str_len(dst, src, len) \ argument 37 memcpy(__get_str(dst), (src), (len)); \ 38 __get_str(dst)[len] = '\0'; \ 42 #define __assign_vstr(dst, fmt, va) \ argument 46 vsnprintf(__get_str(dst), TRACE_EVENT_STR_MAX, fmt, __cp_va); \ 57 #define __assign_bitmask(dst, src, nr_bits) \ argument 58 memcpy(__get_bitmask(dst), (src), __bitmask_size_in_bytes(nr_bits)) 81 #define __assign_rel_str(dst, src) \ argument [all …]
|
/include/net/netfilter/ |
D | nf_conntrack_tuple.h | 72 } dst; member 86 t, t->dst.protonum, in nf_ct_dump_tuple_ip() 88 &t->dst.u3.ip, ntohs(t->dst.u.all)); in nf_ct_dump_tuple_ip() 96 t, t->dst.protonum, in nf_ct_dump_tuple_ipv6() 98 t->dst.u3.all, ntohs(t->dst.u.all)); in nf_ct_dump_tuple_ipv6() 116 ((enum ip_conntrack_dir)(h)->tuple.dst.dir) 135 return (nf_inet_addr_cmp(&t1->dst.u3, &t2->dst.u3) && in __nf_ct_tuple_dst_equal() 136 t1->dst.u.all == t2->dst.u.all && in __nf_ct_tuple_dst_equal() 137 t1->dst.protonum == t2->dst.protonum); in __nf_ct_tuple_dst_equal() 172 t1->dst.protonum != t2->dst.protonum) in nf_ct_tuple_src_mask_cmp()
|
/include/drm/ |
D | drm_format_helper.h | 21 void drm_fb_memcpy(struct iosys_map *dst, const unsigned int *dst_pitch, 24 void drm_fb_swab(struct iosys_map *dst, const unsigned int *dst_pitch, 27 void drm_fb_xrgb8888_to_rgb332(struct iosys_map *dst, const unsigned int *dst_pitch, 30 void drm_fb_xrgb8888_to_rgb565(struct iosys_map *dst, const unsigned int *dst_pitch, 33 void drm_fb_xrgb8888_to_rgb888(struct iosys_map *dst, const unsigned int *dst_pitch, 36 void drm_fb_xrgb8888_to_xrgb2101010(struct iosys_map *dst, const unsigned int *dst_pitch, 39 void drm_fb_xrgb8888_to_gray8(struct iosys_map *dst, const unsigned int *dst_pitch, 43 int drm_fb_blit(struct iosys_map *dst, const unsigned int *dst_pitch, uint32_t dst_format, 47 void drm_fb_xrgb8888_to_mono(struct iosys_map *dst, const unsigned int *dst_pitch,
|
/include/rdma/ |
D | ib_marshall.h | 15 struct ib_uverbs_qp_attr *dst, 19 struct ib_uverbs_ah_attr *dst, 22 void ib_copy_path_rec_to_user(struct ib_user_path_rec *dst, 25 void ib_copy_path_rec_from_user(struct sa_path_rec *dst,
|
/include/asm-generic/ |
D | cacheflush.h | 108 #define copy_to_user_page(vma, page, vaddr, dst, src, len) \ argument 110 instrument_copy_to_user((void __user *)dst, src, len); \ 111 memcpy(dst, src, len); \ 118 #define copy_from_user_page(vma, page, vaddr, dst, src, len) \ argument 120 instrument_copy_from_user_before(dst, (void __user *)src, \ 122 memcpy(dst, src, len); \ 123 instrument_copy_from_user_after(dst, (void __user *)src, len, \
|
/include/trace/hooks/ |
D | signal.h | 12 TP_PROTO(int sig, struct task_struct *killer, struct task_struct *dst), 13 TP_ARGS(sig, killer, dst)); 18 TP_PROTO(struct task_struct *killer, struct task_struct *dst, bool *reap), 19 TP_ARGS(killer, dst, reap));
|
/include/crypto/ |
D | des.h | 27 void des_encrypt(const struct des_ctx *ctx, u8 *dst, const u8 *src); 28 void des_decrypt(const struct des_ctx *ctx, u8 *dst, const u8 *src); 30 void des3_ede_encrypt(const struct des3_ede_ctx *dctx, u8 *dst, const u8 *src); 31 void des3_ede_decrypt(const struct des3_ede_ctx *dctx, u8 *dst, const u8 *src);
|
D | chacha.h | 91 void chacha_crypt_arch(u32 *state, u8 *dst, const u8 *src, 93 void chacha_crypt_generic(u32 *state, u8 *dst, const u8 *src, 96 static inline void chacha_crypt(u32 *state, u8 *dst, const u8 *src, in chacha_crypt() argument 100 chacha_crypt_arch(state, dst, src, bytes, nrounds); in chacha_crypt() 102 chacha_crypt_generic(state, dst, src, bytes, nrounds); in chacha_crypt() 105 static inline void chacha20_crypt(u32 *state, u8 *dst, const u8 *src, in chacha20_crypt() argument 108 chacha_crypt(state, dst, src, bytes, 20); in chacha20_crypt()
|
/include/crypto/internal/ |
D | scompress.h | 32 unsigned int slen, u8 *dst, unsigned int *dlen, 35 unsigned int slen, u8 *dst, unsigned int *dlen, 78 u8 *dst, unsigned int *dlen, void *ctx) in crypto_scomp_compress() argument 80 return crypto_scomp_alg(tfm)->compress(tfm, src, slen, dst, dlen, ctx); in crypto_scomp_compress() 85 u8 *dst, unsigned int *dlen, in crypto_scomp_decompress() argument 88 return crypto_scomp_alg(tfm)->decompress(tfm, src, slen, dst, dlen, in crypto_scomp_decompress()
|
/include/linux/sunrpc/ |
D | addr.h | 59 static inline bool __rpc_copy_addr4(struct sockaddr *dst, in __rpc_copy_addr4() argument 63 struct sockaddr_in *dsin = (struct sockaddr_in *) dst; in __rpc_copy_addr4() 85 static inline bool __rpc_copy_addr6(struct sockaddr *dst, in __rpc_copy_addr6() argument 89 struct sockaddr_in6 *dsin6 = (struct sockaddr_in6 *) dst; in __rpc_copy_addr6() 103 static inline bool __rpc_copy_addr6(struct sockaddr *dst, in __rpc_copy_addr6() argument 157 static inline bool rpc_copy_addr(struct sockaddr *dst, in rpc_copy_addr() argument 162 return __rpc_copy_addr4(dst, src); in rpc_copy_addr() 164 return __rpc_copy_addr6(dst, src); in rpc_copy_addr()
|