Searched refs:expected_size (Results 1 - 25 of 25) sorted by relevance

/linux-master/drivers/greybus/
H A Dmanifest.c104 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 Dfortify_kunit.c185 #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 Dpldmfw.c67 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 Dgoodix_fwupload.c47 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 Dload.c383 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 Dacpi.c107 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 Duefi.c83 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 Dsve-ptrace.c518 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 Dipc3-control.c559 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 Drx.c819 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 Ddrm_property.h285 ssize_t expected_size,
/linux-master/drivers/gpu/drm/
H A Ddrm_property.c760 * @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 Dmegaraid_sas_fp.c312 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 Dintel_bios.c2740 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 Dcdc-acm.c376 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 Dasus_atk0110.c332 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 Dbtf.h219 u32 expected_offset, u32 expected_size);
H A Dbpf.h2477 int bpf_check_uarg_tail_zero(bpfptr_t uaddr, size_t expected_size,
/linux-master/drivers/net/wireless/ath/wil6210/
H A Dwmi.c1480 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 Daf_packet.c4558 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 Dsyscall.c85 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 Dverifier.c16097 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 Dbtf.c888 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 Dextent-tree.c2388 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 Dmgmt.c5363 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) {

Completed in 503 milliseconds