Lines Matching refs:sgl_task_params
24 struct scsi_sgl_task_params *sgl_task_params) in init_scsi_sgl_context() argument
30 num_sges = (sgl_task_params->num_sges > SCSI_NUM_SGES_IN_CACHE) ? in init_scsi_sgl_context()
31 SCSI_NUM_SGES_IN_CACHE : sgl_task_params->num_sges; in init_scsi_sgl_context()
34 val = cpu_to_le32(sgl_task_params->sgl_phys_addr.lo); in init_scsi_sgl_context()
36 val = cpu_to_le32(sgl_task_params->sgl_phys_addr.hi); in init_scsi_sgl_context()
38 val = cpu_to_le32(sgl_task_params->total_buffer_size); in init_scsi_sgl_context()
40 ctx_sgl_params->sgl_num_sges = cpu_to_le16(sgl_task_params->num_sges); in init_scsi_sgl_context()
43 val = cpu_to_le32(sgl_task_params->sgl[sge_index].sge_addr.lo); in init_scsi_sgl_context()
45 val = cpu_to_le32(sgl_task_params->sgl[sge_index].sge_addr.hi); in init_scsi_sgl_context()
47 val = cpu_to_le32(sgl_task_params->sgl[sge_index].sge_len); in init_scsi_sgl_context()
54 struct scsi_sgl_task_params *sgl_task_params, in calc_rw_task_size() argument
72 io_size : sgl_task_params->total_buffer_size; in calc_rw_task_size()
91 struct scsi_sgl_task_params *sgl_task_params, in init_sqe() argument
123 sgl_task_params, in init_sqe()
126 if (scsi_is_slow_sgl(sgl_task_params->num_sges, in init_sqe()
127 sgl_task_params->small_mid_sge)) in init_sqe()
130 num_sges = min(sgl_task_params->num_sges, in init_sqe()
185 if (scsi_is_slow_sgl(sgl_task_params->num_sges, in init_sqe()
186 sgl_task_params->small_mid_sge)) in init_sqe()
191 min(sgl_task_params->num_sges, in init_sqe()
485 struct scsi_sgl_task_params *sgl_task_params, in init_rw_iscsi_task() argument
495 task_size = calc_rw_task_size(task_params, task_type, sgl_task_params, in init_rw_iscsi_task()
532 sgl_task_params); in init_rw_iscsi_task()
534 slow_io = scsi_is_slow_sgl(sgl_task_params->num_sges, in init_rw_iscsi_task()
535 sgl_task_params->small_mid_sge); in init_rw_iscsi_task()
537 num_sges = !slow_io ? min_t(u16, sgl_task_params->num_sges, in init_rw_iscsi_task()
550 sgl_task_params); in init_rw_iscsi_task()
551 num_sges = !scsi_is_slow_sgl(sgl_task_params->num_sges, in init_rw_iscsi_task()
552 sgl_task_params->small_mid_sge) ? in init_rw_iscsi_task()
553 min_t(u16, sgl_task_params->num_sges, in init_rw_iscsi_task()
580 init_sqe(task_params, sgl_task_params, dif_task_params, pdu_header, in init_rw_iscsi_task()