Lines Matching refs:tf

158 static void k2_sata_tf_load(struct ata_port *ap, const struct ata_taskfile *tf)
161 unsigned int is_addr = tf->flags & ATA_TFLAG_ISADDR;
163 if (tf->ctl != ap->last_ctl) {
164 writeb(tf->ctl, ioaddr->ctl_addr);
165 ap->last_ctl = tf->ctl;
168 if (is_addr && (tf->flags & ATA_TFLAG_LBA48)) {
169 writew(tf->feature | (((u16)tf->hob_feature) << 8),
171 writew(tf->nsect | (((u16)tf->hob_nsect) << 8),
173 writew(tf->lbal | (((u16)tf->hob_lbal) << 8),
175 writew(tf->lbam | (((u16)tf->hob_lbam) << 8),
177 writew(tf->lbah | (((u16)tf->hob_lbah) << 8),
180 writew(tf->feature, ioaddr->feature_addr);
181 writew(tf->nsect, ioaddr->nsect_addr);
182 writew(tf->lbal, ioaddr->lbal_addr);
183 writew(tf->lbam, ioaddr->lbam_addr);
184 writew(tf->lbah, ioaddr->lbah_addr);
187 if (tf->flags & ATA_TFLAG_DEVICE)
188 writeb(tf->device, ioaddr->device_addr);
194 static void k2_sata_tf_read(struct ata_port *ap, struct ata_taskfile *tf)
199 tf->command = k2_stat_check_status(ap);
200 tf->device = readw(ioaddr->device_addr);
207 tf->feature = feature;
208 tf->nsect = nsect;
209 tf->lbal = lbal;
210 tf->lbam = lbam;
211 tf->lbah = lbah;
213 if (tf->flags & ATA_TFLAG_LBA48) {
214 tf->hob_feature = feature >> 8;
215 tf->hob_nsect = nsect >> 8;
216 tf->hob_lbal = lbal >> 8;
217 tf->hob_lbam = lbam >> 8;
218 tf->hob_lbah = lbah >> 8;
233 unsigned int rw = (qc->tf.flags & ATA_TFLAG_WRITE);
249 if (qc->tf.protocol != ATA_PROT_DMA)
250 ap->ops->sff_exec_command(ap, &qc->tf);
293 if (qc->tf.protocol == ATA_PROT_DMA)
294 ap->ops->sff_exec_command(ap, &qc->tf);