Lines Matching defs:sge_count
433 int sge_count;
456 sge_count = pci_map_sg(instance->pdev, os_sgl, scp->use_sg,
459 for (i = 0; i < sge_count; i++, os_sgl++) {
464 return sge_count;
481 int sge_count;
505 sge_count = pci_map_sg(instance->pdev, os_sgl, scp->use_sg,
508 for (i = 0; i < sge_count; i++, os_sgl++) {
513 return sge_count;
518 * @sge_count : number of sg elements
520 * Returns the number of frames required for numnber of sge's (sge_count)
523 static u32 megasas_get_frame_count(u8 sge_count)
538 num_cnt = sge_count - 2;
540 num_cnt = sge_count - 3;
605 pthru->sge_count = megasas_make_sgl64(instance, scp,
608 pthru->sge_count = megasas_make_sgl32(instance, scp,
622 cmd->frame_count = megasas_get_frame_count(pthru->sge_count);
724 ldio->sge_count = megasas_make_sgl64(instance, scp, &ldio->sgl);
726 ldio->sge_count = megasas_make_sgl32(instance, scp, &ldio->sgl);
739 cmd->frame_count = megasas_get_frame_count(ldio->sge_count);
802 sgcount = ldio->sge_count;
808 sgcount = pthru->sge_count;
1801 dcmd->sge_count = 1;
2133 dcmd->sge_count = 1;
2247 dcmd->sge_count = 1;
2548 dcmd->sge_count = 0;
2585 dcmd->sge_count = 0;
2738 if (ioc->sge_count > MAX_IOCTL_SGE) {
2740 ioc->sge_count, MAX_IOCTL_SGE);
2773 for (i = 0; i < ioc->sge_count; i++) {
2826 for (i = 0; i < ioc->sge_count; i++) {
2867 for (i = 0; i < ioc->sge_count && kbuff_arr[i]; i++) {
2991 copy_in_user(&ioc->sge_count, &cioc->sge_count, sizeof(u32)))