Lines Matching refs:tf

209 static void pdc_tf_load_mmio(struct ata_port *ap, const struct ata_taskfile *tf);
210 static void pdc_exec_command_mmio(struct ata_port *ap, const struct ata_taskfile *tf);
331 static inline unsigned int pdc20621_ata_pkt(struct ata_taskfile *tf,
348 if ((tf->protocol == ATA_PROT_DMA) && (!(tf->flags & ATA_TFLAG_WRITE)))
350 else if (tf->protocol == ATA_PROT_NODATA)
360 if (tf->protocol == ATA_PROT_NODATA)
378 buf[i++] = tf->ctl;
383 static inline void pdc20621_host_pkt(struct ata_taskfile *tf, u8 *buf,
402 if ((tf->protocol == ATA_PROT_DMA) && (!(tf->flags & ATA_TFLAG_WRITE)))
446 pdc20621_host_pkt(&qc->tf, &pp->dimm_buf[0], portno);
449 i = pdc20621_ata_pkt(&qc->tf, qc->dev->devno, &pp->dimm_buf[0], portno);
451 if (qc->tf.flags & ATA_TFLAG_LBA48)
452 i = pdc_prep_lba48(&qc->tf, &pp->dimm_buf[0], i);
454 i = pdc_prep_lba28(&qc->tf, &pp->dimm_buf[0], i);
456 pdc_pkt_footer(&qc->tf, &pp->dimm_buf[0], i);
486 i = pdc20621_ata_pkt(&qc->tf, qc->dev->devno, &pp->dimm_buf[0], portno);
488 if (qc->tf.flags & ATA_TFLAG_LBA48)
489 i = pdc_prep_lba48(&qc->tf, &pp->dimm_buf[0], i);
491 i = pdc_prep_lba28(&qc->tf, &pp->dimm_buf[0], i);
493 pdc_pkt_footer(&qc->tf, &pp->dimm_buf[0], i);
509 switch (qc->tf.protocol) {
598 unsigned int rw = (qc->tf.flags & ATA_TFLAG_WRITE);
610 if (rw && qc->tf.protocol == ATA_PROT_DMA) {
635 switch (qc->tf.protocol) {
637 if (qc->tf.flags & ATA_TFLAG_POLLING)
666 if ((qc->tf.protocol == ATA_PROT_DMA) && /* read */
667 (!(qc->tf.flags & ATA_TFLAG_WRITE))) {
692 } else if (qc->tf.protocol == ATA_PROT_DMA) { /* write */
720 } else if (qc->tf.protocol == ATA_PROT_NODATA) {
782 if (qc && (!(qc->tf.flags & ATA_TFLAG_POLLING)))
902 static void pdc_tf_load_mmio(struct ata_port *ap, const struct ata_taskfile *tf)
904 WARN_ON(tf->protocol == ATA_PROT_DMA ||
905 tf->protocol == ATAPI_PROT_DMA);
906 ata_sff_tf_load(ap, tf);
910 static void pdc_exec_command_mmio(struct ata_port *ap, const struct ata_taskfile *tf)
912 WARN_ON(tf->protocol == ATA_PROT_DMA ||
913 tf->protocol == ATAPI_PROT_DMA);
914 ata_sff_exec_command(ap, tf);