Lines Matching full:trx
3 * Parser for TRX format partitions
57 struct trx_header trx; in parser_trx_parse() local
64 err = of_property_read_u32(np, "brcm,trx-magic", &trx_magic); in parser_trx_parse()
66 pr_err("failed to parse \"brcm,trx-magic\" DT attribute, using default: %d\n", err); in parser_trx_parse()
73 err = mtd_read(mtd, 0, sizeof(trx), &bytes_read, (uint8_t *)&trx); in parser_trx_parse()
80 if (trx.magic != trx_magic) { in parser_trx_parse()
86 if (trx.offset[2]) { in parser_trx_parse()
89 part->offset = trx.offset[i]; in parser_trx_parse()
93 if (trx.offset[i]) { in parser_trx_parse()
96 part->offset = trx.offset[i]; in parser_trx_parse()
100 if (trx.offset[i]) { in parser_trx_parse()
102 part->name = parser_trx_data_part_name(mtd, trx.offset[i]); in parser_trx_parse()
103 part->offset = trx.offset[i]; in parser_trx_parse()
123 { .compatible = "brcm,trx" },
130 .name = "trx",
136 MODULE_DESCRIPTION("Parser for TRX format partitions");