Lines Matching refs:sge_count

1265 	int sge_count;  in megasas_make_sgl32()  local
1268 sge_count = scsi_dma_map(scp); in megasas_make_sgl32()
1269 BUG_ON(sge_count < 0); in megasas_make_sgl32()
1271 if (sge_count) { in megasas_make_sgl32()
1272 scsi_for_each_sg(scp, os_sgl, sge_count, i) { in megasas_make_sgl32()
1277 return sge_count; in megasas_make_sgl32()
1294 int sge_count; in megasas_make_sgl64() local
1297 sge_count = scsi_dma_map(scp); in megasas_make_sgl64()
1298 BUG_ON(sge_count < 0); in megasas_make_sgl64()
1300 if (sge_count) { in megasas_make_sgl64()
1301 scsi_for_each_sg(scp, os_sgl, sge_count, i) { in megasas_make_sgl64()
1306 return sge_count; in megasas_make_sgl64()
1323 int sge_count; in megasas_make_sgl_skinny() local
1326 sge_count = scsi_dma_map(scp); in megasas_make_sgl_skinny()
1328 if (sge_count) { in megasas_make_sgl_skinny()
1329 scsi_for_each_sg(scp, os_sgl, sge_count, i) { in megasas_make_sgl_skinny()
1337 return sge_count; in megasas_make_sgl_skinny()
1349 u8 sge_count, u8 frame_type) in megasas_get_frame_count() argument
1371 num_cnt = sge_count - 1; in megasas_get_frame_count()
1373 num_cnt = sge_count - 1; in megasas_get_frame_count()
1375 num_cnt = sge_count - 2; in megasas_get_frame_count()
1378 num_cnt = sge_count - 1; in megasas_get_frame_count()
1380 num_cnt = sge_count - 2; in megasas_get_frame_count()
1382 num_cnt = sge_count - 3; in megasas_get_frame_count()
1464 pthru->sge_count = megasas_make_sgl_skinny(instance, scp, in megasas_build_dcdb()
1468 pthru->sge_count = megasas_make_sgl64(instance, scp, in megasas_build_dcdb()
1471 pthru->sge_count = megasas_make_sgl32(instance, scp, in megasas_build_dcdb()
1474 if (pthru->sge_count > instance->max_num_sge) { in megasas_build_dcdb()
1476 pthru->sge_count); in megasas_build_dcdb()
1493 cmd->frame_count = megasas_get_frame_count(instance, pthru->sge_count, in megasas_build_dcdb()
1607 ldio->sge_count = megasas_make_sgl_skinny(instance, scp, in megasas_build_ldio()
1611 ldio->sge_count = megasas_make_sgl64(instance, scp, &ldio->sgl); in megasas_build_ldio()
1613 ldio->sge_count = megasas_make_sgl32(instance, scp, &ldio->sgl); in megasas_build_ldio()
1615 if (ldio->sge_count > instance->max_num_sge) { in megasas_build_ldio()
1617 ldio->sge_count); in megasas_build_ldio()
1633 ldio->sge_count, IO_FRAME); in megasas_build_ldio()
1699 sgcount = ldio->sge_count; in megasas_dump_pending_frames()
1708 sgcount = pthru->sge_count; in megasas_dump_pending_frames()
2415 dcmd->sge_count = 1; in megasas_get_ld_vf_affiliation_111()
2522 dcmd->sge_count = 1; in megasas_get_ld_vf_affiliation_12()
2689 dcmd->sge_count = 1; in megasas_sriov_start_heartbeat()
4562 dcmd->sge_count = 1; in megasas_get_pd_info()
4655 dcmd->sge_count = 1; in megasas_get_pd_list()
4786 dcmd->sge_count = 1; in megasas_get_ld_list()
4906 dcmd->sge_count = 1; in megasas_ld_list_query()
5026 dcmd->sge_count = 1; in megasas_host_device_list_query()
5211 dcmd->sge_count = 1; in megasas_get_snapdump_properties()
5293 dcmd->sge_count = 1; in megasas_get_ctrl_info()
5442 dcmd->sge_count = 1; in megasas_set_crash_dump_params()
6618 dcmd->sge_count = 1; in megasas_get_seq_num()
6754 dcmd->sge_count = 1; in megasas_register_aen()
6832 dcmd->sge_count = 1; in megasas_get_target_prop()
7668 dcmd->sge_count = 0; in megasas_flush_cache()
7721 dcmd->sge_count = 0; in megasas_shutdown_controller()
8258 if (ioc->sge_count > MAX_IOCTL_SGE) { in megasas_mgmt_fw_ioctl()
8260 ioc->sge_count, MAX_IOCTL_SGE); in megasas_mgmt_fw_ioctl()
8337 for (i = 0; i < ioc->sge_count; i++) { in megasas_mgmt_fw_ioctl()
8423 for (i = 0; i < ioc->sge_count; i++) { in megasas_mgmt_fw_ioctl()
8470 for (i = 0; i < ioc->sge_count; i++) { in megasas_mgmt_fw_ioctl()