Home
last modified time | relevance | path

Searched refs:expected_size (Results 1 – 25 of 41) sorted by relevance

12

/openbmc/linux/lib/
H A Dfortify_kunit.c153 checker(expected_size, \
158 checker(expected_size, \
165 checker(expected_size, \
168 checker(expected_size, \
175 checker(expected_size, \
178 checker(expected_size, \
183 checker(expected_size, \
280 checker(expected_size, \
283 checker(expected_size, \
286 checker(expected_size, \
[all …]
/openbmc/u-boot/lib/libavb/
H A Davb_hash_descriptor.c11 uint64_t expected_size; in avb_hash_descriptor_validate_and_byteswap() local
31 expected_size = sizeof(AvbHashDescriptor) - sizeof(AvbDescriptor); 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()
34 !avb_safe_add_to(&expected_size, dest->digest_len)) { in avb_hash_descriptor_validate_and_byteswap()
38 if (expected_size > dest->parent_descriptor.num_bytes_following) { in avb_hash_descriptor_validate_and_byteswap()
H A Davb_hashtree_descriptor.c11 uint64_t expected_size; in avb_hashtree_descriptor_validate_and_byteswap() local
39 expected_size = sizeof(AvbHashtreeDescriptor) - sizeof(AvbDescriptor); in avb_hashtree_descriptor_validate_and_byteswap()
40 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_hashtree_descriptor_validate_and_byteswap()
41 !avb_safe_add_to(&expected_size, dest->salt_len) || in avb_hashtree_descriptor_validate_and_byteswap()
42 !avb_safe_add_to(&expected_size, dest->root_digest_len)) { in avb_hashtree_descriptor_validate_and_byteswap()
46 if (expected_size > dest->parent_descriptor.num_bytes_following) { in avb_hashtree_descriptor_validate_and_byteswap()
H A Davb_chain_partition_descriptor.c11 uint64_t expected_size; in avb_chain_partition_descriptor_validate_and_byteswap() local
34 expected_size = sizeof(AvbChainPartitionDescriptor) - sizeof(AvbDescriptor); 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()
H A Davb_kernel_cmdline_descriptor.c11 uint64_t expected_size; in avb_kernel_cmdline_descriptor_validate_and_byteswap() local
28 expected_size = sizeof(AvbKernelCmdlineDescriptor) - sizeof(AvbDescriptor); 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()
H A Davb_property_descriptor.c11 uint64_t expected_size; in avb_property_descriptor_validate_and_byteswap() local
28 expected_size = sizeof(AvbPropertyDescriptor) - sizeof(AvbDescriptor) + 2; 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()
/openbmc/qemu/tests/qemu-iotests/
H A D10661 expected_size=0
63 expected_size=$CREATION_SIZE
66 expected_size=$((expected_size + $GROWTH_SIZE))
75 if [ $actual_size -lt $expected_size ]; then
76 echo "ERROR: Image should have at least ${expected_size}K, but has ${actual_size}K"
/openbmc/linux/drivers/greybus/
H A Dmanifest.c104 size_t expected_size; in identify_descriptor() local
120 expected_size = sizeof(*desc_header); in identify_descriptor()
124 expected_size += sizeof(struct greybus_descriptor_string); in identify_descriptor()
125 expected_size += desc->string.length; in identify_descriptor()
128 expected_size = ALIGN(expected_size, 4); in identify_descriptor()
134 expected_size += sizeof(struct greybus_descriptor_bundle); in identify_descriptor()
137 expected_size += sizeof(struct greybus_descriptor_cport); in identify_descriptor()
146 if (desc_size < expected_size) { in identify_descriptor()
149 desc_size, expected_size); in identify_descriptor()
154 if (desc_size > expected_size) { in identify_descriptor()
[all …]
/openbmc/obmc-console/test/
H A Dtest-config-parse-bytesize.c15 size_t expected_size; member
57 } else if (rc == 0 && test_data[i].expected_size != size) { in test_config_parse_bytesize()
60 test_data[i].expected_size, size); in test_config_parse_bytesize()
64 assert(size == test_data[i].expected_size); in test_config_parse_bytesize()
/openbmc/u-boot/board/AndesTech/adp-ag101p/
H A Dadp-ag101p.c40 unsigned long expected_size = PHYS_SDRAM_0_SIZE + PHYS_SDRAM_1_SIZE; in dram_init() local
43 actual_size = get_ram_size((void *)sdram_base, expected_size); in dram_init()
47 if (expected_size != actual_size) { in dram_init()
49 actual_size >> 20, expected_size >> 20); in dram_init()
/openbmc/u-boot/board/AndesTech/adp-ae3xx/
H A Dadp-ae3xx.c36 unsigned long expected_size = PHYS_SDRAM_0_SIZE + PHYS_SDRAM_1_SIZE; in dram_init() local
38 actual_size = get_ram_size((void *)sdram_base, expected_size); in dram_init()
40 if (expected_size != actual_size) { in dram_init()
42 actual_size >> 20, expected_size >> 20); in dram_init()
/openbmc/u-boot/board/AndesTech/ax25-ae350/
H A Dax25-ae350.c32 unsigned long expected_size = PHYS_SDRAM_0_SIZE + PHYS_SDRAM_1_SIZE; in dram_init() local
35 actual_size = get_ram_size((void *)sdram_base, expected_size); in dram_init()
38 if (expected_size != actual_size) { in dram_init()
40 actual_size >> 20, expected_size >> 20); in dram_init()
/openbmc/google-misc/subprojects/ncsid/src/platforms/nemora/portable/
H A Dncsi_client.c277 uint32_t expected_size) { in ncsi_validate_response() argument
292 if (len < expected_size || in ncsi_validate_response()
294 expected_size - sizeof(ncsi_header_t)) { in ncsi_validate_response()
315 const uint32_t expected_size = ncsi_get_response_size(cmd_type); in ncsi_validate_std_response() local
316 return ncsi_validate_response(buf, len, cmd_type, false, expected_size); in ncsi_validate_std_response()
321 const uint32_t expected_size = ncsi_oem_get_response_size(cmd_type); in ncsi_validate_oem_response() local
322 return ncsi_validate_response(buf, len, cmd_type, true, expected_size); in ncsi_validate_oem_response()
H A Dncsi_client.h252 uint32_t expected_size);
/openbmc/linux/lib/pldmfw/
H A Dpldmfw.c67 size_t expected_size = offset + length; in pldm_check_fw_space() local
70 if (data->fw->size < expected_size) { in pldm_check_fw_space()
72 data->fw->size, expected_size); in pldm_check_fw_space()
206 u16 expected_size; in pldm_check_desc_tlv_len() local
213 expected_size = 2; in pldm_check_desc_tlv_len()
216 expected_size = 1; in pldm_check_desc_tlv_len()
219 expected_size = 3; in pldm_check_desc_tlv_len()
225 expected_size = 4; in pldm_check_desc_tlv_len()
228 expected_size = 16; in pldm_check_desc_tlv_len()
238 if (size != expected_size) { in pldm_check_desc_tlv_len()
[all …]
/openbmc/google-misc/subprojects/ncsid/src/
H A Dncsi_state_machine.cpp270 int expected_size; in report_ncsi_error() local
277 expected_size = ncsi_oem_get_response_size( in report_ncsi_error()
282 expected_size = ncsi_get_response_size( in report_ncsi_error()
288 state_string, expected_size); in report_ncsi_error()
/openbmc/linux/tools/testing/selftests/arm64/fp/
H A Dsve-ptrace.c518 size_t expected_size; in ptrace_set_fpsimd_get_sve_data() local
556 expected_size = SVE_PT_FPSIMD_SIZE(vq, SVE_PT_REGS_FPSIMD); in ptrace_set_fpsimd_get_sve_data()
557 if (read_sve_size < expected_size) { in ptrace_set_fpsimd_get_sve_data()
559 read_sve_size, expected_size); in ptrace_set_fpsimd_get_sve_data()
572 expected_size = SVE_PT_SVE_SIZE(vq, SVE_PT_REGS_SVE); in ptrace_set_fpsimd_get_sve_data()
573 if (read_sve_size < expected_size) { in ptrace_set_fpsimd_get_sve_data()
575 read_sve_size, expected_size); in ptrace_set_fpsimd_get_sve_data()
/openbmc/linux/drivers/input/touchscreen/
H A Dgoodix_fwupload.c47 size_t expected_size; in goodix_firmware_verify() local
52 expected_size = GOODIX_FW_HEADER_LENGTH + 4 * GOODIX_FW_SECTION_LENGTH + in goodix_firmware_verify()
54 if (fw->size != expected_size) { in goodix_firmware_verify()
56 expected_size, fw->size); in goodix_firmware_verify()
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Drx.c805 u32 expected_size) in iwl_mvm_verify_stats_len() argument
809 if (WARN_ONCE(iwl_rx_packet_payload_len(pkt) < expected_size, in iwl_mvm_verify_stats_len()
811 iwl_rx_packet_payload_len(pkt), expected_size)) in iwl_mvm_verify_stats_len()
823 if (WARN_ONCE(le16_to_cpu(hdr->size) != expected_size, in iwl_mvm_verify_stats_len()
825 le16_to_cpu(hdr->size), expected_size)) in iwl_mvm_verify_stats_len()
918 int expected_size; in iwl_mvm_handle_rx_statistics() local
928 expected_size = sizeof(struct iwl_notif_statistics_v11); in iwl_mvm_handle_rx_statistics()
930 expected_size = sizeof(struct iwl_notif_statistics_v10); in iwl_mvm_handle_rx_statistics()
932 expected_size = sizeof(struct iwl_notif_statistics); in iwl_mvm_handle_rx_statistics()
935 if (WARN_ONCE(iwl_rx_packet_payload_len(pkt) != expected_size, in iwl_mvm_handle_rx_statistics()
/openbmc/qemu/migration/
H A Dmultifd-zstd.c244 uint32_t expected_size = p->normal_num * p->page_size; in zstd_recv_pages() local
294 if (out_size != expected_size) { in zstd_recv_pages()
296 p->id, out_size, expected_size); in zstd_recv_pages()
H A Dmultifd-zlib.c249 uint32_t expected_size = p->normal_num * p->page_size; in zlib_recv_pages() local
303 if (out_size != expected_size) { in zlib_recv_pages()
305 p->id, out_size, expected_size); in zlib_recv_pages()
/openbmc/linux/sound/soc/sof/
H A Dipc3-control.c559 size_t expected_size; in sof_ipc3_control_update() local
629 expected_size = sizeof(struct sof_ipc_ctrl_data); in sof_ipc3_control_update()
633 expected_size += cdata->num_elems * in sof_ipc3_control_update()
638 expected_size += cdata->num_elems + sizeof(struct sof_abi_hdr); in sof_ipc3_control_update()
644 if (cdata->rhdr.hdr.size != expected_size) { in sof_ipc3_control_update()
/openbmc/linux/drivers/gpu/drm/tests/
H A Ddrm_buddy_test.c142 struct list_head *blocks, u64 expected_size, bool is_contiguous) in check_blocks() argument
184 if (total != expected_size) { in check_blocks()
186 expected_size, total); in check_blocks()
/openbmc/linux/drivers/scsi/megaraid/
H A Dmegaraid_sas_fp.c312 u32 expected_size; in MR_ValidateMapInfo() local
325 expected_size = sizeof(struct MR_DRV_RAID_MAP_ALL); in MR_ValidateMapInfo()
327 expected_size = sizeof(struct MR_FW_RAID_MAP_EXT); in MR_ValidateMapInfo()
329 expected_size = struct_size_t(struct MR_FW_RAID_MAP, in MR_ValidateMapInfo()
333 if (le32_to_cpu(pDrvRaidMap->totalSize) != expected_size) { in MR_ValidateMapInfo()
337 (unsigned int)expected_size); in MR_ValidateMapInfo()
/openbmc/linux/drivers/gpu/drm/i915/display/
H A Dintel_bios.c2695 u8 expected_size; in parse_general_definitions() local
2720 expected_size = 22; in parse_general_definitions()
2722 expected_size = 27; in parse_general_definitions()
2724 expected_size = LEGACY_CHILD_DEVICE_CONFIG_SIZE; in parse_general_definitions()
2726 expected_size = 37; in parse_general_definitions()
2728 expected_size = 38; in parse_general_definitions()
2730 expected_size = 39; in parse_general_definitions()
2732 expected_size = sizeof(*child); in parse_general_definitions()
2736 i915->display.vbt.version, expected_size); in parse_general_definitions()
2740 if (defs->child_dev_size != expected_size) in parse_general_definitions()
[all …]

12