Lines Matching refs:pconf
516 static int parse_hwpart_user(struct mmc_hwpart_conf *pconf, in parse_hwpart_user() argument
521 memset(&pconf->user, 0, sizeof(pconf->user)); in parse_hwpart_user()
527 pconf->user.enh_start = in parse_hwpart_user()
529 pconf->user.enh_size = in parse_hwpart_user()
535 pconf->user.wr_rel_change = 1; in parse_hwpart_user()
537 pconf->user.wr_rel_set = 1; in parse_hwpart_user()
539 pconf->user.wr_rel_set = 0; in parse_hwpart_user()
550 static int parse_hwpart_gp(struct mmc_hwpart_conf *pconf, int pidx, in parse_hwpart_gp() argument
555 memset(&pconf->gp_part[pidx], 0, sizeof(pconf->gp_part[pidx])); in parse_hwpart_gp()
559 pconf->gp_part[pidx].size = simple_strtoul(argv[0], NULL, 10); in parse_hwpart_gp()
564 pconf->gp_part[pidx].enhanced = 1; in parse_hwpart_gp()
569 pconf->gp_part[pidx].wr_rel_change = 1; in parse_hwpart_gp()
571 pconf->gp_part[pidx].wr_rel_set = 1; in parse_hwpart_gp()
573 pconf->gp_part[pidx].wr_rel_set = 0; in parse_hwpart_gp()
588 struct mmc_hwpart_conf pconf = { }; in do_mmc_hwpartition() local
602 r = parse_hwpart_user(&pconf, argc-i, &argv[i]); in do_mmc_hwpartition()
611 r = parse_hwpart_gp(&pconf, pidx, argc-i, &argv[i]); in do_mmc_hwpartition()
630 if (pconf.user.enh_size) { in do_mmc_hwpartition()
632 print_size(((u64)pconf.user.enh_start) << 9, "\n"); in do_mmc_hwpartition()
634 print_size(((u64)pconf.user.enh_size) << 9, "\n"); in do_mmc_hwpartition()
638 if (pconf.user.wr_rel_change) in do_mmc_hwpartition()
640 pconf.user.wr_rel_set ? "on" : "off"); in do_mmc_hwpartition()
642 if (pconf.gp_part[pidx].size) { in do_mmc_hwpartition()
644 print_size(((u64)pconf.gp_part[pidx].size) << 9, in do_mmc_hwpartition()
645 pconf.gp_part[pidx].enhanced ? in do_mmc_hwpartition()
650 if (pconf.gp_part[pidx].wr_rel_change) in do_mmc_hwpartition()
652 pconf.gp_part[pidx].wr_rel_set ? "on" : "off"); in do_mmc_hwpartition()
655 if (!mmc_hwpart_config(mmc, &pconf, mode)) { in do_mmc_hwpartition()