Lines Matching refs:sge_count

1046 	int sge_count;  in megasas_make_sgl32()  local
1049 sge_count = scsi_dma_map(scp); in megasas_make_sgl32()
1050 BUG_ON(sge_count < 0); in megasas_make_sgl32()
1052 if (sge_count) { in megasas_make_sgl32()
1053 scsi_for_each_sg(scp, os_sgl, sge_count, i) { in megasas_make_sgl32()
1058 return sge_count; in megasas_make_sgl32()
1075 int sge_count; in megasas_make_sgl64() local
1078 sge_count = scsi_dma_map(scp); in megasas_make_sgl64()
1079 BUG_ON(sge_count < 0); in megasas_make_sgl64()
1081 if (sge_count) { in megasas_make_sgl64()
1082 scsi_for_each_sg(scp, os_sgl, sge_count, i) { in megasas_make_sgl64()
1087 return sge_count; in megasas_make_sgl64()
1104 int sge_count; in megasas_make_sgl_skinny() local
1107 sge_count = scsi_dma_map(scp); in megasas_make_sgl_skinny()
1109 if (sge_count) { in megasas_make_sgl_skinny()
1110 scsi_for_each_sg(scp, os_sgl, sge_count, i) { in megasas_make_sgl_skinny()
1118 return sge_count; in megasas_make_sgl_skinny()
1130 u8 sge_count, u8 frame_type) in megasas_get_frame_count() argument
1152 num_cnt = sge_count - 1; in megasas_get_frame_count()
1154 num_cnt = sge_count - 1; in megasas_get_frame_count()
1156 num_cnt = sge_count - 2; in megasas_get_frame_count()
1159 num_cnt = sge_count - 1; in megasas_get_frame_count()
1161 num_cnt = sge_count - 2; in megasas_get_frame_count()
1163 num_cnt = sge_count - 3; in megasas_get_frame_count()
1245 pthru->sge_count = megasas_make_sgl_skinny(instance, scp, in megasas_build_dcdb()
1249 pthru->sge_count = megasas_make_sgl64(instance, scp, in megasas_build_dcdb()
1252 pthru->sge_count = megasas_make_sgl32(instance, scp, in megasas_build_dcdb()
1255 if (pthru->sge_count > instance->max_num_sge) { in megasas_build_dcdb()
1257 pthru->sge_count); in megasas_build_dcdb()
1274 cmd->frame_count = megasas_get_frame_count(instance, pthru->sge_count, in megasas_build_dcdb()
1388 ldio->sge_count = megasas_make_sgl_skinny(instance, scp, in megasas_build_ldio()
1392 ldio->sge_count = megasas_make_sgl64(instance, scp, &ldio->sgl); in megasas_build_ldio()
1394 ldio->sge_count = megasas_make_sgl32(instance, scp, &ldio->sgl); in megasas_build_ldio()
1396 if (ldio->sge_count > instance->max_num_sge) { in megasas_build_ldio()
1398 ldio->sge_count); in megasas_build_ldio()
1414 ldio->sge_count, IO_FRAME); in megasas_build_ldio()
1480 sgcount = ldio->sge_count; in megasas_dump_pending_frames()
1490 sgcount = pthru->sge_count; in megasas_dump_pending_frames()
1926 dcmd->sge_count = 1; in megasas_get_ld_vf_affiliation_111()
2041 dcmd->sge_count = 1; in megasas_get_ld_vf_affiliation_12()
2210 dcmd->sge_count = 1; in megasas_sriov_start_heartbeat()
3831 dcmd->sge_count = 1; in megasas_get_pd_list()
3931 dcmd->sge_count = 1; in megasas_get_ld_list()
4024 dcmd->sge_count = 1; in megasas_ld_list_query()
4162 dcmd->sge_count = 1; in megasas_get_ctrl_info()
4233 dcmd->sge_count = 1; in megasas_set_crash_dump_params()
4809 dcmd->sge_count = 1; in megasas_get_seq_num()
4936 dcmd->sge_count = 1; in megasas_register_aen()
5478 dcmd->sge_count = 0; in megasas_flush_cache()
5530 dcmd->sge_count = 0; in megasas_shutdown_controller()
6056 if (ioc->sge_count > MAX_IOCTL_SGE) { in megasas_mgmt_fw_ioctl()
6058 ioc->sge_count, MAX_IOCTL_SGE); in megasas_mgmt_fw_ioctl()
6101 for (i = 0; i < ioc->sge_count; i++) { in megasas_mgmt_fw_ioctl()
6162 for (i = 0; i < ioc->sge_count; i++) { in megasas_mgmt_fw_ioctl()
6205 for (i = 0; i < ioc->sge_count; i++) { in megasas_mgmt_fw_ioctl()
6413 copy_in_user(&ioc->sge_count, &cioc->sge_count, sizeof(u32))) in megasas_mgmt_compat_ioctl_fw()