| /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 …]
|
| /linux/lib/tests/ |
| H A D | fortify_kunit.c | 219 #define TEST_kmalloc(checker, expected_size, alloc_size) do { \ argument 224 checker(expected_size, kmalloc(alloc_size, gfp), \ 226 checker(expected_size, \ 229 checker(expected_size, kzalloc(alloc_size, gfp), \ 231 checker(expected_size, \ 234 checker(expected_size, kcalloc(1, alloc_size, gfp), \ 236 checker(expected_size, kcalloc(alloc_size, 1, gfp), \ 238 checker(expected_size, \ 241 checker(expected_size, \ 244 checker(expected_size, kmalloc_array(1, alloc_size, gfp), \ [all …]
|
| /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 …]
|
| /linux/tools/testing/selftests/arm64/fp/ |
| H A D | sve-ptrace.c | 642 size_t expected_size; in ptrace_set_fpsimd_get_sve_data() local 680 expected_size = SVE_PT_FPSIMD_SIZE(vq, SVE_PT_REGS_FPSIMD); in ptrace_set_fpsimd_get_sve_data() 681 if (read_sve_size < expected_size) { in ptrace_set_fpsimd_get_sve_data() 683 read_sve_size, expected_size); in ptrace_set_fpsimd_get_sve_data() 696 expected_size = SVE_PT_SVE_SIZE(vq, SVE_PT_REGS_SVE); in ptrace_set_fpsimd_get_sve_data() 697 if (read_sve_size < expected_size) { in ptrace_set_fpsimd_get_sve_data() 699 read_sve_size, expected_size); in ptrace_set_fpsimd_get_sve_data()
|
| /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()
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_property.c | 776 ssize_t expected_size, in drm_property_replace_blob_from_id() argument 799 if (expected_size > 0 && in drm_property_replace_blob_from_id() 800 new_blob->length != expected_size) { in drm_property_replace_blob_from_id() 803 new_blob->base.id, new_blob->length, expected_size); in drm_property_replace_blob_from_id()
|
| /linux/drivers/gpu/drm/amd/amdkfd/ |
| H A D | kfd_queue.c | 197 u64 expected_size) in kfd_queue_buffer_get() argument 204 size = expected_size >> AMDGPU_GPU_PAGE_SHIFT; in kfd_queue_buffer_get() 213 expected_size, mapping->start << AMDGPU_GPU_PAGE_SHIFT, in kfd_queue_buffer_get()
|
| /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()
|
| /linux/drivers/usb/class/ |
| H A D | cdc-acm.c | 378 unsigned int expected_size, copy_size, alloc_size; in acm_ctrl_irq() local 418 expected_size = sizeof(struct usb_cdc_notification) + in acm_ctrl_irq() 421 if (acm->nb_index != 0 || current_size < expected_size) { in acm_ctrl_irq() 423 if (acm->nb_size < expected_size) { in acm_ctrl_irq() 425 alloc_size = roundup_pow_of_two(expected_size); in acm_ctrl_irq() 440 expected_size - acm->nb_index); in acm_ctrl_irq() 448 if (current_size >= expected_size) { in acm_ctrl_irq()
|
| /linux/drivers/hwmon/ |
| H A D | asus_atk0110.c | 333 int const expected_size = old_if ? _HWMON_OLD_PACK_SIZE : in validate_hwmon_pack() local 341 if (obj->package.count != expected_size) { in validate_hwmon_pack() 343 obj->package.count, expected_size); in validate_hwmon_pack()
|
| /linux/drivers/net/wireless/intel/iwlwifi/mld/ |
| H A D | d3.c | 672 u32 expected_size = le32_to_cpu(notif->wake_packet_length); in iwl_mld_handle_wake_pkt_notif() local 689 if (expected_size < actual_size) in iwl_mld_handle_wake_pkt_notif() 690 actual_size = expected_size; in iwl_mld_handle_wake_pkt_notif() 696 wowlan_status->wake_packet_length = expected_size; in iwl_mld_handle_wake_pkt_notif()
|
| /linux/kernel/bpf/ |
| H A D | btf.c | 979 static bool __btf_type_int_is_regular(const struct btf_type *t, size_t expected_size) in __btf_type_int_is_regular() argument 988 (expected_size == 0 || nr_bytes == expected_size); in __btf_type_int_is_regular() 1018 u32 expected_offset, u32 expected_size) in btf_member_is_reg_int() argument 1040 BITS_ROUNDUP_BYTES(nr_bits) == expected_size; in btf_member_is_reg_int() 1047 BITS_ROUNDUP_BYTES(nr_bits) != expected_size) in btf_member_is_reg_int() 3753 u32 off, u32 expected_size, in btf_find_field_one() argument 3781 if (expected_size && expected_size != sz * nelems) in btf_find_field_one() 3793 if (expected_size && expected_size != sz * nelems) in btf_find_field_one()
|
| H A D | syscall.c | 92 size_t expected_size, in bpf_check_uarg_tail_zero() argument 100 if (actual_size <= expected_size) in bpf_check_uarg_tail_zero() 104 res = memchr_inv(uaddr.kernel + expected_size, 0, in bpf_check_uarg_tail_zero() 105 actual_size - expected_size) == NULL; in bpf_check_uarg_tail_zero() 107 res = check_zeroed_user(uaddr.user + expected_size, in bpf_check_uarg_tail_zero() 108 actual_size - expected_size); in bpf_check_uarg_tail_zero()
|
| /linux/net/packet/ |
| H A D | af_packet.c | 4588 unsigned long size, expected_size; in packet_mmap() local 4599 expected_size = 0; in packet_mmap() 4602 expected_size += rb->pg_vec_len in packet_mmap() 4608 if (expected_size == 0) in packet_mmap() 4612 if (size != expected_size) in packet_mmap()
|
| /linux/fs/btrfs/ |
| H A D | extent-tree.c | 2433 u32 expected_size; in check_committed_ref() local 2470 expected_size = sizeof(*ei) + btrfs_extent_inline_ref_size(BTRFS_EXTENT_DATA_REF_KEY); in check_committed_ref() 2480 expected_size += btrfs_extent_inline_ref_size(BTRFS_EXTENT_OWNER_REF_KEY); in check_committed_ref() 2486 if (item_size != expected_size) in check_committed_ref()
|
| /linux/net/bluetooth/ |
| H A D | mgmt.c | 5520 size_t expected_size = sizeof(*cp); in add_adv_patterns_monitor() local 5529 expected_size += cp->pattern_count * sizeof(struct mgmt_adv_pattern); in add_adv_patterns_monitor() 5530 if (len != expected_size) { in add_adv_patterns_monitor() 5557 size_t expected_size = sizeof(*cp); in add_adv_patterns_monitor_rssi() local 5566 expected_size += cp->pattern_count * sizeof(struct mgmt_adv_pattern); in add_adv_patterns_monitor_rssi() 5567 if (len != expected_size) { in add_adv_patterns_monitor_rssi()
|
| /linux/include/linux/ |
| H A D | bpf.h | 2913 int bpf_check_uarg_tail_zero(bpfptr_t uaddr, size_t expected_size,
|