Lines Matching refs:pidx
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()
590 int i, r, pidx; in do_mmc_hwpartition() local
609 pidx = argv[i][2] - '1'; in do_mmc_hwpartition()
611 r = parse_hwpart_gp(&pconf, pidx, argc-i, &argv[i]); in do_mmc_hwpartition()
641 for (pidx = 0; pidx < 4; pidx++) { in do_mmc_hwpartition()
642 if (pconf.gp_part[pidx].size) { in do_mmc_hwpartition()
643 printf("\tGP%i Capacity: ", pidx+1); 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()
648 printf("\tNo GP%i partition\n", pidx+1); in do_mmc_hwpartition()
650 if (pconf.gp_part[pidx].wr_rel_change) in do_mmc_hwpartition()
651 printf("\tGP%i write reliability: %s\n", pidx+1, in do_mmc_hwpartition()
652 pconf.gp_part[pidx].wr_rel_set ? "on" : "off"); in do_mmc_hwpartition()