Lines Matching refs:part_num
840 static int mmc_set_capacity(struct mmc *mmc, int part_num)
842 switch (part_num) {
857 mmc->capacity = mmc->capacity_gp[part_num - 4];
869 static int mmc_boot_part_access_chk(struct mmc *mmc, unsigned int part_num)
874 if (part_num & PART_ACCESS_MASK)
879 mmc_mode_name(mmc->selected_mode), part_num);
894 unsigned int part_num)
900 int mmc_switch_part(struct mmc *mmc, unsigned int part_num)
904 ret = mmc_boot_part_access_chk(mmc, part_num);
910 | (part_num & PART_ACCESS_MASK));
916 if ((ret == 0) || ((ret == -ENODEV) && (part_num == 0))) {
917 ret = mmc_set_capacity(mmc, part_num);
918 mmc_get_blk_desc(mmc)->hwpart = part_num;