Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/u-boot/lib/avb/libavb/
H A Davb_hash_descriptor.c30 uint64_t expected_size; in avb_hash_descriptor_validate_and_byteswap() local
50 expected_size = sizeof(AvbHashDescriptor) - sizeof(AvbDescriptor); in avb_hash_descriptor_validate_and_byteswap()
51 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_hash_descriptor_validate_and_byteswap()
52 !avb_safe_add_to(&expected_size, dest->salt_len) || in avb_hash_descriptor_validate_and_byteswap()
53 !avb_safe_add_to(&expected_size, dest->digest_len)) { in avb_hash_descriptor_validate_and_byteswap()
57 if (expected_size > dest->parent_descriptor.num_bytes_following) { in avb_hash_descriptor_validate_and_byteswap()
H A Davb_hashtree_descriptor.c30 uint64_t expected_size; in avb_hashtree_descriptor_validate_and_byteswap() local
58 expected_size = sizeof(AvbHashtreeDescriptor) - sizeof(AvbDescriptor); in avb_hashtree_descriptor_validate_and_byteswap()
59 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_hashtree_descriptor_validate_and_byteswap()
60 !avb_safe_add_to(&expected_size, dest->salt_len) || in avb_hashtree_descriptor_validate_and_byteswap()
61 !avb_safe_add_to(&expected_size, dest->root_digest_len)) { in avb_hashtree_descriptor_validate_and_byteswap()
65 if (expected_size > dest->parent_descriptor.num_bytes_following) { in avb_hashtree_descriptor_validate_and_byteswap()
H A Davb_chain_partition_descriptor.c30 uint64_t expected_size; in avb_chain_partition_descriptor_validate_and_byteswap() local
53 expected_size = sizeof(AvbChainPartitionDescriptor) - sizeof(AvbDescriptor); in avb_chain_partition_descriptor_validate_and_byteswap()
54 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_chain_partition_descriptor_validate_and_byteswap()
55 !avb_safe_add_to(&expected_size, dest->public_key_len)) { in avb_chain_partition_descriptor_validate_and_byteswap()
59 if (expected_size > dest->parent_descriptor.num_bytes_following) { in avb_chain_partition_descriptor_validate_and_byteswap()
H A Davb_kernel_cmdline_descriptor.c30 uint64_t expected_size; in avb_kernel_cmdline_descriptor_validate_and_byteswap() local
47 expected_size = sizeof(AvbKernelCmdlineDescriptor) - sizeof(AvbDescriptor); in avb_kernel_cmdline_descriptor_validate_and_byteswap()
48 if (!avb_safe_add_to(&expected_size, dest->kernel_cmdline_length)) { in avb_kernel_cmdline_descriptor_validate_and_byteswap()
52 if (expected_size > dest->parent_descriptor.num_bytes_following) { in avb_kernel_cmdline_descriptor_validate_and_byteswap()
H A Davb_property_descriptor.c30 uint64_t expected_size; in avb_property_descriptor_validate_and_byteswap() local
47 expected_size = sizeof(AvbPropertyDescriptor) - sizeof(AvbDescriptor) + 2; in avb_property_descriptor_validate_and_byteswap()
48 if (!avb_safe_add_to(&expected_size, dest->key_num_bytes) || in avb_property_descriptor_validate_and_byteswap()
49 !avb_safe_add_to(&expected_size, dest->value_num_bytes)) { in avb_property_descriptor_validate_and_byteswap()
53 if (expected_size > dest->parent_descriptor.num_bytes_following) { in avb_property_descriptor_validate_and_byteswap()
/OK3568_Linux_fs/kernel/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()
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 …]
/OK3568_Linux_fs/u-boot/board/AndesTech/adp-ag101p/
H A Dadp-ag101p.c42 unsigned long expected_size = PHYS_SDRAM_0_SIZE + PHYS_SDRAM_1_SIZE; in dram_init() local
45 actual_size = get_ram_size((void *)sdram_base, expected_size); in dram_init()
49 if (expected_size != actual_size) { in dram_init()
51 actual_size >> 20, expected_size >> 20); in dram_init()
/OK3568_Linux_fs/u-boot/board/AndesTech/adp-ae3xx/
H A Dadp-ae3xx.c37 unsigned long expected_size = PHYS_SDRAM_0_SIZE + PHYS_SDRAM_1_SIZE; in dram_init() local
39 actual_size = get_ram_size((void *)sdram_base, expected_size); in dram_init()
41 if (expected_size != actual_size) { in dram_init()
43 actual_size >> 20, expected_size >> 20); in dram_init()
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/intel/iwlwifi/mvm/
H A Drx.c752 int expected_size; in iwl_mvm_handle_rx_statistics_tlv() local
756 expected_size = sizeof(*stats); in iwl_mvm_handle_rx_statistics_tlv()
757 if (WARN_ONCE(iwl_rx_packet_payload_len(pkt) < expected_size, in iwl_mvm_handle_rx_statistics_tlv()
759 iwl_rx_packet_payload_len(pkt), expected_size)) in iwl_mvm_handle_rx_statistics_tlv()
815 int expected_size; in iwl_mvm_handle_rx_statistics() local
825 expected_size = sizeof(struct iwl_notif_statistics_v11); in iwl_mvm_handle_rx_statistics()
827 expected_size = sizeof(struct iwl_notif_statistics_v10); in iwl_mvm_handle_rx_statistics()
829 expected_size = sizeof(struct iwl_notif_statistics); in iwl_mvm_handle_rx_statistics()
832 if (WARN_ONCE(iwl_rx_packet_payload_len(pkt) != expected_size, in iwl_mvm_handle_rx_statistics()
/OK3568_Linux_fs/external/xserver/glx/
H A Dcreatecontext.c121 const unsigned expected_size = (sz_xGLXCreateContextAttribsARBReq in __glXDisp_CreateContextAttribsARB() local
124 if (req->length != expected_size) in __glXDisp_CreateContextAttribsARB()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/display/
H A Dintel_bios.c1858 u8 expected_size; in parse_general_definitions() local
1883 expected_size = 22; in parse_general_definitions()
1885 expected_size = 27; in parse_general_definitions()
1887 expected_size = LEGACY_CHILD_DEVICE_CONFIG_SIZE; in parse_general_definitions()
1889 expected_size = 37; in parse_general_definitions()
1891 expected_size = 38; in parse_general_definitions()
1893 expected_size = 39; in parse_general_definitions()
1895 expected_size = sizeof(*child); in parse_general_definitions()
1899 bdb->version, expected_size); in parse_general_definitions()
1903 if (defs->child_dev_size != expected_size) in parse_general_definitions()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/selftests/
H A Di915_buddy.c113 u64 expected_size, in igt_check_blocks() argument
156 if (total != expected_size) { in igt_check_blocks()
158 expected_size, total); in igt_check_blocks()
/OK3568_Linux_fs/kernel/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 = in MR_ValidateMapInfo()
333 if (le32_to_cpu(pDrvRaidMap->totalSize) != expected_size) { in MR_ValidateMapInfo()
337 (unsigned int)expected_size); in MR_ValidateMapInfo()
/OK3568_Linux_fs/kernel/drivers/usb/class/
H A Dcdc-acm.c365 unsigned int expected_size, copy_size, alloc_size; in acm_ctrl_irq() local
394 expected_size = sizeof(struct usb_cdc_notification) + in acm_ctrl_irq()
397 if (current_size < expected_size) { in acm_ctrl_irq()
399 if (acm->nb_size < expected_size) { in acm_ctrl_irq()
401 alloc_size = roundup_pow_of_two(expected_size); in acm_ctrl_irq()
416 expected_size - acm->nb_index); in acm_ctrl_irq()
424 if (current_size >= expected_size) { in acm_ctrl_irq()
/OK3568_Linux_fs/kernel/drivers/net/wimax/i2400m/
H A Dcontrol.c604 size_t expected_size; in i2400m_msg_size_check() local
614 expected_size = le16_to_cpu(l3l4_hdr->length) + sizeof(*l3l4_hdr); in i2400m_msg_size_check()
615 if (msg_size < expected_size) { in i2400m_msg_size_check()
618 expected_size, msg_size); in i2400m_msg_size_check()
/OK3568_Linux_fs/kernel/include/linux/
H A Dbtf.h94 u32 expected_offset, u32 expected_size);
/OK3568_Linux_fs/tools/linux/Linux_SecurityAVB/scripts/
H A Davbtool1130 expected_size = round_to_multiple(
1132 if tag != self.TAG or num_bytes_following != expected_size:
1244 expected_size = round_to_multiple(
1246 if tag != self.TAG or num_bytes_following != expected_size:
1418 expected_size = round_to_multiple(
1420 if tag != self.TAG or num_bytes_following != expected_size:
1544 expected_size = round_to_multiple(self.SIZE - 16 + kernel_cmdline_length,
1546 if tag != self.TAG or num_bytes_following != expected_size:
1636 expected_size = round_to_multiple(
1638 if tag != self.TAG or num_bytes_following != expected_size:
/OK3568_Linux_fs/u-boot/scripts/
H A Davbtool.py1269 expected_size = round_to_multiple(
1271 if tag != self.TAG or num_bytes_following != expected_size:
1404 expected_size = round_to_multiple(
1406 if tag != self.TAG or num_bytes_following != expected_size:
1598 expected_size = round_to_multiple(
1600 if tag != self.TAG or num_bytes_following != expected_size:
1734 expected_size = round_to_multiple(self.SIZE - 16 + kernel_cmdline_length,
1736 if tag != self.TAG or num_bytes_following != expected_size:
1831 expected_size = round_to_multiple(
1833 if tag != self.TAG or num_bytes_following != expected_size:
/OK3568_Linux_fs/kernel/drivers/hwmon/
H A Dasus_atk0110.c332 int const expected_size = old_if ? _HWMON_OLD_PACK_SIZE : in validate_hwmon_pack() local
340 if (obj->package.count != expected_size) { in validate_hwmon_pack()
342 obj->package.count, expected_size); in validate_hwmon_pack()
/OK3568_Linux_fs/u-boot/include/
H A Dcommon.h652 void gzwrite_progress_init(u64 expected_size);
/OK3568_Linux_fs/kernel/drivers/gpu/drm/
H A Ddrm_atomic_uapi.c390 ssize_t expected_size, in drm_atomic_replace_property_blob_from_id() argument
401 if (expected_size > 0 && in drm_atomic_replace_property_blob_from_id()
402 new_blob->length != expected_size) { in drm_atomic_replace_property_blob_from_id()
/OK3568_Linux_fs/external/security/rk_tee_user/v2/host/xtest/gp/include/
H A Dxml_crypto_api.h2187 size_t expected_size; in Invoke_Crypto_AsymmetricDecrypt() local
2220 expected_size = fdata_length; in Invoke_Crypto_AsymmetricDecrypt()
2231 while (expected_size && expected_res[0] == 0) { in Invoke_Crypto_AsymmetricDecrypt()
2232 expected_size--; in Invoke_Crypto_AsymmetricDecrypt()
2242 ADBG_EXPECT_BUFFER(c, expected_res, expected_size, in Invoke_Crypto_AsymmetricDecrypt()
/OK3568_Linux_fs/kernel/drivers/net/wireless/ath/wil6210/
H A Dwmi.c1481 size_t stats_size, record_size, expected_size; in wmi_link_stats_parse() local
1502 expected_size = sizeof(struct wmi_link_stats_basic); in wmi_link_stats_parse()
1503 if (stats_size < expected_size) { in wmi_link_stats_parse()
1505 stats_size, expected_size); in wmi_link_stats_parse()
1523 expected_size = sizeof(struct wmi_link_stats_global); in wmi_link_stats_parse()
1526 stats_size, expected_size); in wmi_link_stats_parse()
/OK3568_Linux_fs/kernel/net/packet/
H A Daf_packet.c4495 unsigned long size, expected_size; in packet_mmap() local
4506 expected_size = 0; in packet_mmap()
4509 expected_size += rb->pg_vec_len in packet_mmap()
4515 if (expected_size == 0) in packet_mmap()
4519 if (size != expected_size) in packet_mmap()

12