Lines Matching defs:offset

24 	/* current offset of firmware image */
25 size_t offset;
55 * @offset: offset to start from
59 * offset and length.
65 pldm_check_fw_space(struct pldmfw_priv *data, size_t offset, size_t length)
67 size_t expected_size = offset + length;
80 * pldm_move_fw_offset - Move the current firmware offset forward
82 * @bytes_to_move: number of bytes to move the offset forward by
84 * Check that there is enough space past the current offset, and then move the
85 * offset forward by this ammount.
95 err = pldm_check_fw_space(data, data->offset, bytes_to_move);
99 data->offset += bytes_to_move;
153 err = pldm_check_fw_space(data, data->offset, header_size);
176 data->offset);
253 * From the current offset, read and extract the descriptor TLVs, updating the
254 * current offset each time.
265 desc_start = data->fw->data + data->offset;
285 /* check that we have space and move the offset forward */
338 /* Then check that we have space and move the offset */
348 bitmap_ptr = data->fw->data + data->offset;
364 record->version_string = data->fw->data + data->offset;
375 record->package_data = data->fw->data + data->offset;
381 measured_length = data->offset - ((const u8 *)__record - data->fw->data);
416 component_area = (const struct __pldmfw_component_area *)(data->fw->data + data->offset);
451 u32 offset, size;
461 offset = get_unaligned_le32(&__component->location_offset);
464 err = pldm_check_fw_space(data, offset, size);
481 component->component_data = data->fw->data + offset;
487 header_crc_ptr = data->fw->data + data->offset;
493 /* Make sure that we reached the expected offset */
494 if (data->offset != data->total_header_size) {
496 data->total_header_size, data->offset);
524 length = data->offset - sizeof(data->header_crc);