Lines Matching refs:pparts
471 static void mtd_part_parser_cleanup_default(const struct mtd_partition *pparts, in mtd_part_parser_cleanup_default() argument
474 kfree(pparts); in mtd_part_parser_cleanup_default()
518 struct mtd_partitions *pparts, in mtd_part_do_parse() argument
523 ret = (*parser->parse_fn)(master, &pparts->parts, data); in mtd_part_do_parse()
531 pparts->nr_parts = ret; in mtd_part_do_parse()
532 pparts->parser = parser; in mtd_part_do_parse()
577 struct mtd_partitions *pparts) in mtd_part_of_parse() argument
612 ret = mtd_part_do_parse(parser, master, pparts, NULL); in mtd_part_of_parse()
635 ret = mtd_part_do_parse(parser, master, pparts, NULL); in mtd_part_of_parse()
667 struct mtd_partitions pparts = { }; in parse_mtd_partitions() local
682 ret = mtd_part_of_parse(master, &pparts); in parse_mtd_partitions()
693 ret = mtd_part_do_parse(parser, master, &pparts, data); in parse_mtd_partitions()
699 err = add_mtd_partitions(master, pparts.parts, in parse_mtd_partitions()
700 pparts.nr_parts); in parse_mtd_partitions()
701 mtd_part_parser_cleanup(&pparts); in parse_mtd_partitions()
702 return err ? err : pparts.nr_parts; in parse_mtd_partitions()