Lines Matching refs:qc
47 static enum ata_completion_errors pxa_qc_prep(struct ata_queued_cmd *qc) in pxa_qc_prep() argument
49 struct pata_pxa_data *pd = qc->ap->private_data; in pxa_qc_prep()
53 if (!(qc->flags & ATA_QCFLAG_DMAMAP)) in pxa_qc_prep()
56 dir = (qc->dma_dir == DMA_TO_DEVICE ? DMA_MEM_TO_DEV : DMA_DEV_TO_MEM); in pxa_qc_prep()
57 tx = dmaengine_prep_slave_sg(pd->dma_chan, qc->sg, qc->n_elem, dir, in pxa_qc_prep()
60 ata_dev_err(qc->dev, "prep_slave_sg() failed\n"); in pxa_qc_prep()
74 static void pxa_bmdma_setup(struct ata_queued_cmd *qc) in pxa_bmdma_setup() argument
76 qc->ap->ops->sff_exec_command(qc->ap, &qc->tf); in pxa_bmdma_setup()
82 static void pxa_bmdma_start(struct ata_queued_cmd *qc) in pxa_bmdma_start() argument
84 struct pata_pxa_data *pd = qc->ap->private_data; in pxa_bmdma_start()
92 static void pxa_bmdma_stop(struct ata_queued_cmd *qc) in pxa_bmdma_stop() argument
94 struct pata_pxa_data *pd = qc->ap->private_data; in pxa_bmdma_stop()
100 ata_dev_err(qc->dev, "Timeout waiting for DMA completion!"); in pxa_bmdma_stop()
134 static int pxa_check_atapi_dma(struct ata_queued_cmd *qc) in pxa_check_atapi_dma() argument