Lines Matching refs:n_elem
1494 unsigned int n_elem, unsigned long timeout) in ata_exec_internal_sg() argument
1553 for_each_sg(sgl, sg, n_elem, i) in ata_exec_internal_sg()
1556 ata_sg_init(qc, sgl, n_elem); in ata_exec_internal_sg()
1673 unsigned int n_elem = 0; in ata_exec_internal() local
1679 n_elem++; in ata_exec_internal()
1682 return ata_exec_internal_sg(dev, tf, cdb, dma_dir, psg, n_elem, in ata_exec_internal()
4396 unsigned int n_elem) in ata_sg_init() argument
4399 qc->n_elem = n_elem; in ata_sg_init()
4422 VPRINTK("unmapping %u sg elements\n", qc->n_elem); in ata_sg_clean()
4424 if (qc->n_elem) in ata_sg_clean()
4447 unsigned int n_elem; in ata_sg_setup() local
4451 n_elem = dma_map_sg(ap->dev, qc->sg, qc->n_elem, qc->dma_dir); in ata_sg_setup()
4452 if (n_elem < 1) in ata_sg_setup()
4455 VPRINTK("%d sg elements mapped\n", n_elem); in ata_sg_setup()
4456 qc->orig_n_elem = qc->n_elem; in ata_sg_setup()
4457 qc->n_elem = n_elem; in ata_sg_setup()
4794 if (ata_is_data(prot) && (!qc->sg || !qc->n_elem || !qc->nbytes)) in ata_qc_issue()