Lines Matching refs:slot
58 uint32_t slot;
63 .slot = NONE,
72 OPT("slot", 's', arg_uint32, opt, slot,
99 slot_has_valid_firmware(int fd, int slot)
108 if (fw.revision[slot-1][0] != '\0')
201 activate_firmware(int fd, int slot, int activate_action)
208 pt.cmd.cdw10 = htole32((activate_action << 3) | slot);
243 if (opt.slot == 0) {
245 "0 is not a valid slot number. "
248 } else if (opt.slot > 7 && opt.slot != NONE) {
251 "greater than max allowed slot number of "
264 if (opt.activate && opt.fw_img == NULL && opt.slot == 0) {
289 if (opt.fw_img && opt.slot == 1 && fw_slot1_ro)
290 errx(EX_UNAVAILABLE, "slot %d is marked as read only", opt.slot);
294 if (opt.slot > fw_num_slots)
296 "slot %d specified but controller only supports %d slots",
297 opt.slot, fw_num_slots);
300 !slot_has_valid_firmware(fd, opt.slot))
302 "slot %d does not contain valid firmware,\n"
305 opt.slot, opt.dev);
348 reboot_required = activate_firmware(fd, opt.slot, activate_action);