Lines Matching refs:sgcnt
2713 int sgcnt; in gdth_copy_internal_data() local
2722 sgcnt = pci_map_sg(ha->pdev,sl,scp->use_sg,PCI_DMA_FROMDEVICE); in gdth_copy_internal_data()
2723 for (i=0,cpsum=0; i<sgcnt; ++i,++sl) { in gdth_copy_internal_data()
2744 sgcnt = scp->use_sg; in gdth_copy_internal_data()
2745 for (i=0,cpsum=0; i<sgcnt; ++i,++sl) { in gdth_copy_internal_data()
2881 int i, cmd_index, read_write, sgcnt, mode64; in gdth_fill_cache_cmd() local
2980 sgcnt = scp->use_sg; in gdth_fill_cache_cmd()
2985 sgcnt = pci_map_sg(ha->pdev,sl,scp->use_sg,scp->SCp.Message); in gdth_fill_cache_cmd()
2988 cmdp->u.cache64.sg_canz = sgcnt; in gdth_fill_cache_cmd()
2989 for (i=0; i<sgcnt; ++i,++sl) { in gdth_fill_cache_cmd()
3001 cmdp->u.cache.sg_canz = sgcnt; in gdth_fill_cache_cmd()
3002 for (i=0; i<sgcnt; ++i,++sl) { in gdth_fill_cache_cmd()
3013 cmdp->u.cache64.sg_canz = sgcnt; in gdth_fill_cache_cmd()
3014 for (i=0; i<sgcnt; ++i,++sl) { in gdth_fill_cache_cmd()
3020 cmdp->u.cache.sg_canz = sgcnt; in gdth_fill_cache_cmd()
3021 for (i=0; i<sgcnt; ++i,++sl) { in gdth_fill_cache_cmd()
3029 if (max_sg < (ulong32)sgcnt) { in gdth_fill_cache_cmd()
3030 max_sg = (ulong32)sgcnt; in gdth_fill_cache_cmd()
3117 int cmd_index, sgcnt, mode64; in gdth_fill_raw_cmd() local
3219 sgcnt = scp->use_sg; in gdth_fill_raw_cmd()
3223 sgcnt = pci_map_sg(ha->pdev,sl,scp->use_sg,scp->SCp.Message); in gdth_fill_raw_cmd()
3226 cmdp->u.raw64.sg_ranz = sgcnt; in gdth_fill_raw_cmd()
3227 for (i=0; i<sgcnt; ++i,++sl) { in gdth_fill_raw_cmd()
3239 cmdp->u.raw.sg_ranz = sgcnt; in gdth_fill_raw_cmd()
3240 for (i=0; i<sgcnt; ++i,++sl) { in gdth_fill_raw_cmd()
3251 cmdp->u.raw64.sg_ranz = sgcnt; in gdth_fill_raw_cmd()
3252 for (i=0; i<sgcnt; ++i,++sl) { in gdth_fill_raw_cmd()
3258 cmdp->u.raw.sg_ranz = sgcnt; in gdth_fill_raw_cmd()
3259 for (i=0; i<sgcnt; ++i,++sl) { in gdth_fill_raw_cmd()
3267 if (max_sg < sgcnt) { in gdth_fill_raw_cmd()
3268 max_sg = sgcnt; in gdth_fill_raw_cmd()
3269 TRACE3(("GDT: max_sg = %d\n",sgcnt)); in gdth_fill_raw_cmd()