• Home
  • Raw
  • Download

Lines Matching refs:master

38 	struct mtd_info *master = mtd_get_master(parent);  in allocate_partition()  local
40 master->writesize : master->erasesize; in allocate_partition()
164 child->erasesize = master->erasesize; in allocate_partition()
199 if (master->_block_isbad) { in allocate_partition()
242 struct mtd_info *master = mtd_get_master(parent); in mtd_add_partition() local
269 mutex_lock(&master->master.partitions_lock); in mtd_add_partition()
271 mutex_unlock(&master->master.partitions_lock); in mtd_add_partition()
282 mutex_lock(&master->master.partitions_lock); in mtd_add_partition()
284 mutex_unlock(&master->master.partitions_lock); in mtd_add_partition()
354 struct mtd_info *master = mtd_get_master(mtd); in del_mtd_partitions() local
359 mutex_lock(&master->master.partitions_lock); in del_mtd_partitions()
361 mutex_unlock(&master->master.partitions_lock); in del_mtd_partitions()
368 struct mtd_info *child, *master = mtd_get_master(mtd); in mtd_del_partition() local
371 mutex_lock(&master->master.partitions_lock); in mtd_del_partition()
378 mutex_unlock(&master->master.partitions_lock); in mtd_del_partition()
397 struct mtd_info *child, *master = mtd_get_master(parent); in add_mtd_partitions() local
411 mutex_lock(&master->master.partitions_lock); in add_mtd_partitions()
413 mutex_unlock(&master->master.partitions_lock); in add_mtd_partitions()
417 mutex_lock(&master->master.partitions_lock); in add_mtd_partitions()
419 mutex_unlock(&master->master.partitions_lock); in add_mtd_partitions()
436 del_mtd_partitions(master); in add_mtd_partitions()
516 struct mtd_info *master, in mtd_part_do_parse() argument
522 ret = (*parser->parse_fn)(master, &pparts->parts, data); in mtd_part_do_parse()
523 pr_debug("%s: parser %s: %i\n", master->name, parser->name, ret); in mtd_part_do_parse()
528 parser->name, master->name); in mtd_part_do_parse()
575 static int mtd_part_of_parse(struct mtd_info *master, in mtd_part_of_parse() argument
585 np = mtd_get_of_node(master); in mtd_part_of_parse()
586 if (mtd_is_partition(master)) in mtd_part_of_parse()
595 ret = mtd_part_do_parse(parser, master, pparts, NULL); in mtd_part_of_parse()
616 ret = mtd_part_do_parse(parser, master, pparts, NULL); in mtd_part_of_parse()
645 int parse_mtd_partitions(struct mtd_info *master, const char *const *types, in parse_mtd_partitions() argument
653 types = mtd_is_partition(master) ? default_subpartition_types : in parse_mtd_partitions()
663 ret = mtd_part_of_parse(master, &pparts); in parse_mtd_partitions()
665 pr_debug("%s: parsing partitions %s\n", master->name, in parse_mtd_partitions()
670 pr_debug("%s: got parser %s\n", master->name, in parse_mtd_partitions()
674 ret = mtd_part_do_parse(parser, master, &pparts, data); in parse_mtd_partitions()
680 err = add_mtd_partitions(master, pparts.parts, in parse_mtd_partitions()
714 struct mtd_info *master = mtd_get_master((struct mtd_info *)mtd); in mtd_get_device_size() local
716 return master->size; in mtd_get_device_size()