Lines Matching refs:fw_transfer
699 } QEMU_PACKED *fw_transfer = (void *)payload_in; in cmd_firmware_update_transfer() local
702 if (fw_transfer->action == CXL_FW_XFER_ACTION_ABORT) { in cmd_firmware_update_transfer()
713 offset = fw_transfer->offset * CXL_FW_XFER_ALIGNMENT; in cmd_firmware_update_transfer()
714 length = len - sizeof(*fw_transfer); in cmd_firmware_update_transfer()
720 if (fw_transfer->action == CXL_FW_XFER_ACTION_FULL || in cmd_firmware_update_transfer()
721 fw_transfer->action == CXL_FW_XFER_ACTION_INIT) { in cmd_firmware_update_transfer()
734 } else if (fw_transfer->action == CXL_FW_XFER_ACTION_CONTINUE || in cmd_firmware_update_transfer()
735 fw_transfer->action == CXL_FW_XFER_ACTION_END) { in cmd_firmware_update_transfer()
741 (fw_transfer->action == CXL_FW_XFER_ACTION_CONTINUE || in cmd_firmware_update_transfer()
742 fw_transfer->action == CXL_FW_XFER_ACTION_END)) { in cmd_firmware_update_transfer()
749 switch (fw_transfer->action) { in cmd_firmware_update_transfer()
752 if (fw_transfer->slot == 0 || in cmd_firmware_update_transfer()
753 fw_transfer->slot == cci->fw.active_slot || in cmd_firmware_update_transfer()
754 fw_transfer->slot > CXL_FW_SLOTS) { in cmd_firmware_update_transfer()
777 if (fw_transfer->action == CXL_FW_XFER_ACTION_FULL) { in cmd_firmware_update_transfer()
783 cci->fw.curr_action = fw_transfer->action; in cmd_firmware_update_transfer()
784 cci->fw.curr_slot = fw_transfer->slot; in cmd_firmware_update_transfer()