/linux-master/drivers/greybus/ |
H A D | manifest.c | 104 size_t expected_size; local 120 expected_size = sizeof(*desc_header); 124 expected_size += sizeof(struct greybus_descriptor_string); 125 expected_size += desc->string.length; 128 expected_size = ALIGN(expected_size, 4); 131 expected_size += sizeof(struct greybus_descriptor_interface); 134 expected_size += sizeof(struct greybus_descriptor_bundle); 137 expected_size += sizeof(struct greybus_descriptor_cport); 146 if (desc_size < expected_size) { [all...] |
/linux-master/lib/ |
H A D | fortify_kunit.c | 185 #define TEST_kmalloc(checker, expected_size, alloc_size) do { \ 190 checker(expected_size, kmalloc(alloc_size, gfp), \ 192 checker(expected_size, \ 195 checker(expected_size, kzalloc(alloc_size, gfp), \ 197 checker(expected_size, \ 200 checker(expected_size, kcalloc(1, alloc_size, gfp), \ 202 checker(expected_size, kcalloc(alloc_size, 1, gfp), \ 204 checker(expected_size, \ 207 checker(expected_size, \ 210 checker(expected_size, kmalloc_arra [all...] |
/linux-master/lib/pldmfw/ |
H A D | pldmfw.c | 67 size_t expected_size = offset + length; local 70 if (data->fw->size < expected_size) { 72 data->fw->size, expected_size); 206 u16 expected_size; local 213 expected_size = 2; 216 expected_size = 1; 219 expected_size = 3; 225 expected_size = 4; 228 expected_size = 16; 238 if (size != expected_size) { [all...] |
/linux-master/drivers/input/touchscreen/ |
H A D | goodix_fwupload.c | 47 size_t expected_size; local 52 expected_size = GOODIX_FW_HEADER_LENGTH + 4 * GOODIX_FW_SECTION_LENGTH + 54 if (fw->size != expected_size) { 56 expected_size, fw->size);
|
/linux-master/drivers/platform/x86/intel/ifs/ |
H A D | load.c | 383 unsigned int expected_size; local 398 expected_size = ((struct microcode_header_intel *)fw->data)->totalsize; 399 if (fw->size != expected_size) { 401 expected_size, fw->size);
|
/linux-master/drivers/net/wireless/intel/iwlwifi/fw/ |
H A D | acpi.c | 107 size_t expected_size) 125 if (WARN_ON_ONCE(expected_size > sizeof(le_value))) 129 if (obj->buffer.length != expected_size) 136 min_t(size_t, expected_size, (size_t)obj->buffer.length)); 162 size_t expected_size; local 171 expected_size = acpi_dsm_size[func]; 174 if (expected_size != sizeof(u8) && expected_size != sizeof(u32)) 178 &iwl_guid, &tmp, expected_size); 182 if ((expected_size 105 iwl_acpi_get_dsm_integer(struct device *dev, int rev, int func, const guid_t *guid, u64 *value, size_t expected_size) argument [all...] |
H A D | uefi.c | 83 unsigned int expected_size, 99 if (var_size < expected_size) { 80 iwl_uefi_get_verified_variable(struct iwl_trans *trans, efi_char16_t *uefi_var_name, char *var_name, unsigned int expected_size, unsigned long *size) argument
|
/linux-master/tools/testing/selftests/arm64/fp/ |
H A D | sve-ptrace.c | 518 size_t expected_size; local 556 expected_size = SVE_PT_FPSIMD_SIZE(vq, SVE_PT_REGS_FPSIMD); 557 if (read_sve_size < expected_size) { 559 read_sve_size, expected_size); 572 expected_size = SVE_PT_SVE_SIZE(vq, SVE_PT_REGS_SVE); 573 if (read_sve_size < expected_size) { 575 read_sve_size, expected_size);
|
/linux-master/sound/soc/sof/ |
H A D | ipc3-control.c | 559 size_t expected_size; local 629 expected_size = sizeof(struct sof_ipc_ctrl_data); 633 expected_size += cdata->num_elems * 638 expected_size += cdata->num_elems + sizeof(struct sof_abi_hdr); 644 if (cdata->rhdr.hdr.size != expected_size) {
|
/linux-master/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | rx.c | 819 u32 expected_size) 823 if (WARN_ONCE(iwl_rx_packet_payload_len(pkt) < expected_size, 824 "received invalid statistics size (%d)!, expected_size: %d\n", 825 iwl_rx_packet_payload_len(pkt), expected_size)) 837 if (WARN_ONCE(le16_to_cpu(hdr->size) != expected_size, 838 "received invalid statistics size in header (%d)!, expected_size: %d\n", 839 le16_to_cpu(hdr->size), expected_size)) 1076 int expected_size; local 1093 expected_size = sizeof(struct iwl_notif_statistics_v11); 1095 expected_size 817 iwl_mvm_verify_stats_len(struct iwl_mvm *mvm, struct iwl_rx_packet *pkt, u32 expected_size) argument [all...] |
/linux-master/include/drm/ |
H A D | drm_property.h | 285 ssize_t expected_size,
|
/linux-master/drivers/gpu/drm/ |
H A D | drm_property.c | 760 * @expected_size: expected size of the blob property 774 ssize_t expected_size, 788 if (expected_size > 0 && 789 new_blob->length != expected_size) { 792 new_blob->base.id, new_blob->length, expected_size); 771 drm_property_replace_blob_from_id(struct drm_device *dev, struct drm_property_blob **blob, uint64_t blob_id, ssize_t expected_size, ssize_t expected_elem_size, bool *replaced) argument
|
/linux-master/drivers/scsi/megaraid/ |
H A D | megaraid_sas_fp.c | 312 u32 expected_size; local 325 expected_size = sizeof(struct MR_DRV_RAID_MAP_ALL); 327 expected_size = sizeof(struct MR_FW_RAID_MAP_EXT); 329 expected_size = struct_size_t(struct MR_FW_RAID_MAP, 333 if (le32_to_cpu(pDrvRaidMap->totalSize) != expected_size) { 337 (unsigned int)expected_size);
|
/linux-master/drivers/gpu/drm/i915/display/ |
H A D | intel_bios.c | 2740 u8 expected_size; local 2765 expected_size = 22; 2767 expected_size = 27; 2769 expected_size = LEGACY_CHILD_DEVICE_CONFIG_SIZE; 2771 expected_size = 37; 2773 expected_size = 38; 2775 expected_size = 39; 2777 expected_size = sizeof(*child); 2781 i915->display.vbt.version, expected_size); 2785 if (defs->child_dev_size != expected_size) [all...] |
/linux-master/drivers/usb/class/ |
H A D | cdc-acm.c | 376 unsigned int expected_size, copy_size, alloc_size; local 405 expected_size = sizeof(struct usb_cdc_notification) + 408 if (current_size < expected_size) { 410 if (acm->nb_size < expected_size) { 412 alloc_size = roundup_pow_of_two(expected_size); 427 expected_size - acm->nb_index); 435 if (current_size >= expected_size) {
|
/linux-master/drivers/hwmon/ |
H A D | asus_atk0110.c | 332 int const expected_size = old_if ? _HWMON_OLD_PACK_SIZE : local 340 if (obj->package.count != expected_size) { 342 obj->package.count, expected_size);
|
/linux-master/include/linux/ |
H A D | btf.h | 219 u32 expected_offset, u32 expected_size);
|
H A D | bpf.h | 2477 int bpf_check_uarg_tail_zero(bpfptr_t uaddr, size_t expected_size,
|
/linux-master/drivers/net/wireless/ath/wil6210/ |
H A D | wmi.c | 1480 size_t stats_size, record_size, expected_size; local 1501 expected_size = sizeof(struct wmi_link_stats_basic); 1502 if (stats_size < expected_size) { 1504 stats_size, expected_size); 1522 expected_size = sizeof(struct wmi_link_stats_global); 1525 stats_size, expected_size);
|
/linux-master/net/packet/ |
H A D | af_packet.c | 4558 unsigned long size, expected_size; local 4569 expected_size = 0; 4572 expected_size += rb->pg_vec_len 4578 if (expected_size == 0) 4582 if (size != expected_size)
|
/linux-master/kernel/bpf/ |
H A D | syscall.c | 85 size_t expected_size, 93 if (actual_size <= expected_size) 97 res = memchr_inv(uaddr.kernel + expected_size, 0, 98 actual_size - expected_size) == NULL; 100 res = check_zeroed_user(uaddr.user + expected_size, 101 actual_size - expected_size); 84 bpf_check_uarg_tail_zero(bpfptr_t uaddr, size_t expected_size, size_t actual_size) argument
|
H A D | verifier.c | 16097 u32 i, s, nr_linfo, ncopy, expected_size, rec_size, prev_offset = 0; local 16131 expected_size = sizeof(struct bpf_line_info); 16132 ncopy = min_t(u32, expected_size, rec_size); 16134 err = bpf_check_uarg_tail_zero(ulinfo, expected_size, rec_size); 16140 &expected_size, sizeof(expected_size))) 16225 u32 i, nr_core_relo, ncopy, expected_size, rec_size; local 16249 expected_size = sizeof(struct bpf_core_relo); 16250 ncopy = min_t(u32, expected_size, rec_size); 16257 err = bpf_check_uarg_tail_zero(u_core_relo, expected_size, rec_siz [all...] |
H A D | btf.c | 888 u32 expected_offset, u32 expected_size) 910 BITS_ROUNDUP_BYTES(nr_bits) == expected_size; 917 BITS_ROUNDUP_BYTES(nr_bits) != expected_size) 886 btf_member_is_reg_int(const struct btf *btf, const struct btf_type *s, const struct btf_member *m, u32 expected_offset, u32 expected_size) argument
|
/linux-master/fs/btrfs/ |
H A D | extent-tree.c | 2388 u32 expected_size; local 2422 expected_size = sizeof(*ei) + btrfs_extent_inline_ref_size(BTRFS_EXTENT_DATA_REF_KEY); 2432 expected_size += btrfs_extent_inline_ref_size(BTRFS_EXTENT_OWNER_REF_KEY); 2437 if (item_size != expected_size)
|
/linux-master/net/bluetooth/ |
H A D | mgmt.c | 5363 size_t expected_size = sizeof(*cp); local 5372 expected_size += cp->pattern_count * sizeof(struct mgmt_adv_pattern); 5373 if (len != expected_size) { 5400 size_t expected_size = sizeof(*cp); local 5409 expected_size += cp->pattern_count * sizeof(struct mgmt_adv_pattern); 5410 if (len != expected_size) {
|