• 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:tf

158 static void pdc_tf_load_mmio(struct ata_port *ap, const struct ata_taskfile *tf);
159 static void pdc_exec_command_mmio(struct ata_port *ap, const struct ata_taskfile *tf);
271 static inline void pdc20621_ata_sg(struct ata_taskfile *tf, u8 *buf,
293 static inline void pdc20621_host_sg(struct ata_taskfile *tf, u8 *buf,
315 static inline unsigned int pdc20621_ata_pkt(struct ata_taskfile *tf,
333 if ((tf->protocol == ATA_PROT_DMA) && (!(tf->flags & ATA_TFLAG_WRITE)))
335 else if (tf->protocol == ATA_PROT_NODATA)
345 if (tf->protocol == ATA_PROT_NODATA)
363 buf[i++] = tf->ctl;
368 static inline void pdc20621_host_pkt(struct ata_taskfile *tf, u8 *buf,
388 if ((tf->protocol == ATA_PROT_DMA) && (!(tf->flags & ATA_TFLAG_WRITE)))
441 pdc20621_host_sg(&qc->tf, &pp->dimm_buf[0], portno, total_len);
442 pdc20621_host_pkt(&qc->tf, &pp->dimm_buf[0], portno);
444 pdc20621_ata_sg(&qc->tf, &pp->dimm_buf[0], portno, total_len);
445 i = pdc20621_ata_pkt(&qc->tf, qc->dev->devno, &pp->dimm_buf[0], portno);
447 if (qc->tf.flags & ATA_TFLAG_LBA48)
448 i = pdc_prep_lba48(&qc->tf, &pp->dimm_buf[0], i);
450 i = pdc_prep_lba28(&qc->tf, &pp->dimm_buf[0], i);
452 pdc_pkt_footer(&qc->tf, &pp->dimm_buf[0], i);
483 i = pdc20621_ata_pkt(&qc->tf, qc->dev->devno, &pp->dimm_buf[0], portno);
485 if (qc->tf.flags & ATA_TFLAG_LBA48)
486 i = pdc_prep_lba48(&qc->tf, &pp->dimm_buf[0], i);
488 i = pdc_prep_lba28(&qc->tf, &pp->dimm_buf[0], i);
490 pdc_pkt_footer(&qc->tf, &pp->dimm_buf[0], i);
506 switch (qc->tf.protocol) {
598 unsigned int rw = (qc->tf.flags & ATA_TFLAG_WRITE);
612 if (rw && qc->tf.protocol == ATA_PROT_DMA) {
637 switch (qc->tf.protocol) {
667 if ((qc->tf.protocol == ATA_PROT_DMA) && /* read */
668 (!(qc->tf.flags & ATA_TFLAG_WRITE))) {
693 } else if (qc->tf.protocol == ATA_PROT_DMA) { /* write */
721 } else if (qc->tf.protocol == ATA_PROT_NODATA) {
796 if (qc && (!(qc->tf.flags & ATA_TFLAG_POLLING)))
824 switch (qc->tf.protocol) {
836 qc->tf.command, drv_stat);
847 static void pdc_tf_load_mmio(struct ata_port *ap, const struct ata_taskfile *tf)
849 WARN_ON (tf->protocol == ATA_PROT_DMA ||
850 tf->protocol == ATA_PROT_NODATA);
851 ata_tf_load(ap, tf);
855 static void pdc_exec_command_mmio(struct ata_port *ap, const struct ata_taskfile *tf)
857 WARN_ON (tf->protocol == ATA_PROT_DMA ||
858 tf->protocol == ATA_PROT_NODATA);
859 ata_exec_command(ap, tf);