| /subsys/dsp/cmsis/public/ |
| A D | zdsp_backend.h | 104 arm_abs_q7(src, dst, block_size); in zdsp_abs_q7() 108 arm_abs_q15(src, dst, block_size); in zdsp_abs_q15() 112 arm_abs_q31(src, dst, block_size); in zdsp_abs_q31() 116 arm_abs_f32(src, dst, block_size); in zdsp_abs_f32() 121 arm_negate_q7(src, dst, block_size); in zdsp_negate_q7() 137 q31_t *dst) in zdsp_dot_prod_q7() argument 142 q63_t *dst) in zdsp_dot_prod_q15() argument 147 q63_t *dst) in zdsp_dot_prod_q31() argument 261 arm_not_u8(src, dst, block_size); in zdsp_not_u8() 265 arm_not_u16(src, dst, block_size); in zdsp_not_u16() [all …]
|
| A D | zdsp_backend_f16.h | 22 arm_mult_f16(src_a, src_b, dst, block_size); in zdsp_mult_f16() 28 arm_add_f16(src_a, src_b, dst, block_size); in zdsp_add_f16() 34 arm_sub_f16(src_a, src_b, dst, block_size); in zdsp_sub_f16() 37 static inline void zdsp_scale_f16(const float16_t *src, float16_t scale, float16_t *dst, in zdsp_scale_f16() argument 40 arm_scale_f16(src, scale, dst, block_size); in zdsp_scale_f16() 43 static inline void zdsp_abs_f16(const float16_t *src, float16_t *dst, uint32_t block_size) in zdsp_abs_f16() argument 45 arm_abs_f16(src, dst, block_size); in zdsp_abs_f16() 57 arm_offset_f16(src, offset, dst, block_size); in zdsp_offset_f16() 62 arm_negate_f16(src, dst, block_size); in zdsp_negate_f16() 65 static inline void zdsp_clip_f16(const float16_t *src, float16_t *dst, float16_t low, in zdsp_clip_f16() argument [all …]
|
| /subsys/dsp/arcmwdt/public/ |
| A D | zdsp_backend.h | 109 dsp_abs_q7(src, dst, block_size); in zdsp_abs_q7() 113 dsp_abs_q15(src, dst, block_size); in zdsp_abs_q15() 117 dsp_abs_q31(src, dst, block_size); in zdsp_abs_q31() 122 dsp_abs_f32(src, dst, block_size); in zdsp_abs_f32() 127 dsp_negate_q7(src, dst, block_size); in zdsp_negate_q7() 132 dsp_negate_q15(src, dst, block_size); in zdsp_negate_q15() 137 dsp_negate_q31(src, dst, block_size); in zdsp_negate_q31() 162 DSP_DATA float32_t *dst) in zdsp_dot_prod_f32() argument 276 arm_not_u8(src, dst, block_size); in zdsp_not_u8() 281 arm_not_u16(src, dst, block_size); in zdsp_not_u16() [all …]
|
| /subsys/net/ip/ |
| A D | pmtu.c | 45 switch (dst->sa_family) { in get_pmtu_entry() 123 net_ipaddr_copy(&info.dst, &entry->dst.in_addr); in update_pmtu_entry() 136 net_ipaddr_copy(&info.dst, &entry->dst.in6_addr); in update_pmtu_entry() 153 entry = get_pmtu_entry(dst); in net_pmtu_get_entry() 162 entry = get_pmtu_entry(dst); in net_pmtu_get_mtu() 174 entry = get_pmtu_entry(dst); in add_entry() 187 switch (dst->sa_family) { in add_entry() 190 entry->dst.family = AF_INET; in add_entry() 191 net_ipaddr_copy(&entry->dst.in_addr, &net_sin(dst)->sin_addr); in add_entry() 200 entry->dst.family = AF_INET6; in add_entry() [all …]
|
| A D | pmtu.h | 22 struct net_addr dst; member 38 struct net_pmtu_entry *net_pmtu_get_entry(const struct sockaddr *dst); 40 static inline struct net_pmtu_entry *net_pmtu_get_entry(const struct sockaddr *dst) in net_pmtu_get_entry() argument 42 ARG_UNUSED(dst); in net_pmtu_get_entry() 55 int net_pmtu_get_mtu(const struct sockaddr *dst); 57 static inline int net_pmtu_get_mtu(const struct sockaddr *dst) in net_pmtu_get_mtu() argument 59 ARG_UNUSED(dst); in net_pmtu_get_mtu() 73 int net_pmtu_update_mtu(const struct sockaddr *dst, uint16_t mtu); 75 static inline int net_pmtu_update_mtu(const struct sockaddr *dst, uint16_t mtu) in net_pmtu_update_mtu() argument 77 ARG_UNUSED(dst); in net_pmtu_update_mtu()
|
| A D | icmp.c | 122 struct in_addr *dst, in send_icmpv4_echo_request() argument 205 net_sprint_ipv4_addr(dst)); in send_icmpv4_echo_request() 228 struct in_addr *dst, in send_icmpv4_echo_request() argument 235 ARG_UNUSED(dst); in send_icmpv4_echo_request() 246 struct in6_addr *dst, in send_icmpv6_echo_request() argument 328 net_sprint_ipv6_addr(dst)); in send_icmpv6_echo_request() 350 struct in6_addr *dst, in send_icmpv6_echo_request() argument 357 ARG_UNUSED(dst); in send_icmpv6_echo_request() 478 struct sockaddr *dst, in net_icmp_send_echo_request() argument 484 dst, in net_icmp_send_echo_request() [all …]
|
| A D | ipv4.c | 38 const struct in_addr *dst, in net_ipv4_create_full() argument 62 if (net_ipv4_is_addr_mcast(dst)) { in net_ipv4_create_full() 82 net_ipv4_addr_copy_raw(ipv4_hdr->dst, (uint8_t *)dst); in net_ipv4_create_full() 92 const struct in_addr *dst) in net_ipv4_create() argument 350 if ((!net_ipv4_is_my_addr_raw(hdr->dst) && in net_ipv4_input() 351 !net_ipv4_is_addr_mcast_raw(hdr->dst) && in net_ipv4_input() 356 net_ipv4_addr_cmp_raw(hdr->dst, in net_ipv4_input() 385 net_sprint_ipv4_addr(&hdr->dst)); in net_ipv4_input() 466 struct sockaddr_in dst = { in net_ipv4_prepare_for_send() local 472 NET_IPV4_HDR(pkt)->dst); in net_ipv4_prepare_for_send() [all …]
|
| A D | ipv6.c | 62 const struct in6_addr *dst) in net_ipv6_create() argument 90 if (net_ipv6_is_addr_mcast(dst)) { in net_ipv6_create() 109 net_ipv6_addr_copy_raw(ipv6_hdr->dst, (uint8_t *)dst); in net_ipv6_create() 189 if (net_ipv6_is_addr_mcast_raw(hdr->dst)) { in ipv6_drop_on_unknown_option() 311 const uint8_t *dst) in ipv6_no_route_info() argument 315 net_sprint_ipv6_addr(dst)); in ipv6_no_route_info() 520 net_sprint_ipv6_addr(&hdr->dst)); in net_ipv6_input() 549 hdr->dst, in net_ipv6_input() 607 if (!net_ipv6_is_addr_mcast_raw(hdr->dst)) { in net_ipv6_input() 614 net_sprint_ipv6_addr(hdr->dst), in net_ipv6_input() [all …]
|
| A D | 6lo.c | 534 memmove(inline_ptr, &ipv6->dst[8], 8U); in compress_da() 551 struct net_6lo_context *dst) in compress_da_ctx() argument 578 memmove(inline_ptr, &ipv6->dst[8], 8U); in compress_da_ctx() 700 struct net_6lo_context *dst; in get_dst_addr_ctx() local 703 (struct in6_addr *)ipv6->dst); in get_dst_addr_ctx() 704 if (!dst || !dst->compress) { in get_dst_addr_ctx() 708 return dst; in get_dst_addr_ctx() 1318 struct net_6lo_context **dst) in uncompress_cid() argument 1333 if (!(*dst)) { in uncompress_cid() 1353 struct net_6lo_context *dst = NULL; in uncompress_IPHC_header() local [all …]
|
| A D | net_core.c | 233 if (net_ipv6_addr_cmp_raw(NET_IPV6_HDR(pkt)->dst, in check_ip() 243 if ((net_ipv6_is_addr_loopback_raw(NET_IPV6_HDR(pkt)->dst) || in check_ip() 244 net_ipv6_is_my_addr_raw(NET_IPV6_HDR(pkt)->dst)) && in check_ip() 253 NET_IPV6_HDR(pkt)->dst); in check_ip() 303 if (net_ipv4_addr_cmp_raw(NET_IPV4_HDR(pkt)->dst, in check_ip() 313 if (net_ipv4_is_addr_loopback_raw(NET_IPV4_HDR(pkt)->dst) || in check_ip() 315 NET_IPV4_HDR(pkt)->dst) == false && in check_ip() 316 net_ipv4_is_my_addr_raw(NET_IPV4_HDR(pkt)->dst))) { in check_ip() 324 NET_IPV4_HDR(pkt)->dst); in check_ip() 370 const struct in_addr *dst = (const struct in_addr *)&NET_IPV4_HDR(pkt)->dst; in process_multicast() local [all …]
|
| /subsys/logging/ |
| A D | log_multidomain_link.c | 58 *link_remote->dst.name.len = len - 1; in log_multidomain_link_on_recv_cb() 59 memcpy(link_remote->dst.name.dst, msg->data.domain_name.name, slen); in log_multidomain_link_on_recv_cb() 60 link_remote->dst.name.dst[slen] = '\0'; in log_multidomain_link_on_recv_cb() 68 memcpy(link_remote->dst.name.dst, msg->data.source_name.name, slen); in log_multidomain_link_on_recv_cb() 69 link_remote->dst.name.dst[slen] = '\0'; in log_multidomain_link_on_recv_cb() 123 *cnt = link_remote->dst.count; in link_remote_get_domain_count() 143 *cnt = link_remote->dst.count; in link_remote_get_source_count() 226 link_remote->dst.name.dst = name; in link_remote_get_domain_name() 227 link_remote->dst.name.len = length; in link_remote_get_domain_name() 253 link_remote->dst.name.dst = name; in link_remote_get_source_name() [all …]
|
| /subsys/bluetooth/mesh/ |
| A D | heartbeat.c | 25 uint16_t dst; member 49 if (sub.dst == BT_MESH_ADDR_UNASSIGNED) { in sub_remaining() 111 .addr = pub.dst, in heartbeat_send() 180 pub.dst = BT_MESH_ADDR_UNASSIGNED; in hb_publish() 234 pub.dst = BT_MESH_ADDR_UNASSIGNED; in pub_disable() 303 if (BT_MESH_ADDR_IS_VIRTUAL(dst) || BT_MESH_ADDR_IS_RFU(dst) || in bt_mesh_hb_sub_set() 304 (BT_MESH_ADDR_IS_UNICAST(dst) && dst != bt_mesh_primary_addr())) { in bt_mesh_hb_sub_set() 319 sub.dst = BT_MESH_ADDR_UNASSIGNED; in bt_mesh_hb_sub_set() 326 sub.dst = dst; in bt_mesh_hb_sub_set() 425 hb_pub.dst = hb_val.dst; in hb_pub_set() [all …]
|
| A D | msg.c | 44 ack->dst = BT_MESH_ADDR_UNASSIGNED; in bt_mesh_msg_ack_ctx_clear() 48 uint32_t op, uint16_t dst, void *user_data) in bt_mesh_msg_ack_ctx_prepare() argument 57 ack->dst = dst; in bt_mesh_msg_ack_ctx_prepare() 79 if (ack->op != op || (BT_MESH_ADDR_IS_UNICAST(ack->dst) && ack->dst != addr)) { in bt_mesh_msg_ack_ctx_match()
|
| /subsys/net/lib/lwm2m/ |
| A D | buf_util.h | 19 static inline int buf_append(uint8_t *dst, uint16_t *dst_len, uint16_t dst_size, in buf_append() argument 22 if (!dst || !src) { in buf_append() 30 memcpy(dst + *dst_len, src, src_len); in buf_append() 36 static inline int buf_insert(uint8_t *dst, uint16_t *dst_len, uint16_t dst_size, in buf_insert() argument 39 if (!dst || !src) { in buf_insert() 48 memmove(dst + offset + src_len, dst + offset, *dst_len - offset); in buf_insert() 51 memcpy(dst + offset, src, src_len); in buf_insert() 57 static inline int buf_read(uint8_t *dst, uint16_t len, uint8_t *src, uint16_t src_len, in buf_read() argument 68 if (dst) { in buf_read() 70 memcpy(dst, src + *offset, len); in buf_read()
|
| /subsys/random/ |
| A D | random_handlers.c | 10 static inline void z_vrfy_sys_rand_get(void *dst, size_t len) in z_vrfy_sys_rand_get() argument 12 K_OOPS(K_SYSCALL_MEMORY_WRITE(dst, len)); in z_vrfy_sys_rand_get() 14 z_impl_sys_rand_get(dst, len); in z_vrfy_sys_rand_get() 19 static inline int z_vrfy_sys_csrand_get(void *dst, size_t len) in z_vrfy_sys_csrand_get() argument 21 K_OOPS(K_SYSCALL_MEMORY_WRITE(dst, len)); in z_vrfy_sys_csrand_get() 23 return z_impl_sys_csrand_get(dst, len); in z_vrfy_sys_csrand_get()
|
| A D | random_entropy_device.c | 15 static int rand_get(uint8_t *dst, size_t outlen, bool csrand) in rand_get() argument 23 ret = entropy_get_entropy(entropy_dev, dst, outlen); in rand_get() 51 (void)memcpy(&(dst[len]), &random_num, copylen); in rand_get() 60 void z_impl_sys_rand_get(void *dst, size_t outlen) in z_impl_sys_rand_get() argument 62 rand_get(dst, outlen, false); in z_impl_sys_rand_get() 68 int z_impl_sys_csrand_get(void *dst, size_t outlen) in z_impl_sys_csrand_get() argument 70 if (rand_get(dst, outlen, true) != 0) { in z_impl_sys_csrand_get()
|
| /subsys/bluetooth/host/ |
| A D | aes_ccm.c | 25 dst[0] = a[0] ^ b[0]; in xor16() 26 dst[1] = a[1] ^ b[1]; in xor16() 27 dst[2] = a[2] ^ b[2]; in xor16() 28 dst[3] = a[3] ^ b[3]; in xor16() 29 dst[4] = a[4] ^ b[4]; in xor16() 30 dst[5] = a[5] ^ b[5]; in xor16() 31 dst[6] = a[6] ^ b[6]; in xor16() 32 dst[7] = a[7] ^ b[7]; in xor16() 33 dst[8] = a[8] ^ b[8]; in xor16() 34 dst[9] = a[9] ^ b[9]; in xor16() [all …]
|
| A D | uuid.c | 33 static void uuid_to_uuid128(const struct bt_uuid *src, struct bt_uuid_128 *dst) in uuid_to_uuid128() argument 37 *dst = uuid128_base; in uuid_to_uuid128() 39 &dst->val[UUID_16_BASE_OFFSET]); in uuid_to_uuid128() 42 *dst = uuid128_base; in uuid_to_uuid128() 44 &dst->val[UUID_16_BASE_OFFSET]); in uuid_to_uuid128() 47 memcpy(dst, src, sizeof(*dst)); in uuid_to_uuid128()
|
| /subsys/bluetooth/controller/util/ |
| A D | util.c | 68 int util_aa_le32(uint8_t *dst) in util_aa_le32() argument 89 lll_csrand_get(dst, sizeof(uint32_t)); in util_aa_le32() 90 aa = sys_get_le32(dst); in util_aa_le32() 219 sys_put_le32(aa, dst); in util_aa_le32() 225 int util_saa_le32(uint8_t *dst, uint8_t handle) in util_saa_le32() argument 235 err = util_aa_le32(dst); in util_saa_le32() 240 saa = sys_get_le32(dst); in util_saa_le32() 274 sys_put_le32(saa, dst); in util_saa_le32() 310 memcpy(dst, saa, sizeof(uint32_t)); in util_bis_aa_le32() 311 dst[3] ^= dwh[1]; in util_bis_aa_le32() [all …]
|
| /subsys/bluetooth/mesh/shell/ |
| A D | cfg.c | 27 bt_mesh_shell_target_ctx.dst, &reset); in cmd_reset() 118 bt_mesh_shell_target_ctx.dst, page); in cmd_get_comp() 173 bt_mesh_shell_target_ctx.dst, page); in cmd_get_comp() 272 bt_mesh_shell_target_ctx.dst, page); in cmd_get_comp() 337 bt_mesh_shell_target_ctx.dst, &ttl); in cmd_ttl() 347 bt_mesh_shell_target_ctx.dst, val, &ttl); in cmd_ttl() 367 bt_mesh_shell_target_ctx.dst, &frnd); in cmd_friend() 397 bt_mesh_shell_target_ctx.dst, &proxy); in cmd_gatt_proxy() 842 bt_mesh_shell_target_ctx.dst); in cmd_app_key_get() 1708 sub.dst = shell_strtoul(argv[2], 0, &err); in hb_sub_set() [all …]
|
| A D | rpr.c | 85 .addr = bt_mesh_shell_target_ctx.dst, in cmd_scan() 127 .addr = bt_mesh_shell_target_ctx.dst, in cmd_scan_ext() 168 .addr = bt_mesh_shell_target_ctx.dst, in cmd_scan_srv() 202 .addr = bt_mesh_shell_target_ctx.dst, in cmd_scan_caps() 219 bt_mesh_shell_target_ctx.dst); in cmd_scan_caps() 230 .addr = bt_mesh_shell_target_ctx.dst, in cmd_scan_get() 258 .addr = bt_mesh_shell_target_ctx.dst, in cmd_scan_stop() 275 bt_mesh_shell_target_ctx.dst); in cmd_scan_stop() 283 .addr = bt_mesh_shell_target_ctx.dst, in cmd_link_get() 309 .addr = bt_mesh_shell_target_ctx.dst, in cmd_link_close() [all …]
|
| /subsys/net/l2/ethernet/ |
| A D | ethernet.c | 93 net_sprint_ll_addr((dst)->addr, \ 111 net_sprint_ll_addr((dst)->addr, \ 196 if (net_eth_is_addr_broadcast(&hdr->dst) && in ethernet_check_ipv4_bcast_addr() 199 NET_IPV4_HDR(pkt)->dst))) { in ethernet_check_ipv4_bcast_addr() 469 NET_IPV4_HDR(pkt)->dst) || in ethernet_ipv4_dst_is_broadcast_or_mcast() 478 struct net_eth_addr *dst) in ethernet_fill_in_dst_on_ipv4_mcast() argument 484 (struct in_addr *)NET_IPV4_HDR(pkt)->dst, dst); in ethernet_fill_in_dst_on_ipv4_mcast() 524 struct net_eth_addr *dst) in ethernet_fill_in_dst_on_ipv6_mcast() argument 530 memcpy((uint8_t *)dst + 2, in ethernet_fill_in_dst_on_ipv6_mcast() 531 NET_IPV6_HDR(pkt)->dst + 12, in ethernet_fill_in_dst_on_ipv6_mcast() [all …]
|
| /subsys/stats/ |
| A D | stats.c | 57 stats_gen_name(int idx, char *dst) in stats_gen_name() argument 66 dst[len++] = '0' + idx % 10; in stats_gen_name() 69 dst[len++] = 's'; in stats_gen_name() 73 c = dst[i]; in stats_gen_name() 74 dst[i] = dst[len - i - 1]; in stats_gen_name() 75 dst[len - i - 1] = c; in stats_gen_name() 77 dst[len] = '\0'; in stats_gen_name()
|
| /subsys/net/l2/ieee802154/ |
| A D | ieee802154_frame.c | 452 bool broadcast = (dst->len == 0); in ieee802154_compute_header_and_authtag_len() 461 hdr_len += (src->len > 0) ? src->len : dst->len; in ieee802154_compute_header_and_authtag_len() 542 if (dst->len == 0) { in get_dst_addr_mode() 548 if (dst->len == IEEE802154_SHORT_ADDR_LENGTH) { in get_dst_addr_mode() 556 if (dst->len == IEEE802154_EXT_ADDR_LENGTH) { in get_dst_addr_mode() 574 params->dst.len = IEEE802154_SHORT_ADDR_LENGTH; in data_addr_to_fs_settings() 577 params->dst.short_addr = ntohs(*(uint16_t *)(dst->addr)); in data_addr_to_fs_settings() 581 memcpy(params->dst.ext_addr, dst->addr, sizeof(params->dst.ext_addr)); in data_addr_to_fs_settings() 582 params->dst.len = IEEE802154_EXT_ADDR_LENGTH; in data_addr_to_fs_settings() 611 sys_cpu_to_le16(params->dst.short_addr); in generate_addressing_fields() [all …]
|
| /subsys/net/lib/dns/ |
| A D | dns_sd.h | 36 #define DNS_SD_COUNT(dst) \ argument 37 STRUCT_SECTION_COUNT(dns_sd_rec, dst) 39 #define DNS_SD_GET(i, dst) \ argument 40 STRUCT_SECTION_GET(dns_sd_rec, i, dst)
|