Lines Matching full:trx

43 static const char * const trx_types[] = { "trx", NULL };
63 * bcm47xxpart_bootpartition - gets index of TRX partition used by bootloader
65 * Some devices may have more than one TRX partition. In such case one of them
69 * This function provides info about currently used TRX partition. It's the one
96 int trx_parts[2]; /* Array with indexes of TRX partitions */ in bcm47xxpart_parse()
97 int trx_num = 0; /* Number of found TRX partitions */ in bcm47xxpart_parse()
182 /* TRX */ in bcm47xxpart_parse()
184 struct trx_header *trx; in bcm47xxpart_parse() local
189 pr_warn("No enough space to store another TRX found at 0x%X\n", in bcm47xxpart_parse()
197 * Try to find TRX size. The "length" field isn't fully in bcm47xxpart_parse()
199 * only part of TRX data. It's commonly used as checksum in bcm47xxpart_parse()
201 * Use offsets as helpers for assuming min TRX size. in bcm47xxpart_parse()
203 trx = (struct trx_header *)buf; in bcm47xxpart_parse()
204 last_subpart = max3(trx->offset[0], trx->offset[1], in bcm47xxpart_parse()
205 trx->offset[2]); in bcm47xxpart_parse()
206 trx_size = max(trx->length, last_subpart + blocksize); in bcm47xxpart_parse()
209 * Skip the TRX data. Decrease offset by block size as in bcm47xxpart_parse()
216 /* Squashfs on devices not using TRX */ in bcm47xxpart_parse()
289 /* If there was TRX parse it now */ in bcm47xxpart_parse()
291 struct mtd_partition *trx = &parts[trx_parts[i]]; in bcm47xxpart_parse() local
294 trx->types = trx_types; in bcm47xxpart_parse()
296 trx->name = "failsafe"; in bcm47xxpart_parse()