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