Lines Matching refs:sge_count

1114 	int sge_count;  in megasas_make_sgl32()  local
1117 sge_count = scsi_dma_map(scp); in megasas_make_sgl32()
1118 BUG_ON(sge_count < 0); in megasas_make_sgl32()
1120 if (sge_count) { in megasas_make_sgl32()
1121 scsi_for_each_sg(scp, os_sgl, sge_count, i) { in megasas_make_sgl32()
1126 return sge_count; in megasas_make_sgl32()
1143 int sge_count; in megasas_make_sgl64() local
1146 sge_count = scsi_dma_map(scp); in megasas_make_sgl64()
1147 BUG_ON(sge_count < 0); in megasas_make_sgl64()
1149 if (sge_count) { in megasas_make_sgl64()
1150 scsi_for_each_sg(scp, os_sgl, sge_count, i) { in megasas_make_sgl64()
1155 return sge_count; in megasas_make_sgl64()
1172 int sge_count; in megasas_make_sgl_skinny() local
1175 sge_count = scsi_dma_map(scp); in megasas_make_sgl_skinny()
1177 if (sge_count) { in megasas_make_sgl_skinny()
1178 scsi_for_each_sg(scp, os_sgl, sge_count, i) { in megasas_make_sgl_skinny()
1186 return sge_count; in megasas_make_sgl_skinny()
1198 u8 sge_count, u8 frame_type) in megasas_get_frame_count() argument
1220 num_cnt = sge_count - 1; in megasas_get_frame_count()
1222 num_cnt = sge_count - 1; in megasas_get_frame_count()
1224 num_cnt = sge_count - 2; in megasas_get_frame_count()
1227 num_cnt = sge_count - 1; in megasas_get_frame_count()
1229 num_cnt = sge_count - 2; in megasas_get_frame_count()
1231 num_cnt = sge_count - 3; in megasas_get_frame_count()
1313 pthru->sge_count = megasas_make_sgl_skinny(instance, scp, in megasas_build_dcdb()
1317 pthru->sge_count = megasas_make_sgl64(instance, scp, in megasas_build_dcdb()
1320 pthru->sge_count = megasas_make_sgl32(instance, scp, in megasas_build_dcdb()
1323 if (pthru->sge_count > instance->max_num_sge) { in megasas_build_dcdb()
1325 pthru->sge_count); in megasas_build_dcdb()
1342 cmd->frame_count = megasas_get_frame_count(instance, pthru->sge_count, in megasas_build_dcdb()
1456 ldio->sge_count = megasas_make_sgl_skinny(instance, scp, in megasas_build_ldio()
1460 ldio->sge_count = megasas_make_sgl64(instance, scp, &ldio->sgl); in megasas_build_ldio()
1462 ldio->sge_count = megasas_make_sgl32(instance, scp, &ldio->sgl); in megasas_build_ldio()
1464 if (ldio->sge_count > instance->max_num_sge) { in megasas_build_ldio()
1466 ldio->sge_count); in megasas_build_ldio()
1482 ldio->sge_count, IO_FRAME); in megasas_build_ldio()
1548 sgcount = ldio->sge_count; in megasas_dump_pending_frames()
1557 sgcount = pthru->sge_count; in megasas_dump_pending_frames()
2036 dcmd->sge_count = 1; in megasas_get_ld_vf_affiliation_111()
2148 dcmd->sge_count = 1; in megasas_get_ld_vf_affiliation_12()
2315 dcmd->sge_count = 1; in megasas_sriov_start_heartbeat()
3898 dcmd->sge_count = 1; in megasas_get_pd_list()
3994 dcmd->sge_count = 1; in megasas_get_ld_list()
4083 dcmd->sge_count = 1; in megasas_ld_list_query()
4215 dcmd->sge_count = 1; in megasas_get_ctrl_info()
4297 dcmd->sge_count = 1; in megasas_set_crash_dump_params()
5029 dcmd->sge_count = 1; in megasas_get_seq_num()
5152 dcmd->sge_count = 1; in megasas_register_aen()
5633 dcmd->sge_count = 0; in megasas_flush_cache()
5683 dcmd->sge_count = 0; in megasas_shutdown_controller()
6135 if (ioc->sge_count > MAX_IOCTL_SGE) { in megasas_mgmt_fw_ioctl()
6137 ioc->sge_count, MAX_IOCTL_SGE); in megasas_mgmt_fw_ioctl()
6180 for (i = 0; i < ioc->sge_count; i++) { in megasas_mgmt_fw_ioctl()
6241 for (i = 0; i < ioc->sge_count; i++) { in megasas_mgmt_fw_ioctl()
6284 for (i = 0; i < ioc->sge_count; i++) { in megasas_mgmt_fw_ioctl()
6492 copy_in_user(&ioc->sge_count, &cioc->sge_count, sizeof(u32))) in megasas_mgmt_compat_ioctl_fw()