Lines Matching +full:safeloader +full:- +full:partitions
1 // SPDX-License-Identifier: GPL-2.0-only
9 #include <linux/mtd/partitions.h>
35 np = of_get_child_by_name(np, "partitions"); in mtd_parser_tplink_safeloader_read_table()
37 if (of_property_read_u32(np, "partitions-table-offset", &offset)) { in mtd_parser_tplink_safeloader_read_table()
38 pr_err("Failed to get partitions table offset\n"); in mtd_parser_tplink_safeloader_read_table()
44 pr_err("Failed to read from %s at 0x%x\n", mtd->name, offset); in mtd_parser_tplink_safeloader_read_table()
56 pr_err("Failed to read from %s at 0x%zx\n", mtd->name, offset + sizeof(hdr)); in mtd_parser_tplink_safeloader_read_table()
87 err = -ENOMEM; in mtd_parser_tplink_safeloader_parse()
93 err = -ENOENT; in mtd_parser_tplink_safeloader_parse()
104 err = -ENOMEM; in mtd_parser_tplink_safeloader_parse()
110 pr_warn("Reached maximum number of partitions!\n"); in mtd_parser_tplink_safeloader_parse()
119 for (idx -= 1; idx >= 0; idx--) in mtd_parser_tplink_safeloader_parse()
139 { .compatible = "tplink,safeloader-partitions" },
147 .name = "tplink-safeloader",
152 MODULE_DESCRIPTION("TP-Link Safeloader partitions parser");