Lines Matching refs:slot
52 slot_has_valid_firmware(int fd, int slot)
60 if (fw.revision[slot-1] != 0LLU)
145 activate_firmware(int fd, int slot, int activate_action)
151 pt.cmd.cdw10 = (activate_action << 3) | slot;
178 int fd = -1, slot = 0;
195 slot = strtol(optarg, &p, 0);
198 "\"%s\" not valid slot.\n",
201 } else if (slot == 0) {
203 "0 is not a valid slot number. "
206 } else if (slot > 7) {
209 "greater than max allowed slot number of "
234 if (!f_flag && a_flag && slot == 0) {
248 if (f_flag && slot == 1 && cdata.frmw.slot1_ro)
249 errx(1, "slot %d is marked as read only", slot);
251 if (slot > cdata.frmw.num_slots)
253 "slot %d specified but controller only supports %d slots",
254 slot, cdata.frmw.num_slots);
256 if (a_flag && !f_flag && !slot_has_valid_firmware(fd, slot))
258 "slot %d does not contain valid firmware,\n"
261 slot, controller);
304 reboot_required = activate_firmware(fd, slot, activate_action);