/openbmc/linux/lib/ |
H A D | fortify_kunit.c | 146 #define TEST_kmalloc(checker, expected_size, alloc_size) do { \ argument 151 checker(expected_size, kmalloc(alloc_size, gfp), \ 153 checker(expected_size, \ 156 checker(expected_size, kzalloc(alloc_size, gfp), \ 158 checker(expected_size, \ 161 checker(expected_size, kcalloc(1, alloc_size, gfp), \ 163 checker(expected_size, kcalloc(alloc_size, 1, gfp), \ 165 checker(expected_size, \ 168 checker(expected_size, \ 171 checker(expected_size, kmalloc_array(1, alloc_size, gfp), \ [all …]
|
/openbmc/u-boot/lib/libavb/ |
H A D | avb_hash_descriptor.c | 11 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 D | avb_hashtree_descriptor.c | 11 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 D | avb_chain_partition_descriptor.c | 11 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 D | avb_kernel_cmdline_descriptor.c | 11 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 D | avb_property_descriptor.c | 11 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 D | 106 | 61 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 D | manifest.c | 104 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() 131 expected_size += sizeof(struct greybus_descriptor_interface); 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() [all …]
|
/openbmc/obmc-console/test/ |
H A D | test-config-parse-bytesize.c | 15 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 D | adp-ag101p.c | 40 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 D | adp-ae3xx.c | 36 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 D | ax25-ae350.c | 32 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 D | ncsi_client.c | 277 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 D | ncsi_client.h | 252 uint32_t expected_size);
|
/openbmc/linux/lib/pldmfw/ |
H A D | pldmfw.c | 67 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/linux/drivers/platform/x86/intel/ifs/ |
H A D | load.c | 261 unsigned int expected_size; in ifs_load_firmware() local 276 expected_size = ((struct microcode_header_intel *)fw->data)->totalsize; in ifs_load_firmware() 277 if (fw->size != expected_size) { in ifs_load_firmware() 279 expected_size, fw->size); in ifs_load_firmware()
|
/openbmc/google-misc/subprojects/ncsid/src/ |
H A D | ncsi_state_machine.cpp | 270 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 D | sve-ptrace.c | 518 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 D | goodix_fwupload.c | 47 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 D | rx.c | 805 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 D | multifd-zlib.c | 208 uint32_t expected_size = p->normal_num * page_size; in multifd_zlib_recv() local 271 if (out_size != expected_size) { in multifd_zlib_recv() 273 p->id, out_size, expected_size); in multifd_zlib_recv()
|
H A D | multifd-zstd.c | 201 uint32_t expected_size = p->normal_num * page_size; in multifd_zstd_recv() local 260 if (out_size != expected_size) { in multifd_zstd_recv() 262 p->id, out_size, expected_size); in multifd_zstd_recv()
|
H A D | multifd-qatzip.c | 334 uint32_t expected_size = p->normal_num * page_size; in qatzip_recv() local 367 if (out_len != expected_size) { in qatzip_recv() 369 p->id, out_len, expected_size); in qatzip_recv()
|
/openbmc/linux/sound/soc/sof/ |
H A D | ipc3-control.c | 559 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/scsi/megaraid/ |
H A D | megaraid_sas_fp.c | 312 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()
|