Searched refs:expected_size (Results 1 – 9 of 9) sorted by relevance
/drivers/staging/greybus/ |
D | manifest.c | 105 size_t expected_size; in identify_descriptor() local 121 expected_size = sizeof(*desc_header); in identify_descriptor() 125 expected_size += sizeof(struct greybus_descriptor_string); in identify_descriptor() 126 expected_size += desc->string.length; in identify_descriptor() 129 expected_size = ALIGN(expected_size, 4); in identify_descriptor() 132 expected_size += sizeof(struct greybus_descriptor_interface); in identify_descriptor() 135 expected_size += sizeof(struct greybus_descriptor_bundle); in identify_descriptor() 138 expected_size += sizeof(struct greybus_descriptor_cport); in identify_descriptor() 147 if (desc_size < expected_size) { in identify_descriptor() 150 desc_size, expected_size); in identify_descriptor() [all …]
|
/drivers/gpu/drm/i915/ |
D | intel_bios.c | 1264 u8 expected_size; in parse_device_mapping() local 1273 expected_size = 22; in parse_device_mapping() 1275 expected_size = 27; in parse_device_mapping() 1278 expected_size = sizeof(struct old_child_dev_config); in parse_device_mapping() 1280 expected_size = 37; in parse_device_mapping() 1282 expected_size = 38; in parse_device_mapping() 1284 expected_size = 38; in parse_device_mapping() 1287 bdb->version, expected_size); in parse_device_mapping() 1291 if (p_defs->child_dev_size != expected_size) in parse_device_mapping() 1293 p_defs->child_dev_size, expected_size, bdb->version); in parse_device_mapping()
|
/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | rx.c | 653 int expected_size; in iwl_mvm_handle_rx_statistics() local 661 expected_size = sizeof(struct iwl_notif_statistics_v11); in iwl_mvm_handle_rx_statistics() 663 expected_size = sizeof(struct iwl_notif_statistics_v10); in iwl_mvm_handle_rx_statistics() 665 expected_size = sizeof(struct iwl_notif_statistics_cdb); in iwl_mvm_handle_rx_statistics() 668 if (iwl_rx_packet_payload_len(pkt) != expected_size) { in iwl_mvm_handle_rx_statistics()
|
/drivers/scsi/megaraid/ |
D | megaraid_sas_fp.c | 326 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()
|
/drivers/usb/class/ |
D | cdc-acm.c | 358 unsigned int expected_size, copy_size, alloc_size; in acm_ctrl_irq() local 387 expected_size = sizeof(struct usb_cdc_notification) + in acm_ctrl_irq() 390 if (current_size < expected_size) { in acm_ctrl_irq() 392 if (acm->nb_size < expected_size) { in acm_ctrl_irq() 397 alloc_size = roundup_pow_of_two(expected_size); in acm_ctrl_irq() 411 expected_size - acm->nb_index); in acm_ctrl_irq() 419 if (current_size >= expected_size) { in acm_ctrl_irq()
|
/drivers/net/wimax/i2400m/ |
D | control.c | 604 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()
|
/drivers/hwmon/ |
D | asus_atk0110.c | 339 int const expected_size = old_if ? _HWMON_OLD_PACK_SIZE : in validate_hwmon_pack() local 347 if (obj->package.count != expected_size) { in validate_hwmon_pack() 349 obj->package.count, expected_size); in validate_hwmon_pack()
|
/drivers/usb/wusbcore/ |
D | wa-xfer.c | 2454 int expected_size; in wa_process_iso_packet_status() local 2476 expected_size = sizeof(*packet_status) + in wa_process_iso_packet_status() 2479 if (urb->actual_length != expected_size) { in wa_process_iso_packet_status() 2481 urb->actual_length, expected_size); in wa_process_iso_packet_status() 2484 if (le16_to_cpu(packet_status->wLength) != expected_size) { in wa_process_iso_packet_status()
|
/drivers/gpu/drm/ |
D | drm_atomic.c | 426 ssize_t expected_size, in drm_atomic_replace_property_blob_from_id() argument 436 if (expected_size > 0 && expected_size != new_blob->length) { in drm_atomic_replace_property_blob_from_id()
|