Lines Matching refs:qc
256 * @qc: Info associated with this ATA transaction.
261 void ata_bmdma_setup(struct ata_queued_cmd *qc)
263 struct ata_port *ap = qc->ap;
264 unsigned int rw = (qc->tf.flags & ATA_TFLAG_WRITE);
279 ap->ops->exec_command(ap, &qc->tf);
284 * @qc: Info associated with this ATA transaction.
289 void ata_bmdma_start (struct ata_queued_cmd *qc)
291 struct ata_port *ap = qc->ap;
350 * @qc: Command we are ending DMA for
359 void ata_bmdma_stop(struct ata_queued_cmd *qc)
361 struct ata_port *ap = qc->ap;
439 struct ata_queued_cmd *qc;
443 qc = __ata_qc_from_tag(ap, ap->active_tag);
444 if (qc && !(qc->flags & ATA_QCFLAG_FAILED))
445 qc = NULL;
452 if (qc && (qc->tf.protocol == ATA_PROT_DMA ||
453 qc->tf.protocol == ATA_PROT_ATAPI_DMA)) {
463 if (qc->err_mask == AC_ERR_TIMEOUT && (host_stat & ATA_DMA_ERR)) {
464 qc->err_mask = AC_ERR_HOST_BUS;
468 ap->ops->bmdma_stop(qc);
508 * @qc: internal command to clean up
513 void ata_bmdma_post_internal_cmd(struct ata_queued_cmd *qc)
515 if (qc->ap->ioaddr.bmdma_addr)
516 ata_bmdma_stop(qc);