Home
last modified time | relevance | path

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

123456

/tools/include/nolibc/
Dstring.h31 void *_nolibc_memcpy_up(void *dst, const void *src, size_t len) in _nolibc_memcpy_up() argument
36 ((char *)dst)[pos] = ((const char *)src)[pos]; in _nolibc_memcpy_up()
39 return dst; in _nolibc_memcpy_up()
43 void *_nolibc_memcpy_down(void *dst, const void *src, size_t len) in _nolibc_memcpy_down() argument
47 ((char *)dst)[len] = ((const char *)src)[len]; in _nolibc_memcpy_down()
49 return dst; in _nolibc_memcpy_down()
56 void *memmove(void *dst, const void *src, size_t len) in memmove() argument
63 if (dst < src) { in memmove()
70 ((char *)dst)[pos] = ((const char *)src)[pos]; in memmove()
73 return dst; in memmove()
[all …]
/tools/testing/selftests/bpf/progs/
Dtest_sock_fields.c61 static void skcpy(struct bpf_sock *dst, in skcpy() argument
64 dst->bound_dev_if = src->bound_dev_if; in skcpy()
65 dst->family = src->family; in skcpy()
66 dst->type = src->type; in skcpy()
67 dst->protocol = src->protocol; in skcpy()
68 dst->mark = src->mark; in skcpy()
69 dst->priority = src->priority; in skcpy()
70 dst->src_ip4 = src->src_ip4; in skcpy()
71 dst->src_ip6[0] = src->src_ip6[0]; in skcpy()
72 dst->src_ip6[1] = src->src_ip6[1]; in skcpy()
[all …]
Dtest_core_reloc_mods.c46 #define CORE_READ(dst, src) bpf_core_read(dst, sizeof(*(dst)), src) argument
48 #define CORE_READ(dst, src) ({ \ argument
49 int __sz = sizeof(*(dst)) < sizeof(*(src)) ? sizeof(*(dst)) : \
51 bpf_core_read((char *)(dst) + sizeof(*(dst)) - __sz, __sz, \
/tools/testing/selftests/timers/
Dset-tz.c28 int set_tz(int min, int dst) in set_tz() argument
33 tz.tz_dsttime = dst; in set_tz()
61 int min, dst; in main() local
64 dst = get_tz_dst(); in main()
65 printf("tz_minuteswest started at %i, dst at %i\n", min, dst); in main()
70 ret = set_tz(i, dst); in main()
82 if (!set_tz(-15*60-1, dst)) { in main()
87 if (!set_tz(15*60+1, dst)) { in main()
92 if (!set_tz(-24*60, dst)) { in main()
97 if (!set_tz(24*60, dst)) { in main()
[all …]
/tools/net/ynl/generated/
Ddevlink-user.c163 struct devlink_dl_info_version *dst = yarg->data; in devlink_dl_info_version_parse() local
176 dst->_present.info_version_name_len = len; in devlink_dl_info_version_parse()
177 dst->info_version_name = malloc(len + 1); in devlink_dl_info_version_parse()
178 memcpy(dst->info_version_name, mnl_attr_get_str(attr), len); in devlink_dl_info_version_parse()
179 dst->info_version_name[len] = 0; in devlink_dl_info_version_parse()
187 dst->_present.info_version_value_len = len; in devlink_dl_info_version_parse()
188 dst->info_version_value = malloc(len + 1); in devlink_dl_info_version_parse()
189 memcpy(dst->info_version_value, mnl_attr_get_str(attr), len); in devlink_dl_info_version_parse()
190 dst->info_version_value[len] = 0; in devlink_dl_info_version_parse()
205 struct devlink_dl_reload_stats_entry *dst = yarg->data; in devlink_dl_reload_stats_entry_parse() local
[all …]
Dhandshake-user.c115 struct handshake_x509 *dst = yarg->data; in handshake_x509_parse() local
124 dst->_present.cert = 1; in handshake_x509_parse()
125 dst->cert = mnl_attr_get_u32(attr); in handshake_x509_parse()
129 dst->_present.privkey = 1; in handshake_x509_parse()
130 dst->privkey = mnl_attr_get_u32(attr); in handshake_x509_parse()
159 struct handshake_accept_rsp *dst; in handshake_accept_rsp_parse() local
166 dst = yarg->data; in handshake_accept_rsp_parse()
169 if (dst->certificate) in handshake_accept_rsp_parse()
171 if (dst->peer_identity) in handshake_accept_rsp_parse()
180 dst->_present.sockfd = 1; in handshake_accept_rsp_parse()
[all …]
Dethtool-user.c695 struct ethtool_header *dst = yarg->data; in ethtool_header_parse() local
704 dst->_present.dev_index = 1; in ethtool_header_parse()
705 dst->dev_index = mnl_attr_get_u32(attr); in ethtool_header_parse()
713 dst->_present.dev_name_len = len; in ethtool_header_parse()
714 dst->dev_name = malloc(len + 1); in ethtool_header_parse()
715 memcpy(dst->dev_name, mnl_attr_get_str(attr), len); in ethtool_header_parse()
716 dst->dev_name[len] = 0; in ethtool_header_parse()
720 dst->_present.flags = 1; in ethtool_header_parse()
721 dst->flags = mnl_attr_get_u32(attr); in ethtool_header_parse()
750 struct ethtool_pause_stat *dst = yarg->data; in ethtool_pause_stat_parse() local
[all …]
Dfou-user.c170 struct fou_get_rsp *dst; in fou_get_rsp_parse() local
172 dst = yarg->data; in fou_get_rsp_parse()
180 dst->_present.port = 1; in fou_get_rsp_parse()
181 dst->port = mnl_attr_get_u16(attr); in fou_get_rsp_parse()
185 dst->_present.ipproto = 1; in fou_get_rsp_parse()
186 dst->ipproto = mnl_attr_get_u8(attr); in fou_get_rsp_parse()
190 dst->_present.type = 1; in fou_get_rsp_parse()
191 dst->type = mnl_attr_get_u8(attr); in fou_get_rsp_parse()
195 dst->_present.remcsum_nopartial = 1; in fou_get_rsp_parse()
199 dst->_present.local_v4 = 1; in fou_get_rsp_parse()
[all …]
/tools/include/linux/
Dbitmap.h16 void __bitmap_or(unsigned long *dst, const unsigned long *bitmap1,
18 bool __bitmap_and(unsigned long *dst, const unsigned long *bitmap1,
31 static inline void bitmap_zero(unsigned long *dst, unsigned int nbits) in bitmap_zero() argument
34 *dst = 0UL; in bitmap_zero()
36 memset(dst, 0, bitmap_size(nbits)); in bitmap_zero()
40 static inline void bitmap_fill(unsigned long *dst, unsigned int nbits) in bitmap_fill() argument
45 memset(dst, 0xff, len); in bitmap_fill()
47 dst[nlongs - 1] = BITMAP_LAST_WORD_MASK(nbits); in bitmap_fill()
73 static inline void bitmap_or(unsigned long *dst, const unsigned long *src1, in bitmap_or() argument
77 *dst = *src1 | *src2; in bitmap_or()
[all …]
/tools/perf/util/
Daddr_location.c35 void addr_location__copy(struct addr_location *dst, struct addr_location *src) in addr_location__copy() argument
37 thread__put(dst->thread); in addr_location__copy()
38 maps__put(dst->maps); in addr_location__copy()
39 map__put(dst->map); in addr_location__copy()
40 *dst = *src; in addr_location__copy()
41 dst->thread = thread__get(src->thread); in addr_location__copy()
42 dst->maps = maps__get(src->maps); in addr_location__copy()
43 dst->map = map__get(src->map); in addr_location__copy()
Dzstd.c57 size_t zstd_compress_stream_to_records(struct zstd_data *data, void *dst, size_t dst_size, in zstd_compress_stream_to_records() argument
67 record = dst; in zstd_compress_stream_to_records()
70 dst += size; in zstd_compress_stream_to_records()
72 output = (ZSTD_outBuffer){ dst, (dst_size > max_record_size) ? in zstd_compress_stream_to_records()
79 memcpy(dst, src, src_size); in zstd_compress_stream_to_records()
85 dst += size; in zstd_compress_stream_to_records()
93 void *dst, size_t dst_size) in zstd_decompress_stream() argument
97 ZSTD_outBuffer output = { dst, dst_size, 0 }; in zstd_decompress_stream()
106 output.dst = dst + output.pos; in zstd_decompress_stream()
/tools/testing/selftests/bpf/
Dtest_skb_cgroup_id_user.c27 struct sockaddr_in6 *dst) in mk_dst_addr() argument
29 memset(dst, 0, sizeof(*dst)); in mk_dst_addr()
31 dst->sin6_family = AF_INET6; in mk_dst_addr()
32 dst->sin6_port = htons(1025); in mk_dst_addr()
34 if (inet_pton(AF_INET6, ip, &dst->sin6_addr) != 1) { in mk_dst_addr()
39 dst->sin6_scope_id = if_nametoindex(iface); in mk_dst_addr()
40 if (!dst->sin6_scope_id) { in mk_dst_addr()
50 struct sockaddr_in6 dst; in send_packet() local
55 if (mk_dst_addr(LINKLOCAL_MULTICAST, iface, &dst)) in send_packet()
64 if (sendto(fd, &msg, sizeof(msg), 0, (const struct sockaddr *)&dst, in send_packet()
[all …]
/tools/lib/bpf/
Dbpf_core_read.h45 #define __CORE_BITFIELD_PROBE_READ(dst, src, fld) \ argument
47 (void *)dst, \
55 #define __CORE_BITFIELD_PROBE_READ(dst, src, fld) \ argument
57 (void *)dst + (8 - __CORE_RELO(src, fld, BYTE_SIZE)), \
246 #define bpf_core_read(dst, sz, src) \ argument
247 bpf_probe_read_kernel(dst, sz, (const void *)__builtin_preserve_access_index(src))
250 #define bpf_core_read_user(dst, sz, src) \ argument
251 bpf_probe_read_user(dst, sz, (const void *)__builtin_preserve_access_index(src))
257 #define bpf_core_read_str(dst, sz, src) \ argument
258 bpf_probe_read_kernel_str(dst, sz, (const void *)__builtin_preserve_access_index(src))
[all …]
Dstr_error.c15 char *libbpf_strerror_r(int err, char *dst, int len) in libbpf_strerror_r() argument
17 int ret = strerror_r(err < 0 ? -err : err, dst, len); in libbpf_strerror_r()
19 snprintf(dst, len, "ERROR: strerror_r(%d)=%d", err, ret); in libbpf_strerror_r()
20 return dst; in libbpf_strerror_r()
/tools/testing/selftests/powerpc/copyloops/
Dvalidate.c17 static void do_one(char *src, char *dst, unsigned long src_off, in do_one() argument
26 dstp = dst + MIN_REDZONE + dst_off; in do_one()
29 memset(dst, POISON, BUFLEN); in do_one()
50 if (memcmp(dst, redzone, dstp - dst)) { in do_one()
56 if (memcmp(dstp+len, redzone, dst+BUFLEN-(dstp+len))) { in do_one()
65 char *src, *dst, *redzone, *fill; in test_copy_loop() local
70 dst = memalign(BUFLEN, BUFLEN); in test_copy_loop()
74 if (!src || !dst || !redzone || !fill) { in test_copy_loop()
88 do_one(src, dst, src_off, dst_off, len, in test_copy_loop()
/tools/testing/selftests/net/forwarding/
Dvxlan_bridge_1q.sh190 bridge fdb append dev vx10 00:00:00:00:00:00 dst 192.0.2.34 self
191 bridge fdb append dev vx10 00:00:00:00:00:00 dst 192.0.2.50 self
193 bridge fdb append dev vx20 00:00:00:00:00:00 dst 192.0.2.34 self
194 bridge fdb append dev vx20 00:00:00:00:00:00 dst 192.0.2.50 self
199 bridge fdb del dev vx20 00:00:00:00:00:00 dst 192.0.2.50 self
200 bridge fdb del dev vx20 00:00:00:00:00:00 dst 192.0.2.34 self
202 bridge fdb del dev vx10 00:00:00:00:00:00 dst 192.0.2.50 self
203 bridge fdb del dev vx10 00:00:00:00:00:00 dst 192.0.2.34 self
277 bridge fdb append dev vx10 00:00:00:00:00:00 dst 192.0.2.17 self
278 bridge fdb append dev vx10 00:00:00:00:00:00 dst $other_in_addr self
[all …]
Dvxlan_bridge_1q_ipv6.sh205 bridge fdb append dev vx10 00:00:00:00:00:00 dst 2001:db8:4::1 self
206 bridge fdb append dev vx10 00:00:00:00:00:00 dst 2001:db8:5::1 self
208 bridge fdb append dev vx20 00:00:00:00:00:00 dst 2001:db8:4::1 self
209 bridge fdb append dev vx20 00:00:00:00:00:00 dst 2001:db8:5::1 self
214 bridge fdb del dev vx20 00:00:00:00:00:00 dst 2001:db8:5::1 self
215 bridge fdb del dev vx20 00:00:00:00:00:00 dst 2001:db8:4::1 self
217 bridge fdb del dev vx10 00:00:00:00:00:00 dst 2001:db8:5::1 self
218 bridge fdb del dev vx10 00:00:00:00:00:00 dst 2001:db8:4::1 self
296 bridge fdb append dev vx10 00:00:00:00:00:00 dst 2001:db8:3::1 self
297 bridge fdb append dev vx10 00:00:00:00:00:00 dst $other_in_addr self
[all …]
Dvxlan_bridge_1d.sh148 bridge fdb append dev vx1 00:00:00:00:00:00 dst 192.0.2.34 self
149 bridge fdb append dev vx1 00:00:00:00:00:00 dst 192.0.2.50 self
157 bridge fdb del dev vx1 00:00:00:00:00:00 dst 192.0.2.50 self
158 bridge fdb del dev vx1 00:00:00:00:00:00 dst 192.0.2.34 self
212 bridge fdb append dev vx2 00:00:00:00:00:00 dst 192.0.2.17 self
213 bridge fdb append dev vx2 00:00:00:00:00:00 dst $other_in_addr self
308 bridge fdb del dev vx1 00:00:00:00:00:00 dst 192.0.2.50 self
309 bridge fdb del dev vx1 00:00:00:00:00:00 dst 192.0.2.34 self
315 bridge fdb append dev vx1 00:00:00:00:00:00 dst 192.0.2.34 self
316 bridge fdb append dev vx1 00:00:00:00:00:00 dst 192.0.2.50 self
[all …]
/tools/perf/bench/
Dmem-functions.c112 u64 (*do_cycles)(const struct function *r, size_t size, void *src, void *dst);
113 double (*do_gettimeofday)(const struct function *r, size_t size, void *src, void *dst);
123 void *src = NULL, *dst = zalloc(size); in __bench_mem_function() local
127 if (dst == NULL) in __bench_mem_function()
140 result_cycles = info->do_cycles(r, size, src, dst); in __bench_mem_function()
142 result_bps = info->do_gettimeofday(r, size, src, dst); in __bench_mem_function()
169 free(dst); in __bench_mem_function()
226 static void memcpy_prefault(memcpy_t fn, size_t size, void *src, void *dst) in memcpy_prefault() argument
235 fn(dst, src, size); in memcpy_prefault()
238 static u64 do_memcpy_cycles(const struct function *r, size_t size, void *src, void *dst) in do_memcpy_cycles() argument
[all …]
/tools/testing/selftests/drivers/net/mlxsw/spectrum/
Dvxlan_flooding_ipv6.sh166 dst 2001:db8:2::$lsb
239 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::12
240 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::13
241 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::14
242 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::15
243 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::16
253 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::2
254 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::3
255 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::4
256 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::5
[all …]
/tools/testing/selftests/net/
Dxfrm_policy.sh39 …ip -net $ns xfrm policy add src $lnet dst $rnet dir out tmpl src $me dst $remote proto esp mode tu…
41 …ip -net $ns xfrm policy add src $rnet dst $lnet dir fwd tmpl src $remote dst $me proto esp mode tu…
53 …xfrm state add src $remote dst $me proto esp spi $spi_in enc aes $KEY_AES auth sha1 $KEY_SHA mo…
54 …s xfrm state add src $me dst $remote proto esp spi $spi_out enc aes $KEY_AES auth sha1 $KEY_SHA m…
76 ip -net $ns xfrm policy add src 10.1.0.0/24 dst 10.0.0.0/24 dir fwd priority 200 action block
79 ip -net $ns xfrm policy add src 10.2.0.0/24 dst 10.0.0.0/24 dir fwd priority 200 action block
82 ip -net $ns xfrm policy add src 10.2.0.0/23 dst 10.0.1.0/24 dir fwd priority 200 action block
108 ip -net $ns xfrm policy add src 10.1.0.0/24 dst 10.0.0.0/23 dir fwd priority 200 action block
113 …ip -net $ns xfrm policy add src 10.253.1.$((RANDOM%255))/$p dst 10.254.1.$((RANDOM%255))/$p dir fw…
123 ip -net $ns xfrm policy get src $lnet dst $rnet dir out > /dev/null
[all …]
Dvrf-xfrm-tests.sh222 src ${h1_4} dst ${h2_4} ${devarg} dir out \
223 tmpl src ${HOST1_4} dst ${HOST2_4} proto esp mode tunnel
227 src ${h1_4} dst ${h2_4} dir in \
228 tmpl src ${HOST1_4} dst ${HOST2_4} proto esp mode tunnel
232 src ${h2_4} dst ${h1_4} ${devarg} dir in \
233 tmpl src ${HOST2_4} dst ${HOST1_4} proto esp mode tunnel
237 src ${h2_4} dst ${h1_4} dir out \
238 tmpl src ${HOST2_4} dst ${HOST1_4} proto esp mode tunnel
243 src ${h1_6} dst ${h2_6} ${devarg} dir out \
244 tmpl src ${HOST1_6} dst ${HOST2_6} proto esp mode tunnel
[all …]
/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/
Dvxlan_flooding_ipv6.sh177 dst 2001:db8:2::$lsb
256 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::10
257 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::11
258 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::12
259 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::13
269 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::2
270 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::3
271 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::4
272 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::5
282 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::14
[all …]
/tools/testing/selftests/netfilter/
Dconnect_close.c40 static void do_connect(const struct sockaddr_in *dst) in do_connect() argument
47 connect(s, (struct sockaddr *)dst, sizeof(*dst)); in do_connect()
91 struct sockaddr_in dst = { in connect_loop() local
96 inet_pton(AF_INET, "127.0.0.1", &dst.sin_addr); in connect_loop()
101 do_connect(&dst); in connect_loop()
/tools/testing/selftests/drivers/net/mlxsw/
Dvxlan_fdb_veto.sh68 dst $REMOTE_IP_1 2>/dev/null
72 dst $REMOTE_IP_1 2>&1 >/dev/null | grep -q mlxsw_spectrum
83 dst $REMOTE_IP_1
87 dst $REMOTE_IP_1 port 1234 2>/dev/null
91 dst $REMOTE_IP_1 port 1234 2>&1 >/dev/null \
103 dst $REMOTE_IP_1
107 dst $REMOTE_IP_2 port 1234 2>/dev/null
111 dst $REMOTE_IP_2 port 1234 2>&1 >/dev/null \

123456