• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/ata/

Lines Matching refs:qc

391 static void mv_qc_prep(struct ata_queued_cmd *qc);
392 static void mv_qc_prep_iie(struct ata_queued_cmd *qc);
393 static unsigned int mv_qc_issue(struct ata_queued_cmd *qc);
1024 * @qc: queued command whose SG list to source from
1031 static unsigned int mv_fill_sg(struct ata_queued_cmd *qc)
1033 struct mv_port_priv *pp = qc->ap->private_data;
1039 ata_for_each_sg(sg, qc) {
1047 if (ata_sg_is_last(sg, qc))
1071 * @qc: queued command to prepare
1081 static void mv_qc_prep(struct ata_queued_cmd *qc)
1083 struct ata_port *ap = qc->ap;
1090 if (ATA_PROT_DMA != qc->tf.protocol)
1095 if (!(qc->tf.flags & ATA_TFLAG_WRITE))
1097 WARN_ON(MV_MAX_Q_DEPTH <= qc->tag);
1098 flags |= qc->tag << CRQB_TAG_SHIFT;
1111 tf = &qc->tf;
1148 if (!(qc->flags & ATA_QCFLAG_DMAMAP))
1150 mv_fill_sg(qc);
1155 * @qc: queued command to prepare
1165 static void mv_qc_prep_iie(struct ata_queued_cmd *qc)
1167 struct ata_port *ap = qc->ap;
1174 if (ATA_PROT_DMA != qc->tf.protocol)
1179 if (!(qc->tf.flags & ATA_TFLAG_WRITE))
1182 WARN_ON(MV_MAX_Q_DEPTH <= qc->tag);
1183 flags |= qc->tag << CRQB_TAG_SHIFT;
1194 tf = &qc->tf;
1216 if (!(qc->flags & ATA_QCFLAG_DMAMAP))
1218 mv_fill_sg(qc);
1223 * @qc: queued command to start
1233 static unsigned int mv_qc_issue(struct ata_queued_cmd *qc)
1235 void __iomem *port_mmio = mv_ap_base(qc->ap);
1236 struct mv_port_priv *pp = qc->ap->private_data;
1240 if (ATA_PROT_DMA != qc->tf.protocol) {
1245 mv_stop_dma(qc->ap);
1246 return ata_qc_issue_prot(qc);
1371 struct ata_queued_cmd *qc;
1436 qc = ata_qc_from_tag(ap, ap->active_tag);
1437 if (qc && (qc->flags & ATA_QCFLAG_ACTIVE)) {
1438 VPRINTK("port %u IRQ found for qc, "
1440 /* mark qc status appropriately */
1441 if (!(qc->tf.flags & ATA_TFLAG_POLLING)) {
1442 qc->err_mask |= err_mask;
1443 ata_qc_complete(qc);
2055 struct ata_queued_cmd *qc;
2062 qc = ata_qc_from_tag(ap, ap->active_tag);
2063 printk(KERN_ERR "mmio_base %p ap %p qc %p scsi_cmnd %p &cmnd %p\n",
2064 mmio, ap, qc, qc->scsicmd, &qc->scsicmd->cmnd);
2071 WARN_ON(!(qc->flags & ATA_QCFLAG_ACTIVE));
2072 if (qc->flags & ATA_QCFLAG_ACTIVE) {
2073 qc->err_mask |= AC_ERR_TIMEOUT;
2074 ata_eh_qc_complete(qc);