Lines Matching refs:trx
404 struct trx_header *trx;
412 trx = (struct trx_header *) buf;
426 if (le32_to_cpu(trx->magic) == TRX_MAGIC) {
428 if (trx->offsets[1] == 0)
433 off += le32_to_cpu(trx->offsets[1]);
566 struct trx_header *trx;
575 trx = (struct trx_header *) buf;
596 if (le32_to_cpu(trx->magic) == TRX_MAGIC) {
598 off = offset + (le32_to_cpu(trx->offsets[1]) & ~mask) - blocksize;
599 shift = (le32_to_cpu(trx->offsets[1]) & mask);
704 struct trx_header *trx;
709 trx = (struct trx_header *)ptr;
712 if (le32_to_cpu(trx->magic) != TRX_MAGIC) {
718 len = le32_to_cpu(trx->len);
725 crc = hndcrc32((uint8 *) &trx->flag_version,
737 if (le32_to_cpu(trx->crc32) != crc) {
747 struct trx_header *trx = NULL;
759 trx = (struct trx_header *)offset;
760 if (le32_to_cpu(trx->magic) == TRX_MAGIC &&
764 from_rootfs = (char *)((unsigned long)trx + le32_to_cpu(trx->offsets[1]));
765 rootfs_size = le32_to_cpu(trx->len) - le32_to_cpu(trx->offsets[1]);
775 * So we have to erase trx magic.
777 if (initrd_end < (unsigned long)trx)
778 trx->magic = 0;