Home
last modified time | relevance | path

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

12345678

/include/net/
Ddst.h103 u32 *dst_cow_metrics_generic(struct dst_entry *dst, unsigned long old);
112 static inline bool dst_metrics_read_only(const struct dst_entry *dst) in dst_metrics_read_only() argument
114 return dst->_metrics & DST_METRICS_READ_ONLY; in dst_metrics_read_only()
117 void __dst_destroy_metrics_generic(struct dst_entry *dst, unsigned long old);
119 static inline void dst_destroy_metrics_generic(struct dst_entry *dst) in dst_destroy_metrics_generic() argument
121 unsigned long val = dst->_metrics; in dst_destroy_metrics_generic()
123 __dst_destroy_metrics_generic(dst, val); in dst_destroy_metrics_generic()
126 static inline u32 *dst_metrics_write_ptr(struct dst_entry *dst) in dst_metrics_write_ptr() argument
128 unsigned long p = dst->_metrics; in dst_metrics_write_ptr()
133 return dst->ops->cow_metrics(dst, p); in dst_metrics_write_ptr()
[all …]
Ddst_ops.h39 void (*update_pmtu)(struct dst_entry *dst, struct sock *sk,
42 void (*redirect)(struct dst_entry *dst, struct sock *sk,
45 struct neighbour * (*neigh_lookup)(const struct dst_entry *dst,
48 void (*confirm_neigh)(const struct dst_entry *dst,
56 static inline int dst_entries_get_fast(struct dst_ops *dst) in dst_entries_get_fast() argument
58 return percpu_counter_read_positive(&dst->pcpuc_entries); in dst_entries_get_fast()
61 static inline int dst_entries_get_slow(struct dst_ops *dst) in dst_entries_get_slow() argument
63 return percpu_counter_sum_positive(&dst->pcpuc_entries); in dst_entries_get_slow()
67 static inline void dst_entries_add(struct dst_ops *dst, int val) in dst_entries_add() argument
69 percpu_counter_add_batch(&dst->pcpuc_entries, val, in dst_entries_add()
[all …]
Ddst_metadata.h33 struct dst_entry dst; member
47 if (md_dst && md_dst->dst.flags & DST_METADATA) in skb_metadata_dst()
57 struct dst_entry *dst; in skb_tunnel_info() local
62 dst = skb_dst(skb); in skb_tunnel_info()
63 if (dst && dst->lwtstate && in skb_tunnel_info()
64 (dst->lwtstate->type == LWTUNNEL_ENCAP_IP || in skb_tunnel_info()
65 dst->lwtstate->type == LWTUNNEL_ENCAP_IP6)) in skb_tunnel_info()
66 return lwt_tun_info(dst->lwtstate); in skb_tunnel_info()
79 struct dst_entry *dst; in skb_xfrm_md_info() local
84 dst = skb_dst(skb); in skb_xfrm_md_info()
[all …]
Dip6_route.h103 !list_empty(&rt->dst.rt_uncached)) in ip6_rt_put_flags()
220 const struct dst_entry *dst = skb_dst(skb); in skb_rt6_info() local
223 if (dst) in skb_rt6_info()
224 rt6 = container_of(dst, struct rt6_info, dst); in skb_rt6_info()
232 static inline void ip6_dst_store(struct sock *sk, struct dst_entry *dst, in ip6_dst_store() argument
238 np->dst_cookie = rt6_get_cookie((struct rt6_info *)dst); in ip6_dst_store()
239 sk_setup_caps(sk, dst); in ip6_dst_store()
246 void ip6_sk_dst_store_flow(struct sock *sk, struct dst_entry *dst,
256 static inline bool ipv6_anycast_destination(const struct dst_entry *dst, in ipv6_anycast_destination() argument
259 struct rt6_info *rt = (struct rt6_info *)dst; in ipv6_anycast_destination()
[all …]
/include/linux/
Dtask_io_accounting_ops.h49 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 …]
Dbitmap.h144 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 …]
Dsockptr.h44 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()
57 static inline int copy_from_sockptr(void *dst, sockptr_t src, size_t size) in copy_from_sockptr() argument
59 return copy_from_sockptr_offset(dst, src, 0, size); in copy_from_sockptr()
75 static inline int copy_safe_from_sockptr(void *dst, size_t ksize, in copy_safe_from_sockptr() argument
80 return copy_from_sockptr(dst, optval, ksize); in copy_safe_from_sockptr()
83 static inline int copy_to_sockptr_offset(sockptr_t dst, size_t offset, in copy_to_sockptr_offset() argument
86 if (!sockptr_is_kernel(dst)) in copy_to_sockptr_offset()
87 return copy_to_user(dst.user + offset, src, size); in copy_to_sockptr_offset()
[all …]
Dlinkmode.h8 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()
Dstring_helpers.h41 int string_unescape(char *src, char *dst, size_t size, unsigned int flags);
48 static inline int string_unescape_any(char *src, char *dst, size_t size) in string_unescape_any() argument
50 return string_unescape(src, dst, size, UNESCAPE_ANY); in string_unescape_any()
73 int string_escape_mem(const char *src, size_t isz, char *dst, size_t osz,
77 char *dst, size_t osz, const char *only) in string_escape_mem_any_np() argument
79 return string_escape_mem(src, isz, dst, osz, ESCAPE_ANY_NP, only); in string_escape_mem_any_np()
82 static inline int string_escape_str(const char *src, char *dst, size_t sz, in string_escape_str() argument
85 return string_escape_mem(src, strlen(src), dst, sz, flags, only); in string_escape_str()
88 static inline int string_escape_str_any_np(const char *src, char *dst, in string_escape_str_any_np() argument
91 return string_escape_str(src, dst, sz, ESCAPE_ANY_NP, only); in string_escape_str_any_np()
[all …]
Duuid.h51 static inline void guid_copy(guid_t *dst, const guid_t *src) in guid_copy() argument
53 memcpy(dst, src, sizeof(guid_t)); in guid_copy()
56 static inline void import_guid(guid_t *dst, const __u8 *src) in import_guid() argument
58 memcpy(dst, src, sizeof(guid_t)); in import_guid()
61 static inline void export_guid(__u8 *dst, const guid_t *src) in export_guid() argument
63 memcpy(dst, src, sizeof(guid_t)); in export_guid()
76 static inline void uuid_copy(uuid_t *dst, const uuid_t *src) in uuid_copy() argument
78 memcpy(dst, src, sizeof(uuid_t)); in uuid_copy()
81 static inline void import_uuid(uuid_t *dst, const __u8 *src) in import_uuid() argument
83 memcpy(dst, src, sizeof(uuid_t)); in import_uuid()
[all …]
Dbpfptr.h49 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()
Dnodemask.h128 #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 …]
Dblk-crypto.h175 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
Duaccess.h201 copy_mc_to_kernel(void *dst, const void *src, size_t cnt) in copy_mc_to_kernel() argument
203 memcpy(dst, src, cnt); in copy_mc_to_kernel()
348 copy_struct_from_user(void *dst, size_t ksize, const void __user *src, in copy_struct_from_user() argument
355 if (WARN_ON_ONCE(ksize > __builtin_object_size(dst, 1))) in copy_struct_from_user()
360 memset(dst + size, 0, rest); in copy_struct_from_user()
367 if (copy_from_user(dst, src, size)) in copy_struct_from_user()
374 long copy_from_kernel_nofault(void *dst, const void *src, size_t size);
375 long notrace copy_to_kernel_nofault(void *dst, const void *src, size_t size);
377 long copy_from_user_nofault(void *dst, const void __user *src, size_t size);
378 long notrace copy_to_user_nofault(void __user *dst, const void *src,
[all …]
Drpmsg.h37 u32 dst; member
58 u32 dst; member
186 int rpmsg_sendto(struct rpmsg_endpoint *ept, void *data, int len, u32 dst);
187 int rpmsg_send_offchannel(struct rpmsg_endpoint *ept, u32 src, u32 dst,
191 int rpmsg_trysendto(struct rpmsg_endpoint *ept, void *data, int len, u32 dst);
192 int rpmsg_trysend_offchannel(struct rpmsg_endpoint *ept, u32 src, u32 dst,
200 int rpmsg_set_flow_control(struct rpmsg_endpoint *ept, bool pause, u32 dst);
265 u32 dst) in rpmsg_sendto() argument
275 u32 dst, void *data, int len) in rpmsg_send_offchannel() argument
292 int len, u32 dst) in rpmsg_trysendto() argument
[all …]
/include/drm/
Ddrm_format_helper.h21 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_xrgb1555(struct iosys_map *dst, const unsigned int *dst_pitch,
36 void drm_fb_xrgb8888_to_argb1555(struct iosys_map *dst, const unsigned int *dst_pitch,
39 void drm_fb_xrgb8888_to_rgba5551(struct iosys_map *dst, const unsigned int *dst_pitch,
42 void drm_fb_xrgb8888_to_rgb888(struct iosys_map *dst, const unsigned int *dst_pitch,
45 void drm_fb_xrgb8888_to_argb8888(struct iosys_map *dst, const unsigned int *dst_pitch,
48 void drm_fb_xrgb8888_to_xrgb2101010(struct iosys_map *dst, const unsigned int *dst_pitch,
[all …]
/include/trace/stages/
Dstage6_event_callback.h34 #define __assign_str(dst, src) \ argument
35 strcpy(__get_str(dst), (src) ? (const char *)(src) : "(null)");
38 #define __assign_str_len(dst, src, len) \ argument
40 memcpy(__get_str(dst), (src), (len)); \
41 __get_str(dst)[len] = '\0'; \
45 #define __assign_vstr(dst, fmt, va) \ argument
49 vsnprintf(__get_str(dst), TRACE_EVENT_STR_MAX, fmt, __cp_va); \
60 #define __assign_bitmask(dst, src, nr_bits) \ argument
61 memcpy(__get_bitmask(dst), (src), __bitmask_size_in_bytes(nr_bits))
70 #define __assign_cpumask(dst, src) \ argument
[all …]
/include/crypto/
Dutils.h14 void __crypto_xor(u8 *dst, const u8 *src1, const u8 *src2, unsigned int size);
16 static inline void crypto_xor(u8 *dst, const u8 *src, unsigned int size) in crypto_xor() argument
21 unsigned long *d = (unsigned long *)dst; in crypto_xor()
31 __crypto_xor(dst, dst, src, size); in crypto_xor()
35 static inline void crypto_xor_cpy(u8 *dst, const u8 *src1, const u8 *src2, in crypto_xor_cpy() argument
41 unsigned long *d = (unsigned long *)dst; in crypto_xor_cpy()
52 __crypto_xor(dst, src1, src2, size); in crypto_xor_cpy()
Ddes.h27 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);
Dchacha.h91 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/net/netfilter/
Dnf_conntrack_tuple.h75 } dst; member
89 t, t->dst.protonum, in nf_ct_dump_tuple_ip()
91 &t->dst.u3.ip, ntohs(t->dst.u.all)); in nf_ct_dump_tuple_ip()
99 t, t->dst.protonum, in nf_ct_dump_tuple_ipv6()
101 t->dst.u3.all, ntohs(t->dst.u.all)); in nf_ct_dump_tuple_ipv6()
119 ((enum ip_conntrack_dir)(h)->tuple.dst.dir)
138 return (nf_inet_addr_cmp(&t1->dst.u3, &t2->dst.u3) && in __nf_ct_tuple_dst_equal()
139 t1->dst.u.all == t2->dst.u.all && in __nf_ct_tuple_dst_equal()
140 t1->dst.protonum == t2->dst.protonum); in __nf_ct_tuple_dst_equal()
175 t1->dst.protonum != t2->dst.protonum) in nf_ct_tuple_src_mask_cmp()
/include/rdma/
Dib_marshall.h15 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/
Dcacheflush.h107 #define copy_to_user_page(vma, page, vaddr, dst, src, len) \ argument
109 instrument_copy_to_user((void __user *)dst, src, len); \
110 memcpy(dst, src, len); \
117 #define copy_from_user_page(vma, page, vaddr, dst, src, len) \ argument
119 instrument_copy_from_user_before(dst, (void __user *)src, \
121 memcpy(dst, src, len); \
122 instrument_copy_from_user_after(dst, (void __user *)src, len, \
/include/trace/hooks/
Dsignal.h12 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/internal/
Dscompress.h38 unsigned int slen, u8 *dst, unsigned int *dlen,
41 unsigned int slen, u8 *dst, unsigned int *dlen,
88 u8 *dst, unsigned int *dlen, void *ctx) in crypto_scomp_compress() argument
90 return crypto_scomp_alg(tfm)->compress(tfm, src, slen, dst, dlen, ctx); in crypto_scomp_compress()
95 u8 *dst, unsigned int *dlen, in crypto_scomp_decompress() argument
98 return crypto_scomp_alg(tfm)->decompress(tfm, src, slen, dst, dlen, in crypto_scomp_decompress()

12345678