Lines Matching refs:qc
332 static void sil24_qc_prep(struct ata_queued_cmd *qc);
333 static unsigned int sil24_qc_issue(struct ata_queued_cmd *qc);
338 static void sil24_post_internal_cmd(struct ata_queued_cmd *qc);
643 static inline void sil24_fill_sg(struct ata_queued_cmd *qc,
648 ata_for_each_sg(sg, qc) {
651 if (ata_sg_is_last(sg, qc))
659 static void sil24_qc_prep(struct ata_queued_cmd *qc)
661 struct ata_port *ap = qc->ap;
668 cb = &pp->cmd_block[sil24_tag(qc->tag)];
670 switch (qc->tf.protocol) {
685 memcpy(cb->atapi.cdb, qc->cdb, qc->dev->cdb_len);
687 if (qc->tf.protocol != ATA_PROT_ATAPI_NODATA) {
688 if (qc->tf.flags & ATA_TFLAG_WRITE)
702 ata_tf_to_fis(&qc->tf, prb->fis, 0);
704 if (qc->flags & ATA_QCFLAG_DMAMAP)
705 sil24_fill_sg(qc, sge);
708 static unsigned int sil24_qc_issue(struct ata_queued_cmd *qc)
710 struct ata_port *ap = qc->ap;
713 unsigned int tag = sil24_tag(qc->tag);
789 struct ata_queued_cmd *qc;
809 qc = ata_qc_from_tag(ap, ap->active_tag);
810 if (qc) {
812 qc->err_mask |= err_mask;
826 static void sil24_finish_qc(struct ata_queued_cmd *qc)
828 if (qc->flags & ATA_QCFLAG_RESULT_TF)
829 sil24_update_tf(qc->ap);
917 static void sil24_post_internal_cmd(struct ata_queued_cmd *qc)
919 struct ata_port *ap = qc->ap;
922 if (qc->flags & ATA_QCFLAG_FAILED)