Lines Matching refs:blk_dev_desc
552 static int gpt_default(struct blk_desc *blk_dev_desc, const char *str_part) in gpt_default() argument
560 ret = set_gpt_info(blk_dev_desc, str_part, in gpt_default()
573 ret = gpt_restore(blk_dev_desc, str_disk_guid, partitions, part_count); in gpt_default()
580 static int gpt_verify(struct blk_desc *blk_dev_desc, const char *str_part) in gpt_verify() argument
583 blk_dev_desc->blksz); in gpt_verify()
591 ret = set_gpt_info(blk_dev_desc, str_part, in gpt_verify()
596 ret = gpt_verify_headers(blk_dev_desc, gpt_head, in gpt_verify()
608 ret = gpt_verify_partitions(blk_dev_desc, partitions, part_count, in gpt_verify()
821 struct blk_desc *blk_dev_desc = NULL; in do_gpt() local
835 blk_dev_desc = blk_get_dev(argv[2], dev); in do_gpt()
836 if (!blk_dev_desc) { in do_gpt()
844 ret = gpt_default(blk_dev_desc, argv[4]); in do_gpt()
846 ret = gpt_verify(blk_dev_desc, argv[4]); in do_gpt()
849 ret = do_disk_guid(blk_dev_desc, argv[4]); in do_gpt()
852 ret = do_get_gpt_info(blk_dev_desc); in do_gpt()
855 ret = do_rename_gpt_parts(blk_dev_desc, argv[1], argv[4], argv[5]); in do_gpt()