Lines Matching refs:trx
467 struct trx_header *trx;
475 trx = (struct trx_header *) buf;
489 if (le32_to_cpu(trx->magic) == TRX_MAGIC) {
491 if (trx->offsets[1] == 0)
496 off += le32_to_cpu(trx->offsets[1]);
536 struct trx_header *trx;
545 trx = (struct trx_header *) buf;
559 if (le32_to_cpu(trx->magic) == TRX_MAGIC) {
561 if (le32_to_cpu(trx->offsets[1]) > off)
562 off = le32_to_cpu(trx->offsets[1]);
656 struct trx_header *trx;
665 trx = (struct trx_header *) buf;
686 if (le32_to_cpu(trx->magic) == TRX_MAGIC) {
688 off = offset + (le32_to_cpu(trx->offsets[1]) & ~mask) - blocksize;
689 shift = (le32_to_cpu(trx->offsets[1]) & mask);
795 struct trx_header *trx;
800 trx = (struct trx_header *)ptr;
803 if (le32_to_cpu(trx->magic) != TRX_MAGIC) {
809 len = le32_to_cpu(trx->len);
816 crc = hndcrc32((uint8 *) &trx->flag_version,
828 if (le32_to_cpu(trx->crc32) != crc) {
838 struct trx_header *trx = NULL;
850 trx = (struct trx_header *)offset;
851 if (le32_to_cpu(trx->magic) == TRX_MAGIC &&
855 from_rootfs = (char *)((unsigned long)trx + le32_to_cpu(trx->offsets[1]));
856 rootfs_size = le32_to_cpu(trx->len) - le32_to_cpu(trx->offsets[1]);
866 * So we have to erase trx magic.
868 if (initrd_end < (unsigned long)trx)
869 trx->magic = 0;