Lines Matching refs:size
70 if (data->fw->size < expected_size) {
71 dev_dbg(dev, "Firmware file size smaller than expected. Got %zu bytes, needed %zu bytes\n",
72 data->fw->size, expected_size);
118 * * Extract the size of the component bitmap length
150 data->total_header_size = get_unaligned_le16(&header->size);
192 * @size: the length from the descriptor header
199 * Returns: zero on success, or -EINVAL if the specified size of a standard
203 pldm_check_desc_tlv_len(struct pldmfw_priv *data, u16 type, u16 size)
238 if (size != expected_size) {
240 type, size, expected_size);
270 u16 type, size;
279 size = get_unaligned_le16(&__desc->size);
281 err = pldm_check_desc_tlv_len(data, type, size);
286 err = pldm_move_fw_offset(data, size);
295 desc->size = size;
305 * pldm_parse_one_record - Verify size of one PLDM record
309 * This function checks that the record size does not exceed either the size
313 * matches the size calculated by adding the static structure length, the
451 u32 offset, size;
462 size = get_unaligned_le32(&__component->size);
464 err = pldm_check_fw_space(data, offset, size);
482 component->component_size = size;
495 dev_dbg(dev, "Invalid firmware header size. Expected %u but got %zu\n",
588 if (WARN_ON(!(data->context->dev && data->fw->data && data->fw->size)))