Lines Matching refs:pconf
563 static int parse_hwpart_user(struct mmc_hwpart_conf *pconf, in parse_hwpart_user() argument
568 memset(&pconf->user, 0, sizeof(pconf->user)); in parse_hwpart_user()
574 pconf->user.enh_start = in parse_hwpart_user()
576 pconf->user.enh_size = in parse_hwpart_user()
582 pconf->user.wr_rel_change = 1; in parse_hwpart_user()
584 pconf->user.wr_rel_set = 1; in parse_hwpart_user()
586 pconf->user.wr_rel_set = 0; in parse_hwpart_user()
597 static int parse_hwpart_gp(struct mmc_hwpart_conf *pconf, int pidx, in parse_hwpart_gp() argument
602 memset(&pconf->gp_part[pidx], 0, sizeof(pconf->gp_part[pidx])); in parse_hwpart_gp()
606 pconf->gp_part[pidx].size = simple_strtoul(argv[0], NULL, 10); in parse_hwpart_gp()
611 pconf->gp_part[pidx].enhanced = 1; in parse_hwpart_gp()
616 pconf->gp_part[pidx].wr_rel_change = 1; in parse_hwpart_gp()
618 pconf->gp_part[pidx].wr_rel_set = 1; in parse_hwpart_gp()
620 pconf->gp_part[pidx].wr_rel_set = 0; in parse_hwpart_gp()
635 struct mmc_hwpart_conf pconf = { }; in do_mmc_hwpartition() local
649 r = parse_hwpart_user(&pconf, argc-i, &argv[i]); in do_mmc_hwpartition()
658 r = parse_hwpart_gp(&pconf, pidx, argc-i, &argv[i]); in do_mmc_hwpartition()
677 if (pconf.user.enh_size) { in do_mmc_hwpartition()
679 print_size(((u64)pconf.user.enh_start) << 9, "\n"); in do_mmc_hwpartition()
681 print_size(((u64)pconf.user.enh_size) << 9, "\n"); in do_mmc_hwpartition()
685 if (pconf.user.wr_rel_change) in do_mmc_hwpartition()
687 pconf.user.wr_rel_set ? "on" : "off"); in do_mmc_hwpartition()
689 if (pconf.gp_part[pidx].size) { in do_mmc_hwpartition()
691 print_size(((u64)pconf.gp_part[pidx].size) << 9, in do_mmc_hwpartition()
692 pconf.gp_part[pidx].enhanced ? in do_mmc_hwpartition()
697 if (pconf.gp_part[pidx].wr_rel_change) in do_mmc_hwpartition()
699 pconf.gp_part[pidx].wr_rel_set ? "on" : "off"); in do_mmc_hwpartition()
702 if (!mmc_hwpart_config(mmc, &pconf, mode)) { in do_mmc_hwpartition()