Home
last modified time | relevance | path

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

/Linux-v6.6/lib/
Dfortify_kunit.c146 #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 …]
/Linux-v6.6/drivers/greybus/
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 …]
/Linux-v6.6/lib/pldmfw/
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 …]
/Linux-v6.6/tools/testing/selftests/arm64/fp/
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()
/Linux-v6.6/drivers/input/touchscreen/
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()
/Linux-v6.6/drivers/net/wireless/intel/iwlwifi/mvm/
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()
/Linux-v6.6/sound/soc/sof/
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()
/Linux-v6.6/drivers/gpu/drm/tests/
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()
/Linux-v6.6/drivers/scsi/megaraid/
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()
/Linux-v6.6/drivers/gpu/drm/i915/display/
Dintel_bios.c2675 u8 expected_size; in parse_general_definitions() local
2700 expected_size = 22; in parse_general_definitions()
2702 expected_size = 27; in parse_general_definitions()
2704 expected_size = LEGACY_CHILD_DEVICE_CONFIG_SIZE; in parse_general_definitions()
2706 expected_size = 37; in parse_general_definitions()
2708 expected_size = 38; in parse_general_definitions()
2710 expected_size = 39; in parse_general_definitions()
2712 expected_size = sizeof(*child); in parse_general_definitions()
2716 i915->display.vbt.version, expected_size); in parse_general_definitions()
2720 if (defs->child_dev_size != expected_size) in parse_general_definitions()
[all …]
/Linux-v6.6/drivers/usb/class/
Dcdc-acm.c376 unsigned int expected_size, copy_size, alloc_size; in acm_ctrl_irq() local
405 expected_size = sizeof(struct usb_cdc_notification) + in acm_ctrl_irq()
408 if (current_size < expected_size) { in acm_ctrl_irq()
410 if (acm->nb_size < expected_size) { in acm_ctrl_irq()
412 alloc_size = roundup_pow_of_two(expected_size); in acm_ctrl_irq()
427 expected_size - acm->nb_index); in acm_ctrl_irq()
435 if (current_size >= expected_size) { in acm_ctrl_irq()
/Linux-v6.6/drivers/net/wireless/intel/iwlwifi/fw/
Dacpi.c155 size_t expected_size) in iwl_acpi_get_dsm_integer() argument
173 if (WARN_ON_ONCE(expected_size > sizeof(le_value))) in iwl_acpi_get_dsm_integer()
177 if (obj->buffer.length != expected_size) in iwl_acpi_get_dsm_integer()
184 min_t(size_t, expected_size, (size_t)obj->buffer.length)); in iwl_acpi_get_dsm_integer()
/Linux-v6.6/drivers/gpu/drm/
Ddrm_atomic_uapi.c369 ssize_t expected_size, in drm_atomic_replace_property_blob_from_id() argument
383 if (expected_size > 0 && in drm_atomic_replace_property_blob_from_id()
384 new_blob->length != expected_size) { in drm_atomic_replace_property_blob_from_id()
387 new_blob->base.id, new_blob->length, expected_size); in drm_atomic_replace_property_blob_from_id()
/Linux-v6.6/drivers/hwmon/
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()
/Linux-v6.6/include/linux/
Dbtf.h206 u32 expected_offset, u32 expected_size);
Dbpf.h2297 int bpf_check_uarg_tail_zero(bpfptr_t uaddr, size_t expected_size,
/Linux-v6.6/drivers/net/wireless/ath/wil6210/
Dwmi.c1482 size_t stats_size, record_size, expected_size; in wmi_link_stats_parse() local
1503 expected_size = sizeof(struct wmi_link_stats_basic); in wmi_link_stats_parse()
1504 if (stats_size < expected_size) { in wmi_link_stats_parse()
1506 stats_size, expected_size); in wmi_link_stats_parse()
1524 expected_size = sizeof(struct wmi_link_stats_global); in wmi_link_stats_parse()
1527 stats_size, expected_size); in wmi_link_stats_parse()
/Linux-v6.6/kernel/bpf/
Dsyscall.c84 size_t expected_size, in bpf_check_uarg_tail_zero() argument
92 if (actual_size <= expected_size) in bpf_check_uarg_tail_zero()
96 res = memchr_inv(uaddr.kernel + expected_size, 0, in bpf_check_uarg_tail_zero()
97 actual_size - expected_size) == NULL; in bpf_check_uarg_tail_zero()
99 res = check_zeroed_user(uaddr.user + expected_size, in bpf_check_uarg_tail_zero()
100 actual_size - expected_size); in bpf_check_uarg_tail_zero()
Dverifier.c15124 u32 i, s, nr_linfo, ncopy, expected_size, rec_size, prev_offset = 0; in check_btf_line() local
15158 expected_size = sizeof(struct bpf_line_info); in check_btf_line()
15159 ncopy = min_t(u32, expected_size, rec_size); in check_btf_line()
15161 err = bpf_check_uarg_tail_zero(ulinfo, expected_size, rec_size); in check_btf_line()
15167 &expected_size, sizeof(expected_size))) in check_btf_line()
15252 u32 i, nr_core_relo, ncopy, expected_size, rec_size; in check_core_relo() local
15276 expected_size = sizeof(struct bpf_core_relo); in check_core_relo()
15277 ncopy = min_t(u32, expected_size, rec_size); in check_core_relo()
15284 err = bpf_check_uarg_tail_zero(u_core_relo, expected_size, rec_size); in check_core_relo()
15290 &expected_size, sizeof(expected_size))) in check_core_relo()
Dbtf.c866 u32 expected_offset, u32 expected_size) in btf_member_is_reg_int() argument
888 BITS_ROUNDUP_BYTES(nr_bits) == expected_size; in btf_member_is_reg_int()
895 BITS_ROUNDUP_BYTES(nr_bits) != expected_size) in btf_member_is_reg_int()
/Linux-v6.6/net/packet/
Daf_packet.c4561 unsigned long size, expected_size; in packet_mmap() local
4572 expected_size = 0; in packet_mmap()
4575 expected_size += rb->pg_vec_len in packet_mmap()
4581 if (expected_size == 0) in packet_mmap()
4585 if (size != expected_size) in packet_mmap()
/Linux-v6.6/net/bluetooth/
Dmgmt.c5411 size_t expected_size = sizeof(*cp); in add_adv_patterns_monitor() local
5420 expected_size += cp->pattern_count * sizeof(struct mgmt_adv_pattern); in add_adv_patterns_monitor()
5421 if (len != expected_size) { in add_adv_patterns_monitor()
5448 size_t expected_size = sizeof(*cp); in add_adv_patterns_monitor_rssi() local
5457 expected_size += cp->pattern_count * sizeof(struct mgmt_adv_pattern); in add_adv_patterns_monitor_rssi()
5458 if (len != expected_size) { in add_adv_patterns_monitor_rssi()