Lines Matching refs:n_elem
1497 unsigned int n_elem, unsigned long timeout) in ata_exec_internal_sg() argument
1556 for_each_sg(sgl, sg, n_elem, i) in ata_exec_internal_sg()
1559 ata_sg_init(qc, sgl, n_elem); in ata_exec_internal_sg()
1676 unsigned int n_elem = 0; in ata_exec_internal() local
1682 n_elem++; in ata_exec_internal()
1685 return ata_exec_internal_sg(dev, tf, cdb, dma_dir, psg, n_elem, in ata_exec_internal()
4448 unsigned int n_elem) in ata_sg_init() argument
4451 qc->n_elem = n_elem; in ata_sg_init()
4474 VPRINTK("unmapping %u sg elements\n", qc->n_elem); in ata_sg_clean()
4476 if (qc->n_elem) in ata_sg_clean()
4499 unsigned int n_elem; in ata_sg_setup() local
4503 n_elem = dma_map_sg(ap->dev, qc->sg, qc->n_elem, qc->dma_dir); in ata_sg_setup()
4504 if (n_elem < 1) in ata_sg_setup()
4507 VPRINTK("%d sg elements mapped\n", n_elem); in ata_sg_setup()
4508 qc->orig_n_elem = qc->n_elem; in ata_sg_setup()
4509 qc->n_elem = n_elem; in ata_sg_setup()
4846 if (ata_is_data(prot) && (!qc->sg || !qc->n_elem || !qc->nbytes)) in ata_qc_issue()