Home
last modified time | relevance | path

Searched refs:dest (Results 1 – 25 of 117) sorted by relevance

12345

/lib/libavb/
A Davb_hashtree_descriptor.c25 dest->image_size = avb_be64toh(dest->image_size); in avb_hashtree_descriptor_validate_and_byteswap()
26 dest->tree_offset = avb_be64toh(dest->tree_offset); in avb_hashtree_descriptor_validate_and_byteswap()
27 dest->tree_size = avb_be64toh(dest->tree_size); in avb_hashtree_descriptor_validate_and_byteswap()
28 dest->data_block_size = avb_be32toh(dest->data_block_size); in avb_hashtree_descriptor_validate_and_byteswap()
29 dest->hash_block_size = avb_be32toh(dest->hash_block_size); in avb_hashtree_descriptor_validate_and_byteswap()
30 dest->fec_num_roots = avb_be32toh(dest->fec_num_roots); in avb_hashtree_descriptor_validate_and_byteswap()
31 dest->fec_offset = avb_be64toh(dest->fec_offset); in avb_hashtree_descriptor_validate_and_byteswap()
32 dest->fec_size = avb_be64toh(dest->fec_size); in avb_hashtree_descriptor_validate_and_byteswap()
34 dest->salt_len = avb_be32toh(dest->salt_len); in avb_hashtree_descriptor_validate_and_byteswap()
35 dest->root_digest_len = avb_be32toh(dest->root_digest_len); in avb_hashtree_descriptor_validate_and_byteswap()
[all …]
A Davb_vbmeta_image.c237 dest->algorithm_type = avb_be32toh(dest->algorithm_type); in avb_vbmeta_image_header_to_host_byte_order()
239 dest->hash_offset = avb_be64toh(dest->hash_offset); in avb_vbmeta_image_header_to_host_byte_order()
240 dest->hash_size = avb_be64toh(dest->hash_size); in avb_vbmeta_image_header_to_host_byte_order()
242 dest->signature_offset = avb_be64toh(dest->signature_offset); in avb_vbmeta_image_header_to_host_byte_order()
243 dest->signature_size = avb_be64toh(dest->signature_size); in avb_vbmeta_image_header_to_host_byte_order()
245 dest->public_key_offset = avb_be64toh(dest->public_key_offset); in avb_vbmeta_image_header_to_host_byte_order()
246 dest->public_key_size = avb_be64toh(dest->public_key_size); in avb_vbmeta_image_header_to_host_byte_order()
252 dest->descriptors_offset = avb_be64toh(dest->descriptors_offset); in avb_vbmeta_image_header_to_host_byte_order()
253 dest->descriptors_size = avb_be64toh(dest->descriptors_size); in avb_vbmeta_image_header_to_host_byte_order()
255 dest->rollback_index = avb_be64toh(dest->rollback_index); in avb_vbmeta_image_header_to_host_byte_order()
[all …]
A Davb_hash_descriptor.c13 avb_memcpy(dest, src, sizeof(AvbHashDescriptor)); in avb_hash_descriptor_validate_and_byteswap()
16 (AvbDescriptor*)dest)) in avb_hash_descriptor_validate_and_byteswap()
19 if (dest->parent_descriptor.tag != AVB_DESCRIPTOR_TAG_HASH) { in avb_hash_descriptor_validate_and_byteswap()
24 dest->image_size = avb_be64toh(dest->image_size); in avb_hash_descriptor_validate_and_byteswap()
25 dest->partition_name_len = avb_be32toh(dest->partition_name_len); in avb_hash_descriptor_validate_and_byteswap()
26 dest->salt_len = avb_be32toh(dest->salt_len); in avb_hash_descriptor_validate_and_byteswap()
27 dest->digest_len = avb_be32toh(dest->digest_len); in avb_hash_descriptor_validate_and_byteswap()
28 dest->flags = avb_be32toh(dest->flags); in avb_hash_descriptor_validate_and_byteswap()
32 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_hash_descriptor_validate_and_byteswap()
33 !avb_safe_add_to(&expected_size, dest->salt_len) || in avb_hash_descriptor_validate_and_byteswap()
[all …]
A Davb_footer.c9 bool avb_footer_validate_and_byteswap(const AvbFooter* src, AvbFooter* dest) { in avb_footer_validate_and_byteswap() argument
10 avb_memcpy(dest, src, sizeof(AvbFooter)); in avb_footer_validate_and_byteswap()
12 dest->version_major = avb_be32toh(dest->version_major); in avb_footer_validate_and_byteswap()
13 dest->version_minor = avb_be32toh(dest->version_minor); in avb_footer_validate_and_byteswap()
15 dest->original_image_size = avb_be64toh(dest->original_image_size); in avb_footer_validate_and_byteswap()
16 dest->vbmeta_offset = avb_be64toh(dest->vbmeta_offset); in avb_footer_validate_and_byteswap()
17 dest->vbmeta_size = avb_be64toh(dest->vbmeta_size); in avb_footer_validate_and_byteswap()
20 if (avb_safe_memcmp(dest->magic, AVB_FOOTER_MAGIC, AVB_FOOTER_MAGIC_LEN) != in avb_footer_validate_and_byteswap()
29 if (dest->version_major > AVB_FOOTER_VERSION_MAJOR) { in avb_footer_validate_and_byteswap()
A Davb_chain_partition_descriptor.c10 const AvbChainPartitionDescriptor* src, AvbChainPartitionDescriptor* dest) { in avb_chain_partition_descriptor_validate_and_byteswap() argument
13 avb_memcpy(dest, src, sizeof(AvbChainPartitionDescriptor)); in avb_chain_partition_descriptor_validate_and_byteswap()
16 (AvbDescriptor*)dest)) in avb_chain_partition_descriptor_validate_and_byteswap()
19 if (dest->parent_descriptor.tag != AVB_DESCRIPTOR_TAG_CHAIN_PARTITION) { in avb_chain_partition_descriptor_validate_and_byteswap()
24 dest->rollback_index_location = avb_be32toh(dest->rollback_index_location); in avb_chain_partition_descriptor_validate_and_byteswap()
25 dest->partition_name_len = avb_be32toh(dest->partition_name_len); in avb_chain_partition_descriptor_validate_and_byteswap()
26 dest->public_key_len = avb_be32toh(dest->public_key_len); in avb_chain_partition_descriptor_validate_and_byteswap()
28 if (dest->rollback_index_location < 1) { in avb_chain_partition_descriptor_validate_and_byteswap()
35 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_chain_partition_descriptor_validate_and_byteswap()
36 !avb_safe_add_to(&expected_size, dest->public_key_len)) { in avb_chain_partition_descriptor_validate_and_byteswap()
[all …]
A Davb_kernel_cmdline_descriptor.c10 const AvbKernelCmdlineDescriptor* src, AvbKernelCmdlineDescriptor* dest) { in avb_kernel_cmdline_descriptor_validate_and_byteswap() argument
13 avb_memcpy(dest, src, sizeof(AvbKernelCmdlineDescriptor)); in avb_kernel_cmdline_descriptor_validate_and_byteswap()
16 (AvbDescriptor*)dest)) in avb_kernel_cmdline_descriptor_validate_and_byteswap()
19 if (dest->parent_descriptor.tag != AVB_DESCRIPTOR_TAG_KERNEL_CMDLINE) { in avb_kernel_cmdline_descriptor_validate_and_byteswap()
24 dest->flags = avb_be32toh(dest->flags); in avb_kernel_cmdline_descriptor_validate_and_byteswap()
25 dest->kernel_cmdline_length = avb_be32toh(dest->kernel_cmdline_length); in avb_kernel_cmdline_descriptor_validate_and_byteswap()
29 if (!avb_safe_add_to(&expected_size, dest->kernel_cmdline_length)) { in avb_kernel_cmdline_descriptor_validate_and_byteswap()
33 if (expected_size > dest->parent_descriptor.num_bytes_following) { in avb_kernel_cmdline_descriptor_validate_and_byteswap()
A Davb_property_descriptor.c10 const AvbPropertyDescriptor* src, AvbPropertyDescriptor* dest) { in avb_property_descriptor_validate_and_byteswap() argument
13 avb_memcpy(dest, src, sizeof(AvbPropertyDescriptor)); in avb_property_descriptor_validate_and_byteswap()
16 (AvbDescriptor*)dest)) in avb_property_descriptor_validate_and_byteswap()
19 if (dest->parent_descriptor.tag != AVB_DESCRIPTOR_TAG_PROPERTY) { in avb_property_descriptor_validate_and_byteswap()
24 dest->key_num_bytes = avb_be64toh(dest->key_num_bytes); in avb_property_descriptor_validate_and_byteswap()
25 dest->value_num_bytes = avb_be64toh(dest->value_num_bytes); in avb_property_descriptor_validate_and_byteswap()
29 if (!avb_safe_add_to(&expected_size, dest->key_num_bytes) || in avb_property_descriptor_validate_and_byteswap()
30 !avb_safe_add_to(&expected_size, dest->value_num_bytes)) { in avb_property_descriptor_validate_and_byteswap()
34 if (expected_size > dest->parent_descriptor.num_bytes_following) { in avb_property_descriptor_validate_and_byteswap()
A Davb_crypto.c346 const AvbRSAPublicKeyHeader* src, AvbRSAPublicKeyHeader* dest) { in avb_rsa_public_key_header_validate_and_byteswap() argument
347 avb_memcpy(dest, src, sizeof(AvbRSAPublicKeyHeader)); in avb_rsa_public_key_header_validate_and_byteswap()
349 dest->key_num_bits = avb_be32toh(dest->key_num_bits); in avb_rsa_public_key_header_validate_and_byteswap()
350 dest->n0inv = avb_be32toh(dest->n0inv); in avb_rsa_public_key_header_validate_and_byteswap()
/lib/lwip/lwip/src/include/lwip/
A Dip.h240 (IP_IS_V6(dest) ? \
248 (IP_IS_V6(dest) ? \
256 (IP_IS_V6(dest) ? \
261 (IP_IS_V6(dest) ? \
266 (IP_IS_V6(dest) ? \
273 #define ip_route(src, dest) \ argument
274 (IP_IS_V6(dest) ? \
281 #define ip_netif_get_local_ip(netif, dest) (IP_IS_V6(dest) ? \ argument
300 #define ip_route(src, dest) \ argument
320 #define ip_route(src, dest) \ argument
[all …]
A Dip_addr.h148 …ip4_addr_copy(*ip_2_ip4(&(dest)), src); IP_SET_TYPE_VAL(dest, IPADDR_TYPE_V4); ip_clear_no4(&dest)…
161 ip4_addr_set(ip_2_ip4(dest), ip_2_ip4(src)); ip_clear_no4(dest); }}while(0)
163 #define ip_addr_set_ipaddr(dest, src) ip_addr_set(dest, src) argument
309 #define ip_addr_copy(dest, src) ip4_addr_copy(dest, src) argument
310 #define ip_addr_copy_from_ip4(dest, src) ip4_addr_copy(dest, src) argument
314 #define ip_addr_set(dest, src) ip4_addr_set(dest, src) argument
315 #define ip_addr_set_ipaddr(dest, src) ip4_addr_set(dest, src) argument
360 #define ip_addr_copy(dest, src) ip6_addr_copy(dest, src) argument
361 #define ip_addr_copy_from_ip6(dest, src) ip6_addr_copy(dest, src) argument
363 #define ip_addr_set(dest, src) ip6_addr_set(dest, src) argument
[all …]
A Dip6_addr.h100 #define ip6_addr_copy(dest, src) do{(dest).addr[0] = (src).addr[0]; \ argument
101 (dest).addr[1] = (src).addr[1]; \
102 (dest).addr[2] = (src).addr[2]; \
103 (dest).addr[3] = (src).addr[3]; \
106 #define ip6_addr_set(dest, src) do{(dest)->addr[0] = (src) == NULL ? 0 : (src)->addr[0]; \ argument
113 #define ip6_addr_copy_from_packed(dest, src) do{(dest).addr[0] = (src).addr[0]; \ argument
114 (dest).addr[1] = (src).addr[1]; \
115 (dest).addr[2] = (src).addr[2]; \
116 (dest).addr[3] = (src).addr[3]; \
120 #define ip6_addr_copy_to_packed(dest, src) do{(dest).addr[0] = (src).addr[0]; \ argument
[all …]
A Dip4.h65 struct netif *ip4_route(const ip4_addr_t *dest);
67 struct netif *ip4_route_src(const ip4_addr_t *src, const ip4_addr_t *dest);
69 #define ip4_route_src(src, dest) ip4_route(dest) argument
72 err_t ip4_output(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest,
74 err_t ip4_output_if(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest,
76 err_t ip4_output_if_src(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest,
79 err_t ip4_output_hinted(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest,
83 err_t ip4_output_if_opt(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest,
86 err_t ip4_output_if_opt_src(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest,
A Dip6.h60 struct netif *ip6_route(const ip6_addr_t *src, const ip6_addr_t *dest);
61 const ip_addr_t *ip6_select_source_address(struct netif *netif, const ip6_addr_t * dest);
63 err_t ip6_output(struct pbuf *p, const ip6_addr_t *src, const ip6_addr_t *dest,
65 err_t ip6_output_if(struct pbuf *p, const ip6_addr_t *src, const ip6_addr_t *dest,
67 err_t ip6_output_if_src(struct pbuf *p, const ip6_addr_t *src, const ip6_addr_t *dest,
70 err_t ip6_output_hinted(struct pbuf *p, const ip6_addr_t *src, const ip6_addr_t *dest,
77 #define ip6_netif_get_local_ip(netif, dest) (((netif) != NULL) ? \ argument
78 ip6_select_source_address(netif, dest) : NULL)
A Dinet_chksum.h82 const ip4_addr_t *src, const ip4_addr_t *dest);
84 u16_t proto_len, u16_t chksum_len, const ip4_addr_t *src, const ip4_addr_t *dest);
89 const ip6_addr_t *src, const ip6_addr_t *dest);
91 u16_t chksum_len, const ip6_addr_t *src, const ip6_addr_t *dest);
96 const ip_addr_t *src, const ip_addr_t *dest);
98 u16_t chksum_len, const ip_addr_t *src, const ip_addr_t *dest);
/lib/lwip/lwip/src/core/ipv6/
A Dip6.c90 LWIP_UNUSED_ARG(dest); in ip6_route()
100 (ip6_addr_has_zone(dest) && !ip6_addr_test_zone(dest, netif_list))) { in ip6_route()
112 if (ip6_addr_has_zone(dest)) { in ip6_route()
113 IP6_ADDR_ZONECHECK(dest); in ip6_route()
146 if (ip6_addr_islinklocal(dest) || ip6_addr_ismulticast_iflocal(dest) || in ip6_route()
297 } else if (ip6_addr_islinklocal(dest) || ip6_addr_isloopback(dest)) { in ip6_select_source_address()
1195 dest = &dest_addr;
1214 ip6_addr_copy_to_packed(ip6hdr->dest, *dest);
1230 dest = &dest_addr;
1308 dest = &dest_addr;
[all …]
A Dethip6.c81 struct eth_addr dest; in ethip6_output() local
93 dest.addr[0] = 0x33; in ethip6_output()
94 dest.addr[1] = 0x33; in ethip6_output()
95 dest.addr[2] = ((const u8_t *)(&(ip6addr->addr[3])))[0]; in ethip6_output()
96 dest.addr[3] = ((const u8_t *)(&(ip6addr->addr[3])))[1]; in ethip6_output()
97 dest.addr[4] = ((const u8_t *)(&(ip6addr->addr[3])))[2]; in ethip6_output()
98 dest.addr[5] = ((const u8_t *)(&(ip6addr->addr[3])))[3]; in ethip6_output()
101 return ethernet_output(netif, q, (const struct eth_addr*)(netif->hwaddr), &dest, ETHTYPE_IPV6); in ethip6_output()
119 SMEMCPY(dest.addr, hwaddr, 6); in ethip6_output()
120 return ethernet_output(netif, q, (const struct eth_addr*)(netif->hwaddr), &dest, ETHTYPE_IPV6); in ethip6_output()
/lib/
A Dstring.c78 char *tmp = dest; in strcpy()
99 char *tmp = dest; in strncpy()
145 while (*dest) in strcat()
146 dest++; in strcat()
169 while (*dest) in strncat()
170 dest++; in strncat()
173 *dest = '\0'; in strncat()
570 return dest; in memcpy()
585 return dest; in memcpy()
602 if (dest <= src || (src + count) <= dest) { in memmove()
[all …]
A Dcharset.c417 u16 *tmp = dest; in u16_strcpy()
419 for (;; dest++, src++) { in u16_strcpy()
420 *dest = *src; in u16_strcpy()
455 dest[destlen + srclen] = 0x0000; in u16_strlcat()
473 *dest++ = (code >> 18) | 0xF0; in utf16_to_utf8()
479 *dest++ = '?'; in utf16_to_utf8()
487 *dest++ = code; in utf16_to_utf8()
489 *dest++ = (code >> 6) | 0xC0; in utf16_to_utf8()
496 *dest++ = '?'; in utf16_to_utf8()
498 *dest++ = (code >> 12) | 0xE0; in utf16_to_utf8()
[all …]
/lib/lwip/lwip/src/netif/
A Dlowpan6_common.c621 ip6hdr->dest.addr[1] = 0; in lowpan6_decompress_hdr()
629 ip6hdr->dest.addr[1] = 0; in lowpan6_decompress_hdr()
630 ip6hdr->dest.addr[2] = 0; in lowpan6_decompress_hdr()
637 ip6hdr->dest.addr[1] = 0; in lowpan6_decompress_hdr()
638 ip6hdr->dest.addr[2] = 0; in lowpan6_decompress_hdr()
665 ip6hdr->dest.addr[1] = 0; in lowpan6_decompress_hdr()
688 if (dest->addr_len == 2) { in lowpan6_decompress_hdr()
690 ip6hdr->dest.addr[3] = lwip_htonl(0xfe000000UL | (dest->addr[0] << 8) | dest->addr[1]); in lowpan6_decompress_hdr()
691 } else if (dest->addr_len == 8) { in lowpan6_decompress_hdr()
692 …ip6hdr->dest.addr[2] = lwip_htonl(((dest->addr[0] ^ 2) << 24) | (dest->addr[1] << 16) | dest->addr… in lowpan6_decompress_hdr()
[all …]
A Dethernet.c103 …(unsigned char)ethhdr->dest.addr[0], (unsigned char)ethhdr->dest.addr[1], (unsigned char)ethhdr->d…
104 …(unsigned char)ethhdr->dest.addr[3], (unsigned char)ethhdr->dest.addr[4], (unsigned char)ethhdr->d…
146 if (ethhdr->dest.addr[0] & 1) {
148 if (ethhdr->dest.addr[0] == LL_IP4_MULTICAST_ADDR_0) {
150 if ((ethhdr->dest.addr[1] == LL_IP4_MULTICAST_ADDR_1) &&
151 (ethhdr->dest.addr[2] == LL_IP4_MULTICAST_ADDR_2)) {
158 else if ((ethhdr->dest.addr[0] == LL_IP6_MULTICAST_ADDR_0) &&
159 (ethhdr->dest.addr[1] == LL_IP6_MULTICAST_ADDR_1)) {
164 else if (eth_addr_cmp(&ethhdr->dest, &ethbroadcast)) {
311 SMEMCPY(&ethhdr->dest, dst, ETH_HWADDR_LEN);
/lib/lwip/lwip/src/core/ipv4/
A Dip4.c138 return ip4_route(dest); in ip4_route_src()
152 ip4_route(const ip4_addr_t *dest) in ip4_route() argument
167 LWIP_UNUSED_ARG(dest); in ip4_route()
188 if (ip4_addr_isloopback(dest)) { in ip4_route()
221 ip4_addr1_16(dest), ip4_addr2_16(dest), ip4_addr3_16(dest), ip4_addr4_16(dest))); in ip4_route()
842 if (dest != LWIP_IP_HDRINCL) {
891 if (dest != LWIP_IP_HDRINCL) {
948 ip4_addr_copy(iphdr->dest, *dest);
1009 dest = &dest_addr;
1071 … ip4_addr1_16(dest), ip4_addr2_16(dest), ip4_addr3_16(dest), ip4_addr4_16(dest)));
[all …]
/lib/lwip/lwip/test/unit/core/
A Dtest_pbuf.c104 struct pbuf *source, *dest, *p; in START_TEST() local
128 fail_unless(dest != NULL); in START_TEST()
131 pbuf_cat(dest, p); in START_TEST()
134 pbuf_cat(dest, p); in START_TEST()
137 err = pbuf_copy(dest, source); in START_TEST()
140 fail_unless(pbuf_get_at(dest, i) == i); in START_TEST()
144 pbuf_free(dest); in START_TEST()
150 struct pbuf *a, *b, *dest; in START_TEST() local
164 memset(dest->payload, 0, dest->len); in START_TEST()
165 fail_unless(dest != NULL); in START_TEST()
[all …]
/lib/zlib/
A Duncompr.c27 int ZEXPORT uncompress2(dest, destLen, source, sourceLen) in uncompress2() argument
28 Bytef *dest; in uncompress2()
47 dest = buf;
60 stream.next_out = dest;
78 if (dest != buf)
90 int ZEXPORT uncompress(dest, destLen, source, sourceLen) in uncompress() argument
91 Bytef *dest; in uncompress()
96 return uncompress2(dest, destLen, source, &sourceLen);
/lib/lwip/lwip/src/core/
A Dinet_chksum.c311 const ip4_addr_t *src, const ip4_addr_t *dest) in inet_chksum_pseudo() argument
319 addr = ip4_addr_get_u32(dest); in inet_chksum_pseudo()
344 const ip6_addr_t *src, const ip6_addr_t *dest) in ip6_chksum_pseudo() argument
354 addr = dest->addr[addr_part]; in ip6_chksum_pseudo()
380 const ip_addr_t *src, const ip_addr_t *dest) in ip_chksum_pseudo() argument
383 if (IP_IS_V6(dest)) { in ip_chksum_pseudo()
384 return ip6_chksum_pseudo(p, proto, proto_len, ip_2_ip6(src), ip_2_ip6(dest)); in ip_chksum_pseudo()
392 return inet_chksum_pseudo(p, proto, proto_len, ip_2_ip4(src), ip_2_ip4(dest)); in ip_chksum_pseudo()
465 addr = ip4_addr_get_u32(dest); in inet_chksum_pseudo_partial()
502 addr = dest->addr[addr_part]; in ip6_chksum_pseudo_partial()
[all …]
/lib/efi_loader/
A Defi_freestanding.c45 void *memmove(void *dest, const void *src, size_t n) in memmove() argument
47 u8 *d = dest; in memmove()
59 return dest; in memmove()
70 void *memcpy(void *dest, const void *src, size_t n) in memcpy() argument
72 return memmove(dest, src, n); in memcpy()

Completed in 49 milliseconds

12345