Lines Matching refs:trx
572 struct trx_header *trx; in check_file() local
576 trx = (struct trx_header *)headers; in check_file()
577 if (ltoh32(trx->magic) != TRX_MAGIC) { in check_file()
578 printf("Error: trx bad hdr %x\n", ltoh32(trx->magic)); in check_file()
582 headers += SIZEOF_TRX(trx); in check_file()
586 if (ltoh32(trx->flag_version) & TRX_UNCOMP_IMAGE) { in check_file()
587 actual_len = ltoh32(trx->offsets[TRX_OFFSETS_DLFWLEN_IDX]) + in check_file()
588 SIZEOF_TRX(trx); in check_file()
590 if (ISTRX_V2(trx)) { in check_file()
591 actual_len += ltoh32(trx->offsets[TRX_OFFSETS_DSG_LEN_IDX]) + in check_file()
592 ltoh32(trx->offsets[TRX_OFFSETS_CFG_LEN_IDX]); in check_file()