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