Lines Matching refs:tf
222 static void pdc_tf_load_mmio(struct ata_port *ap, const struct ata_taskfile *tf);
223 static void pdc_exec_command_mmio(struct ata_port *ap, const struct ata_taskfile *tf);
359 static inline unsigned int pdc20621_ata_pkt(struct ata_taskfile *tf, in pdc20621_ata_pkt() argument
377 if ((tf->protocol == ATA_PROT_DMA) && (!(tf->flags & ATA_TFLAG_WRITE))) in pdc20621_ata_pkt()
379 else if (tf->protocol == ATA_PROT_NODATA) in pdc20621_ata_pkt()
389 if (tf->protocol == ATA_PROT_NODATA) in pdc20621_ata_pkt()
407 buf[i++] = tf->ctl; in pdc20621_ata_pkt()
412 static inline void pdc20621_host_pkt(struct ata_taskfile *tf, u8 *buf, in pdc20621_host_pkt() argument
433 if ((tf->protocol == ATA_PROT_DMA) && (!(tf->flags & ATA_TFLAG_WRITE))) in pdc20621_host_pkt()
487 pdc20621_host_pkt(&qc->tf, &pp->dimm_buf[0], portno); in pdc20621_dma_prep()
490 i = pdc20621_ata_pkt(&qc->tf, qc->dev->devno, &pp->dimm_buf[0], portno); in pdc20621_dma_prep()
492 if (qc->tf.flags & ATA_TFLAG_LBA48) in pdc20621_dma_prep()
493 i = pdc_prep_lba48(&qc->tf, &pp->dimm_buf[0], i); in pdc20621_dma_prep()
495 i = pdc_prep_lba28(&qc->tf, &pp->dimm_buf[0], i); in pdc20621_dma_prep()
497 pdc_pkt_footer(&qc->tf, &pp->dimm_buf[0], i); in pdc20621_dma_prep()
528 i = pdc20621_ata_pkt(&qc->tf, qc->dev->devno, &pp->dimm_buf[0], portno); in pdc20621_nodata_prep()
530 if (qc->tf.flags & ATA_TFLAG_LBA48) in pdc20621_nodata_prep()
531 i = pdc_prep_lba48(&qc->tf, &pp->dimm_buf[0], i); in pdc20621_nodata_prep()
533 i = pdc_prep_lba28(&qc->tf, &pp->dimm_buf[0], i); in pdc20621_nodata_prep()
535 pdc_pkt_footer(&qc->tf, &pp->dimm_buf[0], i); in pdc20621_nodata_prep()
551 switch (qc->tf.protocol) { in pdc20621_qc_prep()
643 unsigned int rw = (qc->tf.flags & ATA_TFLAG_WRITE); in pdc20621_packet_start()
657 if (rw && qc->tf.protocol == ATA_PROT_DMA) { in pdc20621_packet_start()
682 switch (qc->tf.protocol) { in pdc20621_qc_issue()
684 if (qc->tf.flags & ATA_TFLAG_POLLING) in pdc20621_qc_issue()
715 if ((qc->tf.protocol == ATA_PROT_DMA) && /* read */ in pdc20621_host_intr()
716 (!(qc->tf.flags & ATA_TFLAG_WRITE))) { in pdc20621_host_intr()
741 } else if (qc->tf.protocol == ATA_PROT_DMA) { /* write */ in pdc20621_host_intr()
769 } else if (qc->tf.protocol == ATA_PROT_NODATA) { in pdc20621_host_intr()
838 if (qc && (!(qc->tf.flags & ATA_TFLAG_POLLING))) in pdc20621_interrupt()
962 static void pdc_tf_load_mmio(struct ata_port *ap, const struct ata_taskfile *tf) in pdc_tf_load_mmio() argument
964 WARN_ON(tf->protocol == ATA_PROT_DMA || in pdc_tf_load_mmio()
965 tf->protocol == ATAPI_PROT_DMA); in pdc_tf_load_mmio()
966 ata_sff_tf_load(ap, tf); in pdc_tf_load_mmio()
970 static void pdc_exec_command_mmio(struct ata_port *ap, const struct ata_taskfile *tf) in pdc_exec_command_mmio() argument
972 WARN_ON(tf->protocol == ATA_PROT_DMA || in pdc_exec_command_mmio()
973 tf->protocol == ATAPI_PROT_DMA); in pdc_exec_command_mmio()
974 ata_sff_exec_command(ap, tf); in pdc_exec_command_mmio()