• Home
  • Raw
  • Download

Lines Matching refs:sge_count

551 	int sge_count;  in megasas_make_sgl32()  local
554 sge_count = scsi_dma_map(scp); in megasas_make_sgl32()
555 BUG_ON(sge_count < 0); in megasas_make_sgl32()
557 if (sge_count) { in megasas_make_sgl32()
558 scsi_for_each_sg(scp, os_sgl, sge_count, i) { in megasas_make_sgl32()
563 return sge_count; in megasas_make_sgl32()
580 int sge_count; in megasas_make_sgl64() local
583 sge_count = scsi_dma_map(scp); in megasas_make_sgl64()
584 BUG_ON(sge_count < 0); in megasas_make_sgl64()
586 if (sge_count) { in megasas_make_sgl64()
587 scsi_for_each_sg(scp, os_sgl, sge_count, i) { in megasas_make_sgl64()
592 return sge_count; in megasas_make_sgl64()
603 static u32 megasas_get_frame_count(u8 sge_count, u8 frame_type) in megasas_get_frame_count() argument
621 num_cnt = sge_count - 1; in megasas_get_frame_count()
623 num_cnt = sge_count - 2; in megasas_get_frame_count()
626 num_cnt = sge_count - 2; in megasas_get_frame_count()
628 num_cnt = sge_count - 3; in megasas_get_frame_count()
694 pthru->sge_count = megasas_make_sgl64(instance, scp, in megasas_build_dcdb()
697 pthru->sge_count = megasas_make_sgl32(instance, scp, in megasas_build_dcdb()
711 cmd->frame_count = megasas_get_frame_count(pthru->sge_count, in megasas_build_dcdb()
814 ldio->sge_count = megasas_make_sgl64(instance, scp, &ldio->sgl); in megasas_build_ldio()
816 ldio->sge_count = megasas_make_sgl32(instance, scp, &ldio->sgl); in megasas_build_ldio()
829 cmd->frame_count = megasas_get_frame_count(ldio->sge_count, IO_FRAME); in megasas_build_ldio()
892 sgcount = ldio->sge_count; in megasas_dump_pending_frames()
898 sgcount = pthru->sge_count; in megasas_dump_pending_frames()
1927 dcmd->sge_count = 1; in megasas_get_ctrl_info()
2288 dcmd->sge_count = 1; in megasas_get_seq_num()
2402 dcmd->sge_count = 1; in megasas_register_aen()
2715 dcmd->sge_count = 0; in megasas_flush_cache()
2754 dcmd->sge_count = 0; in megasas_shutdown_controller()
3039 if (ioc->sge_count > MAX_IOCTL_SGE) { in megasas_mgmt_fw_ioctl()
3041 ioc->sge_count, MAX_IOCTL_SGE); in megasas_mgmt_fw_ioctl()
3074 for (i = 0; i < ioc->sge_count; i++) { in megasas_mgmt_fw_ioctl()
3127 for (i = 0; i < ioc->sge_count; i++) { in megasas_mgmt_fw_ioctl()
3170 for (i = 0; i < ioc->sge_count && kbuff_arr[i]; i++) { in megasas_mgmt_fw_ioctl()
3294 copy_in_user(&ioc->sge_count, &cioc->sge_count, sizeof(u32))) in megasas_mgmt_compat_ioctl_fw()