Lines Matching refs:params
68 CgptFindParams params; in cmd_find() local
69 memset(¶ms, 0, sizeof(params)); in cmd_find()
82 params.drive_size = strtoull(optarg, &e, 0); in cmd_find()
90 params.verbose++; in cmd_find()
93 params.numeric = 1; in cmd_find()
96 params.oneonly = 1; in cmd_find()
99 params.set_label = 1; in cmd_find()
100 params.label = optarg; in cmd_find()
103 params.set_type = 1; in cmd_find()
104 if (CGPT_OK != SupportedType(optarg, ¶ms.type_guid) && in cmd_find()
105 CGPT_OK != StrToGuid(optarg, ¶ms.type_guid)) { in cmd_find()
111 params.set_unique = 1; in cmd_find()
112 if (CGPT_OK != StrToGuid(optarg, ¶ms.unique_guid)) { in cmd_find()
118 params.matchbuf = ReadFile(optarg, ¶ms.matchlen); in cmd_find()
119 if (!params.matchbuf || !params.matchlen) { in cmd_find()
124 params.comparebuf = (uint8_t *)malloc(params.matchlen); in cmd_find()
125 if (!params.comparebuf) { in cmd_find()
127 params.matchlen); in cmd_find()
132 params.matchoffset = strtoull(optarg, &e, 0); in cmd_find()
155 if (!params.set_unique && !params.set_type && !params.set_label) { in cmd_find()
167 params.drive_name = argv[i]; in cmd_find()
168 CgptFind(¶ms); in cmd_find()
171 CgptFind(¶ms); in cmd_find()
174 if (params.oneonly && params.hits != 1) { in cmd_find()
178 if (params.match_partnum) { in cmd_find()