Lines Matching defs:offset
45 uint32_t offset[3];
373 hdr.offset[curr_idx++] = curr_offset;
434 static int otrx_extract_copy(FILE *trx, size_t offset, size_t length, char *out_path) {
454 fseek(trx, offset, SEEK_SET);
522 if (!hdr.offset[i]) {
527 if (i + 1 >= TRX_MAX_PARTS || !hdr.offset[i + 1])
528 length = le32_to_cpu(hdr.length) - le32_to_cpu(hdr.offset[i]);
530 length = le32_to_cpu(hdr.offset[i + 1]) - le32_to_cpu(hdr.offset[i]);
532 otrx_extract_copy(trx, trx_offset + le32_to_cpu(hdr.offset[i]), length, partition[i]);
550 printf("\t-o offset\t\t\toffset of TRX data in file (default: 0)\n");
555 printf("\t-b offset\t\t\t[partition] append zeros to partition till reaching absolute offset\n");
559 printf("\t-o offset\t\t\toffset of TRX data in file (default: 0)\n");