Lines Matching refs:tf

206 static void pdc_tf_load_mmio(struct ata_port *ap, const struct ata_taskfile *tf);
207 static void pdc_exec_command_mmio(struct ata_port *ap, const struct ata_taskfile *tf);
343 static inline unsigned int pdc20621_ata_pkt(struct ata_taskfile *tf, in pdc20621_ata_pkt() argument
361 if ((tf->protocol == ATA_PROT_DMA) && (!(tf->flags & ATA_TFLAG_WRITE))) in pdc20621_ata_pkt()
363 else if (tf->protocol == ATA_PROT_NODATA) in pdc20621_ata_pkt()
373 if (tf->protocol == ATA_PROT_NODATA) in pdc20621_ata_pkt()
391 buf[i++] = tf->ctl; in pdc20621_ata_pkt()
396 static inline void pdc20621_host_pkt(struct ata_taskfile *tf, u8 *buf, in pdc20621_host_pkt() argument
417 if ((tf->protocol == ATA_PROT_DMA) && (!(tf->flags & ATA_TFLAG_WRITE))) in pdc20621_host_pkt()
471 pdc20621_host_pkt(&qc->tf, &pp->dimm_buf[0], portno); in pdc20621_dma_prep()
474 i = pdc20621_ata_pkt(&qc->tf, qc->dev->devno, &pp->dimm_buf[0], portno); in pdc20621_dma_prep()
476 if (qc->tf.flags & ATA_TFLAG_LBA48) in pdc20621_dma_prep()
477 i = pdc_prep_lba48(&qc->tf, &pp->dimm_buf[0], i); in pdc20621_dma_prep()
479 i = pdc_prep_lba28(&qc->tf, &pp->dimm_buf[0], i); in pdc20621_dma_prep()
481 pdc_pkt_footer(&qc->tf, &pp->dimm_buf[0], i); in pdc20621_dma_prep()
512 i = pdc20621_ata_pkt(&qc->tf, qc->dev->devno, &pp->dimm_buf[0], portno); in pdc20621_nodata_prep()
514 if (qc->tf.flags & ATA_TFLAG_LBA48) in pdc20621_nodata_prep()
515 i = pdc_prep_lba48(&qc->tf, &pp->dimm_buf[0], i); in pdc20621_nodata_prep()
517 i = pdc_prep_lba28(&qc->tf, &pp->dimm_buf[0], i); in pdc20621_nodata_prep()
519 pdc_pkt_footer(&qc->tf, &pp->dimm_buf[0], i); in pdc20621_nodata_prep()
535 switch (qc->tf.protocol) { in pdc20621_qc_prep()
629 unsigned int rw = (qc->tf.flags & ATA_TFLAG_WRITE); in pdc20621_packet_start()
643 if (rw && qc->tf.protocol == ATA_PROT_DMA) { in pdc20621_packet_start()
668 switch (qc->tf.protocol) { in pdc20621_qc_issue()
670 if (qc->tf.flags & ATA_TFLAG_POLLING) in pdc20621_qc_issue()
701 if ((qc->tf.protocol == ATA_PROT_DMA) && /* read */ in pdc20621_host_intr()
702 (!(qc->tf.flags & ATA_TFLAG_WRITE))) { in pdc20621_host_intr()
727 } else if (qc->tf.protocol == ATA_PROT_DMA) { /* write */ in pdc20621_host_intr()
755 } else if (qc->tf.protocol == ATA_PROT_NODATA) { in pdc20621_host_intr()
824 if (qc && (!(qc->tf.flags & ATA_TFLAG_POLLING))) in pdc20621_interrupt()
948 static void pdc_tf_load_mmio(struct ata_port *ap, const struct ata_taskfile *tf) in pdc_tf_load_mmio() argument
950 WARN_ON(tf->protocol == ATA_PROT_DMA || in pdc_tf_load_mmio()
951 tf->protocol == ATAPI_PROT_DMA); in pdc_tf_load_mmio()
952 ata_sff_tf_load(ap, tf); in pdc_tf_load_mmio()
956 static void pdc_exec_command_mmio(struct ata_port *ap, const struct ata_taskfile *tf) in pdc_exec_command_mmio() argument
958 WARN_ON(tf->protocol == ATA_PROT_DMA || in pdc_exec_command_mmio()
959 tf->protocol == ATAPI_PROT_DMA); in pdc_exec_command_mmio()
960 ata_sff_exec_command(ap, tf); in pdc_exec_command_mmio()