Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/staging/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-v4.19/drivers/gpu/drm/i915/
Dintel_bios.c1486 u8 expected_size; in parse_general_definitions() local
1509 expected_size = 22; in parse_general_definitions()
1511 expected_size = 27; in parse_general_definitions()
1513 expected_size = LEGACY_CHILD_DEVICE_CONFIG_SIZE; in parse_general_definitions()
1515 expected_size = 37; in parse_general_definitions()
1517 expected_size = 38; in parse_general_definitions()
1519 expected_size = 39; in parse_general_definitions()
1521 expected_size = sizeof(*child); in parse_general_definitions()
1524 bdb->version, expected_size); in parse_general_definitions()
1528 if (defs->child_dev_size != expected_size) in parse_general_definitions()
[all …]
/Linux-v4.19/drivers/net/wireless/intel/iwlwifi/mvm/
Drx.c728 int expected_size; in iwl_mvm_handle_rx_statistics() local
737 expected_size = sizeof(struct iwl_notif_statistics_v11); in iwl_mvm_handle_rx_statistics()
739 expected_size = sizeof(struct iwl_notif_statistics_v10); in iwl_mvm_handle_rx_statistics()
741 expected_size = sizeof(struct iwl_notif_statistics_cdb); in iwl_mvm_handle_rx_statistics()
744 if (WARN_ONCE(iwl_rx_packet_payload_len(pkt) != expected_size, in iwl_mvm_handle_rx_statistics()
/Linux-v4.19/drivers/scsi/megaraid/
Dmegaraid_sas_fp.c326 u32 expected_size; in MR_ValidateMapInfo() local
339 expected_size = sizeof(struct MR_DRV_RAID_MAP_ALL); in MR_ValidateMapInfo()
341 expected_size = sizeof(struct MR_FW_RAID_MAP_EXT); in MR_ValidateMapInfo()
343 expected_size = in MR_ValidateMapInfo()
347 if (le32_to_cpu(pDrvRaidMap->totalSize) != expected_size) { in MR_ValidateMapInfo()
351 (unsigned int)expected_size); in MR_ValidateMapInfo()
/Linux-v4.19/drivers/usb/class/
Dcdc-acm.c346 unsigned int expected_size, copy_size, alloc_size; in acm_ctrl_irq() local
375 expected_size = sizeof(struct usb_cdc_notification) + in acm_ctrl_irq()
378 if (current_size < expected_size) { in acm_ctrl_irq()
380 if (acm->nb_size < expected_size) { in acm_ctrl_irq()
385 alloc_size = roundup_pow_of_two(expected_size); in acm_ctrl_irq()
399 expected_size - acm->nb_index); in acm_ctrl_irq()
407 if (current_size >= expected_size) { in acm_ctrl_irq()
/Linux-v4.19/drivers/net/wimax/i2400m/
Dcontrol.c603 size_t expected_size; in i2400m_msg_size_check() local
613 expected_size = le16_to_cpu(l3l4_hdr->length) + sizeof(*l3l4_hdr); in i2400m_msg_size_check()
614 if (msg_size < expected_size) { in i2400m_msg_size_check()
617 expected_size, msg_size); in i2400m_msg_size_check()
/Linux-v4.19/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-v4.19/drivers/usb/wusbcore/
Dwa-xfer.c2441 int expected_size; in wa_process_iso_packet_status() local
2463 expected_size = sizeof(*packet_status) + in wa_process_iso_packet_status()
2466 if (urb->actual_length != expected_size) { in wa_process_iso_packet_status()
2468 urb->actual_length, expected_size); in wa_process_iso_packet_status()
2471 if (le16_to_cpu(packet_status->wLength) != expected_size) { in wa_process_iso_packet_status()
/Linux-v4.19/drivers/net/wireless/ath/wil6210/
Dwmi.c1370 size_t stats_size, record_size, expected_size; in wmi_link_stats_parse() local
1391 expected_size = sizeof(struct wmi_link_stats_basic); in wmi_link_stats_parse()
1392 if (stats_size < expected_size) { in wmi_link_stats_parse()
1394 stats_size, expected_size); in wmi_link_stats_parse()
1412 expected_size = sizeof(struct wmi_link_stats_global); in wmi_link_stats_parse()
1415 stats_size, expected_size); in wmi_link_stats_parse()
/Linux-v4.19/kernel/bpf/
Dsyscall.c72 size_t expected_size, in bpf_check_uarg_tail_zero() argument
86 if (actual_size <= expected_size) in bpf_check_uarg_tail_zero()
89 addr = uaddr + expected_size; in bpf_check_uarg_tail_zero()
/Linux-v4.19/drivers/gpu/drm/
Ddrm_atomic.c500 ssize_t expected_size, in drm_atomic_replace_property_blob_from_id() argument
511 if (expected_size > 0 && in drm_atomic_replace_property_blob_from_id()
512 new_blob->length != expected_size) { in drm_atomic_replace_property_blob_from_id()
/Linux-v4.19/include/linux/
Dbpf.h483 int bpf_check_uarg_tail_zero(void __user *uaddr, size_t expected_size,
/Linux-v4.19/net/packet/
Daf_packet.c4371 unsigned long size, expected_size; in packet_mmap() local
4382 expected_size = 0; in packet_mmap()
4385 expected_size += rb->pg_vec_len in packet_mmap()
4391 if (expected_size == 0) in packet_mmap()
4395 if (size != expected_size) in packet_mmap()