Lines Matching refs:task_params

10 static inline void init_common_sqe(struct fcoe_task_params *task_params,  in init_common_sqe()  argument
13 memset(task_params->sqe, 0, sizeof(*(task_params->sqe))); in init_common_sqe()
14 SET_FIELD(task_params->sqe->flags, FCOE_WQE_REQ_TYPE, in init_common_sqe()
16 task_params->sqe->task_id = task_params->itid; in init_common_sqe()
19 int init_initiator_rw_fcoe_task(struct fcoe_task_params *task_params, in init_initiator_rw_fcoe_task() argument
25 struct fcoe_task_context *ctx = task_params->context; in init_initiator_rw_fcoe_task()
38 io_size = (task_params->task_type == FCOE_TASK_TYPE_WRITE_INITIATOR ? in init_initiator_rw_fcoe_task()
39 task_params->tx_io_size : task_params->rx_io_size); in init_initiator_rw_fcoe_task()
45 y_st_ctx->task_type = (u8)task_params->task_type; in init_initiator_rw_fcoe_task()
51 t_st_ctx->read_only.dev_type = (u8)(task_params->is_tape_device == 1 ? in init_initiator_rw_fcoe_task()
54 t_st_ctx->read_only.cid = cpu_to_le32(task_params->conn_cid); in init_initiator_rw_fcoe_task()
55 val = cpu_to_le32(task_params->cq_rss_number); in init_initiator_rw_fcoe_task()
58 t_st_ctx->read_only.task_type = (u8)task_params->task_type; in init_initiator_rw_fcoe_task()
65 u_ag_ctx->global_cq_num = cpu_to_le32(task_params->cq_rss_number); in init_initiator_rw_fcoe_task()
74 if (task_params->task_type == FCOE_TASK_TYPE_WRITE_INITIATOR) { in init_initiator_rw_fcoe_task()
106 init_common_sqe(task_params, SEND_FCOE_CMD); in init_initiator_rw_fcoe_task()
112 struct fcoe_task_params *task_params, in init_initiator_midpath_unsolicited_fcoe_task() argument
118 struct fcoe_task_context *ctx = task_params->context; in init_initiator_midpath_unsolicited_fcoe_task()
136 y_st_ctx->data_2_trns_rem = cpu_to_le32(task_params->tx_io_size); in init_initiator_midpath_unsolicited_fcoe_task()
137 y_st_ctx->task_type = (u8)task_params->task_type; in init_initiator_midpath_unsolicited_fcoe_task()
149 m_st_ctx->data_2_trns_rem = cpu_to_le32(task_params->rx_io_size); in init_initiator_midpath_unsolicited_fcoe_task()
153 t_st_ctx->read_only.cid = cpu_to_le32(task_params->conn_cid); in init_initiator_midpath_unsolicited_fcoe_task()
154 val = cpu_to_le32(task_params->cq_rss_number); in init_initiator_midpath_unsolicited_fcoe_task()
156 t_st_ctx->read_only.task_type = (u8)task_params->task_type; in init_initiator_midpath_unsolicited_fcoe_task()
163 u_ag_ctx->global_cq_num = cpu_to_le32(task_params->cq_rss_number); in init_initiator_midpath_unsolicited_fcoe_task()
166 init_common_sqe(task_params, SEND_FCOE_MIDPATH); in init_initiator_midpath_unsolicited_fcoe_task()
167 task_params->sqe->additional_info_union.burst_length = in init_initiator_midpath_unsolicited_fcoe_task()
169 SET_FIELD(task_params->sqe->flags, in init_initiator_midpath_unsolicited_fcoe_task()
171 SET_FIELD(task_params->sqe->flags, FCOE_WQE_SGL_MODE, in init_initiator_midpath_unsolicited_fcoe_task()
177 int init_initiator_abort_fcoe_task(struct fcoe_task_params *task_params) in init_initiator_abort_fcoe_task() argument
179 init_common_sqe(task_params, SEND_FCOE_ABTS_REQUEST); in init_initiator_abort_fcoe_task()
183 int init_initiator_cleanup_fcoe_task(struct fcoe_task_params *task_params) in init_initiator_cleanup_fcoe_task() argument
185 init_common_sqe(task_params, FCOE_EXCHANGE_CLEANUP); in init_initiator_cleanup_fcoe_task()
190 struct fcoe_task_params *task_params, u32 desired_offset) in init_initiator_sequence_recovery_fcoe_task() argument
192 init_common_sqe(task_params, FCOE_SEQUENCE_RECOVERY); in init_initiator_sequence_recovery_fcoe_task()
193 task_params->sqe->additional_info_union.seq_rec_updated_offset = in init_initiator_sequence_recovery_fcoe_task()