Lines Matching refs:part
327 int part_get_info(struct blk_desc *dev_desc, int part, in part_get_info() argument
352 if (drv->get_info(dev_desc, part, info) == 0) { in part_get_info()
451 int part; in blk_get_device_part_str() local
532 part = PART_UNSPECIFIED; in blk_get_device_part_str()
534 part = PART_AUTO; in blk_get_device_part_str()
537 part = (int)simple_strtoul(part_str, &ep, 16); in blk_get_device_part_str()
542 if (*ep || (part == 0 && !allow_whole_dev)) { in blk_get_device_part_str()
555 (part == 0)) { in blk_get_device_part_str()
568 if ((part > 0) || (!allow_whole_dev)) { in blk_get_device_part_str()
587 if (part == PART_UNSPECIFIED) in blk_get_device_part_str()
588 part = 1; in blk_get_device_part_str()
594 if (part != PART_AUTO) { in blk_get_device_part_str()
595 ret = part_get_info(*dev_desc, part, info); in blk_get_device_part_str()
597 printf("** Invalid partition %d **\n", part); in blk_get_device_part_str()
605 part = 0; in blk_get_device_part_str()
615 if (!part || info->bootable) in blk_get_device_part_str()
616 part = p; in blk_get_device_part_str()
627 if (part == p) in blk_get_device_part_str()
631 if (part) { in blk_get_device_part_str()
653 ret = part; in blk_get_device_part_str()