Lines Matching refs:parser

520 static int mtd_part_do_parse(struct mtd_part_parser *parser,  in mtd_part_do_parse()  argument
527 ret = (*parser->parse_fn)(master, &pparts->parts, data); in mtd_part_do_parse()
528 pr_debug("%s: parser %s: %i\n", master->name, parser->name, ret); in mtd_part_do_parse()
533 parser->name, master->name); in mtd_part_do_parse()
536 pparts->parser = parser; in mtd_part_do_parse()
583 struct mtd_part_parser *parser; in mtd_part_of_parse() local
613 parser = mtd_part_get_compatible_parser(compat); in mtd_part_of_parse()
614 if (!parser) in mtd_part_of_parse()
616 ret = mtd_part_do_parse(parser, master, pparts, NULL); in mtd_part_of_parse()
622 mtd_part_parser_put(parser); in mtd_part_of_parse()
635 parser = mtd_part_parser_get(fixed); in mtd_part_of_parse()
636 if (!parser && !request_module("%s", fixed)) in mtd_part_of_parse()
637 parser = mtd_part_parser_get(fixed); in mtd_part_of_parse()
638 if (parser) { in mtd_part_of_parse()
639 ret = mtd_part_do_parse(parser, master, pparts, NULL); in mtd_part_of_parse()
642 mtd_part_parser_put(parser); in mtd_part_of_parse()
672 struct mtd_part_parser *parser; in parse_mtd_partitions() local
690 parser = mtd_part_parser_get(*types); in parse_mtd_partitions()
691 if (!parser && !request_module("%s", *types)) in parse_mtd_partitions()
692 parser = mtd_part_parser_get(*types); in parse_mtd_partitions()
694 parser ? parser->name : NULL); in parse_mtd_partitions()
695 if (!parser) in parse_mtd_partitions()
697 ret = mtd_part_do_parse(parser, master, &pparts, data); in parse_mtd_partitions()
699 mtd_part_parser_put(parser); in parse_mtd_partitions()
720 const struct mtd_part_parser *parser; in mtd_part_parser_cleanup() local
725 parser = parts->parser; in mtd_part_parser_cleanup()
726 if (parser) { in mtd_part_parser_cleanup()
727 if (parser->cleanup) in mtd_part_parser_cleanup()
728 parser->cleanup(parts->parts, parts->nr_parts); in mtd_part_parser_cleanup()
730 mtd_part_parser_put(parser); in mtd_part_parser_cleanup()