Lines Matching defs:tw_cli_ctlr_context

116 struct tw_cli_ctlr_context {  struct
117 struct tw_cl_ctlr_handle *ctlr_handle; /* handle to track ctlr between
119 struct tw_cli_req_context *req_ctxt_buf;/* pointer to the array of CL's
121 struct tw_cl_command_packet *cmd_pkt_buf;/* ptr to array of cmd pkts */
123 TW_UINT64 cmd_pkt_phys; /* phys addr of cmd_pkt_buf */
125 TW_UINT32 device_id; /* controller device id */
126 TW_UINT32 arch_id; /* controller architecture id */
127 TW_UINT8 active; /* Initialization done, and controller is active. */
128 TW_UINT8 interrupts_enabled; /* Interrupts on controller enabled. */
129 TW_UINT8 internal_req_busy; /* Data buffer for internal requests in use. */
130 TW_UINT8 get_more_aens; /* More AEN's need to be retrieved. */
131 TW_UINT8 reset_needed; /* Controller needs a soft reset. */
132 TW_UINT8 reset_in_progress; /* Controller is being reset. */
133 TW_UINT8 reset_phase1_in_progress; /* In 'phase 1' of reset. */
134 TW_UINT32 flags; /* controller settings */
135 TW_UINT32 sg_size_factor; /* SG element size should be a
139 struct tw_cl_link req_q_head[TW_CLI_Q_COUNT];
141 TW_UINT8 *internal_req_data;/* internal req data buf */
142 TW_UINT64 internal_req_data_phys;/* phys addr of internal
144 TW_UINT32 max_simult_reqs; /* max simultaneous requests
146 TW_UINT32 max_aens_supported;/* max AEN's supported */
148 struct tw_cl_event_packet *aen_queue; /* circular queue of AENs from
150 TW_UINT32 aen_head; /* AEN queue head */
151 TW_UINT32 aen_tail; /* AEN queue tail */
152 TW_UINT32 aen_cur_seq_id; /* index of the last event+1 */
153 TW_UINT32 aen_q_overflow; /* indicates if unretrieved
155 TW_UINT32 aen_q_wrapped; /* indicates if AEN queue ever
158 TW_UINT16 working_srl; /* driver & firmware negotiated
160 TW_UINT16 working_branch; /* branch # of the firmware
162 TW_UINT16 working_build; /* build # of the firmware
164 TW_UINT16 fw_on_ctlr_srl; /* srl of running firmware */
165 TW_UINT16 fw_on_ctlr_branch;/* branch # of running
167 TW_UINT16 fw_on_ctlr_build;/* build # of running
169 TW_UINT32 operating_mode; /* base mode/current mode */
171 TW_INT32 host_intr_pending;/* host intr processing
173 TW_INT32 attn_intr_pending;/* attn intr processing
175 TW_INT32 cmd_intr_pending;/* cmd intr processing
177 TW_INT32 resp_intr_pending;/* resp intr processing
180 TW_LOCK_HANDLE gen_lock_handle;/* general purpose lock */
181 TW_LOCK_HANDLE *gen_lock;/* ptr to general purpose lock */
182 TW_LOCK_HANDLE io_lock_handle; /* lock held during cmd
184 TW_LOCK_HANDLE *io_lock;/* ptr to lock held during cmd
188 TW_SLEEP_HANDLE sleep_handle; /* handle to co-ordinate sleeps
192 struct {
197 } ioctl_lock; /* lock for use by user applications, for
200 struct tw_cli_q_stats q_stats[TW_CLI_Q_COUNT];/* queue statistics */