qc 73 arch/arm64/kernel/io.c u64 qc = (u8)c; qc 75 arch/arm64/kernel/io.c qc |= qc << 8; qc 76 arch/arm64/kernel/io.c qc |= qc << 16; qc 77 arch/arm64/kernel/io.c qc |= qc << 32; qc 86 arch/arm64/kernel/io.c __raw_writeq(qc, dst); qc 24 arch/s390/include/uapi/asm/runtime_instr.h __u32 qc : 1; qc 1257 arch/s390/kernel/ptrace.c cb->qc == 0 && qc 571 crypto/ecc.c u64 qc[ECC_MAX_DIGITS * 2]; qc 573 crypto/ecc.c vli_umult(qc, q, c2, ndigits); qc 575 crypto/ecc.c vli_uadd(qc, qc, mod[0], ndigits * 2); qc 576 crypto/ecc.c vli_set(q, qc + ndigits, ndigits); qc 577 crypto/ecc.c vli_clear(qc + ndigits, ndigits); qc 578 crypto/ecc.c carry = vli_is_negative(qc, ndigits); qc 580 crypto/ecc.c qc[ndigits - 1] &= (1ull << 63) - 1; qc 582 crypto/ecc.c vli_sub(r, r, qc, ndigits * 2); qc 584 crypto/ecc.c vli_add(r, r, qc, ndigits * 2); qc 59 drivers/ata/acard-ahci.c static void acard_ahci_qc_prep(struct ata_queued_cmd *qc); qc 60 drivers/ata/acard-ahci.c static bool acard_ahci_qc_fill_rtf(struct ata_queued_cmd *qc); qc 182 drivers/ata/acard-ahci.c static unsigned int acard_ahci_fill_sg(struct ata_queued_cmd *qc, void *cmd_tbl) qc 193 drivers/ata/acard-ahci.c for_each_sg(qc->sg, sg, qc->n_elem, si) { qc 213 drivers/ata/acard-ahci.c static void acard_ahci_qc_prep(struct ata_queued_cmd *qc) qc 215 drivers/ata/acard-ahci.c struct ata_port *ap = qc->ap; qc 217 drivers/ata/acard-ahci.c int is_atapi = ata_is_atapi(qc->tf.protocol); qc 227 drivers/ata/acard-ahci.c cmd_tbl = pp->cmd_tbl + qc->hw_tag * AHCI_CMD_TBL_SZ; qc 229 drivers/ata/acard-ahci.c ata_tf_to_fis(&qc->tf, qc->dev->link->pmp, 1, cmd_tbl); qc 232 drivers/ata/acard-ahci.c memcpy(cmd_tbl + AHCI_CMD_TBL_CDB, qc->cdb, qc->dev->cdb_len); qc 236 drivers/ata/acard-ahci.c if (qc->flags & ATA_QCFLAG_DMAMAP) qc 237 drivers/ata/acard-ahci.c n_elem = acard_ahci_fill_sg(qc, cmd_tbl); qc 244 drivers/ata/acard-ahci.c opts = cmd_fis_len | (qc->dev->link->pmp << 12); qc 245 drivers/ata/acard-ahci.c if (qc->tf.flags & ATA_TFLAG_WRITE) qc 250 drivers/ata/acard-ahci.c ahci_fill_cmd_slot(pp, qc->hw_tag, opts); qc 253 drivers/ata/acard-ahci.c static bool acard_ahci_qc_fill_rtf(struct ata_queued_cmd *qc) qc 255 drivers/ata/acard-ahci.c struct ahci_port_priv *pp = qc->ap->private_data; qc 259 drivers/ata/acard-ahci.c rx_fis += qc->dev->link->pmp * ACARD_AHCI_RX_FIS_SZ; qc 267 drivers/ata/acard-ahci.c if (qc->tf.protocol == ATA_PROT_PIO && qc->dma_dir == DMA_FROM_DEVICE && qc 268 drivers/ata/acard-ahci.c !(qc->flags & ATA_QCFLAG_FAILED)) { qc 269 drivers/ata/acard-ahci.c ata_tf_from_fis(rx_fis + RX_FIS_PIO_SETUP, &qc->result_tf); qc 270 drivers/ata/acard-ahci.c qc->result_tf.command = (rx_fis + RX_FIS_PIO_SETUP)[15]; qc 272 drivers/ata/acard-ahci.c ata_tf_from_fis(rx_fis + RX_FIS_D2H_REG, &qc->result_tf); qc 409 drivers/ata/ahci.h unsigned int ahci_qc_issue(struct ata_queued_cmd *qc); qc 189 drivers/ata/ahci_xgene.c static unsigned int xgene_ahci_qc_issue(struct ata_queued_cmd *qc) qc 191 drivers/ata/ahci_xgene.c struct ata_port *ap = qc->ap; qc 205 drivers/ata/ahci_xgene.c port_fbs |= qc->dev->link->pmp << PORT_FBS_DEV_OFFSET; qc 214 drivers/ata/ahci_xgene.c rc = ahci_qc_issue(qc); qc 217 drivers/ata/ahci_xgene.c ctx->last_cmd[ap->port_no] = qc->tf.command; qc 57 drivers/ata/libahci.c static bool ahci_qc_fill_rtf(struct ata_queued_cmd *qc); qc 60 drivers/ata/libahci.c static void ahci_qc_prep(struct ata_queued_cmd *qc); qc 61 drivers/ata/libahci.c static int ahci_pmp_qc_defer(struct ata_queued_cmd *qc); qc 76 drivers/ata/libahci.c static void ahci_post_internal_cmd(struct ata_queued_cmd *qc); qc 1593 drivers/ata/libahci.c static unsigned int ahci_fill_sg(struct ata_queued_cmd *qc, void *cmd_tbl) qc 1604 drivers/ata/libahci.c for_each_sg(qc->sg, sg, qc->n_elem, si) { qc 1616 drivers/ata/libahci.c static int ahci_pmp_qc_defer(struct ata_queued_cmd *qc) qc 1618 drivers/ata/libahci.c struct ata_port *ap = qc->ap; qc 1622 drivers/ata/libahci.c return ata_std_qc_defer(qc); qc 1624 drivers/ata/libahci.c return sata_pmp_qc_defer_cmd_switch(qc); qc 1627 drivers/ata/libahci.c static void ahci_qc_prep(struct ata_queued_cmd *qc) qc 1629 drivers/ata/libahci.c struct ata_port *ap = qc->ap; qc 1631 drivers/ata/libahci.c int is_atapi = ata_is_atapi(qc->tf.protocol); qc 1641 drivers/ata/libahci.c cmd_tbl = pp->cmd_tbl + qc->hw_tag * AHCI_CMD_TBL_SZ; qc 1643 drivers/ata/libahci.c ata_tf_to_fis(&qc->tf, qc->dev->link->pmp, 1, cmd_tbl); qc 1646 drivers/ata/libahci.c memcpy(cmd_tbl + AHCI_CMD_TBL_CDB, qc->cdb, qc->dev->cdb_len); qc 1650 drivers/ata/libahci.c if (qc->flags & ATA_QCFLAG_DMAMAP) qc 1651 drivers/ata/libahci.c n_elem = ahci_fill_sg(qc, cmd_tbl); qc 1656 drivers/ata/libahci.c opts = cmd_fis_len | n_elem << 16 | (qc->dev->link->pmp << 12); qc 1657 drivers/ata/libahci.c if (qc->tf.flags & ATA_TFLAG_WRITE) qc 1662 drivers/ata/libahci.c ahci_fill_cmd_slot(pp, qc->hw_tag, opts); qc 1985 drivers/ata/libahci.c unsigned int ahci_qc_issue(struct ata_queued_cmd *qc) qc 1987 drivers/ata/libahci.c struct ata_port *ap = qc->ap; qc 1995 drivers/ata/libahci.c pp->active_link = qc->dev->link; qc 1997 drivers/ata/libahci.c if (ata_is_ncq(qc->tf.protocol)) qc 1998 drivers/ata/libahci.c writel(1 << qc->hw_tag, port_mmio + PORT_SCR_ACT); qc 2000 drivers/ata/libahci.c if (pp->fbs_enabled && pp->fbs_last_dev != qc->dev->link->pmp) { qc 2003 drivers/ata/libahci.c fbs |= qc->dev->link->pmp << PORT_FBS_DEV_OFFSET; qc 2005 drivers/ata/libahci.c pp->fbs_last_dev = qc->dev->link->pmp; qc 2008 drivers/ata/libahci.c writel(1 << qc->hw_tag, port_mmio + PORT_CMD_ISSUE); qc 2010 drivers/ata/libahci.c ahci_sw_activity(qc->dev->link); qc 2016 drivers/ata/libahci.c static bool ahci_qc_fill_rtf(struct ata_queued_cmd *qc) qc 2018 drivers/ata/libahci.c struct ahci_port_priv *pp = qc->ap->private_data; qc 2022 drivers/ata/libahci.c rx_fis += qc->dev->link->pmp * AHCI_RX_FIS_SZ; qc 2030 drivers/ata/libahci.c if (qc->tf.protocol == ATA_PROT_PIO && qc->dma_dir == DMA_FROM_DEVICE && qc 2031 drivers/ata/libahci.c !(qc->flags & ATA_QCFLAG_FAILED)) { qc 2032 drivers/ata/libahci.c ata_tf_from_fis(rx_fis + RX_FIS_PIO_SETUP, &qc->result_tf); qc 2033 drivers/ata/libahci.c qc->result_tf.command = (rx_fis + RX_FIS_PIO_SETUP)[15]; qc 2035 drivers/ata/libahci.c ata_tf_from_fis(rx_fis + RX_FIS_D2H_REG, &qc->result_tf); qc 2082 drivers/ata/libahci.c static void ahci_post_internal_cmd(struct ata_queued_cmd *qc) qc 2084 drivers/ata/libahci.c struct ata_port *ap = qc->ap; qc 2087 drivers/ata/libahci.c if (qc->flags & ATA_QCFLAG_FAILED) qc 1518 drivers/ata/libata-core.c static void ata_qc_complete_internal(struct ata_queued_cmd *qc) qc 1520 drivers/ata/libata-core.c struct completion *waiting = qc->private_data; qc 1556 drivers/ata/libata-core.c struct ata_queued_cmd *qc; qc 1575 drivers/ata/libata-core.c qc = __ata_qc_from_tag(ap, ATA_TAG_INTERNAL); qc 1577 drivers/ata/libata-core.c qc->tag = ATA_TAG_INTERNAL; qc 1578 drivers/ata/libata-core.c qc->hw_tag = 0; qc 1579 drivers/ata/libata-core.c qc->scsicmd = NULL; qc 1580 drivers/ata/libata-core.c qc->ap = ap; qc 1581 drivers/ata/libata-core.c qc->dev = dev; qc 1582 drivers/ata/libata-core.c ata_qc_reinit(qc); qc 1594 drivers/ata/libata-core.c qc->tf = *tf; qc 1596 drivers/ata/libata-core.c memcpy(qc->cdb, cdb, ATAPI_CDB_LEN); qc 1601 drivers/ata/libata-core.c qc->tf.feature |= ATAPI_DMADIR; qc 1603 drivers/ata/libata-core.c qc->flags |= ATA_QCFLAG_RESULT_TF; qc 1604 drivers/ata/libata-core.c qc->dma_dir = dma_dir; qc 1612 drivers/ata/libata-core.c ata_sg_init(qc, sgl, n_elem); qc 1613 drivers/ata/libata-core.c qc->nbytes = buflen; qc 1616 drivers/ata/libata-core.c qc->private_data = &wait; qc 1617 drivers/ata/libata-core.c qc->complete_fn = ata_qc_complete_internal; qc 1619 drivers/ata/libata-core.c ata_qc_issue(qc); qc 1650 drivers/ata/libata-core.c if (qc->flags & ATA_QCFLAG_ACTIVE) { qc 1651 drivers/ata/libata-core.c qc->err_mask |= AC_ERR_TIMEOUT; qc 1656 drivers/ata/libata-core.c ata_qc_complete(qc); qc 1668 drivers/ata/libata-core.c ap->ops->post_internal_cmd(qc); qc 1671 drivers/ata/libata-core.c if (qc->flags & ATA_QCFLAG_FAILED) { qc 1672 drivers/ata/libata-core.c if (qc->result_tf.command & (ATA_ERR | ATA_DF)) qc 1673 drivers/ata/libata-core.c qc->err_mask |= AC_ERR_DEV; qc 1675 drivers/ata/libata-core.c if (!qc->err_mask) qc 1676 drivers/ata/libata-core.c qc->err_mask |= AC_ERR_OTHER; qc 1678 drivers/ata/libata-core.c if (qc->err_mask & ~AC_ERR_OTHER) qc 1679 drivers/ata/libata-core.c qc->err_mask &= ~AC_ERR_OTHER; qc 1680 drivers/ata/libata-core.c } else if (qc->tf.command == ATA_CMD_REQ_SENSE_DATA) { qc 1681 drivers/ata/libata-core.c qc->result_tf.command |= ATA_SENSE; qc 1687 drivers/ata/libata-core.c *tf = qc->result_tf; qc 1688 drivers/ata/libata-core.c err_mask = qc->err_mask; qc 1690 drivers/ata/libata-core.c ata_qc_free(qc); qc 4936 drivers/ata/libata-core.c int atapi_check_dma(struct ata_queued_cmd *qc) qc 4938 drivers/ata/libata-core.c struct ata_port *ap = qc->ap; qc 4943 drivers/ata/libata-core.c if (!(qc->dev->horkage & ATA_HORKAGE_ATAPI_MOD16_DMA) && qc 4944 drivers/ata/libata-core.c unlikely(qc->nbytes & 15)) qc 4948 drivers/ata/libata-core.c return ap->ops->check_atapi_dma(qc); qc 4968 drivers/ata/libata-core.c int ata_std_qc_defer(struct ata_queued_cmd *qc) qc 4970 drivers/ata/libata-core.c struct ata_link *link = qc->dev->link; qc 4972 drivers/ata/libata-core.c if (ata_is_ncq(qc->tf.protocol)) { qc 4983 drivers/ata/libata-core.c void ata_noop_qc_prep(struct ata_queued_cmd *qc) { } qc 4998 drivers/ata/libata-core.c void ata_sg_init(struct ata_queued_cmd *qc, struct scatterlist *sg, qc 5001 drivers/ata/libata-core.c qc->sg = sg; qc 5002 drivers/ata/libata-core.c qc->n_elem = n_elem; qc 5003 drivers/ata/libata-core.c qc->cursg = qc->sg; qc 5017 drivers/ata/libata-core.c static void ata_sg_clean(struct ata_queued_cmd *qc) qc 5019 drivers/ata/libata-core.c struct ata_port *ap = qc->ap; qc 5020 drivers/ata/libata-core.c struct scatterlist *sg = qc->sg; qc 5021 drivers/ata/libata-core.c int dir = qc->dma_dir; qc 5025 drivers/ata/libata-core.c VPRINTK("unmapping %u sg elements\n", qc->n_elem); qc 5027 drivers/ata/libata-core.c if (qc->n_elem) qc 5028 drivers/ata/libata-core.c dma_unmap_sg(ap->dev, sg, qc->orig_n_elem, dir); qc 5030 drivers/ata/libata-core.c qc->flags &= ~ATA_QCFLAG_DMAMAP; qc 5031 drivers/ata/libata-core.c qc->sg = NULL; qc 5047 drivers/ata/libata-core.c static int ata_sg_setup(struct ata_queued_cmd *qc) qc 5049 drivers/ata/libata-core.c struct ata_port *ap = qc->ap; qc 5054 drivers/ata/libata-core.c n_elem = dma_map_sg(ap->dev, qc->sg, qc->n_elem, qc->dma_dir); qc 5059 drivers/ata/libata-core.c qc->orig_n_elem = qc->n_elem; qc 5060 drivers/ata/libata-core.c qc->n_elem = n_elem; qc 5061 drivers/ata/libata-core.c qc->flags |= ATA_QCFLAG_DMAMAP; qc 5068 drivers/ata/libata-core.c static inline void ata_sg_clean(struct ata_queued_cmd *qc) {} qc 5069 drivers/ata/libata-core.c static inline int ata_sg_setup(struct ata_queued_cmd *qc) { return -1; } qc 5107 drivers/ata/libata-core.c struct ata_queued_cmd *qc; qc 5120 drivers/ata/libata-core.c qc = __ata_qc_from_tag(ap, tag); qc 5121 drivers/ata/libata-core.c qc->tag = qc->hw_tag = tag; qc 5122 drivers/ata/libata-core.c qc->scsicmd = NULL; qc 5123 drivers/ata/libata-core.c qc->ap = ap; qc 5124 drivers/ata/libata-core.c qc->dev = dev; qc 5126 drivers/ata/libata-core.c ata_qc_reinit(qc); qc 5128 drivers/ata/libata-core.c return qc; qc 5141 drivers/ata/libata-core.c void ata_qc_free(struct ata_queued_cmd *qc) qc 5146 drivers/ata/libata-core.c WARN_ON_ONCE(qc == NULL); /* ata_qc_from_tag _might_ return NULL */ qc 5147 drivers/ata/libata-core.c ap = qc->ap; qc 5149 drivers/ata/libata-core.c qc->flags = 0; qc 5150 drivers/ata/libata-core.c tag = qc->tag; qc 5152 drivers/ata/libata-core.c qc->tag = ATA_TAG_POISON; qc 5158 drivers/ata/libata-core.c void __ata_qc_complete(struct ata_queued_cmd *qc) qc 5163 drivers/ata/libata-core.c WARN_ON_ONCE(qc == NULL); /* ata_qc_from_tag _might_ return NULL */ qc 5164 drivers/ata/libata-core.c WARN_ON_ONCE(!(qc->flags & ATA_QCFLAG_ACTIVE)); qc 5165 drivers/ata/libata-core.c ap = qc->ap; qc 5166 drivers/ata/libata-core.c link = qc->dev->link; qc 5168 drivers/ata/libata-core.c if (likely(qc->flags & ATA_QCFLAG_DMAMAP)) qc 5169 drivers/ata/libata-core.c ata_sg_clean(qc); qc 5172 drivers/ata/libata-core.c if (ata_is_ncq(qc->tf.protocol)) { qc 5173 drivers/ata/libata-core.c link->sactive &= ~(1 << qc->hw_tag); qc 5182 drivers/ata/libata-core.c if (unlikely(qc->flags & ATA_QCFLAG_CLEAR_EXCL && qc 5190 drivers/ata/libata-core.c qc->flags &= ~ATA_QCFLAG_ACTIVE; qc 5191 drivers/ata/libata-core.c ap->qc_active &= ~(1ULL << qc->tag); qc 5194 drivers/ata/libata-core.c qc->complete_fn(qc); qc 5197 drivers/ata/libata-core.c static void fill_result_tf(struct ata_queued_cmd *qc) qc 5199 drivers/ata/libata-core.c struct ata_port *ap = qc->ap; qc 5201 drivers/ata/libata-core.c qc->result_tf.flags = qc->tf.flags; qc 5202 drivers/ata/libata-core.c ap->ops->qc_fill_rtf(qc); qc 5205 drivers/ata/libata-core.c static void ata_verify_xfer(struct ata_queued_cmd *qc) qc 5207 drivers/ata/libata-core.c struct ata_device *dev = qc->dev; qc 5209 drivers/ata/libata-core.c if (!ata_is_data(qc->tf.protocol)) qc 5212 drivers/ata/libata-core.c if ((dev->mwdma_mask || dev->udma_mask) && ata_is_pio(qc->tf.protocol)) qc 5233 drivers/ata/libata-core.c void ata_qc_complete(struct ata_queued_cmd *qc) qc 5235 drivers/ata/libata-core.c struct ata_port *ap = qc->ap; qc 5238 drivers/ata/libata-core.c ledtrig_disk_activity(!!(qc->tf.flags & ATA_TFLAG_WRITE)); qc 5254 drivers/ata/libata-core.c struct ata_device *dev = qc->dev; qc 5257 drivers/ata/libata-core.c if (unlikely(qc->err_mask)) qc 5258 drivers/ata/libata-core.c qc->flags |= ATA_QCFLAG_FAILED; qc 5264 drivers/ata/libata-core.c if (unlikely(ata_tag_internal(qc->tag))) { qc 5265 drivers/ata/libata-core.c fill_result_tf(qc); qc 5266 drivers/ata/libata-core.c trace_ata_qc_complete_internal(qc); qc 5267 drivers/ata/libata-core.c __ata_qc_complete(qc); qc 5275 drivers/ata/libata-core.c if (unlikely(qc->flags & ATA_QCFLAG_FAILED)) { qc 5276 drivers/ata/libata-core.c fill_result_tf(qc); qc 5277 drivers/ata/libata-core.c trace_ata_qc_complete_failed(qc); qc 5278 drivers/ata/libata-core.c ata_qc_schedule_eh(qc); qc 5285 drivers/ata/libata-core.c if (qc->flags & ATA_QCFLAG_RESULT_TF) qc 5286 drivers/ata/libata-core.c fill_result_tf(qc); qc 5288 drivers/ata/libata-core.c trace_ata_qc_complete_done(qc); qc 5292 drivers/ata/libata-core.c switch (qc->tf.command) { qc 5294 drivers/ata/libata-core.c if (qc->tf.feature != SETFEATURES_WC_ON && qc 5295 drivers/ata/libata-core.c qc->tf.feature != SETFEATURES_WC_OFF && qc 5296 drivers/ata/libata-core.c qc->tf.feature != SETFEATURES_RA_ON && qc 5297 drivers/ata/libata-core.c qc->tf.feature != SETFEATURES_RA_OFF) qc 5313 drivers/ata/libata-core.c ata_verify_xfer(qc); qc 5315 drivers/ata/libata-core.c __ata_qc_complete(qc); qc 5317 drivers/ata/libata-core.c if (qc->flags & ATA_QCFLAG_EH_SCHEDULED) qc 5321 drivers/ata/libata-core.c if (qc->err_mask || qc->flags & ATA_QCFLAG_RESULT_TF) qc 5322 drivers/ata/libata-core.c fill_result_tf(qc); qc 5324 drivers/ata/libata-core.c __ata_qc_complete(qc); qc 5396 drivers/ata/libata-core.c struct ata_queued_cmd *qc; qc 5399 drivers/ata/libata-core.c qc = ata_qc_from_tag(ap, tag); qc 5400 drivers/ata/libata-core.c if (qc) { qc 5401 drivers/ata/libata-core.c ata_qc_complete(qc); qc 5422 drivers/ata/libata-core.c void ata_qc_issue(struct ata_queued_cmd *qc) qc 5424 drivers/ata/libata-core.c struct ata_port *ap = qc->ap; qc 5425 drivers/ata/libata-core.c struct ata_link *link = qc->dev->link; qc 5426 drivers/ata/libata-core.c u8 prot = qc->tf.protocol; qc 5435 drivers/ata/libata-core.c WARN_ON_ONCE(link->sactive & (1 << qc->hw_tag)); qc 5439 drivers/ata/libata-core.c link->sactive |= 1 << qc->hw_tag; qc 5444 drivers/ata/libata-core.c link->active_tag = qc->tag; qc 5447 drivers/ata/libata-core.c qc->flags |= ATA_QCFLAG_ACTIVE; qc 5448 drivers/ata/libata-core.c ap->qc_active |= 1ULL << qc->tag; qc 5454 drivers/ata/libata-core.c if (ata_is_data(prot) && (!qc->sg || !qc->n_elem || !qc->nbytes)) qc 5459 drivers/ata/libata-core.c if (ata_sg_setup(qc)) qc 5463 drivers/ata/libata-core.c if (unlikely(qc->dev->flags & ATA_DFLAG_SLEEPING)) { qc 5470 drivers/ata/libata-core.c ap->ops->qc_prep(qc); qc 5471 drivers/ata/libata-core.c trace_ata_qc_issue(qc); qc 5472 drivers/ata/libata-core.c qc->err_mask |= ap->ops->qc_issue(qc); qc 5473 drivers/ata/libata-core.c if (unlikely(qc->err_mask)) qc 5478 drivers/ata/libata-core.c qc->err_mask |= AC_ERR_SYSTEM; qc 5480 drivers/ata/libata-core.c ata_qc_complete(qc); qc 7232 drivers/ata/libata-core.c static unsigned int ata_dummy_qc_issue(struct ata_queued_cmd *qc) qc 598 drivers/ata/libata-eh.c struct ata_queued_cmd *qc; qc 600 drivers/ata/libata-eh.c ata_qc_for_each_raw(ap, qc, i) { qc 601 drivers/ata/libata-eh.c if (qc->flags & ATA_QCFLAG_ACTIVE && qc 602 drivers/ata/libata-eh.c qc->scsicmd == scmd) qc 608 drivers/ata/libata-eh.c if (!(qc->flags & ATA_QCFLAG_FAILED)) { qc 610 drivers/ata/libata-eh.c qc->err_mask |= AC_ERR_TIMEOUT; qc 611 drivers/ata/libata-eh.c qc->flags |= ATA_QCFLAG_FAILED; qc 803 drivers/ata/libata-eh.c struct ata_queued_cmd *qc; qc 808 drivers/ata/libata-eh.c ata_qc_for_each(ap, qc, tag) { qc 809 drivers/ata/libata-eh.c if (qc) qc 831 drivers/ata/libata-eh.c struct ata_queued_cmd *qc; qc 837 drivers/ata/libata-eh.c ata_qc_for_each(ap, qc, tag) { qc 838 drivers/ata/libata-eh.c if (qc) qc 839 drivers/ata/libata-eh.c qc->err_mask |= AC_ERR_TIMEOUT; qc 902 drivers/ata/libata-eh.c void ata_qc_schedule_eh(struct ata_queued_cmd *qc) qc 904 drivers/ata/libata-eh.c struct ata_port *ap = qc->ap; qc 908 drivers/ata/libata-eh.c qc->flags |= ATA_QCFLAG_FAILED; qc 916 drivers/ata/libata-eh.c blk_abort_request(qc->scsicmd->request); qc 979 drivers/ata/libata-eh.c struct ata_queued_cmd *qc; qc 988 drivers/ata/libata-eh.c ata_qc_for_each_with_internal(ap, qc, tag) { qc 989 drivers/ata/libata-eh.c if (qc && (!link || qc->dev->link == link)) { qc 990 drivers/ata/libata-eh.c qc->flags |= ATA_QCFLAG_FAILED; qc 991 drivers/ata/libata-eh.c ata_qc_complete(qc); qc 1219 drivers/ata/libata-eh.c static void __ata_eh_qc_complete(struct ata_queued_cmd *qc) qc 1221 drivers/ata/libata-eh.c struct ata_port *ap = qc->ap; qc 1222 drivers/ata/libata-eh.c struct scsi_cmnd *scmd = qc->scsicmd; qc 1226 drivers/ata/libata-eh.c qc->scsidone = ata_eh_scsidone; qc 1227 drivers/ata/libata-eh.c __ata_qc_complete(qc); qc 1228 drivers/ata/libata-eh.c WARN_ON(ata_tag_valid(qc->tag)); qc 1241 drivers/ata/libata-eh.c void ata_eh_qc_complete(struct ata_queued_cmd *qc) qc 1243 drivers/ata/libata-eh.c struct scsi_cmnd *scmd = qc->scsicmd; qc 1245 drivers/ata/libata-eh.c __ata_eh_qc_complete(qc); qc 1259 drivers/ata/libata-eh.c void ata_eh_qc_retry(struct ata_queued_cmd *qc) qc 1261 drivers/ata/libata-eh.c struct scsi_cmnd *scmd = qc->scsicmd; qc 1262 drivers/ata/libata-eh.c if (!qc->err_mask) qc 1264 drivers/ata/libata-eh.c __ata_eh_qc_complete(qc); qc 1520 drivers/ata/libata-eh.c static void ata_eh_request_sense(struct ata_queued_cmd *qc, qc 1523 drivers/ata/libata-eh.c struct ata_device *dev = qc->dev; qc 1527 drivers/ata/libata-eh.c if (qc->ap->pflags & ATA_PFLAG_FROZEN) { qc 1532 drivers/ata/libata-eh.c if (!cmd || qc->flags & ATA_QCFLAG_SENSE_VALID) qc 1536 drivers/ata/libata-eh.c ata_dev_warn(qc->dev, "sense data reporting disabled\n"); qc 1552 drivers/ata/libata-eh.c qc->flags |= ATA_QCFLAG_SENSE_VALID; qc 1678 drivers/ata/libata-eh.c struct ata_queued_cmd *qc; qc 1691 drivers/ata/libata-eh.c ata_qc_for_each_raw(ap, qc, tag) { qc 1692 drivers/ata/libata-eh.c if (!(qc->flags & ATA_QCFLAG_FAILED)) qc 1695 drivers/ata/libata-eh.c if (qc->err_mask) qc 1715 drivers/ata/libata-eh.c qc = __ata_qc_from_tag(ap, tag); qc 1716 drivers/ata/libata-eh.c memcpy(&qc->result_tf, &tf, sizeof(tf)); qc 1717 drivers/ata/libata-eh.c qc->result_tf.flags = ATA_TFLAG_ISADDR | ATA_TFLAG_LBA | ATA_TFLAG_LBA48; qc 1718 drivers/ata/libata-eh.c qc->err_mask |= AC_ERR_DEV | AC_ERR_NCQ; qc 1720 drivers/ata/libata-eh.c ((qc->result_tf.command & ATA_SENSE) || qc->result_tf.auxiliary)) { qc 1723 drivers/ata/libata-eh.c sense_key = (qc->result_tf.auxiliary >> 16) & 0xff; qc 1724 drivers/ata/libata-eh.c asc = (qc->result_tf.auxiliary >> 8) & 0xff; qc 1725 drivers/ata/libata-eh.c ascq = qc->result_tf.auxiliary & 0xff; qc 1726 drivers/ata/libata-eh.c ata_scsi_set_sense(dev, qc->scsicmd, sense_key, asc, ascq); qc 1727 drivers/ata/libata-eh.c ata_scsi_set_sense_information(dev, qc->scsicmd, qc 1728 drivers/ata/libata-eh.c &qc->result_tf); qc 1729 drivers/ata/libata-eh.c qc->flags |= ATA_QCFLAG_SENSE_VALID; qc 1750 drivers/ata/libata-eh.c static unsigned int ata_eh_analyze_tf(struct ata_queued_cmd *qc, qc 1757 drivers/ata/libata-eh.c qc->err_mask |= AC_ERR_HSM; qc 1762 drivers/ata/libata-eh.c qc->err_mask |= AC_ERR_DEV; qc 1773 drivers/ata/libata-eh.c switch (qc->dev->class) { qc 1776 drivers/ata/libata-eh.c ata_eh_request_sense(qc, qc->scsicmd); qc 1780 drivers/ata/libata-eh.c qc->err_mask |= AC_ERR_ATA_BUS; qc 1782 drivers/ata/libata-eh.c qc->err_mask |= AC_ERR_MEDIA; qc 1784 drivers/ata/libata-eh.c qc->err_mask |= AC_ERR_INVALID; qc 1788 drivers/ata/libata-eh.c if (!(qc->ap->pflags & ATA_PFLAG_FROZEN)) { qc 1789 drivers/ata/libata-eh.c tmp = atapi_eh_request_sense(qc->dev, qc 1790 drivers/ata/libata-eh.c qc->scsicmd->sense_buffer, qc 1791 drivers/ata/libata-eh.c qc->result_tf.feature >> 4); qc 1793 drivers/ata/libata-eh.c qc->flags |= ATA_QCFLAG_SENSE_VALID; qc 1795 drivers/ata/libata-eh.c qc->err_mask |= tmp; qc 1799 drivers/ata/libata-eh.c if (qc->flags & ATA_QCFLAG_SENSE_VALID) { qc 1800 drivers/ata/libata-eh.c int ret = scsi_check_sense(qc->scsicmd); qc 1811 drivers/ata/libata-eh.c qc->flags |= ATA_QCFLAG_RETRY; qc 1812 drivers/ata/libata-eh.c qc->err_mask |= AC_ERR_OTHER; qc 1814 drivers/ata/libata-eh.c qc->err_mask |= AC_ERR_HSM; qc 1817 drivers/ata/libata-eh.c if (qc->err_mask & (AC_ERR_HSM | AC_ERR_TIMEOUT | AC_ERR_ATA_BUS)) qc 2074 drivers/ata/libata-eh.c static inline int ata_eh_worth_retry(struct ata_queued_cmd *qc) qc 2076 drivers/ata/libata-eh.c if (qc->err_mask & AC_ERR_MEDIA) qc 2078 drivers/ata/libata-eh.c if (qc->flags & ATA_QCFLAG_IO) qc 2080 drivers/ata/libata-eh.c if (qc->err_mask & AC_ERR_INVALID) qc 2082 drivers/ata/libata-eh.c return qc->err_mask != AC_ERR_DEV; /* retry if not dev error */ qc 2092 drivers/ata/libata-eh.c static inline bool ata_eh_quiet(struct ata_queued_cmd *qc) qc 2094 drivers/ata/libata-eh.c if (qc->scsicmd && qc 2095 drivers/ata/libata-eh.c qc->scsicmd->request->rq_flags & RQF_QUIET) qc 2096 drivers/ata/libata-eh.c qc->flags |= ATA_QCFLAG_QUIET; qc 2097 drivers/ata/libata-eh.c return qc->flags & ATA_QCFLAG_QUIET; qc 2115 drivers/ata/libata-eh.c struct ata_queued_cmd *qc; qc 2148 drivers/ata/libata-eh.c ata_qc_for_each_raw(ap, qc, tag) { qc 2149 drivers/ata/libata-eh.c if (!(qc->flags & ATA_QCFLAG_FAILED) || qc 2150 drivers/ata/libata-eh.c ata_dev_phys_link(qc->dev) != link) qc 2154 drivers/ata/libata-eh.c qc->err_mask |= ehc->i.err_mask; qc 2157 drivers/ata/libata-eh.c ehc->i.action |= ata_eh_analyze_tf(qc, &qc->result_tf); qc 2160 drivers/ata/libata-eh.c if (qc->err_mask & AC_ERR_ATA_BUS) qc 2161 drivers/ata/libata-eh.c qc->err_mask &= ~(AC_ERR_DEV | AC_ERR_MEDIA | qc 2165 drivers/ata/libata-eh.c if (qc->err_mask & ~AC_ERR_OTHER) qc 2166 drivers/ata/libata-eh.c qc->err_mask &= ~AC_ERR_OTHER; qc 2175 drivers/ata/libata-eh.c if (qc->flags & ATA_QCFLAG_SENSE_VALID) qc 2176 drivers/ata/libata-eh.c qc->err_mask &= ~(AC_ERR_DEV | AC_ERR_OTHER); qc 2177 drivers/ata/libata-eh.c else if (ata_eh_worth_retry(qc)) qc 2178 drivers/ata/libata-eh.c qc->flags |= ATA_QCFLAG_RETRY; qc 2181 drivers/ata/libata-eh.c ehc->i.dev = qc->dev; qc 2182 drivers/ata/libata-eh.c all_err_mask |= qc->err_mask; qc 2183 drivers/ata/libata-eh.c if (qc->flags & ATA_QCFLAG_IO) qc 2185 drivers/ata/libata-eh.c trace_ata_eh_link_autopsy_qc(qc); qc 2188 drivers/ata/libata-eh.c if (ata_eh_quiet(qc)) qc 2414 drivers/ata/libata-eh.c struct ata_queued_cmd *qc; qc 2426 drivers/ata/libata-eh.c ata_qc_for_each_raw(ap, qc, tag) { qc 2427 drivers/ata/libata-eh.c if (!(qc->flags & ATA_QCFLAG_FAILED) || qc 2428 drivers/ata/libata-eh.c ata_dev_phys_link(qc->dev) != link || qc 2429 drivers/ata/libata-eh.c ((qc->flags & ATA_QCFLAG_QUIET) && qc 2430 drivers/ata/libata-eh.c qc->err_mask == AC_ERR_DEV)) qc 2432 drivers/ata/libata-eh.c if (qc->flags & ATA_QCFLAG_SENSE_VALID && !qc->err_mask) qc 2488 drivers/ata/libata-eh.c ata_qc_for_each_raw(ap, qc, tag) { qc 2489 drivers/ata/libata-eh.c struct ata_taskfile *cmd = &qc->tf, *res = &qc->result_tf; qc 2493 drivers/ata/libata-eh.c if (!(qc->flags & ATA_QCFLAG_FAILED) || qc 2494 drivers/ata/libata-eh.c ata_dev_phys_link(qc->dev) != link || !qc->err_mask) qc 2497 drivers/ata/libata-eh.c if (qc->dma_dir != DMA_NONE) { qc 2505 drivers/ata/libata-eh.c switch (qc->tf.protocol) { qc 2535 drivers/ata/libata-eh.c prot_str, qc->nbytes, dma_str[qc->dma_dir]); qc 2538 drivers/ata/libata-eh.c if (ata_is_atapi(qc->tf.protocol)) { qc 2539 drivers/ata/libata-eh.c const u8 *cdb = qc->cdb; qc 2540 drivers/ata/libata-eh.c size_t cdb_len = qc->dev->cdb_len; qc 2542 drivers/ata/libata-eh.c if (qc->scsicmd) { qc 2543 drivers/ata/libata-eh.c cdb = qc->scsicmd->cmnd; qc 2544 drivers/ata/libata-eh.c cdb_len = qc->scsicmd->cmd_len; qc 2551 drivers/ata/libata-eh.c ata_dev_err(qc->dev, "failed command: %s\n", qc 2555 drivers/ata/libata-eh.c ata_dev_err(qc->dev, qc 2564 drivers/ata/libata-eh.c cmd->device, qc->tag, data_buf, cdb_buf, qc 2569 drivers/ata/libata-eh.c res->device, qc->err_mask, ata_err_string(qc->err_mask), qc 2570 drivers/ata/libata-eh.c qc->err_mask & AC_ERR_NCQ ? " <F>" : ""); qc 2576 drivers/ata/libata-eh.c ata_dev_err(qc->dev, "status: { Busy }\n"); qc 2578 drivers/ata/libata-eh.c ata_dev_err(qc->dev, "status: { %s%s%s%s%s}\n", qc 2589 drivers/ata/libata-eh.c ata_dev_err(qc->dev, "error: { %s%s%s%s%s}\n", qc 3354 drivers/ata/libata-eh.c struct ata_queued_cmd *qc; qc 3363 drivers/ata/libata-eh.c qc = __ata_qc_from_tag(ap, link->active_tag); qc 3364 drivers/ata/libata-eh.c if (qc->dev != dev || (qc->tf.command != ATA_CMD_FLUSH_EXT && qc 3365 drivers/ata/libata-eh.c qc->tf.command != ATA_CMD_FLUSH)) qc 3369 drivers/ata/libata-eh.c if (qc->err_mask & AC_ERR_DEV) qc 3375 drivers/ata/libata-eh.c tf.command = qc->tf.command; qc 3380 drivers/ata/libata-eh.c tf.command, qc->err_mask); qc 3392 drivers/ata/libata-eh.c qc->scsicmd->allowed = max(qc->scsicmd->allowed, 1); qc 3400 drivers/ata/libata-eh.c qc->err_mask |= AC_ERR_DEV; qc 3401 drivers/ata/libata-eh.c qc->result_tf = tf; qc 3968 drivers/ata/libata-eh.c struct ata_queued_cmd *qc; qc 3972 drivers/ata/libata-eh.c ata_qc_for_each_raw(ap, qc, tag) { qc 3973 drivers/ata/libata-eh.c if (!(qc->flags & ATA_QCFLAG_FAILED)) qc 3976 drivers/ata/libata-eh.c if (qc->err_mask) { qc 3981 drivers/ata/libata-eh.c if (qc->flags & ATA_QCFLAG_RETRY) qc 3982 drivers/ata/libata-eh.c ata_eh_qc_retry(qc); qc 3984 drivers/ata/libata-eh.c ata_eh_qc_complete(qc); qc 3986 drivers/ata/libata-eh.c if (qc->flags & ATA_QCFLAG_SENSE_VALID) { qc 3987 drivers/ata/libata-eh.c ata_eh_qc_complete(qc); qc 3990 drivers/ata/libata-eh.c memset(&qc->result_tf, 0, sizeof(qc->result_tf)); qc 3991 drivers/ata/libata-eh.c ata_eh_qc_retry(qc); qc 109 drivers/ata/libata-pmp.c int sata_pmp_qc_defer_cmd_switch(struct ata_queued_cmd *qc) qc 111 drivers/ata/libata-pmp.c struct ata_link *link = qc->dev->link; qc 116 drivers/ata/libata-pmp.c qc->flags |= ATA_QCFLAG_CLEAR_EXCL; qc 117 drivers/ata/libata-pmp.c return ata_std_qc_defer(qc); qc 47 drivers/ata/libata-scsi.c typedef unsigned int (*ata_xlat_func_t)(struct ata_queued_cmd *qc); qc 846 drivers/ata/libata-scsi.c struct ata_queued_cmd *qc; qc 848 drivers/ata/libata-scsi.c qc = ata_qc_new_init(dev, cmd->request->tag); qc 849 drivers/ata/libata-scsi.c if (qc) { qc 850 drivers/ata/libata-scsi.c qc->scsicmd = cmd; qc 851 drivers/ata/libata-scsi.c qc->scsidone = cmd->scsi_done; qc 853 drivers/ata/libata-scsi.c qc->sg = scsi_sglist(cmd); qc 854 drivers/ata/libata-scsi.c qc->n_elem = scsi_sg_count(cmd); qc 857 drivers/ata/libata-scsi.c qc->flags |= ATA_QCFLAG_QUIET; qc 863 drivers/ata/libata-scsi.c return qc; qc 866 drivers/ata/libata-scsi.c static void ata_qc_set_pc_nbytes(struct ata_queued_cmd *qc) qc 868 drivers/ata/libata-scsi.c struct scsi_cmnd *scmd = qc->scsicmd; qc 870 drivers/ata/libata-scsi.c qc->extrabytes = scmd->request->extra_len; qc 871 drivers/ata/libata-scsi.c qc->nbytes = scsi_bufflen(scmd) + qc->extrabytes; qc 1068 drivers/ata/libata-scsi.c static void ata_gen_passthru_sense(struct ata_queued_cmd *qc) qc 1070 drivers/ata/libata-scsi.c struct scsi_cmnd *cmd = qc->scsicmd; qc 1071 drivers/ata/libata-scsi.c struct ata_taskfile *tf = &qc->result_tf; qc 1074 drivers/ata/libata-scsi.c int verbose = qc->ap->ops->error_handler == NULL; qc 1085 drivers/ata/libata-scsi.c if (qc->err_mask || qc 1087 drivers/ata/libata-scsi.c ata_to_sense_error(qc->ap->print_id, tf->command, tf->feature, qc 1089 drivers/ata/libata-scsi.c ata_scsi_set_sense(qc->dev, cmd, sense_key, asc, ascq); qc 1166 drivers/ata/libata-scsi.c static void ata_gen_ata_sense(struct ata_queued_cmd *qc) qc 1168 drivers/ata/libata-scsi.c struct ata_device *dev = qc->dev; qc 1169 drivers/ata/libata-scsi.c struct scsi_cmnd *cmd = qc->scsicmd; qc 1170 drivers/ata/libata-scsi.c struct ata_taskfile *tf = &qc->result_tf; qc 1172 drivers/ata/libata-scsi.c int verbose = qc->ap->ops->error_handler == NULL; qc 1189 drivers/ata/libata-scsi.c if (qc->err_mask || qc 1191 drivers/ata/libata-scsi.c ata_to_sense_error(qc->ap->print_id, tf->command, tf->feature, qc 1197 drivers/ata/libata-scsi.c tf->command, qc->err_mask); qc 1202 drivers/ata/libata-scsi.c block = ata_tf_read_block(&qc->result_tf, dev); qc 1458 drivers/ata/libata-scsi.c static unsigned int ata_scsi_start_stop_xlat(struct ata_queued_cmd *qc) qc 1460 drivers/ata/libata-scsi.c struct scsi_cmnd *scmd = qc->scsicmd; qc 1461 drivers/ata/libata-scsi.c struct ata_taskfile *tf = &qc->tf; qc 1490 drivers/ata/libata-scsi.c if (qc->dev->flags & ATA_DFLAG_LBA) { qc 1509 drivers/ata/libata-scsi.c if ((qc->ap->flags & ATA_FLAG_NO_POWEROFF_SPINDOWN) && qc 1513 drivers/ata/libata-scsi.c if ((qc->ap->flags & ATA_FLAG_NO_HIBERNATE_SPINDOWN) && qc 1531 drivers/ata/libata-scsi.c ata_scsi_set_invalid_field(qc->dev, scmd, fp, bp); qc 1552 drivers/ata/libata-scsi.c static unsigned int ata_scsi_flush_xlat(struct ata_queued_cmd *qc) qc 1554 drivers/ata/libata-scsi.c struct ata_taskfile *tf = &qc->tf; qc 1559 drivers/ata/libata-scsi.c if (qc->dev->flags & ATA_DFLAG_FLUSH_EXT) qc 1565 drivers/ata/libata-scsi.c qc->flags |= ATA_QCFLAG_IO; qc 1673 drivers/ata/libata-scsi.c static unsigned int ata_scsi_verify_xlat(struct ata_queued_cmd *qc) qc 1675 drivers/ata/libata-scsi.c struct scsi_cmnd *scmd = qc->scsicmd; qc 1676 drivers/ata/libata-scsi.c struct ata_taskfile *tf = &qc->tf; qc 1677 drivers/ata/libata-scsi.c struct ata_device *dev = qc->dev; qc 1678 drivers/ata/libata-scsi.c u64 dev_sectors = qc->dev->n_sectors; qc 1776 drivers/ata/libata-scsi.c ata_scsi_set_invalid_field(qc->dev, scmd, fp, 0xff); qc 1780 drivers/ata/libata-scsi.c ata_scsi_set_sense(qc->dev, scmd, ILLEGAL_REQUEST, 0x21, 0x0); qc 1822 drivers/ata/libata-scsi.c static unsigned int ata_scsi_rw_xlat(struct ata_queued_cmd *qc) qc 1824 drivers/ata/libata-scsi.c struct scsi_cmnd *scmd = qc->scsicmd; qc 1896 drivers/ata/libata-scsi.c qc->flags |= ATA_QCFLAG_IO; qc 1897 drivers/ata/libata-scsi.c qc->nbytes = n_block * scmd->device->sector_size; qc 1899 drivers/ata/libata-scsi.c rc = ata_build_rw_tf(&qc->tf, qc->dev, block, n_block, tf_flags, qc 1900 drivers/ata/libata-scsi.c qc->hw_tag, class); qc 1909 drivers/ata/libata-scsi.c ata_scsi_set_invalid_field(qc->dev, scmd, fp, 0xff); qc 1913 drivers/ata/libata-scsi.c ata_scsi_set_sense(qc->dev, scmd, ILLEGAL_REQUEST, 0x21, 0x0); qc 1922 drivers/ata/libata-scsi.c static void ata_qc_done(struct ata_queued_cmd *qc) qc 1924 drivers/ata/libata-scsi.c struct scsi_cmnd *cmd = qc->scsicmd; qc 1925 drivers/ata/libata-scsi.c void (*done)(struct scsi_cmnd *) = qc->scsidone; qc 1927 drivers/ata/libata-scsi.c ata_qc_free(qc); qc 1931 drivers/ata/libata-scsi.c static void ata_scsi_qc_complete(struct ata_queued_cmd *qc) qc 1933 drivers/ata/libata-scsi.c struct ata_port *ap = qc->ap; qc 1934 drivers/ata/libata-scsi.c struct scsi_cmnd *cmd = qc->scsicmd; qc 1936 drivers/ata/libata-scsi.c int need_sense = (qc->err_mask != 0); qc 1949 drivers/ata/libata-scsi.c ata_gen_passthru_sense(qc); qc 1950 drivers/ata/libata-scsi.c else if (qc->flags & ATA_QCFLAG_SENSE_VALID) qc 1953 drivers/ata/libata-scsi.c ata_gen_ata_sense(qc); qc 1958 drivers/ata/libata-scsi.c ata_dump_status(ap->print_id, &qc->result_tf); qc 1960 drivers/ata/libata-scsi.c ata_qc_done(qc); qc 1993 drivers/ata/libata-scsi.c struct ata_queued_cmd *qc; qc 1998 drivers/ata/libata-scsi.c qc = ata_scsi_qc_new(dev, cmd); qc 1999 drivers/ata/libata-scsi.c if (!qc) qc 2010 drivers/ata/libata-scsi.c ata_sg_init(qc, scsi_sglist(cmd), scsi_sg_count(cmd)); qc 2012 drivers/ata/libata-scsi.c qc->dma_dir = cmd->sc_data_direction; qc 2015 drivers/ata/libata-scsi.c qc->complete_fn = ata_scsi_qc_complete; qc 2017 drivers/ata/libata-scsi.c if (xlat_func(qc)) qc 2021 drivers/ata/libata-scsi.c if ((rc = ap->ops->qc_defer(qc))) qc 2026 drivers/ata/libata-scsi.c ata_qc_issue(qc); qc 2032 drivers/ata/libata-scsi.c ata_qc_free(qc); qc 2038 drivers/ata/libata-scsi.c ata_qc_free(qc); qc 2046 drivers/ata/libata-scsi.c ata_qc_free(qc); qc 2789 drivers/ata/libata-scsi.c static void atapi_sense_complete(struct ata_queued_cmd *qc) qc 2791 drivers/ata/libata-scsi.c if (qc->err_mask && ((qc->err_mask & AC_ERR_DEV) == 0)) { qc 2797 drivers/ata/libata-scsi.c ata_gen_passthru_sense(qc); qc 2800 drivers/ata/libata-scsi.c ata_qc_done(qc); qc 2809 drivers/ata/libata-scsi.c static void atapi_request_sense(struct ata_queued_cmd *qc) qc 2811 drivers/ata/libata-scsi.c struct ata_port *ap = qc->ap; qc 2812 drivers/ata/libata-scsi.c struct scsi_cmnd *cmd = qc->scsicmd; qc 2820 drivers/ata/libata-scsi.c ap->ops->sff_tf_read(ap, &qc->tf); qc 2825 drivers/ata/libata-scsi.c cmd->sense_buffer[2] = qc->tf.feature >> 4; qc 2827 drivers/ata/libata-scsi.c ata_qc_reinit(qc); qc 2830 drivers/ata/libata-scsi.c sg_init_one(&qc->sgent, cmd->sense_buffer, SCSI_SENSE_BUFFERSIZE); qc 2831 drivers/ata/libata-scsi.c ata_sg_init(qc, &qc->sgent, 1); qc 2832 drivers/ata/libata-scsi.c qc->dma_dir = DMA_FROM_DEVICE; qc 2834 drivers/ata/libata-scsi.c memset(&qc->cdb, 0, qc->dev->cdb_len); qc 2835 drivers/ata/libata-scsi.c qc->cdb[0] = REQUEST_SENSE; qc 2836 drivers/ata/libata-scsi.c qc->cdb[4] = SCSI_SENSE_BUFFERSIZE; qc 2838 drivers/ata/libata-scsi.c qc->tf.flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE; qc 2839 drivers/ata/libata-scsi.c qc->tf.command = ATA_CMD_PACKET; qc 2842 drivers/ata/libata-scsi.c qc->tf.protocol = ATAPI_PROT_DMA; qc 2843 drivers/ata/libata-scsi.c qc->tf.feature |= ATAPI_PKT_DMA; qc 2845 drivers/ata/libata-scsi.c qc->tf.protocol = ATAPI_PROT_PIO; qc 2846 drivers/ata/libata-scsi.c qc->tf.lbam = SCSI_SENSE_BUFFERSIZE; qc 2847 drivers/ata/libata-scsi.c qc->tf.lbah = 0; qc 2849 drivers/ata/libata-scsi.c qc->nbytes = SCSI_SENSE_BUFFERSIZE; qc 2851 drivers/ata/libata-scsi.c qc->complete_fn = atapi_sense_complete; qc 2853 drivers/ata/libata-scsi.c ata_qc_issue(qc); qc 2878 drivers/ata/libata-scsi.c static void atapi_qc_complete(struct ata_queued_cmd *qc) qc 2880 drivers/ata/libata-scsi.c struct scsi_cmnd *cmd = qc->scsicmd; qc 2881 drivers/ata/libata-scsi.c unsigned int err_mask = qc->err_mask; qc 2886 drivers/ata/libata-scsi.c if (unlikely(qc->ap->ops->error_handler && qc 2887 drivers/ata/libata-scsi.c (err_mask || qc->flags & ATA_QCFLAG_SENSE_VALID))) { qc 2889 drivers/ata/libata-scsi.c if (!(qc->flags & ATA_QCFLAG_SENSE_VALID)) { qc 2895 drivers/ata/libata-scsi.c ata_gen_passthru_sense(qc); qc 2911 drivers/ata/libata-scsi.c if (qc->cdb[0] == ALLOW_MEDIUM_REMOVAL && qc->dev->sdev) qc 2912 drivers/ata/libata-scsi.c qc->dev->sdev->locked = 0; qc 2914 drivers/ata/libata-scsi.c qc->scsicmd->result = SAM_STAT_CHECK_CONDITION; qc 2915 drivers/ata/libata-scsi.c ata_qc_done(qc); qc 2922 drivers/ata/libata-scsi.c atapi_request_sense(qc); qc 2930 drivers/ata/libata-scsi.c ata_gen_passthru_sense(qc); qc 2937 drivers/ata/libata-scsi.c ata_qc_done(qc); qc 2949 drivers/ata/libata-scsi.c static unsigned int atapi_xlat(struct ata_queued_cmd *qc) qc 2951 drivers/ata/libata-scsi.c struct scsi_cmnd *scmd = qc->scsicmd; qc 2952 drivers/ata/libata-scsi.c struct ata_device *dev = qc->dev; qc 2957 drivers/ata/libata-scsi.c memset(qc->cdb, 0, dev->cdb_len); qc 2958 drivers/ata/libata-scsi.c memcpy(qc->cdb, scmd->cmnd, scmd->cmd_len); qc 2960 drivers/ata/libata-scsi.c qc->complete_fn = atapi_qc_complete; qc 2962 drivers/ata/libata-scsi.c qc->tf.flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE; qc 2964 drivers/ata/libata-scsi.c qc->tf.flags |= ATA_TFLAG_WRITE; qc 2968 drivers/ata/libata-scsi.c qc->tf.command = ATA_CMD_PACKET; qc 2969 drivers/ata/libata-scsi.c ata_qc_set_pc_nbytes(qc); qc 2972 drivers/ata/libata-scsi.c if (!nodata && !using_pio && atapi_check_dma(qc)) qc 2980 drivers/ata/libata-scsi.c nbytes = min(ata_qc_raw_nbytes(qc), (unsigned int)63 * 1024); qc 3009 drivers/ata/libata-scsi.c qc->tf.lbam = (nbytes & 0xFF); qc 3010 drivers/ata/libata-scsi.c qc->tf.lbah = (nbytes >> 8); qc 3013 drivers/ata/libata-scsi.c qc->tf.protocol = ATAPI_PROT_NODATA; qc 3015 drivers/ata/libata-scsi.c qc->tf.protocol = ATAPI_PROT_PIO; qc 3018 drivers/ata/libata-scsi.c qc->tf.protocol = ATAPI_PROT_DMA; qc 3019 drivers/ata/libata-scsi.c qc->tf.feature |= ATAPI_PKT_DMA; qc 3024 drivers/ata/libata-scsi.c qc->tf.feature |= ATAPI_DMADIR; qc 3142 drivers/ata/libata-scsi.c static unsigned int ata_scsi_pass_thru(struct ata_queued_cmd *qc) qc 3144 drivers/ata/libata-scsi.c struct ata_taskfile *tf = &(qc->tf); qc 3145 drivers/ata/libata-scsi.c struct scsi_cmnd *scmd = qc->scsicmd; qc 3146 drivers/ata/libata-scsi.c struct ata_device *dev = qc->dev; qc 3238 drivers/ata/libata-scsi.c tf->nsect = qc->hw_tag << 3; qc 3254 drivers/ata/libata-scsi.c qc->sect_size = scsi_bufflen(scmd); qc 3288 drivers/ata/libata-scsi.c qc->sect_size = scmd->device->sector_size; qc 3293 drivers/ata/libata-scsi.c qc->sect_size = ATA_SECT_SIZE; qc 3305 drivers/ata/libata-scsi.c qc->flags |= ATA_QCFLAG_RESULT_TF | ATA_QCFLAG_QUIET; qc 3313 drivers/ata/libata-scsi.c ata_qc_set_pc_nbytes(qc); qc 3449 drivers/ata/libata-scsi.c static unsigned int ata_scsi_write_same_xlat(struct ata_queued_cmd *qc) qc 3451 drivers/ata/libata-scsi.c struct ata_taskfile *tf = &qc->tf; qc 3452 drivers/ata/libata-scsi.c struct scsi_cmnd *scmd = qc->scsicmd; qc 3455 drivers/ata/libata-scsi.c struct ata_device *dev = qc->dev; qc 3518 drivers/ata/libata-scsi.c tf->nsect = qc->hw_tag << 3; qc 3535 drivers/ata/libata-scsi.c ata_qc_set_pc_nbytes(qc); qc 3631 drivers/ata/libata-scsi.c static void ata_scsi_report_zones_complete(struct ata_queued_cmd *qc) qc 3633 drivers/ata/libata-scsi.c struct scsi_cmnd *scmd = qc->scsicmd; qc 3691 drivers/ata/libata-scsi.c ata_scsi_qc_complete(qc); qc 3694 drivers/ata/libata-scsi.c static unsigned int ata_scsi_zbc_in_xlat(struct ata_queued_cmd *qc) qc 3696 drivers/ata/libata-scsi.c struct ata_taskfile *tf = &qc->tf; qc 3697 drivers/ata/libata-scsi.c struct scsi_cmnd *scmd = qc->scsicmd; qc 3705 drivers/ata/libata-scsi.c ata_dev_warn(qc->dev, "invalid cdb length %d\n", qc 3712 drivers/ata/libata-scsi.c ata_dev_warn(qc->dev, "non-matching transfer count (%d/%d)\n", qc 3718 drivers/ata/libata-scsi.c ata_dev_warn(qc->dev, "invalid service action %d\n", sa); qc 3727 drivers/ata/libata-scsi.c ata_dev_warn(qc->dev, "invalid transfer count %d\n", n_block); qc 3733 drivers/ata/libata-scsi.c if (ata_ncq_enabled(qc->dev) && qc 3734 drivers/ata/libata-scsi.c ata_fpdma_zac_mgmt_in_supported(qc->dev)) { qc 3738 drivers/ata/libata-scsi.c tf->nsect = qc->hw_tag << 3; qc 3759 drivers/ata/libata-scsi.c qc->flags |= ATA_QCFLAG_RESULT_TF; qc 3761 drivers/ata/libata-scsi.c ata_qc_set_pc_nbytes(qc); qc 3763 drivers/ata/libata-scsi.c qc->complete_fn = ata_scsi_report_zones_complete; qc 3768 drivers/ata/libata-scsi.c ata_scsi_set_invalid_field(qc->dev, scmd, fp, bp); qc 3773 drivers/ata/libata-scsi.c ata_scsi_set_sense(qc->dev, scmd, ILLEGAL_REQUEST, 0x1a, 0x0); qc 3777 drivers/ata/libata-scsi.c static unsigned int ata_scsi_zbc_out_xlat(struct ata_queued_cmd *qc) qc 3779 drivers/ata/libata-scsi.c struct ata_taskfile *tf = &qc->tf; qc 3780 drivers/ata/libata-scsi.c struct scsi_cmnd *scmd = qc->scsicmd; qc 3781 drivers/ata/libata-scsi.c struct ata_device *dev = qc->dev; qc 3822 drivers/ata/libata-scsi.c if (ata_ncq_enabled(qc->dev) && qc 3823 drivers/ata/libata-scsi.c ata_fpdma_zac_mgmt_out_supported(qc->dev)) { qc 3827 drivers/ata/libata-scsi.c tf->nsect = qc->hw_tag << 3; qc 3847 drivers/ata/libata-scsi.c ata_scsi_set_invalid_field(qc->dev, scmd, fp, 0xff); qc 3851 drivers/ata/libata-scsi.c ata_scsi_set_sense(qc->dev, scmd, ILLEGAL_REQUEST, 0x1a, 0x0); qc 3867 drivers/ata/libata-scsi.c static int ata_mselect_caching(struct ata_queued_cmd *qc, qc 3870 drivers/ata/libata-scsi.c struct ata_taskfile *tf = &qc->tf; qc 3871 drivers/ata/libata-scsi.c struct ata_device *dev = qc->dev; qc 3924 drivers/ata/libata-scsi.c static int ata_mselect_control(struct ata_queued_cmd *qc, qc 3927 drivers/ata/libata-scsi.c struct ata_device *dev = qc->dev; qc 3977 drivers/ata/libata-scsi.c static unsigned int ata_scsi_mode_select_xlat(struct ata_queued_cmd *qc) qc 3979 drivers/ata/libata-scsi.c struct scsi_cmnd *scmd = qc->scsicmd; qc 4080 drivers/ata/libata-scsi.c if (ata_mselect_caching(qc, p, pg_len, &fp) < 0) { qc 4086 drivers/ata/libata-scsi.c if (ata_mselect_control(qc, p, pg_len, &fp) < 0) { qc 4108 drivers/ata/libata-scsi.c ata_scsi_set_invalid_field(qc->dev, scmd, fp, bp); qc 4112 drivers/ata/libata-scsi.c ata_scsi_set_invalid_parameter(qc->dev, scmd, fp); qc 4117 drivers/ata/libata-scsi.c ata_scsi_set_sense(qc->dev, scmd, ILLEGAL_REQUEST, 0x1a, 0x0); qc 4135 drivers/ata/libata-scsi.c static unsigned int ata_scsi_security_inout_xlat(struct ata_queued_cmd *qc) qc 4137 drivers/ata/libata-scsi.c struct scsi_cmnd *scmd = qc->scsicmd; qc 4139 drivers/ata/libata-scsi.c struct ata_taskfile *tf = &qc->tf; qc 4144 drivers/ata/libata-scsi.c bool dma = !(qc->dev->flags & ATA_DFLAG_PIO); qc 4150 drivers/ata/libata-scsi.c ata_scsi_set_invalid_field(qc->dev, scmd, 1, 0); qc 4156 drivers/ata/libata-scsi.c ata_scsi_set_invalid_field(qc->dev, scmd, 6, 0); qc 4161 drivers/ata/libata-scsi.c ata_scsi_set_invalid_field(qc->dev, scmd, 6, 0); qc 4186 drivers/ata/libata-scsi.c ata_qc_set_pc_nbytes(qc); qc 4201 drivers/ata/libata-scsi.c static unsigned int ata_scsi_var_len_cdb_xlat(struct ata_queued_cmd *qc) qc 4203 drivers/ata/libata-scsi.c struct scsi_cmnd *scmd = qc->scsicmd; qc 4212 drivers/ata/libata-scsi.c return ata_scsi_pass_thru(qc); qc 542 drivers/ata/libata-sff.c unsigned int ata_sff_data_xfer(struct ata_queued_cmd *qc, unsigned char *buf, qc 545 drivers/ata/libata-sff.c struct ata_port *ap = qc->dev->link->ap; qc 597 drivers/ata/libata-sff.c unsigned int ata_sff_data_xfer32(struct ata_queued_cmd *qc, unsigned char *buf, qc 600 drivers/ata/libata-sff.c struct ata_device *dev = qc->dev; qc 607 drivers/ata/libata-sff.c return ata_sff_data_xfer(qc, buf, buflen, rw); qc 653 drivers/ata/libata-sff.c static void ata_pio_sector(struct ata_queued_cmd *qc) qc 655 drivers/ata/libata-sff.c int do_write = (qc->tf.flags & ATA_TFLAG_WRITE); qc 656 drivers/ata/libata-sff.c struct ata_port *ap = qc->ap; qc 661 drivers/ata/libata-sff.c if (!qc->cursg) { qc 662 drivers/ata/libata-sff.c qc->curbytes = qc->nbytes; qc 665 drivers/ata/libata-sff.c if (qc->curbytes == qc->nbytes - qc->sect_size) qc 668 drivers/ata/libata-sff.c page = sg_page(qc->cursg); qc 669 drivers/ata/libata-sff.c offset = qc->cursg->offset + qc->cursg_ofs; qc 675 drivers/ata/libata-sff.c DPRINTK("data %s\n", qc->tf.flags & ATA_TFLAG_WRITE ? "write" : "read"); qc 679 drivers/ata/libata-sff.c ap->ops->sff_data_xfer(qc, buf + offset, qc->sect_size, do_write); qc 685 drivers/ata/libata-sff.c qc->curbytes += qc->sect_size; qc 686 drivers/ata/libata-sff.c qc->cursg_ofs += qc->sect_size; qc 688 drivers/ata/libata-sff.c if (qc->cursg_ofs == qc->cursg->length) { qc 689 drivers/ata/libata-sff.c qc->cursg = sg_next(qc->cursg); qc 690 drivers/ata/libata-sff.c if (!qc->cursg) qc 692 drivers/ata/libata-sff.c qc->cursg_ofs = 0; qc 706 drivers/ata/libata-sff.c static void ata_pio_sectors(struct ata_queued_cmd *qc) qc 708 drivers/ata/libata-sff.c if (is_multi_taskfile(&qc->tf)) { qc 712 drivers/ata/libata-sff.c WARN_ON_ONCE(qc->dev->multi_count == 0); qc 714 drivers/ata/libata-sff.c nsect = min((qc->nbytes - qc->curbytes) / qc->sect_size, qc 715 drivers/ata/libata-sff.c qc->dev->multi_count); qc 717 drivers/ata/libata-sff.c ata_pio_sector(qc); qc 719 drivers/ata/libata-sff.c ata_pio_sector(qc); qc 721 drivers/ata/libata-sff.c ata_sff_sync(qc->ap); /* flush */ qc 735 drivers/ata/libata-sff.c static void atapi_send_cdb(struct ata_port *ap, struct ata_queued_cmd *qc) qc 739 drivers/ata/libata-sff.c WARN_ON_ONCE(qc->dev->cdb_len < 12); qc 741 drivers/ata/libata-sff.c ap->ops->sff_data_xfer(qc, qc->cdb, qc->dev->cdb_len, 1); qc 745 drivers/ata/libata-sff.c switch (qc->tf.protocol) { qc 756 drivers/ata/libata-sff.c ap->ops->bmdma_start(qc); qc 775 drivers/ata/libata-sff.c static int __atapi_pio_bytes(struct ata_queued_cmd *qc, unsigned int bytes) qc 777 drivers/ata/libata-sff.c int rw = (qc->tf.flags & ATA_TFLAG_WRITE) ? WRITE : READ; qc 778 drivers/ata/libata-sff.c struct ata_port *ap = qc->ap; qc 779 drivers/ata/libata-sff.c struct ata_device *dev = qc->dev; qc 787 drivers/ata/libata-sff.c sg = qc->cursg; qc 791 drivers/ata/libata-sff.c qc->nbytes, qc->curbytes, bytes); qc 796 drivers/ata/libata-sff.c offset = sg->offset + qc->cursg_ofs; qc 803 drivers/ata/libata-sff.c count = min(sg->length - qc->cursg_ofs, bytes); qc 808 drivers/ata/libata-sff.c DPRINTK("data %s\n", qc->tf.flags & ATA_TFLAG_WRITE ? "write" : "read"); qc 812 drivers/ata/libata-sff.c consumed = ap->ops->sff_data_xfer(qc, buf + offset, count, rw); qc 816 drivers/ata/libata-sff.c qc->curbytes += count; qc 817 drivers/ata/libata-sff.c qc->cursg_ofs += count; qc 819 drivers/ata/libata-sff.c if (qc->cursg_ofs == sg->length) { qc 820 drivers/ata/libata-sff.c qc->cursg = sg_next(qc->cursg); qc 821 drivers/ata/libata-sff.c qc->cursg_ofs = 0; qc 844 drivers/ata/libata-sff.c static void atapi_pio_bytes(struct ata_queued_cmd *qc) qc 846 drivers/ata/libata-sff.c struct ata_port *ap = qc->ap; qc 847 drivers/ata/libata-sff.c struct ata_device *dev = qc->dev; qc 850 drivers/ata/libata-sff.c int i_write, do_write = (qc->tf.flags & ATA_TFLAG_WRITE) ? 1 : 0; qc 858 drivers/ata/libata-sff.c ap->ops->sff_tf_read(ap, &qc->result_tf); qc 859 drivers/ata/libata-sff.c ireason = qc->result_tf.nsect; qc 860 drivers/ata/libata-sff.c bc_lo = qc->result_tf.lbam; qc 861 drivers/ata/libata-sff.c bc_hi = qc->result_tf.lbah; qc 878 drivers/ata/libata-sff.c if (unlikely(__atapi_pio_bytes(qc, bytes))) qc 888 drivers/ata/libata-sff.c qc->err_mask |= AC_ERR_HSM; qc 901 drivers/ata/libata-sff.c struct ata_queued_cmd *qc) qc 903 drivers/ata/libata-sff.c if (qc->tf.flags & ATA_TFLAG_POLLING) qc 907 drivers/ata/libata-sff.c if (qc->tf.protocol == ATA_PROT_PIO && qc 908 drivers/ata/libata-sff.c (qc->tf.flags & ATA_TFLAG_WRITE)) qc 911 drivers/ata/libata-sff.c if (ata_is_atapi(qc->tf.protocol) && qc 912 drivers/ata/libata-sff.c !(qc->dev->flags & ATA_DFLAG_CDB_INTR)) qc 930 drivers/ata/libata-sff.c static void ata_hsm_qc_complete(struct ata_queued_cmd *qc, int in_wq) qc 932 drivers/ata/libata-sff.c struct ata_port *ap = qc->ap; qc 939 drivers/ata/libata-sff.c qc = ata_qc_from_tag(ap, qc->tag); qc 940 drivers/ata/libata-sff.c if (qc) { qc 941 drivers/ata/libata-sff.c if (likely(!(qc->err_mask & AC_ERR_HSM))) { qc 943 drivers/ata/libata-sff.c ata_qc_complete(qc); qc 948 drivers/ata/libata-sff.c if (likely(!(qc->err_mask & AC_ERR_HSM))) qc 949 drivers/ata/libata-sff.c ata_qc_complete(qc); qc 956 drivers/ata/libata-sff.c ata_qc_complete(qc); qc 958 drivers/ata/libata-sff.c ata_qc_complete(qc); qc 972 drivers/ata/libata-sff.c int ata_sff_hsm_move(struct ata_port *ap, struct ata_queued_cmd *qc, qc 975 drivers/ata/libata-sff.c struct ata_link *link = qc->dev->link; qc 981 drivers/ata/libata-sff.c WARN_ON_ONCE((qc->flags & ATA_QCFLAG_ACTIVE) == 0); qc 987 drivers/ata/libata-sff.c WARN_ON_ONCE(in_wq != ata_hsm_ok_in_wq(ap, qc)); qc 991 drivers/ata/libata-sff.c ap->print_id, qc->tf.protocol, ap->hsm_task_state, status); qc 1001 drivers/ata/libata-sff.c poll_next = (qc->tf.flags & ATA_TFLAG_POLLING); qc 1008 drivers/ata/libata-sff.c qc->err_mask |= AC_ERR_DEV; qc 1013 drivers/ata/libata-sff.c qc->err_mask |= AC_ERR_HSM; qc 1032 drivers/ata/libata-sff.c if (!(qc->dev->horkage & ATA_HORKAGE_STUCK_ERR)) { qc 1036 drivers/ata/libata-sff.c qc->err_mask |= AC_ERR_HSM; qc 1042 drivers/ata/libata-sff.c if (qc->tf.protocol == ATA_PROT_PIO) { qc 1052 drivers/ata/libata-sff.c ata_pio_sectors(qc); qc 1055 drivers/ata/libata-sff.c atapi_send_cdb(ap, qc); qc 1064 drivers/ata/libata-sff.c if (qc->tf.protocol == ATAPI_PROT_PIO) { qc 1084 drivers/ata/libata-sff.c qc->err_mask |= AC_ERR_HSM; qc 1089 drivers/ata/libata-sff.c atapi_pio_bytes(qc); qc 1101 drivers/ata/libata-sff.c qc->err_mask |= AC_ERR_DEV; qc 1107 drivers/ata/libata-sff.c if (qc->dev->horkage & qc 1109 drivers/ata/libata-sff.c qc->err_mask |= qc 1119 drivers/ata/libata-sff.c qc->err_mask |= AC_ERR_HSM | qc 1139 drivers/ata/libata-sff.c qc->err_mask |= AC_ERR_DEV; qc 1141 drivers/ata/libata-sff.c if (!(qc->tf.flags & ATA_TFLAG_WRITE)) { qc 1142 drivers/ata/libata-sff.c ata_pio_sectors(qc); qc 1150 drivers/ata/libata-sff.c qc->err_mask |= AC_ERR_HSM; qc 1161 drivers/ata/libata-sff.c qc->err_mask |= AC_ERR_NODEV_HINT; qc 1171 drivers/ata/libata-sff.c ata_pio_sectors(qc); qc 1174 drivers/ata/libata-sff.c (!(qc->tf.flags & ATA_TFLAG_WRITE))) { qc 1186 drivers/ata/libata-sff.c qc->err_mask |= __ac_err_mask(status); qc 1193 drivers/ata/libata-sff.c ap->print_id, qc->dev->devno, status); qc 1195 drivers/ata/libata-sff.c WARN_ON_ONCE(qc->err_mask & (AC_ERR_DEV | AC_ERR_HSM)); qc 1200 drivers/ata/libata-sff.c ata_hsm_qc_complete(qc, in_wq); qc 1209 drivers/ata/libata-sff.c ata_hsm_qc_complete(qc, in_wq); qc 1277 drivers/ata/libata-sff.c struct ata_queued_cmd *qc; qc 1285 drivers/ata/libata-sff.c qc = ata_qc_from_tag(ap, link->active_tag); qc 1286 drivers/ata/libata-sff.c if (!qc) { qc 1320 drivers/ata/libata-sff.c poll_next = ata_sff_hsm_move(ap, qc, status, 1); qc 1344 drivers/ata/libata-sff.c unsigned int ata_sff_qc_issue(struct ata_queued_cmd *qc) qc 1346 drivers/ata/libata-sff.c struct ata_port *ap = qc->ap; qc 1347 drivers/ata/libata-sff.c struct ata_link *link = qc->dev->link; qc 1353 drivers/ata/libata-sff.c qc->tf.flags |= ATA_TFLAG_POLLING; qc 1356 drivers/ata/libata-sff.c ata_dev_select(ap, qc->dev->devno, 1, 0); qc 1359 drivers/ata/libata-sff.c switch (qc->tf.protocol) { qc 1361 drivers/ata/libata-sff.c if (qc->tf.flags & ATA_TFLAG_POLLING) qc 1362 drivers/ata/libata-sff.c ata_qc_set_polling(qc); qc 1364 drivers/ata/libata-sff.c ata_tf_to_host(ap, &qc->tf); qc 1367 drivers/ata/libata-sff.c if (qc->tf.flags & ATA_TFLAG_POLLING) qc 1373 drivers/ata/libata-sff.c if (qc->tf.flags & ATA_TFLAG_POLLING) qc 1374 drivers/ata/libata-sff.c ata_qc_set_polling(qc); qc 1376 drivers/ata/libata-sff.c ata_tf_to_host(ap, &qc->tf); qc 1378 drivers/ata/libata-sff.c if (qc->tf.flags & ATA_TFLAG_WRITE) { qc 1390 drivers/ata/libata-sff.c if (qc->tf.flags & ATA_TFLAG_POLLING) qc 1403 drivers/ata/libata-sff.c if (qc->tf.flags & ATA_TFLAG_POLLING) qc 1404 drivers/ata/libata-sff.c ata_qc_set_polling(qc); qc 1406 drivers/ata/libata-sff.c ata_tf_to_host(ap, &qc->tf); qc 1411 drivers/ata/libata-sff.c if ((!(qc->dev->flags & ATA_DFLAG_CDB_INTR)) || qc 1412 drivers/ata/libata-sff.c (qc->tf.flags & ATA_TFLAG_POLLING)) qc 1437 drivers/ata/libata-sff.c bool ata_sff_qc_fill_rtf(struct ata_queued_cmd *qc) qc 1439 drivers/ata/libata-sff.c qc->ap->ops->sff_tf_read(qc->ap, &qc->result_tf); qc 1461 drivers/ata/libata-sff.c struct ata_queued_cmd *qc, qc 1467 drivers/ata/libata-sff.c ap->print_id, qc->tf.protocol, ap->hsm_task_state); qc 1480 drivers/ata/libata-sff.c if (!(qc->dev->flags & ATA_DFLAG_CDB_INTR)) qc 1494 drivers/ata/libata-sff.c qc->err_mask |= AC_ERR_HSM; qc 1504 drivers/ata/libata-sff.c ata_sff_hsm_move(ap, qc, status, 0); qc 1522 drivers/ata/libata-sff.c unsigned int ata_sff_port_intr(struct ata_port *ap, struct ata_queued_cmd *qc) qc 1524 drivers/ata/libata-sff.c return __ata_sff_port_intr(ap, qc, false); qc 1544 drivers/ata/libata-sff.c struct ata_queued_cmd *qc; qc 1546 drivers/ata/libata-sff.c qc = ata_qc_from_tag(ap, ap->link.active_tag); qc 1547 drivers/ata/libata-sff.c if (qc) { qc 1548 drivers/ata/libata-sff.c if (!(qc->tf.flags & ATA_TFLAG_POLLING)) qc 1549 drivers/ata/libata-sff.c handled |= port_intr(ap, qc); qc 1636 drivers/ata/libata-sff.c struct ata_queued_cmd *qc; qc 1639 drivers/ata/libata-sff.c qc = ata_qc_from_tag(ap, ap->link.active_tag); qc 1641 drivers/ata/libata-sff.c if (!qc || qc->tf.flags & ATA_TFLAG_POLLING) qc 1655 drivers/ata/libata-sff.c ata_sff_port_intr(ap, qc); qc 2096 drivers/ata/libata-sff.c void ata_sff_drain_fifo(struct ata_queued_cmd *qc) qc 2102 drivers/ata/libata-sff.c if (qc == NULL || qc->dma_dir == DMA_TO_DEVICE) qc 2105 drivers/ata/libata-sff.c ap = qc->ap; qc 2134 drivers/ata/libata-sff.c struct ata_queued_cmd *qc; qc 2137 drivers/ata/libata-sff.c qc = __ata_qc_from_tag(ap, ap->link.active_tag); qc 2138 drivers/ata/libata-sff.c if (qc && !(qc->flags & ATA_QCFLAG_FAILED)) qc 2139 drivers/ata/libata-sff.c qc = NULL; qc 2151 drivers/ata/libata-sff.c ap->ops->sff_drain_fifo(qc); qc 2575 drivers/ata/libata-sff.c static void ata_bmdma_fill_sg(struct ata_queued_cmd *qc) qc 2577 drivers/ata/libata-sff.c struct ata_port *ap = qc->ap; qc 2583 drivers/ata/libata-sff.c for_each_sg(qc->sg, sg, qc->n_elem, si) { qc 2626 drivers/ata/libata-sff.c static void ata_bmdma_fill_sg_dumb(struct ata_queued_cmd *qc) qc 2628 drivers/ata/libata-sff.c struct ata_port *ap = qc->ap; qc 2634 drivers/ata/libata-sff.c for_each_sg(qc->sg, sg, qc->n_elem, si) { qc 2682 drivers/ata/libata-sff.c void ata_bmdma_qc_prep(struct ata_queued_cmd *qc) qc 2684 drivers/ata/libata-sff.c if (!(qc->flags & ATA_QCFLAG_DMAMAP)) qc 2687 drivers/ata/libata-sff.c ata_bmdma_fill_sg(qc); qc 2700 drivers/ata/libata-sff.c void ata_bmdma_dumb_qc_prep(struct ata_queued_cmd *qc) qc 2702 drivers/ata/libata-sff.c if (!(qc->flags & ATA_QCFLAG_DMAMAP)) qc 2705 drivers/ata/libata-sff.c ata_bmdma_fill_sg_dumb(qc); qc 2723 drivers/ata/libata-sff.c unsigned int ata_bmdma_qc_issue(struct ata_queued_cmd *qc) qc 2725 drivers/ata/libata-sff.c struct ata_port *ap = qc->ap; qc 2726 drivers/ata/libata-sff.c struct ata_link *link = qc->dev->link; qc 2729 drivers/ata/libata-sff.c if (!ata_is_dma(qc->tf.protocol)) qc 2730 drivers/ata/libata-sff.c return ata_sff_qc_issue(qc); qc 2733 drivers/ata/libata-sff.c ata_dev_select(ap, qc->dev->devno, 1, 0); qc 2736 drivers/ata/libata-sff.c switch (qc->tf.protocol) { qc 2738 drivers/ata/libata-sff.c WARN_ON_ONCE(qc->tf.flags & ATA_TFLAG_POLLING); qc 2740 drivers/ata/libata-sff.c ap->ops->sff_tf_load(ap, &qc->tf); /* load tf registers */ qc 2741 drivers/ata/libata-sff.c ap->ops->bmdma_setup(qc); /* set up bmdma */ qc 2742 drivers/ata/libata-sff.c ap->ops->bmdma_start(qc); /* initiate bmdma */ qc 2747 drivers/ata/libata-sff.c WARN_ON_ONCE(qc->tf.flags & ATA_TFLAG_POLLING); qc 2749 drivers/ata/libata-sff.c ap->ops->sff_tf_load(ap, &qc->tf); /* load tf registers */ qc 2750 drivers/ata/libata-sff.c ap->ops->bmdma_setup(qc); /* set up bmdma */ qc 2754 drivers/ata/libata-sff.c if (!(qc->dev->flags & ATA_DFLAG_CDB_INTR)) qc 2780 drivers/ata/libata-sff.c unsigned int ata_bmdma_port_intr(struct ata_port *ap, struct ata_queued_cmd *qc) qc 2787 drivers/ata/libata-sff.c if (ap->hsm_task_state == HSM_ST_LAST && ata_is_dma(qc->tf.protocol)) { qc 2797 drivers/ata/libata-sff.c ap->ops->bmdma_stop(qc); qc 2802 drivers/ata/libata-sff.c qc->err_mask |= AC_ERR_HOST_BUS; qc 2807 drivers/ata/libata-sff.c handled = __ata_sff_port_intr(ap, qc, bmdma_stopped); qc 2809 drivers/ata/libata-sff.c if (unlikely(qc->err_mask) && ata_is_dma(qc->tf.protocol)) qc 2850 drivers/ata/libata-sff.c struct ata_queued_cmd *qc; qc 2854 drivers/ata/libata-sff.c qc = __ata_qc_from_tag(ap, ap->link.active_tag); qc 2855 drivers/ata/libata-sff.c if (qc && !(qc->flags & ATA_QCFLAG_FAILED)) qc 2856 drivers/ata/libata-sff.c qc = NULL; qc 2861 drivers/ata/libata-sff.c if (qc && ata_is_dma(qc->tf.protocol)) { qc 2871 drivers/ata/libata-sff.c if (qc->err_mask == AC_ERR_TIMEOUT && (host_stat & ATA_DMA_ERR)) { qc 2872 drivers/ata/libata-sff.c qc->err_mask = AC_ERR_HOST_BUS; qc 2876 drivers/ata/libata-sff.c ap->ops->bmdma_stop(qc); qc 2902 drivers/ata/libata-sff.c void ata_bmdma_post_internal_cmd(struct ata_queued_cmd *qc) qc 2904 drivers/ata/libata-sff.c struct ata_port *ap = qc->ap; qc 2907 drivers/ata/libata-sff.c if (ata_is_dma(qc->tf.protocol)) { qc 2909 drivers/ata/libata-sff.c ap->ops->bmdma_stop(qc); qc 2944 drivers/ata/libata-sff.c void ata_bmdma_setup(struct ata_queued_cmd *qc) qc 2946 drivers/ata/libata-sff.c struct ata_port *ap = qc->ap; qc 2947 drivers/ata/libata-sff.c unsigned int rw = (qc->tf.flags & ATA_TFLAG_WRITE); qc 2962 drivers/ata/libata-sff.c ap->ops->sff_exec_command(ap, &qc->tf); qc 2973 drivers/ata/libata-sff.c void ata_bmdma_start(struct ata_queued_cmd *qc) qc 2975 drivers/ata/libata-sff.c struct ata_port *ap = qc->ap; qc 3010 drivers/ata/libata-sff.c void ata_bmdma_stop(struct ata_queued_cmd *qc) qc 3012 drivers/ata/libata-sff.c struct ata_port *ap = qc->ap; qc 69 drivers/ata/libata.h extern void ata_qc_free(struct ata_queued_cmd *qc); qc 70 drivers/ata/libata.h extern void ata_qc_issue(struct ata_queued_cmd *qc); qc 71 drivers/ata/libata.h extern void __ata_qc_complete(struct ata_queued_cmd *qc); qc 72 drivers/ata/libata.h extern int atapi_check_dma(struct ata_queued_cmd *qc); qc 142 drivers/ata/libata.h extern void ata_qc_schedule_eh(struct ata_queued_cmd *qc); qc 167 drivers/ata/pata_acpi.c static unsigned int pacpi_qc_issue(struct ata_queued_cmd *qc) qc 169 drivers/ata/pata_acpi.c struct ata_port *ap = qc->ap; qc 170 drivers/ata/pata_acpi.c struct ata_device *adev = qc->dev; qc 174 drivers/ata/pata_acpi.c return ata_bmdma_qc_issue(qc); qc 182 drivers/ata/pata_acpi.c return ata_bmdma_qc_issue(qc); qc 321 drivers/ata/pata_ali.c static int ali_check_atapi_dma(struct ata_queued_cmd *qc) qc 336 drivers/ata/pata_ali.c if (atapi_cmd_type(qc->cdb[0]) == ATAPI_MISC) qc 217 drivers/ata/pata_arasan_cf.c struct ata_queued_cmd *qc; qc 366 drivers/ata/pata_arasan_cf.c struct ata_queued_cmd *qc = acdev->qc; qc 369 drivers/ata/pata_arasan_cf.c acdev->qc = NULL; qc 373 drivers/ata/pata_arasan_cf.c if (unlikely(qc->err_mask) && ata_is_dma(qc->tf.protocol)) qc 374 drivers/ata/pata_arasan_cf.c ata_ehi_push_desc(&qc->ap->link.eh_info, "DMA Failed: Timeout"); qc 381 drivers/ata/pata_arasan_cf.c u32 rw = acdev->qc->tf.flags & ATA_TFLAG_WRITE; qc 435 drivers/ata/pata_arasan_cf.c u32 write = acdev->qc->tf.flags & ATA_TFLAG_WRITE; qc 522 drivers/ata/pata_arasan_cf.c struct ata_queued_cmd *qc = acdev->qc; qc 536 drivers/ata/pata_arasan_cf.c for_each_sg(qc->sg, sg, qc->n_elem, temp) { qc 549 drivers/ata/pata_arasan_cf.c status = ioread8(qc->ap->ioaddr.altstatus_addr); qc 564 drivers/ata/pata_arasan_cf.c qc->err_mask |= AC_ERR_HOST_BUS; qc 565 drivers/ata/pata_arasan_cf.c qc->ap->hsm_task_state = HSM_ST_ERR; qc 577 drivers/ata/pata_arasan_cf.c struct ata_queued_cmd *qc = acdev->qc; qc 582 drivers/ata/pata_arasan_cf.c status = ioread8(qc->ap->ioaddr.altstatus_addr); qc 633 drivers/ata/pata_arasan_cf.c struct ata_queued_cmd *qc = acdev->qc; qc 636 drivers/ata/pata_arasan_cf.c if (qc->tf.flags & ATA_TFLAG_WRITE) qc 673 drivers/ata/pata_arasan_cf.c struct ata_queued_cmd *qc = acdev->qc; qc 674 drivers/ata/pata_arasan_cf.c struct ata_port *ap = qc->ap; qc 675 drivers/ata/pata_arasan_cf.c struct ata_taskfile *tf = &qc->tf; qc 686 drivers/ata/pata_arasan_cf.c static unsigned int arasan_cf_qc_issue(struct ata_queued_cmd *qc) qc 688 drivers/ata/pata_arasan_cf.c struct ata_port *ap = qc->ap; qc 692 drivers/ata/pata_arasan_cf.c if (!ata_is_dma(qc->tf.protocol)) qc 693 drivers/ata/pata_arasan_cf.c return ata_sff_qc_issue(qc); qc 697 drivers/ata/pata_arasan_cf.c ata_sff_dev_select(ap, qc->dev->devno); qc 701 drivers/ata/pata_arasan_cf.c switch (qc->tf.protocol) { qc 703 drivers/ata/pata_arasan_cf.c WARN_ON_ONCE(qc->tf.flags & ATA_TFLAG_POLLING); qc 705 drivers/ata/pata_arasan_cf.c ap->ops->sff_tf_load(ap, &qc->tf); qc 707 drivers/ata/pata_arasan_cf.c acdev->qc = qc; qc 277 drivers/ata/pata_artop.c static int artop6210_qc_defer(struct ata_queued_cmd *qc) qc 279 drivers/ata/pata_artop.c struct ata_host *host = qc->ap->host; qc 280 drivers/ata/pata_artop.c struct ata_port *alt = host->ports[1 ^ qc->ap->port_no]; qc 284 drivers/ata/pata_artop.c rc = ata_std_qc_defer(qc); qc 211 drivers/ata/pata_atiixp.c static void atiixp_bmdma_start(struct ata_queued_cmd *qc) qc 213 drivers/ata/pata_atiixp.c struct ata_port *ap = qc->ap; qc 214 drivers/ata/pata_atiixp.c struct ata_device *adev = qc->dev; qc 226 drivers/ata/pata_atiixp.c ata_bmdma_start(qc); qc 240 drivers/ata/pata_atiixp.c static void atiixp_bmdma_stop(struct ata_queued_cmd *qc) qc 242 drivers/ata/pata_atiixp.c struct ata_port *ap = qc->ap; qc 244 drivers/ata/pata_atiixp.c int dn = (2 * ap->port_no) + qc->dev->devno; qc 250 drivers/ata/pata_atiixp.c ata_bmdma_stop(qc); qc 65 drivers/ata/pata_buddha.c static unsigned int pata_buddha_data_xfer(struct ata_queued_cmd *qc, qc 69 drivers/ata/pata_buddha.c struct ata_device *dev = qc->dev; qc 129 drivers/ata/pata_cmd640.c static unsigned int cmd640_qc_issue(struct ata_queued_cmd *qc) qc 131 drivers/ata/pata_cmd640.c struct ata_port *ap = qc->ap; qc 132 drivers/ata/pata_cmd640.c struct ata_device *adev = qc->dev; qc 140 drivers/ata/pata_cmd640.c return ata_sff_qc_issue(qc); qc 317 drivers/ata/pata_cmd64x.c static void cmd646r1_bmdma_stop(struct ata_queued_cmd *qc) qc 319 drivers/ata/pata_cmd64x.c ata_bmdma_stop(qc); qc 131 drivers/ata/pata_cs5530.c static unsigned int cs5530_qc_issue(struct ata_queued_cmd *qc) qc 133 drivers/ata/pata_cs5530.c struct ata_port *ap = qc->ap; qc 134 drivers/ata/pata_cs5530.c struct ata_device *adev = qc->dev; qc 146 drivers/ata/pata_cs5530.c return ata_bmdma_qc_issue(qc); qc 478 drivers/ata/pata_ep93xx.c static unsigned int ep93xx_pata_data_xfer(struct ata_queued_cmd *qc, qc 482 drivers/ata/pata_ep93xx.c struct ata_port *ap = qc->dev->link->ap; qc 702 drivers/ata/pata_ep93xx.c static void ep93xx_pata_dma_start(struct ata_queued_cmd *qc) qc 705 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = qc->ap->host->private_data; qc 707 drivers/ata/pata_ep93xx.c struct ata_device *adev = qc->dev; qc 708 drivers/ata/pata_ep93xx.c u32 v = qc->dma_dir == DMA_TO_DEVICE ? IDEUDMAOP_RWOP : 0; qc 709 drivers/ata/pata_ep93xx.c struct dma_chan *channel = qc->dma_dir == DMA_TO_DEVICE qc 712 drivers/ata/pata_ep93xx.c txd = dmaengine_prep_slave_sg(channel, qc->sg, qc->n_elem, qc->dma_dir, qc 715 drivers/ata/pata_ep93xx.c dev_err(qc->ap->dev, "failed to prepare slave for sg dma\n"); qc 722 drivers/ata/pata_ep93xx.c dev_err(qc->ap->dev, "failed to submit dma transfer\n"); qc 743 drivers/ata/pata_ep93xx.c static void ep93xx_pata_dma_stop(struct ata_queued_cmd *qc) qc 745 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = qc->ap->host->private_data; qc 761 drivers/ata/pata_ep93xx.c qc->dev->pio_mode - XFER_PIO_0); qc 763 drivers/ata/pata_ep93xx.c ata_sff_dma_pause(qc->ap); qc 766 drivers/ata/pata_ep93xx.c static void ep93xx_pata_dma_setup(struct ata_queued_cmd *qc) qc 768 drivers/ata/pata_ep93xx.c qc->ap->ops->sff_exec_command(qc->ap, &qc->tf); qc 841 drivers/ata/pata_ep93xx.c static void ep93xx_pata_drain_fifo(struct ata_queued_cmd *qc) qc 848 drivers/ata/pata_ep93xx.c if (qc == NULL || qc->dma_dir == DMA_TO_DEVICE) qc 851 drivers/ata/pata_ep93xx.c ap = qc->ap; qc 43 drivers/ata/pata_falcon.c static unsigned int pata_falcon_data_xfer(struct ata_queued_cmd *qc, qc 47 drivers/ata/pata_falcon.c struct ata_device *dev = qc->dev; qc 51 drivers/ata/pata_falcon.c struct scsi_cmnd *cmd = qc->scsicmd; qc 237 drivers/ata/pata_ftide010.c static unsigned int ftide010_qc_issue(struct ata_queued_cmd *qc) qc 239 drivers/ata/pata_ftide010.c struct ata_port *ap = qc->ap; qc 240 drivers/ata/pata_ftide010.c struct ata_device *adev = qc->dev; qc 250 drivers/ata/pata_ftide010.c return ata_bmdma_qc_issue(qc); qc 43 drivers/ata/pata_gayle.c static unsigned int pata_gayle_data_xfer(struct ata_queued_cmd *qc, qc 47 drivers/ata/pata_gayle.c struct ata_device *dev = qc->dev; qc 472 drivers/ata/pata_hpt37x.c static void hpt370_bmdma_stop(struct ata_queued_cmd *qc) qc 474 drivers/ata/pata_hpt37x.c struct ata_port *ap = qc->ap; qc 499 drivers/ata/pata_hpt37x.c ata_bmdma_stop(qc); qc 566 drivers/ata/pata_hpt37x.c static void hpt37x_bmdma_stop(struct ata_queued_cmd *qc) qc 568 drivers/ata/pata_hpt37x.c struct ata_port *ap = qc->ap; qc 577 drivers/ata/pata_hpt37x.c ata_bmdma_stop(qc); qc 246 drivers/ata/pata_hpt3x2n.c static void hpt3x2n_bmdma_stop(struct ata_queued_cmd *qc) qc 248 drivers/ata/pata_hpt3x2n.c struct ata_port *ap = qc->ap; qc 257 drivers/ata/pata_hpt3x2n.c ata_bmdma_stop(qc); qc 312 drivers/ata/pata_hpt3x2n.c static int hpt3x2n_qc_defer(struct ata_queued_cmd *qc) qc 314 drivers/ata/pata_hpt3x2n.c struct ata_port *ap = qc->ap; qc 317 drivers/ata/pata_hpt3x2n.c int dpll = hpt3x2n_use_dpll(ap, qc->tf.flags & ATA_TFLAG_WRITE); qc 320 drivers/ata/pata_hpt3x2n.c rc = ata_std_qc_defer(qc); qc 329 drivers/ata/pata_hpt3x2n.c static unsigned int hpt3x2n_qc_issue(struct ata_queued_cmd *qc) qc 331 drivers/ata/pata_hpt3x2n.c struct ata_port *ap = qc->ap; qc 333 drivers/ata/pata_hpt3x2n.c int dpll = hpt3x2n_use_dpll(ap, qc->tf.flags & ATA_TFLAG_WRITE); qc 342 drivers/ata/pata_hpt3x2n.c return ata_bmdma_qc_issue(qc); qc 116 drivers/ata/pata_hpt3x3.c static void hpt3x3_bmdma_setup(struct ata_queued_cmd *qc) qc 118 drivers/ata/pata_hpt3x3.c struct ata_port *ap = qc->ap; qc 122 drivers/ata/pata_hpt3x3.c return ata_bmdma_setup(qc); qc 132 drivers/ata/pata_hpt3x3.c static int hpt3x3_atapi_dma(struct ata_queued_cmd *qc) qc 220 drivers/ata/pata_icside.c static void pata_icside_bmdma_setup(struct ata_queued_cmd *qc) qc 222 drivers/ata/pata_icside.c struct ata_port *ap = qc->ap; qc 224 drivers/ata/pata_icside.c unsigned int write = qc->tf.flags & ATA_TFLAG_WRITE; qc 237 drivers/ata/pata_icside.c set_dma_speed(state->dma, state->port[ap->port_no].speed[qc->dev->devno]); qc 238 drivers/ata/pata_icside.c set_dma_sg(state->dma, qc->sg, qc->n_elem); qc 242 drivers/ata/pata_icside.c ap->ops->sff_exec_command(ap, &qc->tf); qc 245 drivers/ata/pata_icside.c static void pata_icside_bmdma_start(struct ata_queued_cmd *qc) qc 247 drivers/ata/pata_icside.c struct ata_port *ap = qc->ap; qc 254 drivers/ata/pata_icside.c static void pata_icside_bmdma_stop(struct ata_queued_cmd *qc) qc 256 drivers/ata/pata_icside.c struct ata_port *ap = qc->ap; qc 345 drivers/ata/pata_it821x.c static void it821x_passthru_bmdma_start(struct ata_queued_cmd *qc) qc 347 drivers/ata/pata_it821x.c struct ata_port *ap = qc->ap; qc 348 drivers/ata/pata_it821x.c struct ata_device *adev = qc->dev; qc 356 drivers/ata/pata_it821x.c ata_bmdma_start(qc); qc 368 drivers/ata/pata_it821x.c static void it821x_passthru_bmdma_stop(struct ata_queued_cmd *qc) qc 370 drivers/ata/pata_it821x.c struct ata_port *ap = qc->ap; qc 371 drivers/ata/pata_it821x.c struct ata_device *adev = qc->dev; qc 375 drivers/ata/pata_it821x.c ata_bmdma_stop(qc); qc 410 drivers/ata/pata_it821x.c static unsigned int it821x_smart_qc_issue(struct ata_queued_cmd *qc) qc 412 drivers/ata/pata_it821x.c switch(qc->tf.command) qc 432 drivers/ata/pata_it821x.c return ata_bmdma_qc_issue(qc); qc 434 drivers/ata/pata_it821x.c printk(KERN_DEBUG "it821x: can't process command 0x%02X\n", qc->tf.command); qc 447 drivers/ata/pata_it821x.c static unsigned int it821x_passthru_qc_issue(struct ata_queued_cmd *qc) qc 449 drivers/ata/pata_it821x.c it821x_passthru_dev_select(qc->ap, qc->dev->devno); qc 450 drivers/ata/pata_it821x.c return ata_bmdma_qc_issue(qc); qc 575 drivers/ata/pata_it821x.c static int it821x_check_atapi_dma(struct ata_queued_cmd *qc) qc 577 drivers/ata/pata_it821x.c struct ata_port *ap = qc->ap; qc 581 drivers/ata/pata_it821x.c if (ata_qc_raw_nbytes(qc) < 2048) qc 39 drivers/ata/pata_ixp4xx_cf.c static unsigned int ixp4xx_mmio_data_xfer(struct ata_queued_cmd *qc, qc 45 drivers/ata/pata_ixp4xx_cf.c struct ata_port *ap = qc->dev->link->ap; qc 292 drivers/ata/pata_legacy.c static unsigned int pdc_data_xfer_vlb(struct ata_queued_cmd *qc, qc 295 drivers/ata/pata_legacy.c struct ata_device *dev = qc->dev; qc 330 drivers/ata/pata_legacy.c buflen = ata_sff_data_xfer32(qc, buf, buflen, rw); qc 605 drivers/ata/pata_legacy.c static unsigned int opti82c46x_qc_issue(struct ata_queued_cmd *qc) qc 607 drivers/ata/pata_legacy.c struct ata_port *ap = qc->ap; qc 608 drivers/ata/pata_legacy.c struct ata_device *adev = qc->dev; qc 616 drivers/ata/pata_legacy.c return ata_sff_qc_issue(qc); qc 676 drivers/ata/pata_legacy.c static unsigned int qdi_qc_issue(struct ata_queued_cmd *qc) qc 678 drivers/ata/pata_legacy.c struct ata_port *ap = qc->ap; qc 679 drivers/ata/pata_legacy.c struct ata_device *adev = qc->dev; qc 689 drivers/ata/pata_legacy.c return ata_sff_qc_issue(qc); qc 692 drivers/ata/pata_legacy.c static unsigned int vlb32_data_xfer(struct ata_queued_cmd *qc, qc 696 drivers/ata/pata_legacy.c struct ata_device *adev = qc->dev; qc 719 drivers/ata/pata_legacy.c return ata_sff_data_xfer(qc, buf, buflen, rw); qc 513 drivers/ata/pata_macio.c static void pata_macio_qc_prep(struct ata_queued_cmd *qc) qc 515 drivers/ata/pata_macio.c unsigned int write = (qc->tf.flags & ATA_TFLAG_WRITE); qc 516 drivers/ata/pata_macio.c struct ata_port *ap = qc->ap; qc 523 drivers/ata/pata_macio.c __func__, qc, qc->flags, write, qc->dev->devno); qc 525 drivers/ata/pata_macio.c if (!(qc->flags & ATA_QCFLAG_DMAMAP)) qc 531 drivers/ata/pata_macio.c for_each_sg(qc->sg, sg, qc->n_elem, si) { qc 591 drivers/ata/pata_macio.c static void pata_macio_bmdma_setup(struct ata_queued_cmd *qc) qc 593 drivers/ata/pata_macio.c struct ata_port *ap = qc->ap; qc 596 drivers/ata/pata_macio.c int dev = qc->dev->devno; qc 598 drivers/ata/pata_macio.c dev_dbgdma(priv->dev, "%s: qc %p\n", __func__, qc); qc 611 drivers/ata/pata_macio.c if (!(qc->tf.flags & ATA_TFLAG_WRITE)) qc 617 drivers/ata/pata_macio.c ap->ops->sff_exec_command(ap, &qc->tf); qc 620 drivers/ata/pata_macio.c static void pata_macio_bmdma_start(struct ata_queued_cmd *qc) qc 622 drivers/ata/pata_macio.c struct ata_port *ap = qc->ap; qc 626 drivers/ata/pata_macio.c dev_dbgdma(priv->dev, "%s: qc %p\n", __func__, qc); qc 633 drivers/ata/pata_macio.c static void pata_macio_bmdma_stop(struct ata_queued_cmd *qc) qc 635 drivers/ata/pata_macio.c struct ata_port *ap = qc->ap; qc 640 drivers/ata/pata_macio.c dev_dbgdma(priv->dev, "%s: qc %p\n", __func__, qc); qc 443 drivers/ata/pata_mpc52xx.c mpc52xx_ata_build_dmatable(struct ata_queued_cmd *qc) qc 445 drivers/ata/pata_mpc52xx.c struct ata_port *ap = qc->ap; qc 448 drivers/ata/pata_mpc52xx.c unsigned int read = !(qc->tf.flags & ATA_TFLAG_WRITE), si; qc 457 drivers/ata/pata_mpc52xx.c for_each_sg(qc->sg, sg, qc->n_elem, si) { qc 499 drivers/ata/pata_mpc52xx.c mpc52xx_bmdma_setup(struct ata_queued_cmd *qc) qc 501 drivers/ata/pata_mpc52xx.c struct ata_port *ap = qc->ap; qc 505 drivers/ata/pata_mpc52xx.c unsigned int read = !(qc->tf.flags & ATA_TFLAG_WRITE); qc 508 drivers/ata/pata_mpc52xx.c if (!mpc52xx_ata_build_dmatable(qc)) qc 545 drivers/ata/pata_mpc52xx.c if (priv->timings[qc->dev->devno].using_udma) qc 552 drivers/ata/pata_mpc52xx.c ap->ops->sff_exec_command(ap, &qc->tf); qc 556 drivers/ata/pata_mpc52xx.c mpc52xx_bmdma_start(struct ata_queued_cmd *qc) qc 558 drivers/ata/pata_mpc52xx.c struct ata_port *ap = qc->ap; qc 566 drivers/ata/pata_mpc52xx.c mpc52xx_bmdma_stop(struct ata_queued_cmd *qc) qc 568 drivers/ata/pata_mpc52xx.c struct ata_port *ap = qc->ap; qc 123 drivers/ata/pata_mpiix.c static unsigned int mpiix_qc_issue(struct ata_queued_cmd *qc) qc 125 drivers/ata/pata_mpiix.c struct ata_port *ap = qc->ap; qc 126 drivers/ata/pata_mpiix.c struct ata_device *adev = qc->dev; qc 136 drivers/ata/pata_mpiix.c return ata_sff_qc_issue(qc); qc 101 drivers/ata/pata_ns87410.c static unsigned int ns87410_qc_issue(struct ata_queued_cmd *qc) qc 103 drivers/ata/pata_ns87410.c struct ata_port *ap = qc->ap; qc 104 drivers/ata/pata_ns87410.c struct ata_device *adev = qc->dev; qc 114 drivers/ata/pata_ns87410.c return ata_sff_qc_issue(qc); qc 121 drivers/ata/pata_ns87415.c static void ns87415_bmdma_setup(struct ata_queued_cmd *qc) qc 123 drivers/ata/pata_ns87415.c struct ata_port *ap = qc->ap; qc 124 drivers/ata/pata_ns87415.c unsigned int rw = (qc->tf.flags & ATA_TFLAG_WRITE); qc 141 drivers/ata/pata_ns87415.c ap->ops->sff_exec_command(ap, &qc->tf); qc 155 drivers/ata/pata_ns87415.c static void ns87415_bmdma_start(struct ata_queued_cmd *qc) qc 157 drivers/ata/pata_ns87415.c ns87415_set_mode(qc->ap, qc->dev, qc->dev->dma_mode); qc 158 drivers/ata/pata_ns87415.c ata_bmdma_start(qc); qc 168 drivers/ata/pata_ns87415.c static void ns87415_bmdma_stop(struct ata_queued_cmd *qc) qc 170 drivers/ata/pata_ns87415.c ata_bmdma_stop(qc); qc 171 drivers/ata/pata_ns87415.c ns87415_set_mode(qc->ap, qc->dev, qc->dev->pio_mode); qc 200 drivers/ata/pata_ns87415.c static int ns87415_check_atapi_dma(struct ata_queued_cmd *qc) qc 293 drivers/ata/pata_octeon_cf.c static unsigned int octeon_cf_data_xfer8(struct ata_queued_cmd *qc, qc 298 drivers/ata/pata_octeon_cf.c struct ata_port *ap = qc->dev->link->ap; qc 332 drivers/ata/pata_octeon_cf.c static unsigned int octeon_cf_data_xfer16(struct ata_queued_cmd *qc, qc 337 drivers/ata/pata_octeon_cf.c struct ata_port *ap = qc->dev->link->ap; qc 540 drivers/ata/pata_octeon_cf.c static void octeon_cf_dma_setup(struct ata_queued_cmd *qc) qc 542 drivers/ata/pata_octeon_cf.c struct ata_port *ap = qc->ap; qc 548 drivers/ata/pata_octeon_cf.c qc->cursg = qc->sg; qc 550 drivers/ata/pata_octeon_cf.c ap->ops->sff_exec_command(ap, &qc->tf); qc 559 drivers/ata/pata_octeon_cf.c static void octeon_cf_dma_start(struct ata_queued_cmd *qc) qc 561 drivers/ata/pata_octeon_cf.c struct octeon_cf_port *cf_port = qc->ap->private_data; qc 566 drivers/ata/pata_octeon_cf.c VPRINTK("%d scatterlists\n", qc->n_elem); qc 569 drivers/ata/pata_octeon_cf.c sg = qc->cursg; qc 588 drivers/ata/pata_octeon_cf.c mio_boot_dma_cfg.s.rw = ((qc->tf.flags & ATA_TFLAG_WRITE) != 0); qc 622 drivers/ata/pata_octeon_cf.c struct ata_queued_cmd *qc) qc 631 drivers/ata/pata_octeon_cf.c ap->print_id, qc->tf.protocol, ap->hsm_task_state); qc 640 drivers/ata/pata_octeon_cf.c qc->err_mask |= AC_ERR_HOST_BUS; qc 659 drivers/ata/pata_octeon_cf.c ata_sff_hsm_move(ap, qc, status, 0); qc 661 drivers/ata/pata_octeon_cf.c if (unlikely(qc->err_mask) && (qc->tf.protocol == ATA_PROT_DMA)) qc 685 drivers/ata/pata_octeon_cf.c struct ata_queued_cmd *qc; qc 695 drivers/ata/pata_octeon_cf.c qc = ata_qc_from_tag(ap, ap->link.active_tag); qc 697 drivers/ata/pata_octeon_cf.c if (!qc || (qc->tf.flags & ATA_TFLAG_POLLING)) qc 701 drivers/ata/pata_octeon_cf.c if (!sg_is_last(qc->cursg)) { qc 702 drivers/ata/pata_octeon_cf.c qc->cursg = sg_next(qc->cursg); qc 704 drivers/ata/pata_octeon_cf.c octeon_cf_dma_start(qc); qc 731 drivers/ata/pata_octeon_cf.c handled |= octeon_cf_dma_finished(ap, qc); qc 746 drivers/ata/pata_octeon_cf.c struct ata_queued_cmd *qc; qc 769 drivers/ata/pata_octeon_cf.c qc = ata_qc_from_tag(ap, ap->link.active_tag); qc 770 drivers/ata/pata_octeon_cf.c if (qc && (!(qc->tf.flags & ATA_TFLAG_POLLING))) qc 771 drivers/ata/pata_octeon_cf.c octeon_cf_dma_finished(ap, qc); qc 790 drivers/ata/pata_octeon_cf.c static int octeon_cf_check_atapi_dma(struct ata_queued_cmd *qc) qc 795 drivers/ata/pata_octeon_cf.c static unsigned int octeon_cf_qc_issue(struct ata_queued_cmd *qc) qc 797 drivers/ata/pata_octeon_cf.c struct ata_port *ap = qc->ap; qc 799 drivers/ata/pata_octeon_cf.c switch (qc->tf.protocol) { qc 801 drivers/ata/pata_octeon_cf.c WARN_ON(qc->tf.flags & ATA_TFLAG_POLLING); qc 803 drivers/ata/pata_octeon_cf.c ap->ops->sff_tf_load(ap, &qc->tf); /* load tf registers */ qc 804 drivers/ata/pata_octeon_cf.c octeon_cf_dma_setup(qc); /* set up dma */ qc 805 drivers/ata/pata_octeon_cf.c octeon_cf_dma_start(qc); /* initiate dma */ qc 814 drivers/ata/pata_octeon_cf.c return ata_sff_qc_issue(qc); qc 193 drivers/ata/pata_oldpiix.c static unsigned int oldpiix_qc_issue(struct ata_queued_cmd *qc) qc 195 drivers/ata/pata_oldpiix.c struct ata_port *ap = qc->ap; qc 196 drivers/ata/pata_oldpiix.c struct ata_device *adev = qc->dev; qc 203 drivers/ata/pata_oldpiix.c return ata_bmdma_qc_issue(qc); qc 91 drivers/ata/pata_pcmcia.c static unsigned int ata_data_xfer_8bit(struct ata_queued_cmd *qc, qc 94 drivers/ata/pata_pcmcia.c struct ata_port *ap = qc->dev->link->ap; qc 114 drivers/ata/pata_pcmcia.c static void pcmcia_8bit_drain_fifo(struct ata_queued_cmd *qc) qc 120 drivers/ata/pata_pcmcia.c if (qc == NULL || qc->dma_dir == DMA_TO_DEVICE) qc 123 drivers/ata/pata_pcmcia.c ap = qc->ap; qc 66 drivers/ata/pata_pdc2027x.c static int pdc2027x_check_atapi_dma(struct ata_queued_cmd *qc); qc 435 drivers/ata/pata_pdc2027x.c static int pdc2027x_check_atapi_dma(struct ata_queued_cmd *qc) qc 437 drivers/ata/pata_pdc2027x.c struct scsi_cmnd *cmd = qc->scsicmd; qc 177 drivers/ata/pata_pdc202xx_old.c static void pdc2026x_bmdma_start(struct ata_queued_cmd *qc) qc 179 drivers/ata/pata_pdc202xx_old.c struct ata_port *ap = qc->ap; qc 180 drivers/ata/pata_pdc202xx_old.c struct ata_device *adev = qc->dev; qc 181 drivers/ata/pata_pdc202xx_old.c struct ata_taskfile *tf = &qc->tf; qc 198 drivers/ata/pata_pdc202xx_old.c pdc202xx_set_dmamode(ap, qc->dev); qc 202 drivers/ata/pata_pdc202xx_old.c len = qc->nbytes / 2; qc 213 drivers/ata/pata_pdc202xx_old.c ata_bmdma_start(qc); qc 227 drivers/ata/pata_pdc202xx_old.c static void pdc2026x_bmdma_stop(struct ata_queued_cmd *qc) qc 229 drivers/ata/pata_pdc202xx_old.c struct ata_port *ap = qc->ap; qc 230 drivers/ata/pata_pdc202xx_old.c struct ata_device *adev = qc->dev; qc 231 drivers/ata/pata_pdc202xx_old.c struct ata_taskfile *tf = &qc->tf; qc 247 drivers/ata/pata_pdc202xx_old.c ata_bmdma_stop(qc); qc 289 drivers/ata/pata_pdc202xx_old.c static int pdc2026x_check_atapi_dma(struct ata_queued_cmd *qc) qc 47 drivers/ata/pata_pxa.c static void pxa_qc_prep(struct ata_queued_cmd *qc) qc 49 drivers/ata/pata_pxa.c struct pata_pxa_data *pd = qc->ap->private_data; qc 53 drivers/ata/pata_pxa.c if (!(qc->flags & ATA_QCFLAG_DMAMAP)) qc 56 drivers/ata/pata_pxa.c dir = (qc->dma_dir == DMA_TO_DEVICE ? DMA_MEM_TO_DEV : DMA_DEV_TO_MEM); qc 57 drivers/ata/pata_pxa.c tx = dmaengine_prep_slave_sg(pd->dma_chan, qc->sg, qc->n_elem, dir, qc 60 drivers/ata/pata_pxa.c ata_dev_err(qc->dev, "prep_slave_sg() failed\n"); qc 72 drivers/ata/pata_pxa.c static void pxa_bmdma_setup(struct ata_queued_cmd *qc) qc 74 drivers/ata/pata_pxa.c qc->ap->ops->sff_exec_command(qc->ap, &qc->tf); qc 80 drivers/ata/pata_pxa.c static void pxa_bmdma_start(struct ata_queued_cmd *qc) qc 82 drivers/ata/pata_pxa.c struct pata_pxa_data *pd = qc->ap->private_data; qc 90 drivers/ata/pata_pxa.c static void pxa_bmdma_stop(struct ata_queued_cmd *qc) qc 92 drivers/ata/pata_pxa.c struct pata_pxa_data *pd = qc->ap->private_data; qc 98 drivers/ata/pata_pxa.c ata_dev_err(qc->dev, "Timeout waiting for DMA completion!"); qc 132 drivers/ata/pata_pxa.c static int pxa_check_atapi_dma(struct ata_queued_cmd *qc) qc 168 drivers/ata/pata_radisys.c static unsigned int radisys_qc_issue(struct ata_queued_cmd *qc) qc 170 drivers/ata/pata_radisys.c struct ata_port *ap = qc->ap; qc 171 drivers/ata/pata_radisys.c struct ata_device *adev = qc->dev; qc 182 drivers/ata/pata_radisys.c return ata_bmdma_qc_issue(qc); qc 264 drivers/ata/pata_samsung_cf.c static unsigned int pata_s3c_data_xfer(struct ata_queued_cmd *qc, qc 267 drivers/ata/pata_samsung_cf.c struct ata_port *ap = qc->dev->link->ap; qc 152 drivers/ata/pata_sc1200.c static unsigned int sc1200_qc_issue(struct ata_queued_cmd *qc) qc 154 drivers/ata/pata_sc1200.c struct ata_port *ap = qc->ap; qc 155 drivers/ata/pata_sc1200.c struct ata_device *adev = qc->dev; qc 167 drivers/ata/pata_sc1200.c return ata_bmdma_qc_issue(qc); qc 177 drivers/ata/pata_sc1200.c static int sc1200_qc_defer(struct ata_queued_cmd *qc) qc 179 drivers/ata/pata_sc1200.c struct ata_host *host = qc->ap->host; qc 180 drivers/ata/pata_sc1200.c struct ata_port *alt = host->ports[1 ^ qc->ap->port_no]; qc 184 drivers/ata/pata_sc1200.c rc = ata_std_qc_defer(qc); qc 161 drivers/ata/pata_sl82c105.c static void sl82c105_bmdma_start(struct ata_queued_cmd *qc) qc 163 drivers/ata/pata_sl82c105.c struct ata_port *ap = qc->ap; qc 170 drivers/ata/pata_sl82c105.c sl82c105_configure_dmamode(ap, qc->dev); qc 172 drivers/ata/pata_sl82c105.c ata_bmdma_start(qc); qc 190 drivers/ata/pata_sl82c105.c static void sl82c105_bmdma_stop(struct ata_queued_cmd *qc) qc 192 drivers/ata/pata_sl82c105.c struct ata_port *ap = qc->ap; qc 194 drivers/ata/pata_sl82c105.c ata_bmdma_stop(qc); qc 200 drivers/ata/pata_sl82c105.c sl82c105_set_piomode(ap, qc->dev); qc 213 drivers/ata/pata_sl82c105.c static int sl82c105_qc_defer(struct ata_queued_cmd *qc) qc 215 drivers/ata/pata_sl82c105.c struct ata_host *host = qc->ap->host; qc 216 drivers/ata/pata_sl82c105.c struct ata_port *alt = host->ports[1 ^ qc->ap->port_no]; qc 220 drivers/ata/pata_sl82c105.c rc = ata_std_qc_defer(qc); qc 142 drivers/ata/pata_triflex.c static void triflex_bmdma_start(struct ata_queued_cmd *qc) qc 144 drivers/ata/pata_triflex.c triflex_load_timing(qc->ap, qc->dev, qc->dev->dma_mode); qc 145 drivers/ata/pata_triflex.c ata_bmdma_start(qc); qc 158 drivers/ata/pata_triflex.c static void triflex_bmdma_stop(struct ata_queued_cmd *qc) qc 160 drivers/ata/pata_triflex.c ata_bmdma_stop(qc); qc 161 drivers/ata/pata_triflex.c triflex_load_timing(qc->ap, qc->dev, qc->dev->pio_mode); qc 119 drivers/ata/pdc_adma.c static void adma_qc_prep(struct ata_queued_cmd *qc); qc 120 drivers/ata/pdc_adma.c static unsigned int adma_qc_issue(struct ata_queued_cmd *qc); qc 121 drivers/ata/pdc_adma.c static int adma_check_atapi_dma(struct ata_queued_cmd *qc); qc 172 drivers/ata/pdc_adma.c static int adma_check_atapi_dma(struct ata_queued_cmd *qc) qc 256 drivers/ata/pdc_adma.c static int adma_fill_sg(struct ata_queued_cmd *qc) qc 259 drivers/ata/pdc_adma.c struct ata_port *ap = qc->ap; qc 263 drivers/ata/pdc_adma.c u8 pFLAGS = pORD | ((qc->tf.flags & ATA_TFLAG_WRITE) ? pDIRO : 0); qc 266 drivers/ata/pdc_adma.c for_each_sg(qc->sg, sg, qc->n_elem, si) { qc 280 drivers/ata/pdc_adma.c buf[i++] = qc->dev->dma_mode & 0xf; qc 298 drivers/ata/pdc_adma.c static void adma_qc_prep(struct ata_queued_cmd *qc) qc 300 drivers/ata/pdc_adma.c struct adma_port_priv *pp = qc->ap->private_data; qc 307 drivers/ata/pdc_adma.c adma_enter_reg_mode(qc->ap); qc 308 drivers/ata/pdc_adma.c if (qc->tf.protocol != ATA_PROT_DMA) qc 326 drivers/ata/pdc_adma.c buf[i++] = qc->tf.device; qc 328 drivers/ata/pdc_adma.c if ((qc->tf.flags & ATA_TFLAG_LBA48)) { qc 329 drivers/ata/pdc_adma.c buf[i++] = qc->tf.hob_nsect; qc 331 drivers/ata/pdc_adma.c buf[i++] = qc->tf.hob_lbal; qc 333 drivers/ata/pdc_adma.c buf[i++] = qc->tf.hob_lbam; qc 335 drivers/ata/pdc_adma.c buf[i++] = qc->tf.hob_lbah; qc 338 drivers/ata/pdc_adma.c buf[i++] = qc->tf.nsect; qc 340 drivers/ata/pdc_adma.c buf[i++] = qc->tf.lbal; qc 342 drivers/ata/pdc_adma.c buf[i++] = qc->tf.lbam; qc 344 drivers/ata/pdc_adma.c buf[i++] = qc->tf.lbah; qc 350 drivers/ata/pdc_adma.c buf[i++] = qc->tf.command; qc 356 drivers/ata/pdc_adma.c i = adma_fill_sg(qc); qc 376 drivers/ata/pdc_adma.c static inline void adma_packet_start(struct ata_queued_cmd *qc) qc 378 drivers/ata/pdc_adma.c struct ata_port *ap = qc->ap; qc 387 drivers/ata/pdc_adma.c static unsigned int adma_qc_issue(struct ata_queued_cmd *qc) qc 389 drivers/ata/pdc_adma.c struct adma_port_priv *pp = qc->ap->private_data; qc 391 drivers/ata/pdc_adma.c switch (qc->tf.protocol) { qc 394 drivers/ata/pdc_adma.c adma_packet_start(qc); qc 406 drivers/ata/pdc_adma.c return ata_sff_qc_issue(qc); qc 416 drivers/ata/pdc_adma.c struct ata_queued_cmd *qc; qc 427 drivers/ata/pdc_adma.c qc = ata_qc_from_tag(ap, ap->link.active_tag); qc 428 drivers/ata/pdc_adma.c if (qc && (!(qc->tf.flags & ATA_TFLAG_POLLING))) { qc 430 drivers/ata/pdc_adma.c qc->err_mask |= AC_ERR_HOST_BUS; qc 432 drivers/ata/pdc_adma.c qc->err_mask |= AC_ERR_OTHER; qc 435 drivers/ata/pdc_adma.c qc->err_mask |= AC_ERR_DEV; qc 437 drivers/ata/pdc_adma.c qc->err_mask |= AC_ERR_OTHER; qc 439 drivers/ata/pdc_adma.c if (!qc->err_mask) qc 440 drivers/ata/pdc_adma.c ata_qc_complete(qc); qc 449 drivers/ata/pdc_adma.c if (qc->err_mask == AC_ERR_DEV) qc 466 drivers/ata/pdc_adma.c struct ata_queued_cmd *qc; qc 470 drivers/ata/pdc_adma.c qc = ata_qc_from_tag(ap, ap->link.active_tag); qc 471 drivers/ata/pdc_adma.c if (qc && (!(qc->tf.flags & ATA_TFLAG_POLLING))) { qc 478 drivers/ata/pdc_adma.c ap->print_id, qc->tf.protocol, status); qc 482 drivers/ata/pdc_adma.c qc->err_mask |= ac_err_mask(status); qc 483 drivers/ata/pdc_adma.c if (!qc->err_mask) qc 484 drivers/ata/pdc_adma.c ata_qc_complete(qc); qc 490 drivers/ata/pdc_adma.c if (qc->err_mask == AC_ERR_DEV) qc 167 drivers/ata/sata_dwc_460ex.c #define HSDEV_FROM_QC(qc) ((struct sata_dwc_device *)(qc)->ap->host->private_data) qc 184 drivers/ata/sata_dwc_460ex.c static void sata_dwc_bmdma_start_by_tag(struct ata_queued_cmd *qc, u8 tag); qc 185 drivers/ata/sata_dwc_460ex.c static int sata_dwc_qc_complete(struct ata_port *ap, struct ata_queued_cmd *qc, qc 363 drivers/ata/sata_dwc_460ex.c static struct dma_async_tx_descriptor *dma_dwc_xfer_setup(struct ata_queued_cmd *qc) qc 365 drivers/ata/sata_dwc_460ex.c struct ata_port *ap = qc->ap; qc 371 drivers/ata/sata_dwc_460ex.c if (qc->dma_dir == DMA_DEV_TO_MEM) { qc 379 drivers/ata/sata_dwc_460ex.c sconf.direction = qc->dma_dir; qc 388 drivers/ata/sata_dwc_460ex.c desc = dmaengine_prep_slave_sg(hsdevp->chan, qc->sg, qc->n_elem, qc 389 drivers/ata/sata_dwc_460ex.c qc->dma_dir, qc 399 drivers/ata/sata_dwc_460ex.c qc->sg, qc->n_elem, &hsdev->dmadr); qc 458 drivers/ata/sata_dwc_460ex.c struct ata_queued_cmd *qc; qc 487 drivers/ata/sata_dwc_460ex.c qc = ata_qc_from_tag(ap, tag); qc 488 drivers/ata/sata_dwc_460ex.c if (qc) qc 489 drivers/ata/sata_dwc_460ex.c qc->err_mask |= err_mask; qc 508 drivers/ata/sata_dwc_460ex.c struct ata_queued_cmd *qc; qc 545 drivers/ata/sata_dwc_460ex.c qc = ata_qc_from_tag(ap, tag); qc 551 drivers/ata/sata_dwc_460ex.c qc->ap->link.active_tag = tag; qc 552 drivers/ata/sata_dwc_460ex.c sata_dwc_bmdma_start_by_tag(qc, tag); qc 566 drivers/ata/sata_dwc_460ex.c qc = ata_qc_from_tag(ap, tag); qc 569 drivers/ata/sata_dwc_460ex.c if (unlikely(!qc || (qc->tf.flags & ATA_TFLAG_POLLING))) { qc 572 drivers/ata/sata_dwc_460ex.c __func__, qc); qc 579 drivers/ata/sata_dwc_460ex.c qc->ap->link.active_tag = tag; qc 584 drivers/ata/sata_dwc_460ex.c sata_dwc_qc_complete(ap, qc, 1); qc 590 drivers/ata/sata_dwc_460ex.c __func__, get_prot_descript(qc->tf.protocol)); qc 592 drivers/ata/sata_dwc_460ex.c if (ata_is_dma(qc->tf.protocol)) { qc 610 drivers/ata/sata_dwc_460ex.c } else if (ata_is_pio(qc->tf.protocol)) { qc 611 drivers/ata/sata_dwc_460ex.c ata_sff_hsm_move(ap, qc, status, 0); qc 615 drivers/ata/sata_dwc_460ex.c if (unlikely(sata_dwc_qc_complete(ap, qc, 1))) qc 660 drivers/ata/sata_dwc_460ex.c qc = ata_qc_from_tag(ap, tag); qc 663 drivers/ata/sata_dwc_460ex.c qc->ap->link.active_tag = tag; qc 670 drivers/ata/sata_dwc_460ex.c sata_dwc_qc_complete(ap, qc, 1); qc 677 drivers/ata/sata_dwc_460ex.c get_prot_descript(qc->tf.protocol)); qc 678 drivers/ata/sata_dwc_460ex.c if (ata_is_dma(qc->tf.protocol)) { qc 687 drivers/ata/sata_dwc_460ex.c if (unlikely(sata_dwc_qc_complete(ap, qc, 1))) qc 744 drivers/ata/sata_dwc_460ex.c struct ata_queued_cmd *qc; qc 750 drivers/ata/sata_dwc_460ex.c qc = ata_qc_from_tag(ap, tag); qc 751 drivers/ata/sata_dwc_460ex.c if (!qc) { qc 760 drivers/ata/sata_dwc_460ex.c __func__, qc->hw_tag, qc->tf.command, qc 761 drivers/ata/sata_dwc_460ex.c get_dma_dir_descript(qc->dma_dir), qc 762 drivers/ata/sata_dwc_460ex.c get_prot_descript(qc->tf.protocol), qc 767 drivers/ata/sata_dwc_460ex.c if (ata_is_dma(qc->tf.protocol)) { qc 776 drivers/ata/sata_dwc_460ex.c sata_dwc_qc_complete(ap, qc, check_status); qc 779 drivers/ata/sata_dwc_460ex.c sata_dwc_qc_complete(ap, qc, check_status); qc 783 drivers/ata/sata_dwc_460ex.c static int sata_dwc_qc_complete(struct ata_port *ap, struct ata_queued_cmd *qc, qc 788 drivers/ata/sata_dwc_460ex.c u8 tag = qc->hw_tag; qc 800 drivers/ata/sata_dwc_460ex.c qc->tf.command, status, ap->print_id, qc->tf.protocol); qc 806 drivers/ata/sata_dwc_460ex.c ata_qc_complete(qc); qc 988 drivers/ata/sata_dwc_460ex.c static void sata_dwc_bmdma_setup_by_tag(struct ata_queued_cmd *qc, u8 tag) qc 990 drivers/ata/sata_dwc_460ex.c sata_dwc_exec_command_by_tag(qc->ap, &qc->tf, tag, qc 994 drivers/ata/sata_dwc_460ex.c static void sata_dwc_bmdma_setup(struct ata_queued_cmd *qc) qc 996 drivers/ata/sata_dwc_460ex.c u8 tag = qc->hw_tag; qc 998 drivers/ata/sata_dwc_460ex.c if (ata_is_ncq(qc->tf.protocol)) { qc 999 drivers/ata/sata_dwc_460ex.c dev_dbg(qc->ap->dev, "%s: ap->link.sactive=0x%08x tag=%d\n", qc 1000 drivers/ata/sata_dwc_460ex.c __func__, qc->ap->link.sactive, tag); qc 1004 drivers/ata/sata_dwc_460ex.c sata_dwc_bmdma_setup_by_tag(qc, tag); qc 1007 drivers/ata/sata_dwc_460ex.c static void sata_dwc_bmdma_start_by_tag(struct ata_queued_cmd *qc, u8 tag) qc 1011 drivers/ata/sata_dwc_460ex.c struct sata_dwc_device *hsdev = HSDEV_FROM_QC(qc); qc 1012 drivers/ata/sata_dwc_460ex.c struct ata_port *ap = qc->ap; qc 1015 drivers/ata/sata_dwc_460ex.c int dir = qc->dma_dir; qc 1032 drivers/ata/sata_dwc_460ex.c __func__, qc, tag, qc->tf.command, qc 1033 drivers/ata/sata_dwc_460ex.c get_dma_dir_descript(qc->dma_dir), start_dma); qc 1034 drivers/ata/sata_dwc_460ex.c sata_dwc_tf_dump(ap, &qc->tf); qc 1056 drivers/ata/sata_dwc_460ex.c static void sata_dwc_bmdma_start(struct ata_queued_cmd *qc) qc 1058 drivers/ata/sata_dwc_460ex.c u8 tag = qc->hw_tag; qc 1060 drivers/ata/sata_dwc_460ex.c if (ata_is_ncq(qc->tf.protocol)) { qc 1061 drivers/ata/sata_dwc_460ex.c dev_dbg(qc->ap->dev, "%s: ap->link.sactive=0x%08x tag=%d\n", qc 1062 drivers/ata/sata_dwc_460ex.c __func__, qc->ap->link.sactive, tag); qc 1066 drivers/ata/sata_dwc_460ex.c dev_dbg(qc->ap->dev, "%s\n", __func__); qc 1067 drivers/ata/sata_dwc_460ex.c sata_dwc_bmdma_start_by_tag(qc, tag); qc 1070 drivers/ata/sata_dwc_460ex.c static unsigned int sata_dwc_qc_issue(struct ata_queued_cmd *qc) qc 1073 drivers/ata/sata_dwc_460ex.c u8 tag = qc->hw_tag; qc 1074 drivers/ata/sata_dwc_460ex.c struct ata_port *ap = qc->ap; qc 1078 drivers/ata/sata_dwc_460ex.c if (qc->hw_tag > 0 || ap->link.sactive > 1) qc 1081 drivers/ata/sata_dwc_460ex.c __func__, ap->print_id, qc->tf.command, qc 1082 drivers/ata/sata_dwc_460ex.c ata_get_cmd_descript(qc->tf.command), qc 1083 drivers/ata/sata_dwc_460ex.c qc->hw_tag, get_prot_descript(qc->tf.protocol), qc 1087 drivers/ata/sata_dwc_460ex.c if (!ata_is_ncq(qc->tf.protocol)) qc 1090 drivers/ata/sata_dwc_460ex.c if (ata_is_dma(qc->tf.protocol)) { qc 1091 drivers/ata/sata_dwc_460ex.c hsdevp->desc[tag] = dma_dwc_xfer_setup(qc); qc 1098 drivers/ata/sata_dwc_460ex.c if (ata_is_ncq(qc->tf.protocol)) { qc 1103 drivers/ata/sata_dwc_460ex.c dev_dbg(qc->ap->dev, qc 1105 drivers/ata/sata_dwc_460ex.c __func__, tag, qc->ap->link.sactive, sactive); qc 1107 drivers/ata/sata_dwc_460ex.c ap->ops->sff_tf_load(ap, &qc->tf); qc 1108 drivers/ata/sata_dwc_460ex.c sata_dwc_exec_command_by_tag(ap, &qc->tf, tag, qc 1111 drivers/ata/sata_dwc_460ex.c return ata_bmdma_qc_issue(qc); qc 431 drivers/ata/sata_fsl.c static unsigned int sata_fsl_fill_sg(struct ata_queued_cmd *qc, void *cmd_desc, qc 455 drivers/ata/sata_fsl.c for_each_sg(qc->sg, sg, qc->n_elem, si) { qc 464 drivers/ata/sata_fsl.c ata_port_err(qc->ap, "s/g addr unaligned : 0x%llx\n", qc 467 drivers/ata/sata_fsl.c ata_port_err(qc->ap, "s/g len unaligned : 0x%x\n", qc 505 drivers/ata/sata_fsl.c static void sata_fsl_qc_prep(struct ata_queued_cmd *qc) qc 507 drivers/ata/sata_fsl.c struct ata_port *ap = qc->ap; qc 511 drivers/ata/sata_fsl.c unsigned int tag = sata_fsl_tag(qc->hw_tag, hcr_base); qc 521 drivers/ata/sata_fsl.c ata_tf_to_fis(&qc->tf, qc->dev->link->pmp, 1, (u8 *) &cd->cfis); qc 526 drivers/ata/sata_fsl.c if (qc->tf.protocol == ATA_PROT_NCQ) { qc 532 drivers/ata/sata_fsl.c if (ata_is_atapi(qc->tf.protocol)) { qc 535 drivers/ata/sata_fsl.c memcpy((void *)&cd->acmd, qc->cdb, qc->dev->cdb_len); qc 538 drivers/ata/sata_fsl.c if (qc->flags & ATA_QCFLAG_DMAMAP) qc 539 drivers/ata/sata_fsl.c num_prde = sata_fsl_fill_sg(qc, (void *)cd, qc 543 drivers/ata/sata_fsl.c if (qc->tf.protocol == ATA_PROT_NCQ) qc 553 drivers/ata/sata_fsl.c static unsigned int sata_fsl_qc_issue(struct ata_queued_cmd *qc) qc 555 drivers/ata/sata_fsl.c struct ata_port *ap = qc->ap; qc 558 drivers/ata/sata_fsl.c unsigned int tag = sata_fsl_tag(qc->hw_tag, hcr_base); qc 565 drivers/ata/sata_fsl.c iowrite32(qc->dev->link->pmp, CQPMP + hcr_base); qc 582 drivers/ata/sata_fsl.c static bool sata_fsl_qc_fill_rtf(struct ata_queued_cmd *qc) qc 584 drivers/ata/sata_fsl.c struct sata_fsl_port_priv *pp = qc->ap->private_data; qc 585 drivers/ata/sata_fsl.c struct sata_fsl_host_priv *host_priv = qc->ap->host->private_data; qc 587 drivers/ata/sata_fsl.c unsigned int tag = sata_fsl_tag(qc->hw_tag, hcr_base); qc 592 drivers/ata/sata_fsl.c ata_tf_from_fis(cd->sfis, &qc->result_tf); qc 1065 drivers/ata/sata_fsl.c static void sata_fsl_post_internal_cmd(struct ata_queued_cmd *qc) qc 1067 drivers/ata/sata_fsl.c if (qc->flags & ATA_QCFLAG_FAILED) qc 1068 drivers/ata/sata_fsl.c qc->err_mask |= AC_ERR_OTHER; qc 1070 drivers/ata/sata_fsl.c if (qc->err_mask) { qc 1084 drivers/ata/sata_fsl.c struct ata_queued_cmd *qc = NULL; qc 1156 drivers/ata/sata_fsl.c qc = ata_qc_from_tag(ap, link->active_tag); qc 1174 drivers/ata/sata_fsl.c qc = ata_qc_from_tag(ap, link->active_tag); qc 1184 drivers/ata/sata_fsl.c if (qc) qc 1185 drivers/ata/sata_fsl.c qc->err_mask |= err_mask; qc 1195 drivers/ata/sata_fsl.c if (qc) qc 1196 drivers/ata/sata_fsl.c ata_link_abort(qc->dev->link); qc 1207 drivers/ata/sata_fsl.c struct ata_queued_cmd *qc; qc 1221 drivers/ata/sata_fsl.c ata_qc_for_each_with_internal(ap, qc, tag) { qc 1222 drivers/ata/sata_fsl.c if (qc && ata_is_atapi(qc->tf.protocol)) { qc 1286 drivers/ata/sata_fsl.c qc = ata_qc_from_tag(ap, ATA_TAG_INTERNAL); qc 1291 drivers/ata/sata_fsl.c if (qc) { qc 1292 drivers/ata/sata_fsl.c ata_qc_complete(qc); qc 385 drivers/ata/sata_inic162x.c struct ata_queued_cmd *qc = ata_qc_from_tag(ap, ap->link.active_tag); qc 397 drivers/ata/sata_inic162x.c if (unlikely(!qc)) qc 408 drivers/ata/sata_inic162x.c qc->err_mask |= AC_ERR_DEV; qc 410 drivers/ata/sata_inic162x.c ata_qc_complete(qc); qc 416 drivers/ata/sata_inic162x.c qc ? qc->tf.command : 0xff, irq_stat, idma_stat); qc 445 drivers/ata/sata_inic162x.c static int inic_check_atapi_dma(struct ata_queued_cmd *qc) qc 453 drivers/ata/sata_inic162x.c if (atapi_cmd_type(qc->cdb[0]) == READ) qc 458 drivers/ata/sata_inic162x.c static void inic_fill_sg(struct inic_prd *prd, struct ata_queued_cmd *qc) qc 464 drivers/ata/sata_inic162x.c if (qc->tf.flags & ATA_TFLAG_WRITE) qc 467 drivers/ata/sata_inic162x.c if (ata_is_dma(qc->tf.protocol)) qc 470 drivers/ata/sata_inic162x.c for_each_sg(qc->sg, sg, qc->n_elem, si) { qc 481 drivers/ata/sata_inic162x.c static void inic_qc_prep(struct ata_queued_cmd *qc) qc 483 drivers/ata/sata_inic162x.c struct inic_port_priv *pp = qc->ap->private_data; qc 487 drivers/ata/sata_inic162x.c bool is_atapi = ata_is_atapi(qc->tf.protocol); qc 488 drivers/ata/sata_inic162x.c bool is_data = ata_is_data(qc->tf.protocol); qc 494 drivers/ata/sata_inic162x.c cdb_len = qc->dev->cdb_len; qc 503 drivers/ata/sata_inic162x.c cpb->len = cpu_to_le32(qc->nbytes + cdb_len); qc 506 drivers/ata/sata_inic162x.c cpb->device = qc->tf.device; qc 507 drivers/ata/sata_inic162x.c cpb->feature = qc->tf.feature; qc 508 drivers/ata/sata_inic162x.c cpb->nsect = qc->tf.nsect; qc 509 drivers/ata/sata_inic162x.c cpb->lbal = qc->tf.lbal; qc 510 drivers/ata/sata_inic162x.c cpb->lbam = qc->tf.lbam; qc 511 drivers/ata/sata_inic162x.c cpb->lbah = qc->tf.lbah; qc 513 drivers/ata/sata_inic162x.c if (qc->tf.flags & ATA_TFLAG_LBA48) { qc 514 drivers/ata/sata_inic162x.c cpb->hob_feature = qc->tf.hob_feature; qc 515 drivers/ata/sata_inic162x.c cpb->hob_nsect = qc->tf.hob_nsect; qc 516 drivers/ata/sata_inic162x.c cpb->hob_lbal = qc->tf.hob_lbal; qc 517 drivers/ata/sata_inic162x.c cpb->hob_lbam = qc->tf.hob_lbam; qc 518 drivers/ata/sata_inic162x.c cpb->hob_lbah = qc->tf.hob_lbah; qc 521 drivers/ata/sata_inic162x.c cpb->command = qc->tf.command; qc 526 drivers/ata/sata_inic162x.c memcpy(pkt->cdb, qc->cdb, ATAPI_CDB_LEN); qc 538 drivers/ata/sata_inic162x.c inic_fill_sg(prd, qc); qc 543 drivers/ata/sata_inic162x.c static unsigned int inic_qc_issue(struct ata_queued_cmd *qc) qc 545 drivers/ata/sata_inic162x.c struct ata_port *ap = qc->ap; qc 569 drivers/ata/sata_inic162x.c static bool inic_qc_fill_rtf(struct ata_queued_cmd *qc) qc 571 drivers/ata/sata_inic162x.c struct ata_taskfile *rtf = &qc->result_tf; qc 581 drivers/ata/sata_inic162x.c inic_tf_read(qc->ap, &tf); qc 672 drivers/ata/sata_inic162x.c static void inic_post_internal_cmd(struct ata_queued_cmd *qc) qc 675 drivers/ata/sata_inic162x.c if (qc->flags & ATA_QCFLAG_FAILED) qc 676 drivers/ata/sata_inic162x.c inic_reset_port(inic_port_base(qc->ap)); qc 594 drivers/ata/sata_mv.c static int mv_qc_defer(struct ata_queued_cmd *qc); qc 595 drivers/ata/sata_mv.c static void mv_qc_prep(struct ata_queued_cmd *qc); qc 596 drivers/ata/sata_mv.c static void mv_qc_prep_iie(struct ata_queued_cmd *qc); qc 597 drivers/ata/sata_mv.c static unsigned int mv_qc_issue(struct ata_queued_cmd *qc); qc 650 drivers/ata/sata_mv.c static int mv_check_atapi_dma(struct ata_queued_cmd *qc); qc 651 drivers/ata/sata_mv.c static void mv_bmdma_setup(struct ata_queued_cmd *qc); qc 652 drivers/ata/sata_mv.c static void mv_bmdma_start(struct ata_queued_cmd *qc); qc 653 drivers/ata/sata_mv.c static void mv_bmdma_stop(struct ata_queued_cmd *qc); qc 1422 drivers/ata/sata_mv.c static int mv_qc_defer(struct ata_queued_cmd *qc) qc 1424 drivers/ata/sata_mv.c struct ata_link *link = qc->dev->link; qc 1447 drivers/ata/sata_mv.c qc->flags |= ATA_QCFLAG_CLEAR_EXCL; qc 1467 drivers/ata/sata_mv.c if (ata_is_ncq(qc->tf.protocol)) qc 1785 drivers/ata/sata_mv.c static void mv_fill_sg(struct ata_queued_cmd *qc) qc 1787 drivers/ata/sata_mv.c struct mv_port_priv *pp = qc->ap->private_data; qc 1792 drivers/ata/sata_mv.c mv_sg = pp->sg_tbl[qc->hw_tag]; qc 1793 drivers/ata/sata_mv.c for_each_sg(qc->sg, sg, qc->n_elem, si) { qc 1853 drivers/ata/sata_mv.c static int mv_check_atapi_dma(struct ata_queued_cmd *qc) qc 1855 drivers/ata/sata_mv.c struct scsi_cmnd *scmd = qc->scsicmd; qc 1881 drivers/ata/sata_mv.c static void mv_bmdma_setup(struct ata_queued_cmd *qc) qc 1883 drivers/ata/sata_mv.c struct ata_port *ap = qc->ap; qc 1887 drivers/ata/sata_mv.c mv_fill_sg(qc); qc 1893 drivers/ata/sata_mv.c writel((pp->sg_tbl_dma[qc->hw_tag] >> 16) >> 16, qc 1895 drivers/ata/sata_mv.c writelfl(pp->sg_tbl_dma[qc->hw_tag], qc 1899 drivers/ata/sata_mv.c ap->ops->sff_exec_command(ap, &qc->tf); qc 1909 drivers/ata/sata_mv.c static void mv_bmdma_start(struct ata_queued_cmd *qc) qc 1911 drivers/ata/sata_mv.c struct ata_port *ap = qc->ap; qc 1913 drivers/ata/sata_mv.c unsigned int rw = (qc->tf.flags & ATA_TFLAG_WRITE); qc 1945 drivers/ata/sata_mv.c static void mv_bmdma_stop(struct ata_queued_cmd *qc) qc 1947 drivers/ata/sata_mv.c mv_bmdma_stop_ap(qc->ap); qc 1989 drivers/ata/sata_mv.c static void mv_rw_multi_errata_sata24(struct ata_queued_cmd *qc) qc 1991 drivers/ata/sata_mv.c struct ata_taskfile *tf = &qc->tf; qc 2006 drivers/ata/sata_mv.c if (qc->dev->multi_count > 7) { qc 2034 drivers/ata/sata_mv.c static void mv_qc_prep(struct ata_queued_cmd *qc) qc 2036 drivers/ata/sata_mv.c struct ata_port *ap = qc->ap; qc 2039 drivers/ata/sata_mv.c struct ata_taskfile *tf = &qc->tf; qc 2051 drivers/ata/sata_mv.c mv_rw_multi_errata_sata24(qc); qc 2061 drivers/ata/sata_mv.c WARN_ON(MV_MAX_Q_DEPTH <= qc->hw_tag); qc 2062 drivers/ata/sata_mv.c flags |= qc->hw_tag << CRQB_TAG_SHIFT; qc 2063 drivers/ata/sata_mv.c flags |= (qc->dev->link->pmp & 0xf) << CRQB_PMP_SHIFT; qc 2069 drivers/ata/sata_mv.c cpu_to_le32(pp->sg_tbl_dma[qc->hw_tag] & 0xffffffff); qc 2071 drivers/ata/sata_mv.c cpu_to_le32((pp->sg_tbl_dma[qc->hw_tag] >> 16) >> 16); qc 2118 drivers/ata/sata_mv.c if (!(qc->flags & ATA_QCFLAG_DMAMAP)) qc 2120 drivers/ata/sata_mv.c mv_fill_sg(qc); qc 2135 drivers/ata/sata_mv.c static void mv_qc_prep_iie(struct ata_queued_cmd *qc) qc 2137 drivers/ata/sata_mv.c struct ata_port *ap = qc->ap; qc 2140 drivers/ata/sata_mv.c struct ata_taskfile *tf = &qc->tf; qc 2154 drivers/ata/sata_mv.c WARN_ON(MV_MAX_Q_DEPTH <= qc->hw_tag); qc 2155 drivers/ata/sata_mv.c flags |= qc->hw_tag << CRQB_TAG_SHIFT; qc 2156 drivers/ata/sata_mv.c flags |= qc->hw_tag << CRQB_HOSTQ_SHIFT; qc 2157 drivers/ata/sata_mv.c flags |= (qc->dev->link->pmp & 0xf) << CRQB_PMP_SHIFT; qc 2163 drivers/ata/sata_mv.c crqb->addr = cpu_to_le32(pp->sg_tbl_dma[qc->hw_tag] & 0xffffffff); qc 2164 drivers/ata/sata_mv.c crqb->addr_hi = cpu_to_le32((pp->sg_tbl_dma[qc->hw_tag] >> 16) >> 16); qc 2188 drivers/ata/sata_mv.c if (!(qc->flags & ATA_QCFLAG_DMAMAP)) qc 2190 drivers/ata/sata_mv.c mv_fill_sg(qc); qc 2281 drivers/ata/sata_mv.c static unsigned int mv_qc_issue_fis(struct ata_queued_cmd *qc) qc 2283 drivers/ata/sata_mv.c struct ata_port *ap = qc->ap; qc 2285 drivers/ata/sata_mv.c struct ata_link *link = qc->dev->link; qc 2289 drivers/ata/sata_mv.c ata_tf_to_fis(&qc->tf, link->pmp, 1, (void *)fis); qc 2294 drivers/ata/sata_mv.c switch (qc->tf.protocol) { qc 2303 drivers/ata/sata_mv.c if (qc->tf.flags & ATA_TFLAG_WRITE) qc 2313 drivers/ata/sata_mv.c if (qc->tf.flags & ATA_TFLAG_POLLING) qc 2330 drivers/ata/sata_mv.c static unsigned int mv_qc_issue(struct ata_queued_cmd *qc) qc 2333 drivers/ata/sata_mv.c struct ata_port *ap = qc->ap; qc 2341 drivers/ata/sata_mv.c switch (qc->tf.protocol) { qc 2343 drivers/ata/sata_mv.c if (qc->tf.command == ATA_CMD_DSM) { qc 2350 drivers/ata/sata_mv.c mv_start_edma(ap, port_mmio, pp, qc->tf.protocol); qc 2371 drivers/ata/sata_mv.c if (limit_warnings > 0 && (qc->nbytes / qc->sect_size) > 1) { qc 2373 drivers/ata/sata_mv.c ata_link_warn(qc->dev->link, DRV_NAME qc 2382 drivers/ata/sata_mv.c qc->tf.flags |= ATA_TFLAG_POLLING; qc 2386 drivers/ata/sata_mv.c if (qc->tf.flags & ATA_TFLAG_POLLING) qc 2398 drivers/ata/sata_mv.c mv_pmp_select(ap, qc->dev->link->pmp); qc 2400 drivers/ata/sata_mv.c if (qc->tf.command == ATA_CMD_READ_LOG_EXT) { qc 2414 drivers/ata/sata_mv.c return mv_qc_issue_fis(qc); qc 2416 drivers/ata/sata_mv.c return ata_bmdma_qc_issue(qc); qc 2422 drivers/ata/sata_mv.c struct ata_queued_cmd *qc; qc 2426 drivers/ata/sata_mv.c qc = ata_qc_from_tag(ap, ap->link.active_tag); qc 2427 drivers/ata/sata_mv.c if (qc && !(qc->tf.flags & ATA_TFLAG_POLLING)) qc 2428 drivers/ata/sata_mv.c return qc; qc 2613 drivers/ata/sata_mv.c struct ata_queued_cmd *qc = ata_qc_from_tag(ap, ap->link.active_tag); qc 2614 drivers/ata/sata_mv.c if (qc && (qc->tf.flags & ATA_TFLAG_POLLING)) qc 2643 drivers/ata/sata_mv.c struct ata_queued_cmd *qc; qc 2670 drivers/ata/sata_mv.c qc = mv_get_active_qc(ap); qc 2739 drivers/ata/sata_mv.c if (qc) qc 2740 drivers/ata/sata_mv.c qc->err_mask |= err_mask; qc 2762 drivers/ata/sata_mv.c if (qc) qc 2763 drivers/ata/sata_mv.c ata_link_abort(qc->dev->link); qc 2865 drivers/ata/sata_mv.c struct ata_queued_cmd *qc = mv_get_active_qc(ap); qc 2866 drivers/ata/sata_mv.c if (qc) qc 2867 drivers/ata/sata_mv.c ata_bmdma_port_intr(ap, qc); qc 2950 drivers/ata/sata_mv.c struct ata_queued_cmd *qc; qc 2974 drivers/ata/sata_mv.c qc = ata_qc_from_tag(ap, ap->link.active_tag); qc 2975 drivers/ata/sata_mv.c if (qc) qc 2976 drivers/ata/sata_mv.c qc->err_mask |= err_mask; qc 299 drivers/ata/sata_nv.c static int nv_adma_check_atapi_dma(struct ata_queued_cmd *qc); qc 300 drivers/ata/sata_nv.c static void nv_adma_qc_prep(struct ata_queued_cmd *qc); qc 301 drivers/ata/sata_nv.c static unsigned int nv_adma_qc_issue(struct ata_queued_cmd *qc); qc 314 drivers/ata/sata_nv.c static void nv_adma_post_internal_cmd(struct ata_queued_cmd *qc); qc 322 drivers/ata/sata_nv.c static void nv_swncq_qc_prep(struct ata_queued_cmd *qc); qc 323 drivers/ata/sata_nv.c static void nv_swncq_fill_sg(struct ata_queued_cmd *qc); qc 324 drivers/ata/sata_nv.c static unsigned int nv_swncq_qc_issue(struct ata_queued_cmd *qc); qc 748 drivers/ata/sata_nv.c static int nv_adma_check_atapi_dma(struct ata_queued_cmd *qc) qc 750 drivers/ata/sata_nv.c struct nv_adma_port_priv *pp = qc->ap->private_data; qc 847 drivers/ata/sata_nv.c struct ata_queued_cmd *qc = ata_qc_from_tag(ap, ap->link.active_tag); qc 860 drivers/ata/sata_nv.c if (unlikely(!qc || (qc->tf.flags & ATA_TFLAG_POLLING))) { qc 866 drivers/ata/sata_nv.c return ata_bmdma_port_intr(ap, qc); qc 1078 drivers/ata/sata_nv.c static void nv_adma_post_internal_cmd(struct ata_queued_cmd *qc) qc 1080 drivers/ata/sata_nv.c struct nv_adma_port_priv *pp = qc->ap->private_data; qc 1083 drivers/ata/sata_nv.c ata_bmdma_post_internal_cmd(qc); qc 1291 drivers/ata/sata_nv.c static void nv_adma_fill_aprd(struct ata_queued_cmd *qc, qc 1297 drivers/ata/sata_nv.c if (qc->tf.flags & ATA_TFLAG_WRITE) qc 1299 drivers/ata/sata_nv.c if (idx == qc->n_elem - 1) qc 1310 drivers/ata/sata_nv.c static void nv_adma_fill_sg(struct ata_queued_cmd *qc, struct nv_adma_cpb *cpb) qc 1312 drivers/ata/sata_nv.c struct nv_adma_port_priv *pp = qc->ap->private_data; qc 1319 drivers/ata/sata_nv.c for_each_sg(qc->sg, sg, qc->n_elem, si) { qc 1321 drivers/ata/sata_nv.c &pp->aprd[NV_ADMA_SGTBL_LEN * qc->hw_tag + (si-5)]; qc 1322 drivers/ata/sata_nv.c nv_adma_fill_aprd(qc, sg, si, aprd); qc 1325 drivers/ata/sata_nv.c cpb->next_aprd = cpu_to_le64(((u64)(pp->aprd_dma + NV_ADMA_SGTBL_SZ * qc->hw_tag))); qc 1330 drivers/ata/sata_nv.c static int nv_adma_use_reg_mode(struct ata_queued_cmd *qc) qc 1332 drivers/ata/sata_nv.c struct nv_adma_port_priv *pp = qc->ap->private_data; qc 1337 drivers/ata/sata_nv.c (qc->tf.flags & ATA_TFLAG_POLLING)) qc 1340 drivers/ata/sata_nv.c if ((qc->flags & ATA_QCFLAG_DMAMAP) || qc 1341 drivers/ata/sata_nv.c (qc->tf.protocol == ATA_PROT_NODATA)) qc 1347 drivers/ata/sata_nv.c static void nv_adma_qc_prep(struct ata_queued_cmd *qc) qc 1349 drivers/ata/sata_nv.c struct nv_adma_port_priv *pp = qc->ap->private_data; qc 1350 drivers/ata/sata_nv.c struct nv_adma_cpb *cpb = &pp->cpb[qc->hw_tag]; qc 1354 drivers/ata/sata_nv.c if (nv_adma_use_reg_mode(qc)) { qc 1356 drivers/ata/sata_nv.c (qc->flags & ATA_QCFLAG_DMAMAP)); qc 1357 drivers/ata/sata_nv.c nv_adma_register_mode(qc->ap); qc 1358 drivers/ata/sata_nv.c ata_bmdma_qc_prep(qc); qc 1368 drivers/ata/sata_nv.c cpb->tag = qc->hw_tag; qc 1372 drivers/ata/sata_nv.c if (qc->tf.protocol == ATA_PROT_NCQ) qc 1375 drivers/ata/sata_nv.c VPRINTK("qc->flags = 0x%lx\n", qc->flags); qc 1377 drivers/ata/sata_nv.c nv_adma_tf_to_cpb(&qc->tf, cpb->tf); qc 1379 drivers/ata/sata_nv.c if (qc->flags & ATA_QCFLAG_DMAMAP) { qc 1380 drivers/ata/sata_nv.c nv_adma_fill_sg(qc, cpb); qc 1393 drivers/ata/sata_nv.c static unsigned int nv_adma_qc_issue(struct ata_queued_cmd *qc) qc 1395 drivers/ata/sata_nv.c struct nv_adma_port_priv *pp = qc->ap->private_data; qc 1397 drivers/ata/sata_nv.c int curr_ncq = (qc->tf.protocol == ATA_PROT_NCQ); qc 1404 drivers/ata/sata_nv.c if (unlikely(qc->tf.protocol == ATA_PROT_NCQ && qc 1405 drivers/ata/sata_nv.c (qc->flags & ATA_QCFLAG_RESULT_TF))) { qc 1406 drivers/ata/sata_nv.c ata_dev_err(qc->dev, "NCQ w/ RESULT_TF not allowed\n"); qc 1410 drivers/ata/sata_nv.c if (nv_adma_use_reg_mode(qc)) { qc 1412 drivers/ata/sata_nv.c VPRINTK("using ATA register mode: 0x%lx\n", qc->flags); qc 1414 drivers/ata/sata_nv.c (qc->flags & ATA_QCFLAG_DMAMAP)); qc 1415 drivers/ata/sata_nv.c nv_adma_register_mode(qc->ap); qc 1416 drivers/ata/sata_nv.c return ata_bmdma_qc_issue(qc); qc 1418 drivers/ata/sata_nv.c nv_adma_mode(qc->ap); qc 1431 drivers/ata/sata_nv.c writew(qc->hw_tag, mmio + NV_ADMA_APPEND); qc 1433 drivers/ata/sata_nv.c DPRINTK("Issued tag %u\n", qc->hw_tag); qc 1449 drivers/ata/sata_nv.c struct ata_queued_cmd *qc; qc 1451 drivers/ata/sata_nv.c qc = ata_qc_from_tag(ap, ap->link.active_tag); qc 1452 drivers/ata/sata_nv.c if (qc && (!(qc->tf.flags & ATA_TFLAG_POLLING))) { qc 1453 drivers/ata/sata_nv.c handled += ata_bmdma_port_intr(ap, qc); qc 1688 drivers/ata/sata_nv.c static void nv_swncq_qc_to_dq(struct ata_port *ap, struct ata_queued_cmd *qc) qc 1695 drivers/ata/sata_nv.c dq->defer_bits |= (1 << qc->hw_tag); qc 1696 drivers/ata/sata_nv.c dq->tag[dq->tail++ & (ATA_MAX_QUEUE - 1)] = qc->hw_tag; qc 1748 drivers/ata/sata_nv.c struct ata_queued_cmd qc; qc 1750 drivers/ata/sata_nv.c qc.ap = ap; qc 1751 drivers/ata/sata_nv.c ata_bmdma_stop(&qc); qc 1953 drivers/ata/sata_nv.c static void nv_swncq_qc_prep(struct ata_queued_cmd *qc) qc 1955 drivers/ata/sata_nv.c if (qc->tf.protocol != ATA_PROT_NCQ) { qc 1956 drivers/ata/sata_nv.c ata_bmdma_qc_prep(qc); qc 1960 drivers/ata/sata_nv.c if (!(qc->flags & ATA_QCFLAG_DMAMAP)) qc 1963 drivers/ata/sata_nv.c nv_swncq_fill_sg(qc); qc 1966 drivers/ata/sata_nv.c static void nv_swncq_fill_sg(struct ata_queued_cmd *qc) qc 1968 drivers/ata/sata_nv.c struct ata_port *ap = qc->ap; qc 1974 drivers/ata/sata_nv.c prd = pp->prd + ATA_MAX_PRD * qc->hw_tag; qc 1977 drivers/ata/sata_nv.c for_each_sg(qc->sg, sg, qc->n_elem, si) { qc 2003 drivers/ata/sata_nv.c struct ata_queued_cmd *qc) qc 2007 drivers/ata/sata_nv.c if (qc == NULL) qc 2012 drivers/ata/sata_nv.c writel((1 << qc->hw_tag), pp->sactive_block); qc 2013 drivers/ata/sata_nv.c pp->last_issue_tag = qc->hw_tag; qc 2014 drivers/ata/sata_nv.c pp->dhfis_bits &= ~(1 << qc->hw_tag); qc 2015 drivers/ata/sata_nv.c pp->dmafis_bits &= ~(1 << qc->hw_tag); qc 2016 drivers/ata/sata_nv.c pp->qc_active |= (0x1 << qc->hw_tag); qc 2018 drivers/ata/sata_nv.c ap->ops->sff_tf_load(ap, &qc->tf); /* load tf registers */ qc 2019 drivers/ata/sata_nv.c ap->ops->sff_exec_command(ap, &qc->tf); qc 2021 drivers/ata/sata_nv.c DPRINTK("Issued tag %u\n", qc->hw_tag); qc 2026 drivers/ata/sata_nv.c static unsigned int nv_swncq_qc_issue(struct ata_queued_cmd *qc) qc 2028 drivers/ata/sata_nv.c struct ata_port *ap = qc->ap; qc 2031 drivers/ata/sata_nv.c if (qc->tf.protocol != ATA_PROT_NCQ) qc 2032 drivers/ata/sata_nv.c return ata_bmdma_qc_issue(qc); qc 2037 drivers/ata/sata_nv.c nv_swncq_issue_atacmd(ap, qc); qc 2039 drivers/ata/sata_nv.c nv_swncq_qc_to_dq(ap, qc); /* add qc to defer queue */ qc 2071 drivers/ata/sata_nv.c struct ata_queued_cmd *qc; qc 2127 drivers/ata/sata_nv.c qc = ata_qc_from_tag(ap, pp->last_issue_tag); qc 2128 drivers/ata/sata_nv.c nv_swncq_issue_atacmd(ap, qc); qc 2134 drivers/ata/sata_nv.c qc = nv_swncq_qc_from_dq(ap); qc 2135 drivers/ata/sata_nv.c WARN_ON(qc == NULL); qc 2136 drivers/ata/sata_nv.c nv_swncq_issue_atacmd(ap, qc); qc 2153 drivers/ata/sata_nv.c struct ata_queued_cmd *qc; qc 2163 drivers/ata/sata_nv.c qc = ata_qc_from_tag(ap, tag); qc 2165 drivers/ata/sata_nv.c if (unlikely(!qc)) qc 2168 drivers/ata/sata_nv.c rw = qc->tf.flags & ATA_TFLAG_WRITE; qc 2171 drivers/ata/sata_nv.c iowrite32(pp->prd_dma + ATA_PRD_TBL_SZ * qc->hw_tag, qc 2186 drivers/ata/sata_nv.c struct ata_queued_cmd *qc; qc 2259 drivers/ata/sata_nv.c qc = nv_swncq_qc_from_dq(ap); qc 2260 drivers/ata/sata_nv.c nv_swncq_issue_atacmd(ap, qc); qc 142 drivers/ata/sata_promise.c static void pdc_qc_prep(struct ata_queued_cmd *qc); qc 145 drivers/ata/sata_promise.c static int pdc_check_atapi_dma(struct ata_queued_cmd *qc); qc 146 drivers/ata/sata_promise.c static int pdc_old_sata_check_atapi_dma(struct ata_queued_cmd *qc); qc 148 drivers/ata/sata_promise.c static unsigned int pdc_qc_issue(struct ata_queued_cmd *qc); qc 158 drivers/ata/sata_promise.c static void pdc_post_internal_cmd(struct ata_queued_cmd *qc); qc 485 drivers/ata/sata_promise.c static void pdc_atapi_pkt(struct ata_queued_cmd *qc) qc 487 drivers/ata/sata_promise.c struct ata_port *ap = qc->ap; qc 489 drivers/ata/sata_promise.c unsigned int cdb_len = qc->dev->cdb_len; qc 490 drivers/ata/sata_promise.c u8 *cdb = qc->cdb; qc 499 drivers/ata/sata_promise.c switch (qc->tf.protocol) { qc 501 drivers/ata/sata_promise.c if (!(qc->tf.flags & ATA_TFLAG_WRITE)) qc 520 drivers/ata/sata_promise.c dev_sel = qc->tf.device; qc 528 drivers/ata/sata_promise.c buf[17] = qc->tf.nsect; qc 530 drivers/ata/sata_promise.c buf[19] = qc->tf.lbal; qc 533 drivers/ata/sata_promise.c if (qc->tf.protocol != ATAPI_PROT_DMA) qc 541 drivers/ata/sata_promise.c buf[23] = qc->tf.lbam; qc 543 drivers/ata/sata_promise.c buf[25] = qc->tf.lbah; qc 547 drivers/ata/sata_promise.c buf[27] = qc->tf.command; qc 573 drivers/ata/sata_promise.c static void pdc_fill_sg(struct ata_queued_cmd *qc) qc 575 drivers/ata/sata_promise.c struct ata_port *ap = qc->ap; qc 582 drivers/ata/sata_promise.c if (!(qc->flags & ATA_QCFLAG_DMAMAP)) qc 586 drivers/ata/sata_promise.c for_each_sg(qc->sg, sg, qc->n_elem, si) { qc 636 drivers/ata/sata_promise.c static void pdc_qc_prep(struct ata_queued_cmd *qc) qc 638 drivers/ata/sata_promise.c struct pdc_port_priv *pp = qc->ap->private_data; qc 643 drivers/ata/sata_promise.c switch (qc->tf.protocol) { qc 645 drivers/ata/sata_promise.c pdc_fill_sg(qc); qc 648 drivers/ata/sata_promise.c i = pdc_pkt_header(&qc->tf, qc->ap->bmdma_prd_dma, qc 649 drivers/ata/sata_promise.c qc->dev->devno, pp->pkt); qc 650 drivers/ata/sata_promise.c if (qc->tf.flags & ATA_TFLAG_LBA48) qc 651 drivers/ata/sata_promise.c i = pdc_prep_lba48(&qc->tf, pp->pkt, i); qc 653 drivers/ata/sata_promise.c i = pdc_prep_lba28(&qc->tf, pp->pkt, i); qc 654 drivers/ata/sata_promise.c pdc_pkt_footer(&qc->tf, pp->pkt, i); qc 657 drivers/ata/sata_promise.c pdc_fill_sg(qc); qc 660 drivers/ata/sata_promise.c pdc_fill_sg(qc); qc 663 drivers/ata/sata_promise.c pdc_atapi_pkt(qc); qc 832 drivers/ata/sata_promise.c static void pdc_post_internal_cmd(struct ata_queued_cmd *qc) qc 834 drivers/ata/sata_promise.c struct ata_port *ap = qc->ap; qc 837 drivers/ata/sata_promise.c if (qc->flags & ATA_QCFLAG_FAILED) qc 841 drivers/ata/sata_promise.c static void pdc_error_intr(struct ata_port *ap, struct ata_queued_cmd *qc, qc 868 drivers/ata/sata_promise.c qc->err_mask |= ac_err_mask; qc 876 drivers/ata/sata_promise.c struct ata_queued_cmd *qc) qc 889 drivers/ata/sata_promise.c pdc_error_intr(ap, qc, port_status, err_mask); qc 893 drivers/ata/sata_promise.c switch (qc->tf.protocol) { qc 898 drivers/ata/sata_promise.c qc->err_mask |= ac_err_mask(ata_wait_idle(ap)); qc 899 drivers/ata/sata_promise.c ata_qc_complete(qc); qc 988 drivers/ata/sata_promise.c struct ata_queued_cmd *qc; qc 990 drivers/ata/sata_promise.c qc = ata_qc_from_tag(ap, ap->link.active_tag); qc 991 drivers/ata/sata_promise.c if (qc && (!(qc->tf.flags & ATA_TFLAG_POLLING))) qc 992 drivers/ata/sata_promise.c handled += pdc_host_intr(ap, qc); qc 1003 drivers/ata/sata_promise.c static void pdc_packet_start(struct ata_queued_cmd *qc) qc 1005 drivers/ata/sata_promise.c struct ata_port *ap = qc->ap; qc 1023 drivers/ata/sata_promise.c static unsigned int pdc_qc_issue(struct ata_queued_cmd *qc) qc 1025 drivers/ata/sata_promise.c switch (qc->tf.protocol) { qc 1027 drivers/ata/sata_promise.c if (qc->dev->flags & ATA_DFLAG_CDB_INTR) qc 1031 drivers/ata/sata_promise.c if (qc->tf.flags & ATA_TFLAG_POLLING) qc 1036 drivers/ata/sata_promise.c pdc_packet_start(qc); qc 1041 drivers/ata/sata_promise.c return ata_sff_qc_issue(qc); qc 1057 drivers/ata/sata_promise.c static int pdc_check_atapi_dma(struct ata_queued_cmd *qc) qc 1059 drivers/ata/sata_promise.c u8 *scsicmd = qc->scsicmd->cmnd; qc 1087 drivers/ata/sata_promise.c static int pdc_old_sata_check_atapi_dma(struct ata_queued_cmd *qc) qc 103 drivers/ata/sata_qstor.c static void qs_qc_prep(struct ata_queued_cmd *qc); qc 104 drivers/ata/sata_qstor.c static unsigned int qs_qc_issue(struct ata_queued_cmd *qc); qc 105 drivers/ata/sata_qstor.c static int qs_check_atapi_dma(struct ata_queued_cmd *qc); qc 166 drivers/ata/sata_qstor.c static int qs_check_atapi_dma(struct ata_queued_cmd *qc) qc 236 drivers/ata/sata_qstor.c static unsigned int qs_fill_sg(struct ata_queued_cmd *qc) qc 239 drivers/ata/sata_qstor.c struct ata_port *ap = qc->ap; qc 244 drivers/ata/sata_qstor.c for_each_sg(qc->sg, sg, qc->n_elem, si) { qc 263 drivers/ata/sata_qstor.c static void qs_qc_prep(struct ata_queued_cmd *qc) qc 265 drivers/ata/sata_qstor.c struct qs_port_priv *pp = qc->ap->private_data; qc 273 drivers/ata/sata_qstor.c qs_enter_reg_mode(qc->ap); qc 274 drivers/ata/sata_qstor.c if (qc->tf.protocol != ATA_PROT_DMA) qc 277 drivers/ata/sata_qstor.c nelem = qs_fill_sg(qc); qc 279 drivers/ata/sata_qstor.c if ((qc->tf.flags & ATA_TFLAG_WRITE)) qc 281 drivers/ata/sata_qstor.c if ((qc->tf.flags & ATA_TFLAG_LBA48)) qc 287 drivers/ata/sata_qstor.c *(__le32 *)(&buf[ 4]) = cpu_to_le32(qc->nbytes); qc 297 drivers/ata/sata_qstor.c ata_tf_to_fis(&qc->tf, 0, 1, &buf[32]); qc 300 drivers/ata/sata_qstor.c static inline void qs_packet_start(struct ata_queued_cmd *qc) qc 302 drivers/ata/sata_qstor.c struct ata_port *ap = qc->ap; qc 313 drivers/ata/sata_qstor.c static unsigned int qs_qc_issue(struct ata_queued_cmd *qc) qc 315 drivers/ata/sata_qstor.c struct qs_port_priv *pp = qc->ap->private_data; qc 317 drivers/ata/sata_qstor.c switch (qc->tf.protocol) { qc 320 drivers/ata/sata_qstor.c qs_packet_start(qc); qc 332 drivers/ata/sata_qstor.c return ata_sff_qc_issue(qc); qc 335 drivers/ata/sata_qstor.c static void qs_do_or_die(struct ata_queued_cmd *qc, u8 status) qc 337 drivers/ata/sata_qstor.c qc->err_mask |= ac_err_mask(status); qc 339 drivers/ata/sata_qstor.c if (!qc->err_mask) { qc 340 drivers/ata/sata_qstor.c ata_qc_complete(qc); qc 342 drivers/ata/sata_qstor.c struct ata_port *ap = qc->ap; qc 348 drivers/ata/sata_qstor.c if (qc->err_mask == AC_ERR_DEV) qc 373 drivers/ata/sata_qstor.c struct ata_queued_cmd *qc; qc 380 drivers/ata/sata_qstor.c qc = ata_qc_from_tag(ap, ap->link.active_tag); qc 381 drivers/ata/sata_qstor.c if (qc && (!(qc->tf.flags & ATA_TFLAG_POLLING))) { qc 385 drivers/ata/sata_qstor.c qs_enter_reg_mode(qc->ap); qc 386 drivers/ata/sata_qstor.c qs_do_or_die(qc, sDST); qc 404 drivers/ata/sata_qstor.c struct ata_queued_cmd *qc; qc 406 drivers/ata/sata_qstor.c qc = ata_qc_from_tag(ap, ap->link.active_tag); qc 407 drivers/ata/sata_qstor.c if (!qc) { qc 424 drivers/ata/sata_qstor.c if (!(qc->tf.flags & ATA_TFLAG_POLLING)) qc 425 drivers/ata/sata_qstor.c handled |= ata_sff_port_intr(ap, qc); qc 449 drivers/ata/sata_rcar.c static unsigned int sata_rcar_data_xfer(struct ata_queued_cmd *qc, qc 453 drivers/ata/sata_rcar.c struct ata_port *ap = qc->dev->link->ap; qc 487 drivers/ata/sata_rcar.c static void sata_rcar_drain_fifo(struct ata_queued_cmd *qc) qc 493 drivers/ata/sata_rcar.c if (qc == NULL || qc->dma_dir == DMA_TO_DEVICE) qc 496 drivers/ata/sata_rcar.c ap = qc->ap; qc 527 drivers/ata/sata_rcar.c static void sata_rcar_bmdma_fill_sg(struct ata_queued_cmd *qc) qc 529 drivers/ata/sata_rcar.c struct ata_port *ap = qc->ap; qc 534 drivers/ata/sata_rcar.c for_each_sg(qc->sg, sg, qc->n_elem, si) { qc 553 drivers/ata/sata_rcar.c static void sata_rcar_qc_prep(struct ata_queued_cmd *qc) qc 555 drivers/ata/sata_rcar.c if (!(qc->flags & ATA_QCFLAG_DMAMAP)) qc 558 drivers/ata/sata_rcar.c sata_rcar_bmdma_fill_sg(qc); qc 561 drivers/ata/sata_rcar.c static void sata_rcar_bmdma_setup(struct ata_queued_cmd *qc) qc 563 drivers/ata/sata_rcar.c struct ata_port *ap = qc->ap; qc 564 drivers/ata/sata_rcar.c unsigned int rw = qc->tf.flags & ATA_TFLAG_WRITE; qc 585 drivers/ata/sata_rcar.c ap->ops->sff_exec_command(ap, &qc->tf); qc 588 drivers/ata/sata_rcar.c static void sata_rcar_bmdma_start(struct ata_queued_cmd *qc) qc 590 drivers/ata/sata_rcar.c struct ata_port *ap = qc->ap; qc 602 drivers/ata/sata_rcar.c static void sata_rcar_bmdma_stop(struct ata_queued_cmd *qc) qc 604 drivers/ata/sata_rcar.c struct ata_port *ap = qc->ap; qc 708 drivers/ata/sata_rcar.c struct ata_queued_cmd *qc; qc 711 drivers/ata/sata_rcar.c qc = ata_qc_from_tag(ap, ap->link.active_tag); qc 712 drivers/ata/sata_rcar.c if (qc) qc 713 drivers/ata/sata_rcar.c handled |= ata_bmdma_port_intr(ap, qc); qc 106 drivers/ata/sata_sil.c static void sil_qc_prep(struct ata_queued_cmd *qc); qc 107 drivers/ata/sata_sil.c static void sil_bmdma_setup(struct ata_queued_cmd *qc); qc 108 drivers/ata/sata_sil.c static void sil_bmdma_start(struct ata_queued_cmd *qc); qc 109 drivers/ata/sata_sil.c static void sil_bmdma_stop(struct ata_queued_cmd *qc); qc 251 drivers/ata/sata_sil.c static void sil_bmdma_stop(struct ata_queued_cmd *qc) qc 253 drivers/ata/sata_sil.c struct ata_port *ap = qc->ap; qc 264 drivers/ata/sata_sil.c static void sil_bmdma_setup(struct ata_queued_cmd *qc) qc 266 drivers/ata/sata_sil.c struct ata_port *ap = qc->ap; qc 273 drivers/ata/sata_sil.c ap->ops->sff_exec_command(ap, &qc->tf); qc 276 drivers/ata/sata_sil.c static void sil_bmdma_start(struct ata_queued_cmd *qc) qc 278 drivers/ata/sata_sil.c unsigned int rw = (qc->tf.flags & ATA_TFLAG_WRITE); qc 279 drivers/ata/sata_sil.c struct ata_port *ap = qc->ap; qc 293 drivers/ata/sata_sil.c static void sil_fill_sg(struct ata_queued_cmd *qc) qc 296 drivers/ata/sata_sil.c struct ata_port *ap = qc->ap; qc 301 drivers/ata/sata_sil.c for_each_sg(qc->sg, sg, qc->n_elem, si) { qc 320 drivers/ata/sata_sil.c static void sil_qc_prep(struct ata_queued_cmd *qc) qc 322 drivers/ata/sata_sil.c if (!(qc->flags & ATA_QCFLAG_DMAMAP)) qc 325 drivers/ata/sata_sil.c sil_fill_sg(qc); qc 421 drivers/ata/sata_sil.c struct ata_queued_cmd *qc = ata_qc_from_tag(ap, ap->link.active_tag); qc 446 drivers/ata/sata_sil.c if (unlikely(!qc || (qc->tf.flags & ATA_TFLAG_POLLING))) { qc 463 drivers/ata/sata_sil.c if (!(qc->dev->flags & ATA_DFLAG_CDB_INTR)) qc 467 drivers/ata/sata_sil.c if (ata_is_dma(qc->tf.protocol)) { qc 469 drivers/ata/sata_sil.c ap->ops->bmdma_stop(qc); qc 472 drivers/ata/sata_sil.c qc->err_mask |= AC_ERR_HOST_BUS; qc 492 drivers/ata/sata_sil.c ata_sff_hsm_move(ap, qc, status, 0); qc 494 drivers/ata/sata_sil.c if (unlikely(qc->err_mask) && ata_is_dma(qc->tf.protocol)) qc 500 drivers/ata/sata_sil.c qc->err_mask |= AC_ERR_HSM; qc 328 drivers/ata/sata_sil24.c static int sil24_qc_defer(struct ata_queued_cmd *qc); qc 329 drivers/ata/sata_sil24.c static void sil24_qc_prep(struct ata_queued_cmd *qc); qc 330 drivers/ata/sata_sil24.c static unsigned int sil24_qc_issue(struct ata_queued_cmd *qc); qc 331 drivers/ata/sata_sil24.c static bool sil24_qc_fill_rtf(struct ata_queued_cmd *qc); qc 343 drivers/ata/sata_sil24.c static void sil24_post_internal_cmd(struct ata_queued_cmd *qc); qc 769 drivers/ata/sata_sil24.c static inline void sil24_fill_sg(struct ata_queued_cmd *qc, qc 776 drivers/ata/sata_sil24.c for_each_sg(qc->sg, sg, qc->n_elem, si) { qc 788 drivers/ata/sata_sil24.c static int sil24_qc_defer(struct ata_queued_cmd *qc) qc 790 drivers/ata/sata_sil24.c struct ata_link *link = qc->dev->link; qc 792 drivers/ata/sata_sil24.c u8 prot = qc->tf.protocol; qc 814 drivers/ata/sata_sil24.c (qc->flags & ATA_QCFLAG_RESULT_TF)); qc 820 drivers/ata/sata_sil24.c qc->flags |= ATA_QCFLAG_CLEAR_EXCL; qc 827 drivers/ata/sata_sil24.c qc->flags |= ATA_QCFLAG_CLEAR_EXCL; qc 830 drivers/ata/sata_sil24.c return ata_std_qc_defer(qc); qc 833 drivers/ata/sata_sil24.c static void sil24_qc_prep(struct ata_queued_cmd *qc) qc 835 drivers/ata/sata_sil24.c struct ata_port *ap = qc->ap; qc 842 drivers/ata/sata_sil24.c cb = &pp->cmd_block[sil24_tag(qc->hw_tag)]; qc 844 drivers/ata/sata_sil24.c if (!ata_is_atapi(qc->tf.protocol)) { qc 847 drivers/ata/sata_sil24.c if (ata_is_data(qc->tf.protocol)) { qc 850 drivers/ata/sata_sil24.c if (ata_is_ncq(qc->tf.protocol)) qc 852 drivers/ata/sata_sil24.c if (qc->tf.flags & ATA_TFLAG_WRITE) qc 862 drivers/ata/sata_sil24.c memcpy(cb->atapi.cdb, qc->cdb, qc->dev->cdb_len); qc 864 drivers/ata/sata_sil24.c if (ata_is_data(qc->tf.protocol)) { qc 865 drivers/ata/sata_sil24.c if (qc->tf.flags & ATA_TFLAG_WRITE) qc 873 drivers/ata/sata_sil24.c ata_tf_to_fis(&qc->tf, qc->dev->link->pmp, 1, prb->fis); qc 875 drivers/ata/sata_sil24.c if (qc->flags & ATA_QCFLAG_DMAMAP) qc 876 drivers/ata/sata_sil24.c sil24_fill_sg(qc, sge); qc 879 drivers/ata/sata_sil24.c static unsigned int sil24_qc_issue(struct ata_queued_cmd *qc) qc 881 drivers/ata/sata_sil24.c struct ata_port *ap = qc->ap; qc 884 drivers/ata/sata_sil24.c unsigned int tag = sil24_tag(qc->hw_tag); qc 902 drivers/ata/sata_sil24.c static bool sil24_qc_fill_rtf(struct ata_queued_cmd *qc) qc 904 drivers/ata/sata_sil24.c sil24_read_tf(qc->ap, qc->hw_tag, &qc->result_tf); qc 972 drivers/ata/sata_sil24.c struct ata_queued_cmd *qc = NULL; qc 1039 drivers/ata/sata_sil24.c qc = ata_qc_from_tag(ap, link->active_tag); qc 1050 drivers/ata/sata_sil24.c qc = ata_qc_from_tag(ap, link->active_tag); qc 1072 drivers/ata/sata_sil24.c if (qc) qc 1073 drivers/ata/sata_sil24.c qc->err_mask |= err_mask; qc 1088 drivers/ata/sata_sil24.c if (qc) qc 1089 drivers/ata/sata_sil24.c ata_link_abort(qc->dev->link); qc 1181 drivers/ata/sata_sil24.c static void sil24_post_internal_cmd(struct ata_queued_cmd *qc) qc 1183 drivers/ata/sata_sil24.c struct ata_port *ap = qc->ap; qc 1186 drivers/ata/sata_sil24.c if ((qc->flags & ATA_QCFLAG_FAILED) && sil24_init_port(ap)) qc 82 drivers/ata/sata_svw.c static int k2_sata_check_atapi_dma(struct ata_queued_cmd *qc) qc 84 drivers/ata/sata_svw.c u8 cmnd = qc->scsicmd->cmnd[0]; qc 86 drivers/ata/sata_svw.c if (qc->ap->flags & K2_FLAG_NO_ATAPI_DMA) qc 230 drivers/ata/sata_svw.c static void k2_bmdma_setup_mmio(struct ata_queued_cmd *qc) qc 232 drivers/ata/sata_svw.c struct ata_port *ap = qc->ap; qc 233 drivers/ata/sata_svw.c unsigned int rw = (qc->tf.flags & ATA_TFLAG_WRITE); qc 249 drivers/ata/sata_svw.c if (qc->tf.protocol != ATA_PROT_DMA) qc 250 drivers/ata/sata_svw.c ap->ops->sff_exec_command(ap, &qc->tf); qc 261 drivers/ata/sata_svw.c static void k2_bmdma_start_mmio(struct ata_queued_cmd *qc) qc 263 drivers/ata/sata_svw.c struct ata_port *ap = qc->ap; qc 293 drivers/ata/sata_svw.c if (qc->tf.protocol == ATA_PROT_DMA) qc 294 drivers/ata/sata_svw.c ap->ops->sff_exec_command(ap, &qc->tf); qc 193 drivers/ata/sata_sx4.c struct ata_queued_cmd *qc; qc 205 drivers/ata/sata_sx4.c static void pdc20621_qc_prep(struct ata_queued_cmd *qc); qc 221 drivers/ata/sata_sx4.c static unsigned int pdc20621_qc_issue(struct ata_queued_cmd *qc); qc 224 drivers/ata/sata_sx4.c static void pdc_post_internal_cmd(struct ata_queued_cmd *qc); qc 225 drivers/ata/sata_sx4.c static int pdc_check_atapi_dma(struct ata_queued_cmd *qc); qc 437 drivers/ata/sata_sx4.c static void pdc20621_dma_prep(struct ata_queued_cmd *qc) qc 440 drivers/ata/sata_sx4.c struct ata_port *ap = qc->ap; qc 448 drivers/ata/sata_sx4.c WARN_ON(!(qc->flags & ATA_QCFLAG_DMAMAP)); qc 459 drivers/ata/sata_sx4.c for_each_sg(qc->sg, sg, qc->n_elem, si) { qc 471 drivers/ata/sata_sx4.c pdc20621_host_pkt(&qc->tf, &pp->dimm_buf[0], portno); qc 474 drivers/ata/sata_sx4.c i = pdc20621_ata_pkt(&qc->tf, qc->dev->devno, &pp->dimm_buf[0], portno); qc 476 drivers/ata/sata_sx4.c if (qc->tf.flags & ATA_TFLAG_LBA48) qc 477 drivers/ata/sata_sx4.c i = pdc_prep_lba48(&qc->tf, &pp->dimm_buf[0], i); qc 479 drivers/ata/sata_sx4.c i = pdc_prep_lba28(&qc->tf, &pp->dimm_buf[0], i); qc 481 drivers/ata/sata_sx4.c pdc_pkt_footer(&qc->tf, &pp->dimm_buf[0], i); qc 498 drivers/ata/sata_sx4.c static void pdc20621_nodata_prep(struct ata_queued_cmd *qc) qc 500 drivers/ata/sata_sx4.c struct ata_port *ap = qc->ap; qc 512 drivers/ata/sata_sx4.c i = pdc20621_ata_pkt(&qc->tf, qc->dev->devno, &pp->dimm_buf[0], portno); qc 514 drivers/ata/sata_sx4.c if (qc->tf.flags & ATA_TFLAG_LBA48) qc 515 drivers/ata/sata_sx4.c i = pdc_prep_lba48(&qc->tf, &pp->dimm_buf[0], i); qc 517 drivers/ata/sata_sx4.c i = pdc_prep_lba28(&qc->tf, &pp->dimm_buf[0], i); qc 519 drivers/ata/sata_sx4.c pdc_pkt_footer(&qc->tf, &pp->dimm_buf[0], i); qc 533 drivers/ata/sata_sx4.c static void pdc20621_qc_prep(struct ata_queued_cmd *qc) qc 535 drivers/ata/sata_sx4.c switch (qc->tf.protocol) { qc 537 drivers/ata/sata_sx4.c pdc20621_dma_prep(qc); qc 540 drivers/ata/sata_sx4.c pdc20621_nodata_prep(qc); qc 547 drivers/ata/sata_sx4.c static void __pdc20621_push_hdma(struct ata_queued_cmd *qc, qc 551 drivers/ata/sata_sx4.c struct ata_port *ap = qc->ap; qc 565 drivers/ata/sata_sx4.c static void pdc20621_push_hdma(struct ata_queued_cmd *qc, qc 569 drivers/ata/sata_sx4.c struct ata_port *ap = qc->ap; qc 574 drivers/ata/sata_sx4.c __pdc20621_push_hdma(qc, seq, pkt_ofs); qc 579 drivers/ata/sata_sx4.c pp->hdma[idx].qc = qc; qc 585 drivers/ata/sata_sx4.c static void pdc20621_pop_hdma(struct ata_queued_cmd *qc) qc 587 drivers/ata/sata_sx4.c struct ata_port *ap = qc->ap; qc 597 drivers/ata/sata_sx4.c __pdc20621_push_hdma(pp->hdma[idx].qc, pp->hdma[idx].seq, qc 603 drivers/ata/sata_sx4.c static void pdc20621_dump_hdma(struct ata_queued_cmd *qc) qc 605 drivers/ata/sata_sx4.c struct ata_port *ap = qc->ap; qc 618 drivers/ata/sata_sx4.c static inline void pdc20621_dump_hdma(struct ata_queued_cmd *qc) { } qc 621 drivers/ata/sata_sx4.c static void pdc20621_packet_start(struct ata_queued_cmd *qc) qc 623 drivers/ata/sata_sx4.c struct ata_port *ap = qc->ap; qc 627 drivers/ata/sata_sx4.c unsigned int rw = (qc->tf.flags & ATA_TFLAG_WRITE); qc 641 drivers/ata/sata_sx4.c if (rw && qc->tf.protocol == ATA_PROT_DMA) { qc 644 drivers/ata/sata_sx4.c pdc20621_dump_hdma(qc); qc 645 drivers/ata/sata_sx4.c pdc20621_push_hdma(qc, seq, port_ofs + PDC_DIMM_HOST_PKT); qc 664 drivers/ata/sata_sx4.c static unsigned int pdc20621_qc_issue(struct ata_queued_cmd *qc) qc 666 drivers/ata/sata_sx4.c switch (qc->tf.protocol) { qc 668 drivers/ata/sata_sx4.c if (qc->tf.flags & ATA_TFLAG_POLLING) qc 672 drivers/ata/sata_sx4.c pdc20621_packet_start(qc); qc 683 drivers/ata/sata_sx4.c return ata_sff_qc_issue(qc); qc 687 drivers/ata/sata_sx4.c struct ata_queued_cmd *qc, qc 699 drivers/ata/sata_sx4.c if ((qc->tf.protocol == ATA_PROT_DMA) && /* read */ qc 700 drivers/ata/sata_sx4.c (!(qc->tf.flags & ATA_TFLAG_WRITE))) { qc 707 drivers/ata/sata_sx4.c qc->err_mask |= ac_err_mask(ata_wait_idle(ap)); qc 708 drivers/ata/sata_sx4.c ata_qc_complete(qc); qc 709 drivers/ata/sata_sx4.c pdc20621_pop_hdma(qc); qc 719 drivers/ata/sata_sx4.c pdc20621_dump_hdma(qc); qc 720 drivers/ata/sata_sx4.c pdc20621_push_hdma(qc, seq, qc 725 drivers/ata/sata_sx4.c } else if (qc->tf.protocol == ATA_PROT_DMA) { /* write */ qc 746 drivers/ata/sata_sx4.c qc->err_mask |= ac_err_mask(ata_wait_idle(ap)); qc 747 drivers/ata/sata_sx4.c ata_qc_complete(qc); qc 748 drivers/ata/sata_sx4.c pdc20621_pop_hdma(qc); qc 753 drivers/ata/sata_sx4.c } else if (qc->tf.protocol == ATA_PROT_NODATA) { qc 757 drivers/ata/sata_sx4.c qc->err_mask |= ac_err_mask(status); qc 758 drivers/ata/sata_sx4.c ata_qc_complete(qc); qc 819 drivers/ata/sata_sx4.c struct ata_queued_cmd *qc; qc 821 drivers/ata/sata_sx4.c qc = ata_qc_from_tag(ap, ap->link.active_tag); qc 822 drivers/ata/sata_sx4.c if (qc && (!(qc->tf.flags & ATA_TFLAG_POLLING))) qc 823 drivers/ata/sata_sx4.c handled += pdc20621_host_intr(ap, qc, (i > 4), qc 907 drivers/ata/sata_sx4.c static void pdc_post_internal_cmd(struct ata_queued_cmd *qc) qc 909 drivers/ata/sata_sx4.c struct ata_port *ap = qc->ap; qc 912 drivers/ata/sata_sx4.c if (qc->flags & ATA_QCFLAG_FAILED) qc 916 drivers/ata/sata_sx4.c static int pdc_check_atapi_dma(struct ata_queued_cmd *qc) qc 918 drivers/ata/sata_sx4.c u8 *scsicmd = qc->scsicmd->cmnd; qc 80 drivers/ata/sata_via.c static void vt6420_bmdma_start(struct ata_queued_cmd *qc); qc 380 drivers/ata/sata_via.c static void vt6420_bmdma_start(struct ata_queued_cmd *qc) qc 382 drivers/ata/sata_via.c struct ata_port *ap = qc->ap; qc 383 drivers/ata/sata_via.c if ((qc->tf.command == ATA_CMD_PACKET) && qc 384 drivers/ata/sata_via.c (qc->scsicmd->sc_data_direction == DMA_TO_DEVICE)) { qc 388 drivers/ata/sata_via.c ata_bmdma_start(qc); qc 221 drivers/ata/sata_vsc.c struct ata_queued_cmd *qc; qc 229 drivers/ata/sata_vsc.c qc = ata_qc_from_tag(ap, ap->link.active_tag); qc 230 drivers/ata/sata_vsc.c if (qc && likely(!(qc->tf.flags & ATA_TFLAG_POLLING))) qc 231 drivers/ata/sata_vsc.c handled = ata_bmdma_port_intr(ap, qc); qc 172 drivers/crypto/hisilicon/qm.c #define INIT_QC_COMMON(qc, base, pasid) do { \ qc 173 drivers/crypto/hisilicon/qm.c (qc)->head = 0; \ qc 174 drivers/crypto/hisilicon/qm.c (qc)->tail = 0; \ qc 175 drivers/crypto/hisilicon/qm.c (qc)->base_l = lower_32_bits(base); \ qc 176 drivers/crypto/hisilicon/qm.c (qc)->base_h = upper_32_bits(base); \ qc 177 drivers/crypto/hisilicon/qm.c (qc)->dw3 = 0; \ qc 178 drivers/crypto/hisilicon/qm.c (qc)->w8 = 0; \ qc 179 drivers/crypto/hisilicon/qm.c (qc)->rsvd0 = 0; \ qc 180 drivers/crypto/hisilicon/qm.c (qc)->pasid = pasid; \ qc 181 drivers/crypto/hisilicon/qm.c (qc)->w11 = 0; \ qc 182 drivers/crypto/hisilicon/qm.c (qc)->rsvd1 = 0; \ qc 914 drivers/media/usb/uvc/uvc_v4l2.c struct v4l2_queryctrl *qc) qc 919 drivers/media/usb/uvc/uvc_v4l2.c return uvc_query_v4l2_ctrl(chain, qc); qc 927 drivers/media/usb/uvc/uvc_v4l2.c struct v4l2_queryctrl qc = { qec->id }; qc 930 drivers/media/usb/uvc/uvc_v4l2.c ret = uvc_query_v4l2_ctrl(chain, &qc); qc 934 drivers/media/usb/uvc/uvc_v4l2.c qec->id = qc.id; qc 935 drivers/media/usb/uvc/uvc_v4l2.c qec->type = qc.type; qc 936 drivers/media/usb/uvc/uvc_v4l2.c strscpy(qec->name, qc.name, sizeof(qec->name)); qc 937 drivers/media/usb/uvc/uvc_v4l2.c qec->minimum = qc.minimum; qc 938 drivers/media/usb/uvc/uvc_v4l2.c qec->maximum = qc.maximum; qc 939 drivers/media/usb/uvc/uvc_v4l2.c qec->step = qc.step; qc 940 drivers/media/usb/uvc/uvc_v4l2.c qec->default_value = qc.default_value; qc 941 drivers/media/usb/uvc/uvc_v4l2.c qec->flags = qc.flags; qc 1016 drivers/media/usb/uvc/uvc_v4l2.c struct v4l2_queryctrl qc = { .id = ctrl->id }; qc 1018 drivers/media/usb/uvc/uvc_v4l2.c ret = uvc_query_v4l2_ctrl(chain, &qc); qc 1024 drivers/media/usb/uvc/uvc_v4l2.c ctrl->value = qc.default_value; qc 2934 drivers/media/v4l2-core/v4l2-ctrls.c int v4l2_query_ext_ctrl(struct v4l2_ctrl_handler *hdl, struct v4l2_query_ext_ctrl *qc) qc 2937 drivers/media/v4l2-core/v4l2-ctrls.c u32 id = qc->id & V4L2_CTRL_ID_MASK; qc 2949 drivers/media/v4l2-core/v4l2-ctrls.c if ((qc->id & next_flags) && !list_empty(&hdl->ctrl_refs)) { qc 2955 drivers/media/v4l2-core/v4l2-ctrls.c if ((qc->id & next_flags) == V4L2_CTRL_FLAG_NEXT_COMPOUND) { qc 2958 drivers/media/v4l2-core/v4l2-ctrls.c } else if ((qc->id & next_flags) == next_flags) { qc 3002 drivers/media/v4l2-core/v4l2-ctrls.c memset(qc, 0, sizeof(*qc)); qc 3004 drivers/media/v4l2-core/v4l2-ctrls.c qc->id = id; qc 3006 drivers/media/v4l2-core/v4l2-ctrls.c qc->id = ctrl->id; qc 3007 drivers/media/v4l2-core/v4l2-ctrls.c strscpy(qc->name, ctrl->name, sizeof(qc->name)); qc 3008 drivers/media/v4l2-core/v4l2-ctrls.c qc->flags = user_flags(ctrl); qc 3009 drivers/media/v4l2-core/v4l2-ctrls.c qc->type = ctrl->type; qc 3010 drivers/media/v4l2-core/v4l2-ctrls.c qc->elem_size = ctrl->elem_size; qc 3011 drivers/media/v4l2-core/v4l2-ctrls.c qc->elems = ctrl->elems; qc 3012 drivers/media/v4l2-core/v4l2-ctrls.c qc->nr_of_dims = ctrl->nr_of_dims; qc 3013 drivers/media/v4l2-core/v4l2-ctrls.c memcpy(qc->dims, ctrl->dims, qc->nr_of_dims * sizeof(qc->dims[0])); qc 3014 drivers/media/v4l2-core/v4l2-ctrls.c qc->minimum = ctrl->minimum; qc 3015 drivers/media/v4l2-core/v4l2-ctrls.c qc->maximum = ctrl->maximum; qc 3016 drivers/media/v4l2-core/v4l2-ctrls.c qc->default_value = ctrl->default_value; qc 3019 drivers/media/v4l2-core/v4l2-ctrls.c qc->step = 1; qc 3021 drivers/media/v4l2-core/v4l2-ctrls.c qc->step = ctrl->step; qc 3027 drivers/media/v4l2-core/v4l2-ctrls.c int v4l2_queryctrl(struct v4l2_ctrl_handler *hdl, struct v4l2_queryctrl *qc) qc 3029 drivers/media/v4l2-core/v4l2-ctrls.c struct v4l2_query_ext_ctrl qec = { qc->id }; qc 3036 drivers/media/v4l2-core/v4l2-ctrls.c qc->id = qec.id; qc 3037 drivers/media/v4l2-core/v4l2-ctrls.c qc->type = qec.type; qc 3038 drivers/media/v4l2-core/v4l2-ctrls.c qc->flags = qec.flags; qc 3039 drivers/media/v4l2-core/v4l2-ctrls.c strscpy(qc->name, qec.name, sizeof(qc->name)); qc 3040 drivers/media/v4l2-core/v4l2-ctrls.c switch (qc->type) { qc 3047 drivers/media/v4l2-core/v4l2-ctrls.c qc->minimum = qec.minimum; qc 3048 drivers/media/v4l2-core/v4l2-ctrls.c qc->maximum = qec.maximum; qc 3049 drivers/media/v4l2-core/v4l2-ctrls.c qc->step = qec.step; qc 3050 drivers/media/v4l2-core/v4l2-ctrls.c qc->default_value = qec.default_value; qc 3053 drivers/media/v4l2-core/v4l2-ctrls.c qc->minimum = 0; qc 3054 drivers/media/v4l2-core/v4l2-ctrls.c qc->maximum = 0; qc 3055 drivers/media/v4l2-core/v4l2-ctrls.c qc->step = 0; qc 3056 drivers/media/v4l2-core/v4l2-ctrls.c qc->default_value = 0; qc 1252 drivers/net/wireless/ath/ath10k/htt_rx.c u8 *qc; qc 1258 drivers/net/wireless/ath/ath10k/htt_rx.c qc = ieee80211_get_qos_ctl(hdr); qc 1259 drivers/net/wireless/ath/ath10k/htt_rx.c tid = *qc & IEEE80211_QOS_CTL_TID_MASK; qc 271 drivers/net/wireless/ath/ath9k/htc_drv_txrx.c u8 *qc, *tx_fhdr; qc 301 drivers/net/wireless/ath/ath9k/htc_drv_txrx.c qc = ieee80211_get_qos_ctl(hdr); qc 302 drivers/net/wireless/ath/ath9k/htc_drv_txrx.c tx_hdr.tidno = qc[0] & IEEE80211_QOS_CTL_TID_MASK; qc 422 drivers/net/wireless/ath/ath9k/htc_drv_txrx.c u8 *qc, tid; qc 425 drivers/net/wireless/ath/ath9k/htc_drv_txrx.c qc = ieee80211_get_qos_ctl(hdr); qc 426 drivers/net/wireless/ath/ath9k/htc_drv_txrx.c tid = qc[0] & 0xf; qc 469 drivers/net/wireless/ath/carl9170/rx.c u8 *qc = ieee80211_get_qos_ctl(hdr); qc 472 drivers/net/wireless/ath/carl9170/rx.c if (*qc & IEEE80211_QOS_CTL_A_MSDU_PRESENT) qc 126 drivers/net/wireless/ath/wcn36xx/txrx.c u8 *qc, tid; qc 139 drivers/net/wireless/ath/wcn36xx/txrx.c qc = ieee80211_get_qos_ctl(hdr); qc 140 drivers/net/wireless/ath/wcn36xx/txrx.c tid = qc[0] & IEEE80211_QOS_CTL_TID_MASK; qc 419 drivers/net/wireless/intel/iwlegacy/3945-mac.c u8 *qc = ieee80211_get_qos_ctl(hdr); qc 420 drivers/net/wireless/intel/iwlegacy/3945-mac.c tx_cmd->tid_tspec = qc[0] & 0xf; qc 506 drivers/net/wireless/intel/iwlegacy/3945-mac.c u8 *qc = ieee80211_get_qos_ctl(hdr); qc 507 drivers/net/wireless/intel/iwlegacy/3945-mac.c tid = qc[0] & IEEE80211_QOS_CTL_TID_MASK; qc 1511 drivers/net/wireless/intel/iwlegacy/4965-mac.c u8 *qc = ieee80211_get_qos_ctl(hdr); qc 1512 drivers/net/wireless/intel/iwlegacy/4965-mac.c tx_cmd->tid_tspec = qc[0] & 0xf; qc 1664 drivers/net/wireless/intel/iwlegacy/4965-mac.c u8 *qc = NULL; qc 1729 drivers/net/wireless/intel/iwlegacy/4965-mac.c qc = ieee80211_get_qos_ctl(hdr); qc 1730 drivers/net/wireless/intel/iwlegacy/4965-mac.c tid = qc[0] & IEEE80211_QOS_CTL_TID_MASK; qc 2774 drivers/net/wireless/intel/iwlegacy/4965-mac.c u8 *qc = NULL; qc 2792 drivers/net/wireless/intel/iwlegacy/4965-mac.c qc = ieee80211_get_qos_ctl(hdr); qc 2793 drivers/net/wireless/intel/iwlegacy/4965-mac.c tid = qc[0] & 0xf; qc 2819 drivers/net/wireless/intel/iwlegacy/4965-mac.c WARN_ON(!qc); qc 2835 drivers/net/wireless/intel/iwlegacy/4965-mac.c if (qc) qc 2858 drivers/net/wireless/intel/iwlegacy/4965-mac.c if (qc && likely(sta_id != IL_INVALID_STATION)) qc 2867 drivers/net/wireless/intel/iwlegacy/4965-mac.c if (qc && likely(sta_id != IL_INVALID_STATION)) qc 265 drivers/net/wireless/intel/iwlegacy/4965-rs.c u8 *qc = ieee80211_get_qos_ctl(hdr); qc 266 drivers/net/wireless/intel/iwlegacy/4965-rs.c tid = qc[0] & 0xf; qc 279 drivers/net/wireless/intel/iwlwifi/dvm/rs.c u8 *qc = ieee80211_get_qos_ctl(hdr); qc 280 drivers/net/wireless/intel/iwlwifi/dvm/rs.c tid = qc[0] & 0xf; qc 81 drivers/net/wireless/intel/iwlwifi/dvm/tx.c u8 *qc = ieee80211_get_qos_ctl(hdr); qc 82 drivers/net/wireless/intel/iwlwifi/dvm/tx.c tx_cmd->tid_tspec = qc[0] & 0xf; qc 376 drivers/net/wireless/intel/iwlwifi/dvm/tx.c u8 *qc = NULL; qc 378 drivers/net/wireless/intel/iwlwifi/dvm/tx.c qc = ieee80211_get_qos_ctl(hdr); qc 379 drivers/net/wireless/intel/iwlwifi/dvm/tx.c tid = qc[0] & IEEE80211_QOS_CTL_TID_MASK; qc 1190 drivers/net/wireless/intel/iwlwifi/mvm/rs.c u8 *qc = ieee80211_get_qos_ctl(hdr); qc 1191 drivers/net/wireless/intel/iwlwifi/mvm/rs.c tid = qc[0] & 0xf; qc 1795 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c u8 *qc = ieee80211_get_qos_ctl(hdr); qc 1797 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c *qc &= ~IEEE80211_QOS_CTL_A_MSDU_PRESENT; qc 226 drivers/net/wireless/intel/iwlwifi/mvm/tx.c u8 *qc = ieee80211_get_qos_ctl(hdr); qc 227 drivers/net/wireless/intel/iwlwifi/mvm/tx.c tx_cmd->tid_tspec = qc[0] & 0xf; qc 229 drivers/net/wireless/intel/iwlwifi/mvm/tx.c if (*qc & IEEE80211_QOS_CTL_A_MSDU_PRESENT) qc 514 drivers/net/wireless/intel/iwlwifi/mvm/tx.c u8 *qc = ieee80211_get_qos_ctl(hdr); qc 516 drivers/net/wireless/intel/iwlwifi/mvm/tx.c if (*qc & IEEE80211_QOS_CTL_A_MSDU_PRESENT) qc 864 drivers/net/wireless/intel/iwlwifi/mvm/tx.c u8 *qc; qc 869 drivers/net/wireless/intel/iwlwifi/mvm/tx.c qc = ieee80211_get_qos_ctl((void *)tmp->data); qc 870 drivers/net/wireless/intel/iwlwifi/mvm/tx.c *qc &= ~IEEE80211_QOS_CTL_A_MSDU_PRESENT; qc 479 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c u8 *qc = ieee80211_get_qos_ctl(hdr); qc 480 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c u8 tid = qc[0] & IEEE80211_QOS_CTL_TID_MASK; qc 569 drivers/net/wireless/realtek/rtlwifi/usb.c u8 *qc = ieee80211_get_qos_ctl(hdr); qc 576 drivers/net/wireless/realtek/rtlwifi/usb.c if ((unsigned long)qc - (unsigned long)hdr < len && qc 577 drivers/net/wireless/realtek/rtlwifi/usb.c *qc & IEEE80211_QOS_CTL_A_MSDU_PRESENT) qc 371 drivers/net/wireless/realtek/rtw88/rtw8822c.c u32 ic = 0, qc = 0, temp = 0; qc 405 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw8822c_dac_cal_rf_mode(rtwdev, &ic, &qc); qc 407 drivers/net/wireless/realtek/rtw88/rtw8822c.c "[DACK] before: i=0x%x, q=0x%x\n", ic, qc); qc 414 drivers/net/wireless/realtek/rtw88/rtw8822c.c if (qc != 0x0) { qc 415 drivers/net/wireless/realtek/rtw88/rtw8822c.c qc = 0x400 - qc; qc 416 drivers/net/wireless/realtek/rtw88/rtw8822c.c *adc_qc = qc; qc 418 drivers/net/wireless/realtek/rtw88/rtw8822c.c temp = (ic & 0x3ff) | ((qc & 0x3ff) << 10); qc 425 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw8822c_dac_cal_rf_mode(rtwdev, &ic, &qc); qc 427 drivers/net/wireless/realtek/rtw88/rtw8822c.c "[DACK] after: i=0x%08x, q=0x%08x\n", ic, qc); qc 430 drivers/net/wireless/realtek/rtw88/rtw8822c.c if (qc >= 0x200) qc 431 drivers/net/wireless/realtek/rtw88/rtw8822c.c qc = 0x400 - qc; qc 432 drivers/net/wireless/realtek/rtw88/rtw8822c.c if (ic < 5 && qc < 5) qc 494 drivers/net/wireless/realtek/rtw88/rtw8822c.c u32 ic, qc, ic_in, qc_in; qc 510 drivers/net/wireless/realtek/rtw88/rtw8822c.c qc = qc_in; qc 515 drivers/net/wireless/realtek/rtw88/rtw8822c.c if (qc != 0x0) qc 516 drivers/net/wireless/realtek/rtw88/rtw8822c.c qc = 0x400 - qc; qc 524 drivers/net/wireless/realtek/rtw88/rtw8822c.c if (qc < 0x300) { qc 525 drivers/net/wireless/realtek/rtw88/rtw8822c.c qc = qc * 2 * 6 / 5; qc 526 drivers/net/wireless/realtek/rtw88/rtw8822c.c qc = qc + 0x80; qc 528 drivers/net/wireless/realtek/rtw88/rtw8822c.c qc = (0x400 - qc) * 2 * 6 / 5; qc 529 drivers/net/wireless/realtek/rtw88/rtw8822c.c qc = 0x7f - qc; qc 533 drivers/net/wireless/realtek/rtw88/rtw8822c.c *qc_out = qc; qc 536 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_dbg(rtwdev, RTW_DBG_RFK, "[DACK] after i=0x%x, q=0x%x\n", ic, qc); qc 546 drivers/net/wireless/realtek/rtw88/rtw8822c.c u32 ic, qc; qc 552 drivers/net/wireless/realtek/rtw88/rtw8822c.c qc = *qc_in; qc 565 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write32_mask(rtwdev, base_addr + 0xd8, 0xf0000000, qc & 0xf); qc 566 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write32_mask(rtwdev, base_addr + 0xdc, 0xf, (qc & 0xf0) >> 4); qc 578 drivers/net/wireless/realtek/rtw88/rtw8822c.c !check_hw_ready(rtwdev, read_addr + 0x50, 0x07f80000, qc)) qc 590 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw8822c_dac_cal_rf_mode(rtwdev, &ic, &qc); qc 596 drivers/net/wireless/realtek/rtw88/rtw8822c.c if (qc >= 0x10) qc 597 drivers/net/wireless/realtek/rtw88/rtw8822c.c qc = qc - 0x10; qc 599 drivers/net/wireless/realtek/rtw88/rtw8822c.c qc = 0x400 - (0x10 - qc); qc 602 drivers/net/wireless/realtek/rtw88/rtw8822c.c *q_out = qc; qc 606 drivers/net/wireless/realtek/rtw88/rtw8822c.c if (qc >= 0x200) qc 607 drivers/net/wireless/realtek/rtw88/rtw8822c.c qc = 0x400 - qc; qc 610 drivers/net/wireless/realtek/rtw88/rtw8822c.c *qc_in = qc; qc 920 drivers/net/wireless/realtek/rtw88/rtw8822c.c u32 ic = 0, qc = 0, i; qc 938 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw8822c_dac_cal_step2(rtwdev, RF_PATH_A, &ic, &qc); qc 940 drivers/net/wireless/realtek/rtw88/rtw8822c.c qc_a = qc; qc 943 drivers/net/wireless/realtek/rtw88/rtw8822c.c &ic, &qc, &i_a, &q_a); qc 945 drivers/net/wireless/realtek/rtw88/rtw8822c.c if (ic < 5 && qc < 5) qc 954 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw8822c_dac_cal_step2(rtwdev, RF_PATH_B, &ic, &qc); qc 956 drivers/net/wireless/realtek/rtw88/rtw8822c.c qc_b = qc; qc 959 drivers/net/wireless/realtek/rtw88/rtw8822c.c &ic, &qc, &i_b, &q_b); qc 961 drivers/net/wireless/realtek/rtw88/rtw8822c.c if (ic < 5 && qc < 5) qc 475 drivers/scsi/hisi_sas/hisi_sas_main.c struct ata_queued_cmd *qc; qc 478 drivers/scsi/hisi_sas/hisi_sas_main.c qc = task->uldd_task; qc 479 drivers/scsi/hisi_sas/hisi_sas_main.c scsi_cmnd = qc->scsicmd; qc 2538 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c struct ata_queued_cmd *qc = task->uldd_task; qc 2540 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c hdr_tag = qc->tag; qc 1378 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c struct ata_queued_cmd *qc = task->uldd_task; qc 1380 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c hdr_tag = qc->tag; qc 665 drivers/scsi/ipr.c ipr_cmd->qc = NULL; qc 821 drivers/scsi/ipr.c struct ata_queued_cmd *qc = ipr_cmd->qc; qc 822 drivers/scsi/ipr.c struct ipr_sata_port *sata_port = qc->ap->private_data; qc 824 drivers/scsi/ipr.c qc->err_mask |= AC_ERR_OTHER; qc 826 drivers/scsi/ipr.c ata_qc_complete(qc); qc 923 drivers/scsi/ipr.c else if (ipr_cmd->qc) qc 5348 drivers/scsi/ipr.c if (!ipr_cmd->qc) qc 5354 drivers/scsi/ipr.c if (!(ipr_cmd->qc->flags & ATA_QCFLAG_FAILED)) { qc 5355 drivers/scsi/ipr.c ipr_cmd->qc->err_mask |= AC_ERR_TIMEOUT; qc 5356 drivers/scsi/ipr.c ipr_cmd->qc->flags |= ATA_QCFLAG_FAILED; qc 6799 drivers/scsi/ipr.c static void ipr_ata_post_internal(struct ata_queued_cmd *qc) qc 6801 drivers/scsi/ipr.c struct ipr_sata_port *sata_port = qc->ap->private_data; qc 6817 drivers/scsi/ipr.c if (ipr_cmd->qc == qc) { qc 6866 drivers/scsi/ipr.c struct ata_queued_cmd *qc = ipr_cmd->qc; qc 6867 drivers/scsi/ipr.c struct ipr_sata_port *sata_port = qc->ap->private_data; qc 6884 drivers/scsi/ipr.c qc->err_mask |= __ac_err_mask(sata_port->ioasa.status); qc 6886 drivers/scsi/ipr.c qc->err_mask |= ac_err_mask(sata_port->ioasa.status); qc 6889 drivers/scsi/ipr.c ata_qc_complete(qc); qc 6899 drivers/scsi/ipr.c struct ata_queued_cmd *qc) qc 6905 drivers/scsi/ipr.c int len = qc->nbytes; qc 6913 drivers/scsi/ipr.c if (qc->dma_dir == DMA_TO_DEVICE) { qc 6916 drivers/scsi/ipr.c } else if (qc->dma_dir == DMA_FROM_DEVICE) qc 6925 drivers/scsi/ipr.c for_each_sg(qc->sg, sg, qc->n_elem, si) { qc 6945 drivers/scsi/ipr.c struct ata_queued_cmd *qc) qc 6951 drivers/scsi/ipr.c int len = qc->nbytes; qc 6958 drivers/scsi/ipr.c if (qc->dma_dir == DMA_TO_DEVICE) { qc 6964 drivers/scsi/ipr.c } else if (qc->dma_dir == DMA_FROM_DEVICE) { qc 6971 drivers/scsi/ipr.c for_each_sg(qc->sg, sg, qc->n_elem, si) { qc 6990 drivers/scsi/ipr.c static int ipr_qc_defer(struct ata_queued_cmd *qc) qc 6992 drivers/scsi/ipr.c struct ata_port *ap = qc->ap; qc 7002 drivers/scsi/ipr.c qc->lldd_task = NULL; qc 7020 drivers/scsi/ipr.c qc->lldd_task = ipr_cmd; qc 7032 drivers/scsi/ipr.c static unsigned int ipr_qc_issue(struct ata_queued_cmd *qc) qc 7034 drivers/scsi/ipr.c struct ata_port *ap = qc->ap; qc 7042 drivers/scsi/ipr.c if (qc->lldd_task == NULL) qc 7043 drivers/scsi/ipr.c ipr_qc_defer(qc); qc 7045 drivers/scsi/ipr.c ipr_cmd = qc->lldd_task; qc 7049 drivers/scsi/ipr.c qc->lldd_task = NULL; qc 7071 drivers/scsi/ipr.c ipr_cmd->qc = qc; qc 7077 drivers/scsi/ipr.c ipr_cmd->dma_use_sg = qc->n_elem; qc 7080 drivers/scsi/ipr.c ipr_build_ata_ioadl64(ipr_cmd, qc); qc 7082 drivers/scsi/ipr.c ipr_build_ata_ioadl(ipr_cmd, qc); qc 7085 drivers/scsi/ipr.c ipr_copy_sata_tf(regs, &qc->tf); qc 7086 drivers/scsi/ipr.c memcpy(ioarcb->cmd_pkt.cdb, qc->cdb, IPR_MAX_CDB_LEN); qc 7089 drivers/scsi/ipr.c switch (qc->tf.protocol) { qc 7127 drivers/scsi/ipr.c static bool ipr_qc_fill_rtf(struct ata_queued_cmd *qc) qc 7129 drivers/scsi/ipr.c struct ipr_sata_port *sata_port = qc->ap->private_data; qc 7131 drivers/scsi/ipr.c struct ata_taskfile *tf = &qc->result_tf; qc 1614 drivers/scsi/ipr.h struct ata_queued_cmd *qc; qc 3156 drivers/scsi/isci/request.c struct ata_queued_cmd *qc = task->uldd_task; qc 3171 drivers/scsi/isci/request.c if (qc && (qc->tf.command == ATA_CMD_FPDMA_WRITE || qc 3172 drivers/scsi/isci/request.c qc->tf.command == ATA_CMD_FPDMA_READ || qc 3173 drivers/scsi/isci/request.c qc->tf.command == ATA_CMD_FPDMA_RECV || qc 3174 drivers/scsi/isci/request.c qc->tf.command == ATA_CMD_FPDMA_SEND || qc 3175 drivers/scsi/isci/request.c qc->tf.command == ATA_CMD_NCQ_NON_DATA)) { qc 3176 drivers/scsi/isci/request.c fis->sector_count = qc->tag << 3; qc 3177 drivers/scsi/isci/request.c ireq->tc->type.stp.ncq_tag = qc->tag; qc 83 drivers/scsi/libsas/sas_ata.c struct ata_queued_cmd *qc = task->uldd_task; qc 96 drivers/scsi/libsas/sas_ata.c else if (qc && qc->scsicmd) qc 97 drivers/scsi/libsas/sas_ata.c ASSIGN_SAS_TASK(qc->scsicmd, NULL); qc 104 drivers/scsi/libsas/sas_ata.c if (!qc) qc 107 drivers/scsi/libsas/sas_ata.c ap = qc->ap; qc 114 drivers/scsi/libsas/sas_ata.c if (qc->scsicmd) qc 131 drivers/scsi/libsas/sas_ata.c qc->err_mask |= ac_err_mask(dev->sata_dev.fis[2]); qc 135 drivers/scsi/libsas/sas_ata.c qc->flags |= ATA_QCFLAG_FAILED; qc 143 drivers/scsi/libsas/sas_ata.c qc->err_mask = ac; qc 146 drivers/scsi/libsas/sas_ata.c qc->flags |= ATA_QCFLAG_FAILED; qc 154 drivers/scsi/libsas/sas_ata.c qc->lldd_task = NULL; qc 155 drivers/scsi/libsas/sas_ata.c ata_qc_complete(qc); qc 162 drivers/scsi/libsas/sas_ata.c static unsigned int sas_ata_qc_issue(struct ata_queued_cmd *qc) qc 168 drivers/scsi/libsas/sas_ata.c struct ata_port *ap = qc->ap; qc 188 drivers/scsi/libsas/sas_ata.c if (qc->tf.command == ATA_CMD_FPDMA_WRITE || qc 189 drivers/scsi/libsas/sas_ata.c qc->tf.command == ATA_CMD_FPDMA_READ || qc 190 drivers/scsi/libsas/sas_ata.c qc->tf.command == ATA_CMD_FPDMA_RECV || qc 191 drivers/scsi/libsas/sas_ata.c qc->tf.command == ATA_CMD_FPDMA_SEND || qc 192 drivers/scsi/libsas/sas_ata.c qc->tf.command == ATA_CMD_NCQ_NON_DATA) { qc 194 drivers/scsi/libsas/sas_ata.c qc->tf.nsect = 0; qc 197 drivers/scsi/libsas/sas_ata.c ata_tf_to_fis(&qc->tf, qc->dev->link->pmp, 1, (u8 *)&task->ata_task.fis); qc 198 drivers/scsi/libsas/sas_ata.c task->uldd_task = qc; qc 199 drivers/scsi/libsas/sas_ata.c if (ata_is_atapi(qc->tf.protocol)) { qc 200 drivers/scsi/libsas/sas_ata.c memcpy(task->ata_task.atapi_packet, qc->cdb, qc->dev->cdb_len); qc 201 drivers/scsi/libsas/sas_ata.c task->total_xfer_len = qc->nbytes; qc 202 drivers/scsi/libsas/sas_ata.c task->num_scatter = qc->n_elem; qc 204 drivers/scsi/libsas/sas_ata.c for_each_sg(qc->sg, sg, qc->n_elem, si) qc 211 drivers/scsi/libsas/sas_ata.c task->data_dir = qc->dma_dir; qc 212 drivers/scsi/libsas/sas_ata.c task->scatter = qc->sg; qc 215 drivers/scsi/libsas/sas_ata.c qc->lldd_task = task; qc 217 drivers/scsi/libsas/sas_ata.c task->ata_task.use_ncq = ata_is_ncq(qc->tf.protocol); qc 218 drivers/scsi/libsas/sas_ata.c task->ata_task.dma_xfer = ata_is_dma(qc->tf.protocol); qc 220 drivers/scsi/libsas/sas_ata.c if (qc->scsicmd) qc 221 drivers/scsi/libsas/sas_ata.c ASSIGN_SAS_TASK(qc->scsicmd, task); qc 227 drivers/scsi/libsas/sas_ata.c if (qc->scsicmd) qc 228 drivers/scsi/libsas/sas_ata.c ASSIGN_SAS_TASK(qc->scsicmd, NULL); qc 230 drivers/scsi/libsas/sas_ata.c qc->lldd_task = NULL; qc 239 drivers/scsi/libsas/sas_ata.c static bool sas_ata_qc_fill_rtf(struct ata_queued_cmd *qc) qc 241 drivers/scsi/libsas/sas_ata.c struct domain_device *dev = qc->ap->private_data; qc 243 drivers/scsi/libsas/sas_ata.c ata_tf_from_fis(dev->sata_dev.fis, &qc->result_tf); qc 450 drivers/scsi/libsas/sas_ata.c static void sas_ata_post_internal(struct ata_queued_cmd *qc) qc 452 drivers/scsi/libsas/sas_ata.c if (qc->flags & ATA_QCFLAG_FAILED) qc 453 drivers/scsi/libsas/sas_ata.c qc->err_mask |= AC_ERR_OTHER; qc 455 drivers/scsi/libsas/sas_ata.c if (qc->err_mask) { qc 464 drivers/scsi/libsas/sas_ata.c struct sas_task *task = qc->lldd_task; qc 466 drivers/scsi/libsas/sas_ata.c qc->lldd_task = NULL; qc 583 drivers/scsi/libsas/sas_ata.c struct ata_queued_cmd *qc = task->uldd_task; qc 587 drivers/scsi/libsas/sas_ata.c if (qc->scsicmd) { qc 588 drivers/scsi/libsas/sas_ata.c blk_abort_request(qc->scsicmd->request); qc 593 drivers/scsi/libsas/sas_ata.c qc->flags &= ~ATA_QCFLAG_ACTIVE; qc 594 drivers/scsi/libsas/sas_ata.c qc->flags |= ATA_QCFLAG_FAILED; qc 595 drivers/scsi/libsas/sas_ata.c qc->err_mask |= AC_ERR_TIMEOUT; qc 596 drivers/scsi/libsas/sas_ata.c waiting = qc->private_data; qc 412 drivers/scsi/mvsas/mv_sas.c struct ata_queued_cmd *qc = task->uldd_task; qc 414 drivers/scsi/mvsas/mv_sas.c if (qc) { qc 415 drivers/scsi/mvsas/mv_sas.c if (qc->tf.command == ATA_CMD_FPDMA_WRITE || qc 416 drivers/scsi/mvsas/mv_sas.c qc->tf.command == ATA_CMD_FPDMA_READ || qc 417 drivers/scsi/mvsas/mv_sas.c qc->tf.command == ATA_CMD_FPDMA_RECV || qc 418 drivers/scsi/mvsas/mv_sas.c qc->tf.command == ATA_CMD_FPDMA_SEND || qc 419 drivers/scsi/mvsas/mv_sas.c qc->tf.command == ATA_CMD_NCQ_NON_DATA) { qc 420 drivers/scsi/mvsas/mv_sas.c *tag = qc->tag; qc 302 drivers/scsi/pm8001/pm8001_sas.c struct ata_queued_cmd *qc = task->uldd_task; qc 303 drivers/scsi/pm8001/pm8001_sas.c if (qc) { qc 304 drivers/scsi/pm8001/pm8001_sas.c if (qc->tf.command == ATA_CMD_FPDMA_WRITE || qc 305 drivers/scsi/pm8001/pm8001_sas.c qc->tf.command == ATA_CMD_FPDMA_READ || qc 306 drivers/scsi/pm8001/pm8001_sas.c qc->tf.command == ATA_CMD_FPDMA_RECV || qc 307 drivers/scsi/pm8001/pm8001_sas.c qc->tf.command == ATA_CMD_FPDMA_SEND || qc 308 drivers/scsi/pm8001/pm8001_sas.c qc->tf.command == ATA_CMD_NCQ_NON_DATA) { qc 309 drivers/scsi/pm8001/pm8001_sas.c *tag = qc->tag; qc 1312 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c unsigned short *qc; qc 1350 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c qc = (unsigned short *)(pframe + pattrib->hdrlen - 2); qc 1352 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c SetPriority(qc, tid); qc 1354 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c SetEOSP(qc, pattrib->eosp); qc 1356 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c SetAckpolicy(qc, pattrib->ack_policy); qc 736 drivers/staging/rtl8188eu/core/rtw_xmit.c u16 *qc; qc 802 drivers/staging/rtl8188eu/core/rtw_xmit.c qc = (unsigned short *)(hdr + pattrib->hdrlen - 2); qc 805 drivers/staging/rtl8188eu/core/rtw_xmit.c SetPriority(qc, pattrib->priority); qc 807 drivers/staging/rtl8188eu/core/rtw_xmit.c SetEOSP(qc, pattrib->eosp); qc 809 drivers/staging/rtl8188eu/core/rtw_xmit.c SetAckpolicy(qc, pattrib->ack_policy); qc 336 drivers/staging/rtl8188eu/include/ieee80211.h #define WLAN_QC_GET_TID(qc) ((qc) & 0x0f) qc 91 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c u8 *pos, qc = 0; qc 109 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c qc = *pos & 0x0f; qc 122 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c iv[1] = qc; qc 144 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c aad[a4_included ? 28 : 22] = qc; qc 95 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c u8 *pos, qc = 0; qc 116 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c qc = *pos & 0x0f; qc 130 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c iv[1] = qc; qc 152 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c aad[a4_included ? 28 : 22] = qc; qc 156 drivers/staging/rtl8712/ieee80211.h __le16 qc; qc 166 drivers/staging/rtl8712/ieee80211.h __le16 qc; qc 278 drivers/staging/rtl8712/ieee80211.h #define WLAN_QC_GET_TID(qc) ((qc) & 0x0f) qc 475 drivers/staging/rtl8712/rtl871x_xmit.c u16 *qc; qc 518 drivers/staging/rtl8712/rtl871x_xmit.c qc = (unsigned short *)(hdr + pattrib->hdrlen - 2); qc 520 drivers/staging/rtl8712/rtl871x_xmit.c SetPriority(qc, pattrib->priority); qc 521 drivers/staging/rtl8712/rtl871x_xmit.c SetAckpolicy(qc, pattrib->ack_policy); qc 3581 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c u16 *qc; qc 3618 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c qc = (unsigned short *)(pframe + pattrib->hdrlen - 2); qc 3620 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c SetPriority(qc, tid); qc 3622 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c SetEOSP(qc, pattrib->eosp); qc 3624 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c SetAckpolicy(qc, pattrib->ack_policy); qc 1019 drivers/staging/rtl8723bs/core/rtw_xmit.c u16 *qc; qc 1078 drivers/staging/rtl8723bs/core/rtw_xmit.c qc = (unsigned short *)(hdr + pattrib->hdrlen - 2); qc 1081 drivers/staging/rtl8723bs/core/rtw_xmit.c SetPriority(qc, pattrib->priority); qc 1083 drivers/staging/rtl8723bs/core/rtw_xmit.c SetEOSP(qc, pattrib->eosp); qc 1085 drivers/staging/rtl8723bs/core/rtw_xmit.c SetAckpolicy(qc, pattrib->ack_policy); qc 342 drivers/staging/rtl8723bs/include/ieee80211.h #define WLAN_QC_GET_TID(qc) ((qc) & 0x0f) qc 213 fs/block_dev.c blk_qc_t qc; qc 252 fs/block_dev.c qc = submit_bio(&bio); qc 258 fs/block_dev.c !blk_poll(bdev_get_queue(bdev), qc, true)) qc 350 fs/block_dev.c blk_qc_t qc = BLK_QC_T_NONE; qc 415 fs/block_dev.c qc = submit_bio(bio); qc 418 fs/block_dev.c WRITE_ONCE(iocb->ki_cookie, qc); qc 452 fs/block_dev.c !blk_poll(bdev_get_queue(bdev), qc, true)) qc 649 fs/gfs2/quota.c struct gfs2_quota_change *qc = qd->qd_bh_qc; qc 656 fs/gfs2/quota.c qc->qc_change = 0; qc 657 fs/gfs2/quota.c qc->qc_flags = 0; qc 659 fs/gfs2/quota.c qc->qc_flags = cpu_to_be32(GFS2_QCF_USER); qc 660 fs/gfs2/quota.c qc->qc_id = cpu_to_be32(from_kqid(&init_user_ns, qd->qd_id)); qc 663 fs/gfs2/quota.c x = be64_to_cpu(qc->qc_change) + change; qc 664 fs/gfs2/quota.c qc->qc_change = cpu_to_be64(x); qc 673 fs/gfs2/quota.c qc->qc_flags = 0; qc 674 fs/gfs2/quota.c qc->qc_id = 0; qc 1364 fs/gfs2/quota.c const struct gfs2_quota_change *qc; qc 1382 fs/gfs2/quota.c qc = (const struct gfs2_quota_change *)(bh->b_data + sizeof(struct gfs2_meta_header)); qc 1386 fs/gfs2/quota.c s64 qc_change = be64_to_cpu(qc->qc_change); qc 1387 fs/gfs2/quota.c u32 qc_flags = be32_to_cpu(qc->qc_flags); qc 1391 fs/gfs2/quota.c be32_to_cpu(qc->qc_id)); qc 1392 fs/gfs2/quota.c qc++; qc 3123 include/linux/ieee80211.h u8 *qc = ieee80211_get_qos_ctl(hdr); qc 3125 include/linux/ieee80211.h return qc[0] & IEEE80211_QOS_CTL_TID_MASK; qc 527 include/linux/libata.h typedef void (*ata_qc_cb_t) (struct ata_queued_cmd *qc); qc 894 include/linux/libata.h int (*qc_defer)(struct ata_queued_cmd *qc); qc 895 include/linux/libata.h int (*check_atapi_dma)(struct ata_queued_cmd *qc); qc 896 include/linux/libata.h void (*qc_prep)(struct ata_queued_cmd *qc); qc 897 include/linux/libata.h unsigned int (*qc_issue)(struct ata_queued_cmd *qc); qc 898 include/linux/libata.h bool (*qc_fill_rtf)(struct ata_queued_cmd *qc); qc 924 include/linux/libata.h void (*post_internal_cmd)(struct ata_queued_cmd *qc); qc 959 include/linux/libata.h unsigned int (*sff_data_xfer)(struct ata_queued_cmd *qc, qc 964 include/linux/libata.h void (*sff_drain_fifo)(struct ata_queued_cmd *qc); qc 967 include/linux/libata.h void (*bmdma_setup)(struct ata_queued_cmd *qc); qc 968 include/linux/libata.h void (*bmdma_start)(struct ata_queued_cmd *qc); qc 969 include/linux/libata.h void (*bmdma_stop)(struct ata_queued_cmd *qc); qc 1163 include/linux/libata.h extern int ata_std_qc_defer(struct ata_queued_cmd *qc); qc 1164 include/linux/libata.h extern void ata_noop_qc_prep(struct ata_queued_cmd *qc); qc 1165 include/linux/libata.h extern void ata_sg_init(struct ata_queued_cmd *qc, struct scatterlist *sg, qc 1175 include/linux/libata.h extern void ata_qc_complete(struct ata_queued_cmd *qc); qc 1297 include/linux/libata.h extern void ata_eh_qc_complete(struct ata_queued_cmd *qc); qc 1298 include/linux/libata.h extern void ata_eh_qc_retry(struct ata_queued_cmd *qc); qc 1487 include/linux/libata.h #define __ata_qc_for_each(ap, qc, tag, max_tag, fn) \ qc 1489 include/linux/libata.h ({ qc = fn((ap), (tag)); 1; }); (tag)++) \ qc 1495 include/linux/libata.h #define ata_qc_for_each_raw(ap, qc, tag) \ qc 1496 include/linux/libata.h __ata_qc_for_each(ap, qc, tag, ATA_MAX_QUEUE, __ata_qc_from_tag) qc 1501 include/linux/libata.h #define ata_qc_for_each(ap, qc, tag) \ qc 1502 include/linux/libata.h __ata_qc_for_each(ap, qc, tag, ATA_MAX_QUEUE, ata_qc_from_tag) qc 1507 include/linux/libata.h #define ata_qc_for_each_with_internal(ap, qc, tag) \ qc 1508 include/linux/libata.h __ata_qc_for_each(ap, qc, tag, ATA_MAX_QUEUE + 1, ata_qc_from_tag) qc 1662 include/linux/libata.h static inline void ata_qc_set_polling(struct ata_queued_cmd *qc) qc 1664 include/linux/libata.h qc->tf.ctl |= ATA_NIEN; qc 1678 include/linux/libata.h struct ata_queued_cmd *qc = __ata_qc_from_tag(ap, tag); qc 1680 include/linux/libata.h if (unlikely(!qc) || !ap->ops->error_handler) qc 1681 include/linux/libata.h return qc; qc 1683 include/linux/libata.h if ((qc->flags & (ATA_QCFLAG_ACTIVE | qc 1685 include/linux/libata.h return qc; qc 1690 include/linux/libata.h static inline unsigned int ata_qc_raw_nbytes(struct ata_queued_cmd *qc) qc 1692 include/linux/libata.h return qc->nbytes - min(qc->extrabytes, qc->nbytes); qc 1710 include/linux/libata.h static inline void ata_qc_reinit(struct ata_queued_cmd *qc) qc 1712 include/linux/libata.h qc->dma_dir = DMA_NONE; qc 1713 include/linux/libata.h qc->sg = NULL; qc 1714 include/linux/libata.h qc->flags = 0; qc 1715 include/linux/libata.h qc->cursg = NULL; qc 1716 include/linux/libata.h qc->cursg_ofs = 0; qc 1717 include/linux/libata.h qc->nbytes = qc->extrabytes = qc->curbytes = 0; qc 1718 include/linux/libata.h qc->n_elem = 0; qc 1719 include/linux/libata.h qc->err_mask = 0; qc 1720 include/linux/libata.h qc->sect_size = ATA_SECT_SIZE; qc 1722 include/linux/libata.h ata_tf_init(qc->dev, &qc->tf); qc 1725 include/linux/libata.h qc->result_tf.command = ATA_DRDY; qc 1726 include/linux/libata.h qc->result_tf.feature = 0; qc 1806 include/linux/libata.h extern int sata_pmp_qc_defer_cmd_switch(struct ata_queued_cmd *qc); qc 1843 include/linux/libata.h extern unsigned int ata_sff_data_xfer(struct ata_queued_cmd *qc, qc 1845 include/linux/libata.h extern unsigned int ata_sff_data_xfer32(struct ata_queued_cmd *qc, qc 1849 include/linux/libata.h extern int ata_sff_hsm_move(struct ata_port *ap, struct ata_queued_cmd *qc, qc 1855 include/linux/libata.h extern unsigned int ata_sff_qc_issue(struct ata_queued_cmd *qc); qc 1856 include/linux/libata.h extern bool ata_sff_qc_fill_rtf(struct ata_queued_cmd *qc); qc 1858 include/linux/libata.h struct ata_queued_cmd *qc); qc 1873 include/linux/libata.h extern void ata_sff_drain_fifo(struct ata_queued_cmd *qc); qc 1898 include/linux/libata.h extern void ata_bmdma_qc_prep(struct ata_queued_cmd *qc); qc 1899 include/linux/libata.h extern unsigned int ata_bmdma_qc_issue(struct ata_queued_cmd *qc); qc 1900 include/linux/libata.h extern void ata_bmdma_dumb_qc_prep(struct ata_queued_cmd *qc); qc 1902 include/linux/libata.h struct ata_queued_cmd *qc); qc 1905 include/linux/libata.h extern void ata_bmdma_post_internal_cmd(struct ata_queued_cmd *qc); qc 1907 include/linux/libata.h extern void ata_bmdma_setup(struct ata_queued_cmd *qc); qc 1908 include/linux/libata.h extern void ata_bmdma_start(struct ata_queued_cmd *qc); qc 1909 include/linux/libata.h extern void ata_bmdma_stop(struct ata_queued_cmd *qc); qc 1216 include/media/v4l2-ctrls.h int v4l2_queryctrl(struct v4l2_ctrl_handler *hdl, struct v4l2_queryctrl *qc); qc 1228 include/media/v4l2-ctrls.h struct v4l2_query_ext_ctrl *qc); qc 153 include/trace/events/libata.h TP_PROTO(struct ata_queued_cmd *qc), qc 155 include/trace/events/libata.h TP_ARGS(qc), qc 179 include/trace/events/libata.h __entry->ata_port = qc->ap->print_id; qc 180 include/trace/events/libata.h __entry->ata_dev = qc->dev->link->pmp + qc->dev->devno; qc 181 include/trace/events/libata.h __entry->tag = qc->tag; qc 182 include/trace/events/libata.h __entry->proto = qc->tf.protocol; qc 183 include/trace/events/libata.h __entry->cmd = qc->tf.command; qc 184 include/trace/events/libata.h __entry->dev = qc->tf.device; qc 185 include/trace/events/libata.h __entry->lbal = qc->tf.lbal; qc 186 include/trace/events/libata.h __entry->lbam = qc->tf.lbam; qc 187 include/trace/events/libata.h __entry->lbah = qc->tf.lbah; qc 188 include/trace/events/libata.h __entry->hob_lbal = qc->tf.hob_lbal; qc 189 include/trace/events/libata.h __entry->hob_lbam = qc->tf.hob_lbam; qc 190 include/trace/events/libata.h __entry->hob_lbah = qc->tf.hob_lbah; qc 191 include/trace/events/libata.h __entry->feature = qc->tf.feature; qc 192 include/trace/events/libata.h __entry->hob_feature = qc->tf.hob_feature; qc 193 include/trace/events/libata.h __entry->nsect = qc->tf.nsect; qc 194 include/trace/events/libata.h __entry->hob_nsect = qc->tf.hob_nsect; qc 212 include/trace/events/libata.h TP_PROTO(struct ata_queued_cmd *qc), qc 214 include/trace/events/libata.h TP_ARGS(qc), qc 237 include/trace/events/libata.h __entry->ata_port = qc->ap->print_id; qc 238 include/trace/events/libata.h __entry->ata_dev = qc->dev->link->pmp + qc->dev->devno; qc 239 include/trace/events/libata.h __entry->tag = qc->tag; qc 240 include/trace/events/libata.h __entry->status = qc->result_tf.command; qc 241 include/trace/events/libata.h __entry->dev = qc->result_tf.device; qc 242 include/trace/events/libata.h __entry->lbal = qc->result_tf.lbal; qc 243 include/trace/events/libata.h __entry->lbam = qc->result_tf.lbam; qc 244 include/trace/events/libata.h __entry->lbah = qc->result_tf.lbah; qc 245 include/trace/events/libata.h __entry->hob_lbal = qc->result_tf.hob_lbal; qc 246 include/trace/events/libata.h __entry->hob_lbam = qc->result_tf.hob_lbam; qc 247 include/trace/events/libata.h __entry->hob_lbah = qc->result_tf.hob_lbah; qc 248 include/trace/events/libata.h __entry->error = qc->result_tf.feature; qc 249 include/trace/events/libata.h __entry->hob_feature = qc->result_tf.hob_feature; qc 250 include/trace/events/libata.h __entry->nsect = qc->result_tf.nsect; qc 251 include/trace/events/libata.h __entry->hob_nsect = qc->result_tf.hob_nsect; qc 267 include/trace/events/libata.h TP_PROTO(struct ata_queued_cmd *qc), qc 268 include/trace/events/libata.h TP_ARGS(qc)); qc 271 include/trace/events/libata.h TP_PROTO(struct ata_queued_cmd *qc), qc 272 include/trace/events/libata.h TP_ARGS(qc)); qc 275 include/trace/events/libata.h TP_PROTO(struct ata_queued_cmd *qc), qc 276 include/trace/events/libata.h TP_ARGS(qc)); qc 306 include/trace/events/libata.h TP_PROTO(struct ata_queued_cmd *qc), qc 308 include/trace/events/libata.h TP_ARGS(qc), qc 319 include/trace/events/libata.h __entry->ata_port = qc->ap->print_id; qc 320 include/trace/events/libata.h __entry->ata_dev = qc->dev->link->pmp + qc->dev->devno; qc 321 include/trace/events/libata.h __entry->tag = qc->tag; qc 322 include/trace/events/libata.h __entry->qc_flags = qc->flags; qc 323 include/trace/events/libata.h __entry->eh_err_mask = qc->err_mask; qc 355 mm/page_io.c blk_qc_t qc; qc 408 mm/page_io.c qc = submit_bio(bio); qc 414 mm/page_io.c if (!blk_poll(disk->queue, qc, true)) qc 251 net/mac80211/mesh.h void ieee80211_mpsp_trigger_process(u8 *qc, struct sta_info *sta, qc 61 net/mac80211/mesh_ps.c u8 *qc = ieee80211_get_qos_ctl((void *) skb->data); qc 63 net/mac80211/mesh_ps.c qc[0] |= IEEE80211_QOS_CTL_EOSP; qc 188 net/mac80211/mesh_ps.c u8 *qc; qc 210 net/mac80211/mesh_ps.c qc = ieee80211_get_qos_ctl(hdr); qc 216 net/mac80211/mesh_ps.c qc[1] |= (IEEE80211_QOS_CTL_MESH_PS_LEVEL >> 8); qc 218 net/mac80211/mesh_ps.c qc[1] &= ~(IEEE80211_QOS_CTL_MESH_PS_LEVEL >> 8); qc 275 net/mac80211/mesh_ps.c u8 *qc = ieee80211_get_qos_ctl(hdr); qc 288 net/mac80211/mesh_ps.c if (qc[1] & (IEEE80211_QOS_CTL_MESH_PS_LEVEL >> 8)) qc 366 net/mac80211/mesh_ps.c u8 *qc; qc 384 net/mac80211/mesh_ps.c qc = ieee80211_get_qos_ctl(nullfunc); qc 386 net/mac80211/mesh_ps.c qc[1] |= (IEEE80211_QOS_CTL_RSPI >> 8); qc 388 net/mac80211/mesh_ps.c qc[0] |= IEEE80211_QOS_CTL_EOSP; qc 533 net/mac80211/mesh_ps.c void ieee80211_mpsp_trigger_process(u8 *qc, struct sta_info *sta, qc 536 net/mac80211/mesh_ps.c u8 rspi = qc[1] & (IEEE80211_QOS_CTL_RSPI >> 8); qc 537 net/mac80211/mesh_ps.c u8 eosp = qc[0] & IEEE80211_QOS_CTL_EOSP; qc 885 net/mac80211/rx.c u8 *qc = ieee80211_get_qos_ctl(hdr); qc 887 net/mac80211/rx.c tid = *qc & IEEE80211_QOS_CTL_TID_MASK; qc 888 net/mac80211/rx.c if (*qc & IEEE80211_QOS_CTL_A_MSDU_PRESENT) qc 202 net/mac80211/status.c u8 *qc = ieee80211_get_qos_ctl(hdr); qc 203 net/mac80211/status.c u16 tid = qc[0] & 0xf; qc 918 net/mac80211/status.c u8 *qc; qc 920 net/mac80211/status.c qc = ieee80211_get_qos_ctl(hdr); qc 921 net/mac80211/status.c tid = qc[0] & 0xf; qc 927 net/mac80211/status.c u8 *qc = ieee80211_get_qos_ctl(hdr); qc 929 net/mac80211/status.c tid = qc[0] & 0xf; qc 3172 net/mac80211/tx.c u8 *qc, *h_80211_src, *h_80211_dst; qc 3218 net/mac80211/tx.c qc = ieee80211_get_qos_ctl(hdr); qc 3219 net/mac80211/tx.c *qc |= IEEE80211_QOS_CTL_A_MSDU_PRESENT; qc 97 net/wireless/lib80211_crypt_ccmp.c u8 *pos, qc = 0; qc 111 net/wireless/lib80211_crypt_ccmp.c qc = *pos & 0x0f; qc 125 net/wireless/lib80211_crypt_ccmp.c iv[1] = qc; qc 147 net/wireless/lib80211_crypt_ccmp.c aad[a4_included ? 28 : 22] = qc;