Lines Matching refs:qc
230 static void inic_bmdma_setup(struct ata_queued_cmd *qc)
232 struct ata_port *ap = qc->ap;
235 int rw = qc->tf.flags & ATA_TFLAG_WRITE;
241 writel(qc->nbytes, port_base + PORT_PRD_XFERLEN);
250 ap->ops->exec_command(ap, &qc->tf);
253 static void inic_bmdma_start(struct ata_queued_cmd *qc)
255 struct ata_port *ap = qc->ap;
264 static void inic_bmdma_stop(struct ata_queued_cmd *qc)
266 struct ata_port *ap = qc->ap;
296 struct ata_queued_cmd *qc = ata_qc_from_tag(ap, ap->active_tag);
298 if (unlikely(!qc || (qc->tf.flags & ATA_TFLAG_POLLING))) {
303 if (likely(ata_host_intr(ap, qc)))
359 static unsigned int inic_qc_issue(struct ata_queued_cmd *qc)
361 struct ata_port *ap = qc->ap;
370 if (qc->tf.protocol == ATA_PROT_DMA &&
371 !(qc->tf.flags & ATA_TFLAG_WRITE))
381 if (unlikely(qc->tf.command == ATA_CMD_ID_ATA ||
382 qc->tf.command == ATA_CMD_ID_ATAPI)) {
388 return ata_qc_issue_prot(qc);
487 static void inic_post_internal_cmd(struct ata_queued_cmd *qc)
490 if (qc->flags & ATA_QCFLAG_FAILED)
491 inic_reset_port(inic_port_base(qc->ap));