• Home
  • Raw
  • Download

Lines Matching refs:num_sges

16 static bool scsi_is_slow_sgl(u16 num_sges, bool small_mid_sge)  in scsi_is_slow_sgl()  argument
18 return (num_sges > SCSI_NUM_SGES_SLOW_SGL_THR && small_mid_sge); in scsi_is_slow_sgl()
27 u8 num_sges; in init_scsi_sgl_context() local
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()
40 ctx_sgl_params->sgl_num_sges = cpu_to_le16(sgl_task_params->num_sges); in init_scsi_sgl_context()
42 for (sge_index = 0; sge_index < num_sges; sge_index++) { in init_scsi_sgl_context()
113 u32 num_sges = 0; in init_sqe() local
126 if (scsi_is_slow_sgl(sgl_task_params->num_sges, in init_sqe()
128 num_sges = ISCSI_WQE_NUM_SGES_SLOWIO; in init_sqe()
130 num_sges = min(sgl_task_params->num_sges, in init_sqe()
135 num_sges); in init_sqe()
185 if (scsi_is_slow_sgl(sgl_task_params->num_sges, in init_sqe()
191 min(sgl_task_params->num_sges, in init_sqe()
259 u8 num_sges, bool tx_dif_conn_err_en) in init_ustorm_task_contexts() argument
267 SET_FIELD(ustorm_st_cxt->reg1.reg1_map, ISCSI_REG1_NUM_SGES, num_sges); in init_ustorm_task_contexts()
493 u8 num_sges = 0; in init_rw_iscsi_task() local
534 slow_io = scsi_is_slow_sgl(sgl_task_params->num_sges, in init_rw_iscsi_task()
537 num_sges = !slow_io ? min_t(u16, sgl_task_params->num_sges, in init_rw_iscsi_task()
551 num_sges = !scsi_is_slow_sgl(sgl_task_params->num_sges, in init_rw_iscsi_task()
553 min_t(u16, sgl_task_params->num_sges, in init_rw_iscsi_task()
565 task_size, exp_data_transfer_len, num_sges, in init_rw_iscsi_task()