Lines Matching refs:sg_count
464 int sg_count; in cqhci_dma_map() local
470 sg_count = dma_map_sg(mmc_dev(host), data->sg, in cqhci_dma_map()
474 if (!sg_count) { in cqhci_dma_map()
479 return sg_count; in cqhci_dma_map()
509 int i, sg_count, len; in cqhci_prep_tran_desc() local
516 sg_count = cqhci_dma_map(mrq->host, mrq); in cqhci_prep_tran_desc()
517 if (sg_count < 0) { in cqhci_prep_tran_desc()
519 mmc_hostname(mrq->host), __func__, sg_count); in cqhci_prep_tran_desc()
520 return sg_count; in cqhci_prep_tran_desc()
525 for_each_sg(data->sg, sg, sg_count, i) { in cqhci_prep_tran_desc()
529 if ((i+1) == sg_count) in cqhci_prep_tran_desc()