Lines Matching refs:slot
62 slot_has_valid_firmware(int fd, int slot)
69 if (fw.revision[slot-1] != 0LLU)
154 activate_firmware(int fd, int slot, int commit_action)
160 pt.cmd.cdw10 = (commit_action << 3) | slot;
187 u_int slot = 0;
206 slot = strtol(optarg, &p, 0);
209 "\"%s\" not valid slot.\n",
212 } else if (slot == 0) {
214 "0 is not a valid slot number. "
215 "Slot numbers start at 1.\n");
217 } else if (slot > 7) {
219 "Slot number %s specified which is "
220 "greater than max allowed slot number of "
245 if (!f_flag && a_flag && slot == 0) {
247 "Slot number to activate not specified.\n");
259 if (f_flag && slot == 1 && (cdata.frmw & NVME_ID_CTRLR_FRMW_SLOT1_RO))
260 errx(1, "slot %d is marked as read only", slot);
262 if (slot > __SHIFTOUT(cdata.frmw, NVME_ID_CTRLR_FRMW_NSLOT))
264 "slot %d specified but controller only supports %d slots",
265 slot,
268 if (a_flag && !f_flag && !slot_has_valid_firmware(fd, slot))
270 "slot %d does not contain valid firmware,\n"
273 slot, controller);
316 reboot_required = activate_firmware(fd, slot, commit_action);