• 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

123 static void k2_sata_tf_load(struct ata_port *ap, const struct ata_taskfile *tf)
126 unsigned int is_addr = tf->flags & ATA_TFLAG_ISADDR;
128 if (tf->ctl != ap->last_ctl) {
129 writeb(tf->ctl, ioaddr->ctl_addr);
130 ap->last_ctl = tf->ctl;
133 if (is_addr && (tf->flags & ATA_TFLAG_LBA48)) {
134 writew(tf->feature | (((u16)tf->hob_feature) << 8),
136 writew(tf->nsect | (((u16)tf->hob_nsect) << 8),
138 writew(tf->lbal | (((u16)tf->hob_lbal) << 8),
140 writew(tf->lbam | (((u16)tf->hob_lbam) << 8),
142 writew(tf->lbah | (((u16)tf->hob_lbah) << 8),
145 writew(tf->feature, ioaddr->feature_addr);
146 writew(tf->nsect, ioaddr->nsect_addr);
147 writew(tf->lbal, ioaddr->lbal_addr);
148 writew(tf->lbam, ioaddr->lbam_addr);
149 writew(tf->lbah, ioaddr->lbah_addr);
152 if (tf->flags & ATA_TFLAG_DEVICE)
153 writeb(tf->device, ioaddr->device_addr);
159 static void k2_sata_tf_read(struct ata_port *ap, struct ata_taskfile *tf)
164 tf->command = k2_stat_check_status(ap);
165 tf->device = readw(ioaddr->device_addr);
172 tf->feature = feature;
173 tf->nsect = nsect;
174 tf->lbal = lbal;
175 tf->lbam = lbam;
176 tf->lbah = lbah;
178 if (tf->flags & ATA_TFLAG_LBA48) {
179 tf->hob_feature = feature >> 8;
180 tf->hob_nsect = nsect >> 8;
181 tf->hob_lbal = lbal >> 8;
182 tf->hob_lbam = lbam >> 8;
183 tf->hob_lbah = lbah >> 8;
198 unsigned int rw = (qc->tf.flags & ATA_TFLAG_WRITE);
213 if (qc->tf.protocol != ATA_PROT_DMA)
214 ap->ops->exec_command(ap, &qc->tf);
249 if (qc->tf.protocol == ATA_PROT_DMA)
250 ap->ops->exec_command(ap, &qc->tf);