Lines Matching refs:params
40 CgptAddParams params; in cmd_add() local
41 memset(¶ms, 0, sizeof(params)); in cmd_add()
53 params.drive_size = strtoull(optarg, &e, 0); in cmd_add()
61 params.partition = (uint32_t)strtoul(optarg, &e, 0); in cmd_add()
69 params.set_begin = 1; in cmd_add()
70 params.begin = strtoull(optarg, &e, 0); in cmd_add()
78 params.set_size = 1; in cmd_add()
79 params.size = strtoull(optarg, &e, 0); in cmd_add()
87 params.set_type = 1; in cmd_add()
88 if (CGPT_OK != SupportedType(optarg, ¶ms.type_guid) && in cmd_add()
89 CGPT_OK != StrToGuid(optarg, ¶ms.type_guid)) { in cmd_add()
95 params.set_unique = 1; in cmd_add()
96 if (CGPT_OK != StrToGuid(optarg, ¶ms.unique_guid)) { in cmd_add()
102 params.label = optarg; in cmd_add()
105 params.set_successful = 1; in cmd_add()
106 params.successful = (uint32_t)strtoul(optarg, &e, 0); in cmd_add()
112 if (params.successful < 0 || params.successful > 1) { in cmd_add()
118 params.set_tries = 1; in cmd_add()
119 params.tries = (uint32_t)strtoul(optarg, &e, 0); in cmd_add()
126 if (params.tries < 0 || params.tries > 15) { in cmd_add()
132 params.set_priority = 1; in cmd_add()
133 params.priority = (uint32_t)strtoul(optarg, &e, 0); in cmd_add()
139 if (params.priority < 0 || params.priority > 15) { in cmd_add()
145 params.set_raw = 1; in cmd_add()
146 params.raw_value = strtoull(optarg, &e, 0); in cmd_add()
182 params.drive_name = argv[optind]; in cmd_add()
184 return CgptAdd(¶ms); in cmd_add()