usr/src/cmd/mdb/common/modules/stmf/stmf.c
863
struct fct_cmd cmd;
usr/src/cmd/mdb/common/modules/stmf/stmf.c
870
if (mdb_vread(&cmd, sizeof (struct fct_cmd),
usr/src/cmd/mdb/common/modules/stmf/stmf.c
871
(uintptr_t)icmd.icmd_cmd) != sizeof (struct fct_cmd)) {
usr/src/cmd/mdb/common/modules/stmf/stmf.c
910
struct fct_cmd cmd;
usr/src/cmd/mdb/common/modules/stmf/stmf.c
918
if (mdb_vread(&cmd, sizeof (struct fct_cmd),
usr/src/cmd/mdb/common/modules/stmf/stmf.c
919
(uintptr_t)icmd.icmd_cmd) != sizeof (struct fct_cmd)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
160
emlxs_fct_io_trace(emlxs_port_t *port, fct_cmd_t *fct_cmd, uint32_t data)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1664
emlxs_fct_send_cmd(fct_cmd_t *fct_cmd)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1668
port = (emlxs_port_t *)fct_cmd->cmd_port->port_fca_private;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1672
"fct_send_cmd %p:%p x%x", fct_cmd,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1673
fct_cmd->cmd_fca_private, fct_cmd->cmd_type);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1676
switch (fct_cmd->cmd_type) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1679
return (emlxs_fct_send_els_cmd(fct_cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1683
return (emlxs_fct_send_ct_cmd(fct_cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1689
fct_cmd->cmd_type);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1699
emlxs_fct_send_cmd_rsp(fct_cmd_t *fct_cmd, uint32_t ioflags)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1708
port = (emlxs_port_t *)fct_cmd->cmd_port->port_fca_private;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1710
rval = emlxs_fct_cmd_accept(port, fct_cmd, EMLXS_FCT_SEND_CMD_RSP);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1715
fct_cmd->cmd_type);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1721
cmd_sbp = (emlxs_buf_t *)fct_cmd->cmd_fca_private;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1730
fct_cmd, cmd_sbp, fct_cmd->cmd_type, iocb->ULPCT, status);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1733
switch (fct_cmd->cmd_type) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1747
emlxs_fct_cmd_done(port, fct_cmd, EMLXS_FCT_IO_DONE);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1753
fct_cmd, fct_cmd->cmd_comp_status);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1757
MODSYM(fct_send_response_done) (fct_cmd,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1758
fct_cmd->cmd_comp_status, FCT_IOF_FCA_DONE);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1763
rval = emlxs_fct_send_fcp_status(fct_cmd);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1777
rval = emlxs_fct_send_els_rsp(fct_cmd);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1785
fct_cmd->cmd_handle = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1790
fct_cmd->cmd_type);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1792
emlxs_fct_cmd_post(port, fct_cmd, EMLXS_FCT_CMD_POSTED);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1803
fct_cmd->cmd_type);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1805
emlxs_fct_cmd_post(port, fct_cmd, EMLXS_FCT_CMD_POSTED);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
183
if ((iop->fct_cmd == fct_cmd) &&
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
193
fct_cmd);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2043
fct_remote_port_t *remote_port, fct_cmd_t *fct_cmd)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2047
emlxs_buf_t *cmd_sbp = (emlxs_buf_t *)fct_cmd->cmd_fca_private;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2068
cmd_sbp = emlxs_fct_cmd_init(port, fct_cmd,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2077
rval = emlxs_fct_cmd_accept(port, fct_cmd,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2083
fct_cmd->cmd_lportid, fct_cmd->cmd_rportid);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2091
cmd_sbp->node = emlxs_node_find_did(port, fct_cmd->cmd_rportid, 1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2095
els = (fct_els_t *)fct_cmd->cmd_specific;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
210
fct_cmd, data);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2112
addr = (uint64_t)((unsigned long)fct_cmd);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2125
port->did = fct_cmd->cmd_lportid;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2126
port->rdid = fct_cmd->cmd_rportid;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2148
fct_cmd->cmd_lportid, fct_cmd->cmd_rportid, cmd_sbp->fct_state,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2149
hba->flag, fct_cmd);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2151
emlxs_fct_cmd_release(port, fct_cmd, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2155
if (EMLXS_SLI_REG_DID(port, fct_cmd->cmd_rportid, sp, cmd_sbp,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2160
fct_cmd->cmd_lportid, fct_cmd->cmd_rportid);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2177
rval2 = emlxs_fct_cmd_acquire(port, fct_cmd,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
218
iop->fct_cmd = fct_cmd;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2183
fct_cmd->cmd_lportid, fct_cmd->cmd_rportid);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
219
iop->xri = fct_cmd->cmd_rxid;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2201
if (fct_cmd->cmd_rportid == SCR_DID) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2233
fct_cmd->cmd_lportid, fct_cmd->cmd_rportid,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2236
emlxs_fct_cmd_post(port, fct_cmd, EMLXS_FCT_CMD_POSTED);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2246
fct_cmd->cmd_lportid, fct_cmd->cmd_rportid,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2251
emlxs_fct_cmd_post(port, fct_cmd, EMLXS_FCT_CMD_POSTED);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
228
if ((iop->fct_cmd == fct_cmd) &&
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2310
fct_cmd_t *fct_cmd;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2365
fct_cmd =
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2368
if (fct_cmd == NULL) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2381
fct_cmd->cmd_rportid = sid;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2382
fct_cmd->cmd_lportid = port->did;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2383
fct_cmd->cmd_rp_handle = hdl;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2384
fct_cmd->cmd_port = port->fct_port;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2386
cmd_sbp = emlxs_fct_cmd_init(port, fct_cmd, EMLXS_FCT_FCP_CMD_RECEIVED);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2393
fct_cmd, cmd_sbp, fcp_cmd->fcpCdb[0], sid, iocb->ULPCONTEXT,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
241
fct_cmd, data);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2411
fct_cmd->cmd_oxid = cmd_sbp->xrip->rx_id;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2412
fct_cmd->cmd_rxid = cmd_sbp->xrip->XRI;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2417
fct_cmd->cmd_oxid, fct_cmd->cmd_rxid, cmd_sbp->xrip->iotag,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2422
fct_cmd->cmd_oxid = iocb->unsli3.ext_rcv.oxid;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2423
if (!fct_cmd->cmd_oxid) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2424
fct_cmd->cmd_oxid = 0xFFFF;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2426
fct_cmd->cmd_rxid = iocb->ULPCONTEXT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2430
fct_task = (scsi_task_t *)fct_cmd->cmd_specific;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2506
emlxs_fct_cmd_post(port, fct_cmd, EMLXS_FCT_CMD_POSTED);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
251
fct_cmd, data);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2512
fct_cmd, cmd_sbp, fct_cmd->cmd_lportid,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2517
MODSYM(fct_post_rcvd_cmd) (fct_cmd, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2532
emlxs_fct_send_fcp_data(fct_cmd_t *fct_cmd, stmf_data_buf_t *dbuf,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2536
(emlxs_port_t *)fct_cmd->cmd_port->port_fca_private;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2549
rval = emlxs_fct_cmd_accept(port, fct_cmd, EMLXS_FCT_SEND_FCP_DATA);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
255
if (iop->xri != fct_cmd->cmd_rxid) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2554
fct_cmd->cmd_rportid);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2560
cmd_sbp = (emlxs_buf_t *)fct_cmd->cmd_fca_private;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2562
fct_task = (scsi_task_t *)fct_cmd->cmd_specific;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2564
ndlp = *(emlxs_node_t **)fct_cmd->cmd_rp->rp_fca_private;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2581
fct_cmd, cmd_sbp, dbuf->db_flags, ioflags,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2592
emlxs_fct_cmd_post(port, fct_cmd, EMLXS_FCT_CMD_POSTED);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
260
iop->xri, fct_cmd->cmd_rxid, fct_cmd, data);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2606
emlxs_fct_cmd_post(port, fct_cmd, EMLXS_FCT_CMD_POSTED);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2617
emlxs_fct_cmd_release(port, fct_cmd, EMLXS_FCT_DATA_PENDING);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2630
emlxs_fct_send_fcp_status(fct_cmd_t *fct_cmd)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2633
(emlxs_port_t *)fct_cmd->cmd_port->port_fca_private;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2645
fct_task = (scsi_task_t *)fct_cmd->cmd_specific;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2646
ndlp = *(emlxs_node_t **)fct_cmd->cmd_rp->rp_fca_private;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2647
did = fct_cmd->cmd_rportid;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2650
cmd_sbp = (emlxs_buf_t *)fct_cmd->cmd_fca_private;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2652
EMLXS_FCT_STATE_CHG(fct_cmd, cmd_sbp, EMLXS_FCT_SEND_FCP_STATUS);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2663
fct_cmd, cmd_sbp, fct_task->task_scsi_status,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2664
fct_task->task_resid, size, fct_cmd->cmd_rxid, fct_cmd->cmd_oxid);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2671
emlxs_fct_cmd_post(port, fct_cmd, EMLXS_FCT_CMD_POSTED);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2679
sbp = emlxs_fct_pkt_init(port, fct_cmd, pkt);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2698
pkt->pkt_cmd_fhdr.ox_id = fct_cmd->cmd_oxid;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2699
pkt->pkt_cmd_fhdr.rx_id = fct_cmd->cmd_rxid;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2754
emlxs_fct_cmd_release(port, fct_cmd, EMLXS_FCT_STATUS_PENDING);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2767
rval = emlxs_fct_cmd_acquire(port, fct_cmd, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2776
emlxs_fct_cmd_post(port, fct_cmd, EMLXS_FCT_CMD_POSTED);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2872
fct_cmd_t *fct_cmd;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2901
fct_cmd = sbp->fct_cmd;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2907
fct_cmd, sbp, iocb->ULPCOMMAND, status, iocb->ULPCT);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2910
if (fct_cmd == NULL) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2919
rval = emlxs_fct_cmd_acquire(port, fct_cmd, EMLXS_FCT_REQ_COMPLETE);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2924
fct_cmd->cmd_type);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2930
cmd_sbp = (emlxs_buf_t *)fct_cmd->cmd_fca_private;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2938
fct_cmd->cmd_comp_status = FCT_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2947
fct_cmd->cmd_comp_status = FCT_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2949
emlxs_fct_cmd_post(port, fct_cmd, EMLXS_FCT_OWNED);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2955
fct_cmd, fct_cmd->cmd_comp_status);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2958
MODSYM(fct_queue_cmd_for_termination) (fct_cmd,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2987
(scsi_task_t *)fct_cmd->cmd_specific;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2990
(void) emlxs_fct_send_fcp_status(fct_cmd);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3003
(scsi_task_t *)fct_cmd->cmd_specific;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3013
emlxs_fct_cmd_post(port, fct_cmd, EMLXS_FCT_CMD_POSTED);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3018
"fct_scsi_data_xfer_done:1 %p %p", fct_cmd, dbuf);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3021
MODSYM(fct_scsi_data_xfer_done) (fct_cmd, dbuf, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3034
emlxs_fct_cmd_done(port, fct_cmd, EMLXS_FCT_IO_DONE);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3043
fct_cmd, fct_buf, TGTPORTSTAT.FctOutstandingIO);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3046
MODSYM(fct_scsi_data_xfer_done) (fct_cmd,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3052
fct_cmd, fct_cmd->cmd_comp_status,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3056
MODSYM(fct_send_response_done) (fct_cmd,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3057
fct_cmd->cmd_comp_status, FCT_IOF_FCA_DONE);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3062
emlxs_fct_cmd_release(port, fct_cmd, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3127
sbp->fct_cmd, sbp,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3172
fct_cmd_t *fct_cmd;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3276
fct_cmd = (fct_cmd_t *)MODSYM(fct_alloc) (FCT_STRUCT_CMD_RCVD_ELS,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3286
fct_cmd, iocb->ULPCONTEXT, *ptr, *(ptr + 1));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3290
if (fct_cmd == NULL) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3301
fct_cmd->cmd_oxid = (cmd_code >> ELS_CMD_SHIFT) & 0xff;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3302
fct_cmd->cmd_rxid = iocb->ULPCONTEXT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3303
fct_cmd->cmd_rportid = sid;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3304
fct_cmd->cmd_lportid = port->did;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3305
fct_cmd->cmd_rp_handle = FCT_HANDLE_NONE;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3306
fct_cmd->cmd_port = port->fct_port;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3308
cmd_sbp = emlxs_fct_cmd_init(port, fct_cmd, EMLXS_FCT_ELS_CMD_RECEIVED);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3320
els = (fct_els_t *)fct_cmd->cmd_specific;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3323
GET_BYTE_OFFSET(fct_cmd->cmd_fca_private,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3331
emlxs_fct_cmd_post(port, fct_cmd, EMLXS_FCT_CMD_POSTED);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3336
"fct_post_rcvd_cmd:4 %p: portid x%x", fct_cmd,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3337
fct_cmd->cmd_lportid);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3340
MODSYM(fct_post_rcvd_cmd) (fct_cmd, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3358
emlxs_fct_cmd_post(port, fct_cmd, EMLXS_FCT_CMD_POSTED);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3363
"fct_post_rcvd_cmd:1 %p: portid x%x", fct_cmd,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3364
fct_cmd->cmd_lportid);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3367
MODSYM(fct_post_rcvd_cmd) (fct_cmd, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3378
emlxs_fct_cmd_release(port, fct_cmd, EMLXS_FCT_CMD_WAITQ);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3458
emlxs_fct_pkt_init(emlxs_port_t *port, fct_cmd_t *fct_cmd,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3464
cmd_sbp = (emlxs_buf_t *)fct_cmd->cmd_fca_private;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3467
sbp->fct_cmd = cmd_sbp->fct_cmd;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3485
emlxs_fct_cmd_init(emlxs_port_t *port, fct_cmd_t *fct_cmd, uint16_t fct_state)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3488
emlxs_buf_t *cmd_sbp = (emlxs_buf_t *)fct_cmd->cmd_fca_private;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3499
cmd_sbp->fct_cmd = fct_cmd;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3500
cmd_sbp->node = (fct_cmd->cmd_rp) ?
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3501
*(emlxs_node_t **)fct_cmd->cmd_rp->rp_fca_private : NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3504
cmd_sbp->did = fct_cmd->cmd_rportid;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3507
if ((fct_cmd->cmd_oxid == 0) && (fct_cmd->cmd_rxid == 0)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3508
fct_cmd->cmd_oxid = 0xffff;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3509
fct_cmd->cmd_rxid = 0xffff;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3513
EMLXS_FCT_STATE_CHG(fct_cmd, cmd_sbp, fct_state);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3523
emlxs_fct_cmd_accept(emlxs_port_t *port, fct_cmd_t *fct_cmd, uint16_t fct_state)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3525
emlxs_buf_t *cmd_sbp = (emlxs_buf_t *)fct_cmd->cmd_fca_private;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3531
fct_cmd, fct_state);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3544
fct_cmd, fct_state);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3554
fct_cmd, fct_state);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3556
emlxs_fct_cmd_done(port, fct_cmd, EMLXS_FCT_ABORT_DONE);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3559
MODSYM(fct_cmd_fca_aborted) (fct_cmd,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3573
fct_cmd, fct_state);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3581
EMLXS_FCT_STATE_CHG(fct_cmd, cmd_sbp, fct_state);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3591
emlxs_fct_cmd_acquire(emlxs_port_t *port, fct_cmd_t *fct_cmd,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3594
emlxs_buf_t *cmd_sbp = (emlxs_buf_t *)fct_cmd->cmd_fca_private;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3596
if ((fct_cmd->cmd_oxid == 0) && (fct_cmd->cmd_rxid == 0)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3600
fct_cmd, fct_state);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3609
fct_cmd, fct_state);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3618
fct_cmd, fct_state);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3625
if ((fct_cmd->cmd_oxid == 0) && (fct_cmd->cmd_rxid == 0)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3631
fct_cmd, fct_state);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3642
fct_cmd, fct_state);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3653
fct_cmd, fct_state);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3663
fct_cmd, fct_state);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3665
if (fct_cmd->cmd_type == FCT_CMD_FCP_XCHG) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3669
fct_cmd->cmd_comp_status = FCT_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3671
emlxs_fct_cmd_done(port, fct_cmd, EMLXS_FCT_ABORT_DONE);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3674
MODSYM(fct_cmd_fca_aborted) (fct_cmd,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3681
EMLXS_FCT_STATE_CHG(fct_cmd, cmd_sbp, fct_state);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3694
emlxs_fct_cmd_release(emlxs_port_t *port, fct_cmd_t *fct_cmd,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3697
emlxs_buf_t *cmd_sbp = (emlxs_buf_t *)fct_cmd->cmd_fca_private;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3700
EMLXS_FCT_STATE_CHG(fct_cmd, cmd_sbp, fct_state);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3715
emlxs_fct_cmd_post(emlxs_port_t *port, fct_cmd_t *fct_cmd,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3718
emlxs_buf_t *cmd_sbp = (emlxs_buf_t *)fct_cmd->cmd_fca_private;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3730
EMLXS_FCT_STATE_CHG(fct_cmd, cmd_sbp, fct_state);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3747
emlxs_fct_cmd_done(emlxs_port_t *port, fct_cmd_t *fct_cmd, uint16_t fct_state)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3750
emlxs_buf_t *cmd_sbp = (emlxs_buf_t *)fct_cmd->cmd_fca_private;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3754
fct_cmd->cmd_oxid = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3755
fct_cmd->cmd_rxid = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3779
EMLXS_FCT_STATE_CHG(fct_cmd, cmd_sbp, fct_state);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3810
fct_cmd_t *fct_cmd;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3820
fct_cmd = sbp->fct_cmd;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3822
rval = emlxs_fct_cmd_acquire(port, fct_cmd, EMLXS_FCT_PKT_COMPLETE);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3831
cmd_sbp = (emlxs_buf_t *)fct_cmd->cmd_fca_private;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3835
switch (fct_cmd->cmd_type) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3846
emlxs_fct_cmd_post(port, fct_cmd, EMLXS_FCT_OWNED);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3852
fct_cmd, cmd_sbp, fct_cmd->cmd_comp_status);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3855
MODSYM(fct_queue_cmd_for_termination) (fct_cmd,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3861
EMLXS_FCT_STATE_CHG(fct_cmd, cmd_sbp,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3864
emlxs_fct_cmd_done(port, fct_cmd, EMLXS_FCT_IO_DONE);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3870
fct_cmd, cmd_sbp, fct_cmd->cmd_comp_status,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3880
MODSYM(fct_send_response_done) (fct_cmd,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3881
fct_cmd->cmd_comp_status, FCT_IOF_FCA_DONE);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3887
EMLXS_FCT_STATE_CHG(fct_cmd, cmd_sbp,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3890
emlxs_fct_cmd_done(port, fct_cmd, EMLXS_FCT_IO_DONE);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3896
fct_cmd, cmd_sbp, fct_cmd->cmd_comp_status);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3899
MODSYM(fct_send_response_done) (fct_cmd,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3900
fct_cmd->cmd_comp_status, FCT_IOF_FCA_DONE);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3906
EMLXS_FCT_STATE_CHG(fct_cmd, cmd_sbp,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3909
fct_els = (fct_els_t *)fct_cmd->cmd_specific;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3920
emlxs_fct_cmd_done(port, fct_cmd, EMLXS_FCT_IO_DONE);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3926
fct_cmd, cmd_sbp, fct_cmd->cmd_comp_status);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3936
MODSYM(fct_send_cmd_done) (fct_cmd, FCT_FAILURE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3943
MODSYM(fct_send_cmd_done) (fct_cmd, FCT_SUCCESS,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3950
EMLXS_FCT_STATE_CHG(fct_cmd, cmd_sbp,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3953
fct_ct = (fct_sol_ct_t *)fct_cmd->cmd_specific;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3964
emlxs_fct_cmd_done(port, fct_cmd, EMLXS_FCT_IO_DONE);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3970
fct_cmd, cmd_sbp, fct_cmd->cmd_comp_status);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3980
MODSYM(fct_send_cmd_done) (fct_cmd, FCT_FAILURE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3986
MODSYM(fct_send_cmd_done) (fct_cmd, FCT_SUCCESS,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3994
fct_cmd->cmd_type);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3996
emlxs_fct_cmd_done(port, fct_cmd, EMLXS_FCT_IO_DONE);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
40
fct_cmd_t *fct_cmd, uint16_t fct_state);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4024
sbp->fct_cmd, sbp,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4036
emlxs_fct_send_els_cmd(fct_cmd_t *fct_cmd)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4039
(emlxs_port_t *)fct_cmd->cmd_port->port_fca_private;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4048
did = fct_cmd->cmd_rportid;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4049
sid = fct_cmd->cmd_lportid;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4050
fct_els = (fct_els_t *)fct_cmd->cmd_specific;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4060
cmd_sbp = emlxs_fct_cmd_init(port, fct_cmd, EMLXS_FCT_SEND_ELS_REQ);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4066
(void) emlxs_fct_pkt_init(port, fct_cmd, pkt);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4098
emlxs_fct_cmd_release(port, fct_cmd, EMLXS_FCT_REQ_PENDING);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4107
rval = emlxs_fct_cmd_acquire(port, fct_cmd, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4116
emlxs_fct_cmd_post(port, fct_cmd, EMLXS_FCT_OWNED);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4130
emlxs_fct_send_els_rsp(fct_cmd_t *fct_cmd)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4133
(emlxs_port_t *)fct_cmd->cmd_port->port_fca_private;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4142
fct_els = (fct_els_t *)fct_cmd->cmd_specific;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4143
did = fct_cmd->cmd_rportid;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4144
sid = fct_cmd->cmd_lportid;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4145
cmd_sbp = (emlxs_buf_t *)fct_cmd->cmd_fca_private;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4152
emlxs_fct_cmd_post(port, fct_cmd, EMLXS_FCT_CMD_POSTED);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4158
EMLXS_FCT_STATE_CHG(fct_cmd, cmd_sbp, EMLXS_FCT_SEND_ELS_RSP);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4162
(void) emlxs_fct_pkt_init(port, fct_cmd, pkt);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4181
pkt->pkt_cmd_fhdr.ox_id = fct_cmd->cmd_oxid;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4182
pkt->pkt_cmd_fhdr.rx_id = fct_cmd->cmd_rxid;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4190
emlxs_fct_cmd_release(port, fct_cmd, EMLXS_FCT_RSP_PENDING);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4199
rval = emlxs_fct_cmd_acquire(port, fct_cmd, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
42
fct_cmd_t *fct_cmd, uint16_t fct_state);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4208
emlxs_fct_cmd_post(port, fct_cmd, EMLXS_FCT_CMD_POSTED);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4221
emlxs_fct_send_ct_cmd(fct_cmd_t *fct_cmd)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4224
(emlxs_port_t *)fct_cmd->cmd_port->port_fca_private;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4232
did = fct_cmd->cmd_rportid;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4233
fct_ct = (fct_sol_ct_t *)fct_cmd->cmd_specific;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4242
cmd_sbp = emlxs_fct_cmd_init(port, fct_cmd, EMLXS_FCT_SEND_CT_REQ);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4248
(void) emlxs_fct_pkt_init(port, fct_cmd, pkt);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4276
emlxs_fct_cmd_release(port, fct_cmd, EMLXS_FCT_REQ_PENDING);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4285
rval = emlxs_fct_cmd_acquire(port, fct_cmd, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4295
emlxs_fct_cmd_post(port, fct_cmd, EMLXS_FCT_OWNED);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
43
static void emlxs_fct_cmd_release(emlxs_port_t *port, fct_cmd_t *fct_cmd,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4483
emlxs_fct_abort(fct_local_port_t *fct_port, fct_cmd_t *fct_cmd,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4496
cmd_sbp = (emlxs_buf_t *)fct_cmd->cmd_fca_private;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4502
if ((fct_cmd->cmd_oxid == 0) && (fct_cmd->cmd_rxid == 0)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4504
"fct_abort: Bad fct_cmd=%p.", fct_cmd);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4529
if ((fct_cmd->cmd_oxid == 0) && (fct_cmd->cmd_rxid == 0)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4531
"fct_abort: Bad fct_cmd=%p.", fct_cmd);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4549
hba->state, fct_cmd->cmd_oxid, fct_cmd->cmd_rxid, cmd_sbp,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4562
fct_cmd->cmd_handle = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4609
switch (fct_cmd->cmd_type) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4612
emlxs_abort_fct_exchange(hba, port, fct_cmd->cmd_rxid);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4616
emlxs_abort_els_exchange(hba, port, fct_cmd->cmd_rxid);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4633
if (fct_cmd->cmd_type == FCT_CMD_FCP_XCHG) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4644
fct_cmd);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4646
emlxs_fct_cmd_release(port, fct_cmd, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4660
fct_cmd);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4662
emlxs_fct_cmd_release(port, fct_cmd, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4671
sbp = emlxs_fct_pkt_init(port, fct_cmd, pkt);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4679
pkt->pkt_cmd_fhdr.d_id = LE_SWAP24_LO(fct_cmd->cmd_rportid);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4688
pkt->pkt_cmd_fhdr.ox_id = fct_cmd->cmd_oxid;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4689
pkt->pkt_cmd_fhdr.rx_id = fct_cmd->cmd_rxid;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4698
fct_cmd->cmd_oxid, fct_cmd->cmd_rxid);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
47
fct_cmd_t *fct_cmd, uint16_t fct_state);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4705
cmd_sbp->fct_cmd = fct_cmd;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4709
sbp->fct_cmd = NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4714
fct_cmd, fct_cmd->cmd_oxid, fct_cmd->cmd_rxid);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4721
fct_cmd, fct_cmd->cmd_oxid, fct_cmd->cmd_rxid);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4726
emlxs_fct_cmd_release(port, fct_cmd, fct_state);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4746
fct_cmd, cmd_sbp->fct_state);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4748
emlxs_fct_cmd_release(port, fct_cmd, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4761
emlxs_fct_cmd_done(port, fct_cmd,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
48
static void emlxs_fct_cmd_done(emlxs_port_t *port, fct_cmd_t *fct_cmd,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
50
static void emlxs_fct_cmd_post(emlxs_port_t *port, fct_cmd_t *fct_cmd,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
59
static fct_status_t emlxs_fct_send_cmd(fct_cmd_t *fct_cmd);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
60
static fct_status_t emlxs_fct_send_fcp_data(fct_cmd_t *fct_cmd,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
62
static fct_status_t emlxs_fct_send_cmd_rsp(fct_cmd_t *fct_cmd, uint32_t flags);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
68
static fct_status_t emlxs_fct_send_els_cmd(fct_cmd_t *fct_cmd);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
69
static fct_status_t emlxs_fct_send_ct_cmd(fct_cmd_t *fct_cmd);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
70
static fct_status_t emlxs_fct_send_fcp_status(fct_cmd_t *fct_cmd);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
71
static fct_status_t emlxs_fct_send_els_rsp(fct_cmd_t *fct_cmd);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
763
fct_cmd_t *fct_cmd;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
792
fct_cmd = cmd_sbp->fct_cmd;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
794
cmd_code = (fct_cmd->cmd_oxid << ELS_CMD_SHIFT);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
797
rval = emlxs_fct_cmd_acquire(port, fct_cmd, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
803
fct_cmd->cmd_rxid, fct_cmd->cmd_rportid);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
813
fct_cmd->cmd_rportid, fct_cmd->cmd_rxid,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
814
fct_cmd);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
816
emlxs_fct_cmd_post(port, fct_cmd, EMLXS_FCT_CMD_POSTED);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
821
"fct_post_rcvd_cmd:2 %p:%p portid x%x", fct_cmd, cmd_sbp,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
822
fct_cmd->cmd_lportid);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
825
MODSYM(fct_post_rcvd_cmd) (fct_cmd, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
88
fct_cmd_t *fct_cmd, fc_packet_t *pkt);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_mbox.c
3089
if (mb && mbox_sbp && mbox_sbp->fct_cmd) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_mbox.c
3156
if (sbp && sbp->fct_cmd && (sbp->fct_state == EMLXS_FCT_REG_PENDING)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
2697
fct_task = (scsi_task_t *)sbp->fct_cmd->cmd_specific;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
2757
fct_task = (scsi_task_t *)sbp->fct_cmd->cmd_specific;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
3583
fct_cmd_t *fct_cmd;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
3713
fct_cmd = cmd_sbp->fct_cmd;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
3714
fct_task = (scsi_task_t *)fct_cmd->cmd_specific;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
3715
ndlp = *(emlxs_node_t **)fct_cmd->cmd_rp->rp_fca_private;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
3716
did = fct_cmd->cmd_rportid;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
3745
iocb->ULPCONTEXT = (uint16_t)fct_cmd->cmd_rxid;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
4904
fct_cmd_t *fct_cmd;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
4907
fct_cmd = sbp->fct_cmd;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
4908
if (fct_cmd) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
4910
(emlxs_buf_t *)fct_cmd->cmd_fca_private;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
4912
EMLXS_FCT_STATE_CHG(fct_cmd, cmd_sbp,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
5391
if (sbp->fct_cmd) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
5392
emlxs_fct_io_trace(port, sbp->fct_cmd,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
5394
emlxs_fct_io_trace(port, sbp->fct_cmd,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
3384
if (sbp->fct_cmd) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
3385
emlxs_fct_io_trace(port, sbp->fct_cmd,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
3387
emlxs_fct_io_trace(port, sbp->fct_cmd,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
4192
fct_cmd_t *fct_cmd;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
4398
fct_cmd = cmd_sbp->fct_cmd;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
4399
did = fct_cmd->cmd_rportid;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
4401
fct_task = (scsi_task_t *)fct_cmd->cmd_specific;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
4402
ndlp = *(emlxs_node_t **)fct_cmd->cmd_rp->rp_fca_private;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
4489
wqe->OXId = (uint16_t)fct_cmd->cmd_oxid;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
4949
if (sbp->fct_cmd) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
4950
sbp->fct_cmd->cmd_oxid = xrip->XRI;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
4951
sbp->fct_cmd->cmd_rxid = 0xFFFF;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
5181
if (sbp->fct_cmd) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
5182
sbp->fct_cmd->cmd_oxid = xrip->XRI;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
5183
sbp->fct_cmd->cmd_rxid = 0xFFFF;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
5896
if (sbp->fct_cmd) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
5897
emlxs_fct_io_trace(port, sbp->fct_cmd,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
5989
fct_cmd_t *fct_cmd;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
6068
fct_cmd = sbp->fct_cmd;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
6069
if (fct_cmd) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
6070
cmd_sbp = (emlxs_buf_t *)fct_cmd->cmd_fca_private;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
6072
EMLXS_FCT_STATE_CHG(fct_cmd, cmd_sbp, EMLXS_FCT_IOCB_COMPLETE);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
2520
if ((port->mode == MODE_TARGET) && !sbp->fct_cmd &&
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
9439
if (sbp->fct_cmd) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
9441
(fct_els_t *)sbp->fct_cmd->cmd_specific;
usr/src/uts/common/sys/fct.h
244
struct fct_cmd *login_els);
usr/src/uts/common/sys/fct.h
81
struct fct_cmd *cmd_link;
usr/src/uts/common/sys/fct_defines.h
216
struct fct_cmd;
usr/src/uts/common/sys/fibre-channel/fca/emlxs/emlxs_extern.h
867
fct_cmd_t *fct_cmd);
usr/src/uts/common/sys/fibre-channel/fca/emlxs/emlxs_fc.h
71
fct_cmd_t *fct_cmd;
usr/src/uts/common/sys/fibre-channel/fca/emlxs/emlxs_fc.h
976
fct_cmd_t *fct_cmd;