• 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

120 static void qs_qc_prep(struct ata_queued_cmd *qc);
121 static unsigned int qs_qc_issue(struct ata_queued_cmd *qc);
122 static int qs_check_atapi_dma(struct ata_queued_cmd *qc);
123 static void qs_bmdma_stop(struct ata_queued_cmd *qc);
200 static int qs_check_atapi_dma(struct ata_queued_cmd *qc)
205 static void qs_bmdma_stop(struct ata_queued_cmd *qc)
270 static unsigned int qs_fill_sg(struct ata_queued_cmd *qc)
273 struct ata_port *ap = qc->ap;
278 WARN_ON(qc->__sg == NULL);
279 WARN_ON(qc->n_elem == 0 && qc->pad_len == 0);
282 ata_for_each_sg(sg, qc) {
302 static void qs_qc_prep(struct ata_queued_cmd *qc)
304 struct qs_port_priv *pp = qc->ap->private_data;
312 qs_enter_reg_mode(qc->ap);
313 if (qc->tf.protocol != ATA_PROT_DMA) {
314 ata_qc_prep(qc);
318 nelem = qs_fill_sg(qc);
320 if ((qc->tf.flags & ATA_TFLAG_WRITE))
322 if ((qc->tf.flags & ATA_TFLAG_LBA48))
328 *(__le32 *)(&buf[ 4]) = cpu_to_le32(qc->nbytes);
338 ata_tf_to_fis(&qc->tf, &buf[32], 0);
341 static inline void qs_packet_start(struct ata_queued_cmd *qc)
343 struct ata_port *ap = qc->ap;
354 static unsigned int qs_qc_issue(struct ata_queued_cmd *qc)
356 struct qs_port_priv *pp = qc->ap->private_data;
358 switch (qc->tf.protocol) {
362 qs_packet_start(qc);
374 return ata_qc_issue_prot(qc);
399 struct ata_queued_cmd *qc;
403 qc = ata_qc_from_tag(ap, ap->active_tag);
404 if (qc && (!(qc->tf.flags & ATA_TFLAG_POLLING))) {
409 qs_enter_reg_mode(qc->ap);
410 qc->err_mask |= ac_err_mask(sDST);
411 ata_qc_complete(qc);
432 struct ata_queued_cmd *qc;
436 qc = ata_qc_from_tag(ap, ap->active_tag);
437 if (qc && (!(qc->tf.flags & ATA_TFLAG_POLLING))) {
444 ap->print_id, qc->tf.protocol, status);
448 qc->err_mask |= ac_err_mask(status);
449 ata_qc_complete(qc);