Lines Matching refs:n_elem
252 int n_elem;
508 crq->n_elem = 0;
528 assert(host->hw_sg_used >= crq->n_elem);
531 host->hw_sg_used -= crq->n_elem;
813 crq->n_elem = 0;
833 int writing = 0, pci_dir, i, n_elem, rc;
861 n_elem = blk_rq_map_sg(q, rq, sg);
862 if (n_elem <= 0) {
868 n_elem = pci_map_sg(host->pdev, sg, n_elem, pci_dir);
869 if (n_elem <= 0) {
873 crq->n_elem = n_elem;
875 host->hw_sg_used += n_elem;
893 msg->sg_count = n_elem;
902 for (i = 0; i < n_elem; i++) {
1050 pci_unmap_sg(host->pdev, &crq->sg[0], crq->n_elem, pci_dir);