Lines Matching full:context
129 init_nvmetcp_task_params(struct e5_nvmetcp_task_context *context, in init_nvmetcp_task_params() argument
133 context->ystorm_st_context.state.cccid = task_params->host_cccid; in init_nvmetcp_task_params()
134 SET_FIELD(context->ustorm_st_context.error_flags, USTORM_NVMETCP_TASK_ST_CTX_NVME_TCP, 1); in init_nvmetcp_task_params()
135 context->ustorm_st_context.nvme_tcp_opaque_lo = cpu_to_le32(task_params->opq.lo); in init_nvmetcp_task_params()
136 context->ustorm_st_context.nvme_tcp_opaque_hi = cpu_to_le32(task_params->opq.hi); in init_nvmetcp_task_params()
145 struct e5_nvmetcp_task_context *context = task_params->context; in init_default_nvmetcp_task() local
146 const u8 val_byte = context->mstorm_ag_context.cdu_validation; in init_default_nvmetcp_task()
149 memset(context, 0, sizeof(*context)); in init_default_nvmetcp_task()
150 init_nvmetcp_task_params(context, task_params, in init_default_nvmetcp_task()
159 context->ystorm_st_context.pdu_hdr.task_hdr.reg[dw_index] = in init_default_nvmetcp_task()
165 context->ystorm_st_context.pdu_hdr.task_hdr.reg[dw_index] = in init_default_nvmetcp_task()
171 context->ystorm_st_context.pdu_hdr.task_hdr.reg[dw_index] = in init_default_nvmetcp_task()
175 /* M-Storm Context: */ in init_default_nvmetcp_task()
176 context->mstorm_ag_context.cdu_validation = val_byte; in init_default_nvmetcp_task()
177 context->mstorm_st_context.task_type = (u8)(task_type); in init_default_nvmetcp_task()
178 context->mstorm_ag_context.task_cid = cpu_to_le16(task_params->conn_icid); in init_default_nvmetcp_task()
180 /* Ustorm Context: */ in init_default_nvmetcp_task()
181 SET_FIELD(context->ustorm_ag_context.flags1, E5_USTORM_NVMETCP_TASK_AG_CTX_R2T2RECV, 1); in init_default_nvmetcp_task()
182 context->ustorm_st_context.task_type = (u8)(task_type); in init_default_nvmetcp_task()
183 context->ustorm_st_context.cq_rss_number = task_params->cq_rss_number; in init_default_nvmetcp_task()
184 context->ustorm_ag_context.icid = cpu_to_le16(task_params->conn_icid); in init_default_nvmetcp_task()
206 set_local_completion_context(struct e5_nvmetcp_task_context *context) in set_local_completion_context() argument
208 SET_FIELD(context->ystorm_st_context.state.flags, in set_local_completion_context()
210 SET_FIELD(context->ustorm_st_context.flags, in set_local_completion_context()
221 struct e5_nvmetcp_task_context *context = task_params->context; in init_rw_nvmetcp_task() local
231 init_scsi_sgl_context(&context->ystorm_st_context.state.sgl_params, in init_rw_nvmetcp_task()
232 &context->ystorm_st_context.state.data_desc, in init_rw_nvmetcp_task()
241 SET_FIELD(context->ystorm_st_context.state.flags, in init_rw_nvmetcp_task()
246 init_scsi_sgl_context(&context->mstorm_st_context.sgl_params, in init_rw_nvmetcp_task()
247 &context->mstorm_st_context.data_desc, in init_rw_nvmetcp_task()
255 context->mstorm_st_context.rem_task_size = cpu_to_le32(task_size); in init_rw_nvmetcp_task()
258 /* Ustorm context: */ in init_rw_nvmetcp_task()
259 init_ustorm_task_contexts(&context->ustorm_st_context, in init_rw_nvmetcp_task()
260 &context->ustorm_ag_context, in init_rw_nvmetcp_task()
272 context->ustorm_ag_context.exp_data_acked = task_size; in init_rw_nvmetcp_task()
274 context->ustorm_ag_context.exp_data_acked = 0; in init_rw_nvmetcp_task()
276 context->ustorm_ag_context.exp_data_acked = 0; in init_rw_nvmetcp_task()
279 context->ustorm_ag_context.exp_cont_len = 0; in init_rw_nvmetcp_task()
327 struct e5_nvmetcp_task_context *context = task_params->context; in init_common_login_request_task() local
332 /* Ustorm Context: */ in init_common_login_request_task()
333 init_ustorm_task_contexts(&context->ustorm_st_context, in init_common_login_request_task()
334 &context->ustorm_ag_context, in init_common_login_request_task()
346 /* SGL context: */ in init_common_login_request_task()
348 init_scsi_sgl_context(&context->ystorm_st_context.state.sgl_params, in init_common_login_request_task()
349 &context->ystorm_st_context.state.data_desc, in init_common_login_request_task()
352 init_scsi_sgl_context(&context->mstorm_st_context.sgl_params, in init_common_login_request_task()
353 &context->mstorm_st_context.data_desc, in init_common_login_request_task()
356 context->mstorm_st_context.rem_task_size = in init_common_login_request_task()