Lines Matching defs:ocs_io_s
69 struct ocs_io_s { struct
70 ocs_t *ocs; /**< pointer back to ocs */
71 uint32_t instance_index; /**< unique instance index value */
72 const char *display_name; /**< display name */
73 ocs_node_t *node; /**< pointer to node */
74 ocs_list_link_t io_alloc_link; /**< (io_pool->io_free_list) free list link */
75 uint32_t init_task_tag; /**< initiator task tag (OX_ID) for back-end and SCSI logging */
76 uint32_t tgt_task_tag; /**< target task tag (RX_ID) - for back-end and SCSI logging */
77 uint32_t hw_tag; /**< HW layer unique IO id - for back-end and SCSI logging */
78 uint32_t tag; /**< unique IO identifier */
79 ocs_scsi_sgl_t *sgl; /**< SGL */
80 uint32_t sgl_allocated; /**< Number of allocated SGEs */
81 uint32_t sgl_count; /**< Number of SGEs in this SGL */
82 ocs_scsi_ini_io_t ini_io; /**< backend initiator private IO data */
83 ocs_scsi_tgt_io_t tgt_io; /**< backend target private IO data */
84 uint32_t exp_xfer_len; /**< expected data transfer length, based on FC or iSCSI header */
85 ocs_mgmt_functions_t *mgmt_functions;
88 void *hw_priv; /**< HW private context */
91 ocs_io_type_e io_type; /**< indicates what this ocs_io_t structure is used for */
92 ocs_ref_t ref; /**< refcount object */
93 void *dslab_item; /**< pointer back to dslab allocation object */
94 ocs_hw_io_t *hio; /**< HW IO context */
95 size_t transferred; /**< Number of bytes transferred so far */
96 uint32_t auto_resp:1, /**< set if auto_trsp was set */
97 low_latency:1, /**< set if low latency request */
98 wq_steering:4, /**< selected WQ steering request */
99 wq_class:4; /**< selected WQ class if steering is class */
100 uint32_t xfer_req; /**< transfer size for current request */
101 ocs_scsi_rsp_io_cb_t scsi_ini_cb; /**< initiator callback function */
102 void *scsi_ini_cb_arg; /**< initiator callback function argument */
103 ocs_scsi_io_cb_t scsi_tgt_cb; /**< target callback function */
104 void *scsi_tgt_cb_arg; /**< target callback function argument */
105 ocs_scsi_io_cb_t abort_cb; /**< abort callback function */
106 void *abort_cb_arg; /**< abort callback function argument */
107 ocs_scsi_io_cb_t bls_cb; /**< BLS callback function */
108 void *bls_cb_arg; /**< BLS callback function argument */
109 ocs_scsi_tmf_cmd_e tmf_cmd; /**< TMF command being processed */
110 uint16_t abort_rx_id; /**< rx_id from the ABTS that initiated the command abort */
112 uint32_t cmd_tgt:1, /**< True if this is a Target command */
113 send_abts:1, /**< when aborting, indicates ABTS is to be sent */
114 cmd_ini:1, /**< True if this is an Initiator command */
115 seq_init:1; /**< True if local node has sequence initiative */
116 ocs_hw_io_param_t iparam; /**< iparams for hw io send call */
117 ocs_hw_dif_info_t hw_dif; /**< HW formatted DIF parameters */
118 ocs_scsi_dif_info_t scsi_dif_info; /**< DIF info saved for DIF error recovery */
119 ocs_hw_io_type_e hio_type; /**< HW IO type */
120 uint32_t wire_len; /**< wire length */
121 void *hw_cb; /**< saved HW callback */
122 ocs_list_link_t io_pending_link;/**< link list link pending */
124 ocs_dma_t ovfl_sgl; /**< Overflow SGL */
127 uint32_t els_pend:1, /**< True if ELS is pending */
128 els_active:1; /**< True if ELS is active */
129 ocs_dma_t els_req; /**< ELS request payload buffer */
130 ocs_dma_t els_rsp; /**< ELS response payload buffer */
131 ocs_sm_ctx_t els_sm; /**< EIO IO state machine context */
132 uint32_t els_evtdepth; /**< current event posting nesting depth */
133 uint32_t els_req_free:1; /**< this els is to be free'd */
134 uint32_t els_retries_remaining; /*<< Retries remaining */
135 void (*els_callback)(ocs_node_t *node, ocs_node_cb_t *cbdata, void *cbarg);
136 void *els_callback_arg;
137 uint32_t els_timeout_sec; /**< timeout */
139 ocs_timer_t delay_timer; /**< delay timer */
142 ocs_io_t *io_to_abort; /**< pointer to IO to abort */
144 ocs_list_link_t link; /**< linked list link */
145 ocs_dma_t cmdbuf; /**< SCSI Command buffer, used for CDB (initiator) */
146 ocs_dma_t rspbuf; /**< SCSI Response buffer (i+t) */
147 uint32_t timeout; /**< Timeout value in seconds for this IO */
148 uint8_t cs_ctl; /**< CS_CTL priority for this IO */
149 uint8_t io_free; /**< Is io object in freelist > */
150 uint32_t app_id;