smrt_command_t
list_create(&smrt->smrt_commands, sizeof (smrt_command_t),
offsetof(smrt_command_t, smcm_link));
list_create(&smrt->smrt_finishq, sizeof (smrt_command_t),
offsetof(smrt_command_t, smcm_link_finish));
list_create(&smrt->smrt_abortq, sizeof (smrt_command_t),
offsetof(smrt_command_t, smcm_link_abort));
sizeof (smrt_command_t), offsetof(smrt_command_t,
const smrt_command_t *l = lp;
const smrt_command_t *r = rp;
smrt_command_t *smcm;
smrt_command_t *smcm, *smcm_nop;
for (smrt_command_t *t = avl_first(&smrt->smrt_inflight);
smrt_command_t *nt;
for (smrt_command_t *t = avl_first(&smrt->smrt_inflight);
smrt_command_t *event, *cancel;
smrt_event_complete(smrt_command_t *smcm)
smrt_command_t *event, *cancel;
smrt_write_message_common(smrt_command_t *smcm, uint8_t type, int timeout_secs)
smrt_write_message_abort_one(smrt_command_t *smcm, uint32_t tag)
smrt_write_message_abort_all(smrt_command_t *smcm, LUNAddr_t *addr)
smrt_write_message_event_notify(smrt_command_t *smcm)
smrt_write_message_cancel_event_notify(smrt_command_t *smcm)
smrt_write_message_reset_ctlr(smrt_command_t *smcm)
smrt_write_message_nop(smrt_command_t *smcm, int timeout_secs)
for (smrt_command_t *smcm = avl_first(&smrt->smrt_inflight);
smrt_set_new_tag(smrt_t *smrt, smrt_command_t *smcm)
smrt_submit(smrt_t *smrt, smrt_command_t *smcm)
smrt_process_finishq_sync(smrt_command_t *smcm)
smrt_process_finishq_one(smrt_command_t *smcm)
smrt_command_t *smcm;
smrt_command_t *smcm;
smrt_command_t *abort_smcm = NULL;
smrt_poll_for(smrt_t *smrt, smrt_command_t *smcm)
smrt_submit_simple(smrt_t *smrt, smrt_command_t *smcm)
smrt_preinit_command_simple(smrt_t *smrt, smrt_command_t *smcm)
smrt_command_t *smcm;
static smrt_command_t *
smrt_command_t *smcm;
smrt_command_t *
smrt_command_t *smcm;
smrt_command_t *
smrt_command_t *smcm;
smrt_command_attach_internal(smrt_t *smrt, smrt_command_t *smcm, size_t len,
smrt_command_reuse(smrt_command_t *smcm)
smrt_command_free(smrt_command_t *smcm)
smrt_command_t *
smrt_command_t srch;
smrt_command_t *smcm;
smrt_command_t *smcm = smcms->smcms_command;
smrt_fake_report_lun(smrt_command_t *smcm, struct scsi_pkt *pkt)
smrt_command_t *smcm;
smrt_command_t *smcm;
smrt_command_t *smcm = NULL;
smrt_command_t *abort_smcm;
smrt_hba_complete_status(smrt_command_t *smcm)
smrt_hba_complete_log_error(smrt_command_t *smcm, const char *name)
smrt_hba_complete(smrt_command_t *smcm)
smrt_command_t *smcm;
smrt_command_t *smcm = NULL;
smrt_command_t *smcm;
smrt_command_t *smcm;
smrt_command_t *smrt_event_cmd;
smrt_command_t *smrt_event_cancel_cmd;
smrt_command_t *smcms_command;
int smrt_submit(smrt_t *, smrt_command_t *);
void smrt_submit_simple(smrt_t *, smrt_command_t *);
int smrt_poll_for(smrt_t *, smrt_command_t *);
int smrt_preinit_command_simple(smrt_t *, smrt_command_t *);
void smrt_hba_complete(smrt_command_t *);
smrt_command_t *smrt_command_alloc(smrt_t *, smrt_command_type_t,
smrt_command_t *smrt_command_alloc_preinit(smrt_t *, size_t, int);
int smrt_command_attach_internal(smrt_t *, smrt_command_t *, size_t,
void smrt_command_free(smrt_command_t *);
smrt_command_t *smrt_lookup_inflight(smrt_t *, uint32_t);
void smrt_command_reuse(smrt_command_t *);
void smrt_write_message_abort_one(smrt_command_t *, uint32_t);
void smrt_write_message_abort_all(smrt_command_t *, LUNAddr_t *);
void smrt_write_message_nop(smrt_command_t *, int);
void smrt_write_message_event_notify(smrt_command_t *);
void smrt_event_complete(smrt_command_t *);