Lines Matching defs:tf
142 static void vsc_sata_tf_load(struct ata_port *ap, const struct ata_taskfile *tf)
145 unsigned int is_addr = tf->flags & ATA_TFLAG_ISADDR;
153 if ((tf->ctl & ATA_NIEN) != (ap->last_ctl & ATA_NIEN)) {
154 ap->last_ctl = tf->ctl;
155 vsc_intr_mask_update(ap, tf->ctl & ATA_NIEN);
157 if (is_addr && (tf->flags & ATA_TFLAG_LBA48)) {
158 writew(tf->feature | (((u16)tf->hob_feature) << 8),
160 writew(tf->nsect | (((u16)tf->hob_nsect) << 8),
162 writew(tf->lbal | (((u16)tf->hob_lbal) << 8),
164 writew(tf->lbam | (((u16)tf->hob_lbam) << 8),
166 writew(tf->lbah | (((u16)tf->hob_lbah) << 8),
169 writew(tf->feature, ioaddr->feature_addr);
170 writew(tf->nsect, ioaddr->nsect_addr);
171 writew(tf->lbal, ioaddr->lbal_addr);
172 writew(tf->lbam, ioaddr->lbam_addr);
173 writew(tf->lbah, ioaddr->lbah_addr);
176 if (tf->flags & ATA_TFLAG_DEVICE)
177 writeb(tf->device, ioaddr->device_addr);
183 static void vsc_sata_tf_read(struct ata_port *ap, struct ata_taskfile *tf)
188 tf->status = ata_sff_check_status(ap);
189 tf->device = readw(ioaddr->device_addr);
196 tf->error = error;
197 tf->nsect = nsect;
198 tf->lbal = lbal;
199 tf->lbam = lbam;
200 tf->lbah = lbah;
202 if (tf->flags & ATA_TFLAG_LBA48) {
203 tf->hob_feature = error >> 8;
204 tf->hob_nsect = nsect >> 8;
205 tf->hob_lbal = lbal >> 8;
206 tf->hob_lbam = lbam >> 8;
207 tf->hob_lbah = lbah >> 8;
230 if (qc && likely(!(qc->tf.flags & ATA_TFLAG_POLLING)))