Lines Matching refs:sge_count
1115 int sge_count; in megasas_make_sgl32() local
1118 sge_count = scsi_dma_map(scp); in megasas_make_sgl32()
1119 BUG_ON(sge_count < 0); in megasas_make_sgl32()
1121 if (sge_count) { in megasas_make_sgl32()
1122 scsi_for_each_sg(scp, os_sgl, sge_count, i) { in megasas_make_sgl32()
1127 return sge_count; in megasas_make_sgl32()
1144 int sge_count; in megasas_make_sgl64() local
1147 sge_count = scsi_dma_map(scp); in megasas_make_sgl64()
1148 BUG_ON(sge_count < 0); in megasas_make_sgl64()
1150 if (sge_count) { in megasas_make_sgl64()
1151 scsi_for_each_sg(scp, os_sgl, sge_count, i) { in megasas_make_sgl64()
1156 return sge_count; in megasas_make_sgl64()
1173 int sge_count; in megasas_make_sgl_skinny() local
1176 sge_count = scsi_dma_map(scp); in megasas_make_sgl_skinny()
1178 if (sge_count) { in megasas_make_sgl_skinny()
1179 scsi_for_each_sg(scp, os_sgl, sge_count, i) { in megasas_make_sgl_skinny()
1187 return sge_count; in megasas_make_sgl_skinny()
1199 u8 sge_count, u8 frame_type) in megasas_get_frame_count() argument
1221 num_cnt = sge_count - 1; in megasas_get_frame_count()
1223 num_cnt = sge_count - 1; in megasas_get_frame_count()
1225 num_cnt = sge_count - 2; in megasas_get_frame_count()
1228 num_cnt = sge_count - 1; in megasas_get_frame_count()
1230 num_cnt = sge_count - 2; in megasas_get_frame_count()
1232 num_cnt = sge_count - 3; in megasas_get_frame_count()
1314 pthru->sge_count = megasas_make_sgl_skinny(instance, scp, in megasas_build_dcdb()
1318 pthru->sge_count = megasas_make_sgl64(instance, scp, in megasas_build_dcdb()
1321 pthru->sge_count = megasas_make_sgl32(instance, scp, in megasas_build_dcdb()
1324 if (pthru->sge_count > instance->max_num_sge) { in megasas_build_dcdb()
1326 pthru->sge_count); in megasas_build_dcdb()
1343 cmd->frame_count = megasas_get_frame_count(instance, pthru->sge_count, in megasas_build_dcdb()
1457 ldio->sge_count = megasas_make_sgl_skinny(instance, scp, in megasas_build_ldio()
1461 ldio->sge_count = megasas_make_sgl64(instance, scp, &ldio->sgl); in megasas_build_ldio()
1463 ldio->sge_count = megasas_make_sgl32(instance, scp, &ldio->sgl); in megasas_build_ldio()
1465 if (ldio->sge_count > instance->max_num_sge) { in megasas_build_ldio()
1467 ldio->sge_count); in megasas_build_ldio()
1483 ldio->sge_count, IO_FRAME); in megasas_build_ldio()
1549 sgcount = ldio->sge_count; in megasas_dump_pending_frames()
1558 sgcount = pthru->sge_count; in megasas_dump_pending_frames()
2037 dcmd->sge_count = 1; in megasas_get_ld_vf_affiliation_111()
2149 dcmd->sge_count = 1; in megasas_get_ld_vf_affiliation_12()
2316 dcmd->sge_count = 1; in megasas_sriov_start_heartbeat()
3903 dcmd->sge_count = 1; in megasas_get_pd_list()
3999 dcmd->sge_count = 1; in megasas_get_ld_list()
4088 dcmd->sge_count = 1; in megasas_ld_list_query()
4220 dcmd->sge_count = 1; in megasas_get_ctrl_info()
4302 dcmd->sge_count = 1; in megasas_set_crash_dump_params()
5034 dcmd->sge_count = 1; in megasas_get_seq_num()
5165 dcmd->sge_count = 1; in megasas_register_aen()
5645 dcmd->sge_count = 0; in megasas_flush_cache()
5695 dcmd->sge_count = 0; in megasas_shutdown_controller()
6147 if (ioc->sge_count > MAX_IOCTL_SGE) { in megasas_mgmt_fw_ioctl()
6149 ioc->sge_count, MAX_IOCTL_SGE); in megasas_mgmt_fw_ioctl()
6192 for (i = 0; i < ioc->sge_count; i++) { in megasas_mgmt_fw_ioctl()
6253 for (i = 0; i < ioc->sge_count; i++) { in megasas_mgmt_fw_ioctl()
6296 for (i = 0; i < ioc->sge_count; i++) { in megasas_mgmt_fw_ioctl()
6504 copy_in_user(&ioc->sge_count, &cioc->sge_count, sizeof(u32))) in megasas_mgmt_compat_ioctl_fw()