Lines Matching refs:sg_count
459 int sg_count; in cqhci_dma_map() local
465 sg_count = dma_map_sg(mmc_dev(host), data->sg, in cqhci_dma_map()
469 if (!sg_count) { in cqhci_dma_map()
474 return sg_count; in cqhci_dma_map()
503 int i, sg_count, len; in cqhci_prep_tran_desc() local
510 sg_count = cqhci_dma_map(mrq->host, mrq); in cqhci_prep_tran_desc()
511 if (sg_count < 0) { in cqhci_prep_tran_desc()
513 mmc_hostname(mrq->host), __func__, sg_count); in cqhci_prep_tran_desc()
514 return sg_count; in cqhci_prep_tran_desc()
519 for_each_sg(data->sg, sg, sg_count, i) { in cqhci_prep_tran_desc()
523 if ((i+1) == sg_count) in cqhci_prep_tran_desc()