Lines Matching refs:dest
10 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()
40 if (expected_size > dest->parent_descriptor.num_bytes_following) { in avb_chain_partition_descriptor_validate_and_byteswap()