Home
last modified time | relevance | path

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

1234567

/include/net/
Ddst.h88 u32 *dst_cow_metrics_generic(struct dst_entry *dst, unsigned long old);
97 static inline bool dst_metrics_read_only(const struct dst_entry *dst) in dst_metrics_read_only() argument
99 return dst->_metrics & DST_METRICS_READ_ONLY; in dst_metrics_read_only()
102 void __dst_destroy_metrics_generic(struct dst_entry *dst, unsigned long old);
104 static inline void dst_destroy_metrics_generic(struct dst_entry *dst) in dst_destroy_metrics_generic() argument
106 unsigned long val = dst->_metrics; in dst_destroy_metrics_generic()
108 __dst_destroy_metrics_generic(dst, val); in dst_destroy_metrics_generic()
111 static inline u32 *dst_metrics_write_ptr(struct dst_entry *dst) in dst_metrics_write_ptr() argument
113 unsigned long p = dst->_metrics; in dst_metrics_write_ptr()
118 return dst->ops->cow_metrics(dst, p); in dst_metrics_write_ptr()
[all …]
Ddst_ops.h29 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 …]
Ddst_metadata.h20 struct dst_entry dst; member
32 if (md_dst && md_dst->dst.flags & DST_METADATA) in skb_metadata_dst()
42 struct dst_entry *dst; in skb_tunnel_info() local
47 dst = skb_dst(skb); in skb_tunnel_info()
48 if (dst && dst->lwtstate && in skb_tunnel_info()
49 (dst->lwtstate->type == LWTUNNEL_ENCAP_IP || in skb_tunnel_info()
50 dst->lwtstate->type == LWTUNNEL_ENCAP_IP6)) in skb_tunnel_info()
51 return lwt_tun_info(dst->lwtstate); in skb_tunnel_info()
58 struct dst_entry *dst = skb_dst(skb); in skb_valid_dst() local
60 return dst && !(dst->flags & DST_METADATA); in skb_valid_dst()
[all …]
Dlwtunnel.h135 static inline void lwtunnel_set_redirect(struct dst_entry *dst) in lwtunnel_set_redirect() argument
137 if (lwtunnel_output_redirect(dst->lwtstate)) { in lwtunnel_set_redirect()
138 dst->lwtstate->orig_output = dst->output; in lwtunnel_set_redirect()
139 dst->output = lwtunnel_output; in lwtunnel_set_redirect()
141 if (lwtunnel_input_redirect(dst->lwtstate)) { in lwtunnel_set_redirect()
142 dst->lwtstate->orig_input = dst->input; in lwtunnel_set_redirect()
143 dst->input = lwtunnel_input; in lwtunnel_set_redirect()
177 static inline void lwtunnel_set_redirect(struct dst_entry *dst) in lwtunnel_set_redirect() argument
/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.h127 extern void __bitmap_complement(unsigned long *dst, const unsigned long *src,
129 extern void __bitmap_shift_right(unsigned long *dst, const unsigned long *src,
131 extern void __bitmap_shift_left(unsigned long *dst, const unsigned long *src,
133 extern int __bitmap_and(unsigned long *dst, const unsigned long *bitmap1,
135 extern void __bitmap_or(unsigned long *dst, const unsigned long *bitmap1,
137 extern void __bitmap_xor(unsigned long *dst, const unsigned long *bitmap1,
139 extern int __bitmap_andnot(unsigned long *dst, const unsigned long *bitmap1,
180 unsigned long *dst, int nbits);
182 unsigned long *dst, int nbits);
186 unsigned long *dst, int nbits);
[all …]
Dstring_helpers.h28 int string_unescape(char *src, char *dst, size_t size, unsigned int flags);
35 static inline int string_unescape_any(char *src, char *dst, size_t size) in string_unescape_any() argument
37 return string_unescape(src, dst, size, UNESCAPE_ANY); in string_unescape_any()
55 int string_escape_mem(const char *src, size_t isz, char *dst, size_t osz,
58 int string_escape_mem_ascii(const char *src, size_t isz, char *dst,
62 char *dst, size_t osz, const char *only) in string_escape_mem_any_np() argument
64 return string_escape_mem(src, isz, dst, osz, ESCAPE_ANY_NP, only); in string_escape_mem_any_np()
67 static inline int string_escape_str(const char *src, char *dst, size_t sz, in string_escape_str() argument
70 return string_escape_mem(src, strlen(src), dst, sz, flags, only); in string_escape_str()
73 static inline int string_escape_str_any_np(const char *src, char *dst, in string_escape_str_any_np() argument
[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()
Dnodemask.h127 #define node_set(node, dst) __node_set((node), &(dst)) argument
133 #define node_clear(node, dst) __node_clear((node), &(dst)) argument
139 #define nodes_setall(dst) __nodes_setall(&(dst), MAX_NUMNODES) argument
145 #define nodes_clear(dst) __nodes_clear(&(dst), MAX_NUMNODES) argument
161 #define nodes_and(dst, src1, src2) \ argument
162 __nodes_and(&(dst), &(src1), &(src2), MAX_NUMNODES)
169 #define nodes_or(dst, src1, src2) \ argument
170 __nodes_or(&(dst), &(src1), &(src2), MAX_NUMNODES)
177 #define nodes_xor(dst, src1, src2) \ argument
178 __nodes_xor(&(dst), &(src1), &(src2), MAX_NUMNODES)
[all …]
Duaccess.h284 copy_struct_from_user(void *dst, size_t ksize, const void __user *src, in copy_struct_from_user() argument
291 if (WARN_ON_ONCE(ksize > __builtin_object_size(dst, 1))) in copy_struct_from_user()
296 memset(dst + size, 0, rest); in copy_struct_from_user()
303 if (copy_from_user(dst, src, size)) in copy_struct_from_user()
317 extern long probe_kernel_read(void *dst, const void *src, size_t size);
318 extern long __probe_kernel_read(void *dst, const void *src, size_t size);
329 extern long probe_user_read(void *dst, const void __user *src, size_t size);
330 extern long __probe_user_read(void *dst, const void __user *src, size_t size);
341 extern long notrace probe_kernel_write(void *dst, const void *src, size_t size);
342 extern long notrace __probe_kernel_write(void *dst, const void *src, size_t size);
[all …]
Drpmsg.h38 u32 dst; member
58 u32 dst; member
137 int rpmsg_sendto(struct rpmsg_endpoint *ept, void *data, int len, u32 dst);
138 int rpmsg_send_offchannel(struct rpmsg_endpoint *ept, u32 src, u32 dst,
142 int rpmsg_trysendto(struct rpmsg_endpoint *ept, void *data, int len, u32 dst);
143 int rpmsg_trysend_offchannel(struct rpmsg_endpoint *ept, u32 src, u32 dst,
212 u32 dst) in rpmsg_sendto() argument
222 u32 dst, void *data, int len) in rpmsg_send_offchannel() argument
239 int len, u32 dst) in rpmsg_trysendto() argument
248 u32 dst, void *data, int len) in rpmsg_trysend_offchannel() argument
Dlzo.h25 unsigned char *dst, size_t *dst_len, void *wrkmem);
29 unsigned char *dst, size_t *dst_len, void *wrkmem);
33 unsigned char *dst, size_t *dst_len);
Dsw842.h8 u8 *dst, unsigned int *destlen, void *wmem);
11 u8 *dst, unsigned int *destlen);
Dsram.h19 void *sram_exec_copy(struct gen_pool *pool, void *dst, void *src, size_t size);
21 static inline void *sram_exec_copy(struct gen_pool *pool, void *dst, void *src, in sram_exec_copy() argument
/include/drm/
Ddrm_format_helper.h12 void drm_fb_memcpy(void *dst, void *vaddr, struct drm_framebuffer *fb,
14 void drm_fb_memcpy_dstclip(void __iomem *dst, void *vaddr,
17 void drm_fb_swab16(u16 *dst, void *vaddr, struct drm_framebuffer *fb,
19 void drm_fb_xrgb8888_to_rgb565(void *dst, void *vaddr,
22 void drm_fb_xrgb8888_to_rgb565_dstclip(void __iomem *dst, unsigned int dst_pitch,
25 void drm_fb_xrgb8888_to_rgb888_dstclip(void __iomem *dst, unsigned int dst_pitch,
28 void drm_fb_xrgb8888_to_gray8(u8 *dst, void *vaddr, struct drm_framebuffer *fb,
/include/net/netfilter/
Dnf_conntrack_tuple.h72 } 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/rdma/
Dib_marshall.h42 struct ib_uverbs_qp_attr *dst,
46 struct ib_uverbs_ah_attr *dst,
49 void ib_copy_path_rec_to_user(struct ib_user_path_rec *dst,
52 void ib_copy_path_rec_from_user(struct sa_path_rec *dst,
/include/crypto/
Dcbc.h22 u8 *dst = walk->dst.virt.addr; in crypto_cbc_encrypt_segment() local
27 fn(tfm, iv, dst); in crypto_cbc_encrypt_segment()
28 memcpy(iv, dst, bsize); in crypto_cbc_encrypt_segment()
31 dst += bsize; in crypto_cbc_encrypt_segment()
70 if (walk.src.virt.addr == walk.dst.virt.addr) in crypto_cbc_encrypt_walk()
87 u8 *dst = walk->dst.virt.addr; in crypto_cbc_decrypt_segment() local
91 fn(tfm, src, dst); in crypto_cbc_decrypt_segment()
92 crypto_xor(dst, iv, bsize); in crypto_cbc_decrypt_segment()
96 dst += bsize; in crypto_cbc_decrypt_segment()
135 if (walk->src.virt.addr == walk->dst.virt.addr) in crypto_cbc_decrypt_blocks()
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);
Dctr.h37 u8 *dst = walk.dst.virt.addr; in crypto_ctr_encrypt_walk() local
52 crypto_xor_cpy(dst, src, buf, bsize); in crypto_ctr_encrypt_walk()
55 dst += bsize; in crypto_ctr_encrypt_walk()
Dacompress.h29 struct scatterlist *dst; member
50 void (*dst_free)(struct scatterlist *dst);
79 void (*dst_free)(struct scatterlist *dst);
221 struct scatterlist *dst, in acomp_request_set_params() argument
226 req->dst = dst; in acomp_request_set_params()
230 if (!req->dst) in acomp_request_set_params()
/include/crypto/internal/
Dscompress.h32 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/
Daddr.h59 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()
/include/asm-generic/
Dcacheflush.h100 #define copy_to_user_page(vma, page, vaddr, dst, src, len) \ argument
102 memcpy(dst, src, len); \
108 #define copy_from_user_page(vma, page, vaddr, dst, src, len) \ argument
109 memcpy(dst, src, len)
Dchecksum.h26 extern __wsum csum_partial_copy(const void *src, void *dst, int len, __wsum sum);
34 extern __wsum csum_partial_copy_from_user(const void __user *src, void *dst,
38 #define csum_partial_copy_nocheck(src, dst, len, sum) \ argument
39 csum_partial_copy((src), (dst), (len), (sum))

1234567