• Home
  • Raw
  • Download

Lines Matching refs:qc

538 typedef void (*ata_qc_cb_t) (struct ata_queued_cmd *qc);
916 int (*qc_defer)(struct ata_queued_cmd *qc);
917 int (*check_atapi_dma)(struct ata_queued_cmd *qc);
918 enum ata_completion_errors (*qc_prep)(struct ata_queued_cmd *qc);
919 unsigned int (*qc_issue)(struct ata_queued_cmd *qc);
920 bool (*qc_fill_rtf)(struct ata_queued_cmd *qc);
946 void (*post_internal_cmd)(struct ata_queued_cmd *qc);
981 unsigned int (*sff_data_xfer)(struct ata_queued_cmd *qc,
986 void (*sff_drain_fifo)(struct ata_queued_cmd *qc);
989 void (*bmdma_setup)(struct ata_queued_cmd *qc);
990 void (*bmdma_start)(struct ata_queued_cmd *qc);
991 void (*bmdma_stop)(struct ata_queued_cmd *qc);
1152 extern int ata_std_qc_defer(struct ata_queued_cmd *qc);
1153 extern enum ata_completion_errors ata_noop_qc_prep(struct ata_queued_cmd *qc);
1154 extern void ata_sg_init(struct ata_queued_cmd *qc, struct scatterlist *sg,
1164 extern void ata_qc_complete(struct ata_queued_cmd *qc);
1367 extern void ata_eh_qc_complete(struct ata_queued_cmd *qc);
1368 extern void ata_eh_qc_retry(struct ata_queued_cmd *qc);
1579 #define __ata_qc_for_each(ap, qc, tag, max_tag, fn) \ argument
1581 ({ qc = fn((ap), (tag)); 1; }); (tag)++) \
1587 #define ata_qc_for_each_raw(ap, qc, tag) \ argument
1588 __ata_qc_for_each(ap, qc, tag, ATA_MAX_QUEUE, __ata_qc_from_tag)
1593 #define ata_qc_for_each(ap, qc, tag) \ argument
1594 __ata_qc_for_each(ap, qc, tag, ATA_MAX_QUEUE, ata_qc_from_tag)
1599 #define ata_qc_for_each_with_internal(ap, qc, tag) \ argument
1600 __ata_qc_for_each(ap, qc, tag, ATA_MAX_QUEUE + 1, ata_qc_from_tag)
1756 static inline void ata_qc_set_polling(struct ata_queued_cmd *qc) in ata_qc_set_polling() argument
1758 qc->tf.ctl |= ATA_NIEN; in ata_qc_set_polling()
1772 struct ata_queued_cmd *qc = __ata_qc_from_tag(ap, tag); in ata_qc_from_tag() local
1774 if (unlikely(!qc) || !ap->ops->error_handler) in ata_qc_from_tag()
1775 return qc; in ata_qc_from_tag()
1777 if ((qc->flags & (ATA_QCFLAG_ACTIVE | in ata_qc_from_tag()
1779 return qc; in ata_qc_from_tag()
1784 static inline unsigned int ata_qc_raw_nbytes(struct ata_queued_cmd *qc) in ata_qc_raw_nbytes() argument
1786 return qc->nbytes - min(qc->extrabytes, qc->nbytes); in ata_qc_raw_nbytes()
1804 static inline void ata_qc_reinit(struct ata_queued_cmd *qc) in ata_qc_reinit() argument
1806 qc->dma_dir = DMA_NONE; in ata_qc_reinit()
1807 qc->sg = NULL; in ata_qc_reinit()
1808 qc->flags = 0; in ata_qc_reinit()
1809 qc->cursg = NULL; in ata_qc_reinit()
1810 qc->cursg_ofs = 0; in ata_qc_reinit()
1811 qc->nbytes = qc->extrabytes = qc->curbytes = 0; in ata_qc_reinit()
1812 qc->n_elem = 0; in ata_qc_reinit()
1813 qc->err_mask = 0; in ata_qc_reinit()
1814 qc->sect_size = ATA_SECT_SIZE; in ata_qc_reinit()
1816 ata_tf_init(qc->dev, &qc->tf); in ata_qc_reinit()
1819 qc->result_tf.command = ATA_DRDY; in ata_qc_reinit()
1820 qc->result_tf.feature = 0; in ata_qc_reinit()
1910 extern int sata_pmp_qc_defer_cmd_switch(struct ata_queued_cmd *qc);
1947 extern unsigned int ata_sff_data_xfer(struct ata_queued_cmd *qc,
1949 extern unsigned int ata_sff_data_xfer32(struct ata_queued_cmd *qc,
1953 extern int ata_sff_hsm_move(struct ata_port *ap, struct ata_queued_cmd *qc,
1959 extern unsigned int ata_sff_qc_issue(struct ata_queued_cmd *qc);
1960 extern bool ata_sff_qc_fill_rtf(struct ata_queued_cmd *qc);
1962 struct ata_queued_cmd *qc);
1977 extern void ata_sff_drain_fifo(struct ata_queued_cmd *qc);
2002 extern enum ata_completion_errors ata_bmdma_qc_prep(struct ata_queued_cmd *qc);
2003 extern unsigned int ata_bmdma_qc_issue(struct ata_queued_cmd *qc);
2004 extern enum ata_completion_errors ata_bmdma_dumb_qc_prep(struct ata_queued_cmd *qc);
2006 struct ata_queued_cmd *qc);
2009 extern void ata_bmdma_post_internal_cmd(struct ata_queued_cmd *qc);
2011 extern void ata_bmdma_setup(struct ata_queued_cmd *qc);
2012 extern void ata_bmdma_start(struct ata_queued_cmd *qc);
2013 extern void ata_bmdma_stop(struct ata_queued_cmd *qc);