Lines Matching refs:tf

215 				 const struct ata_taskfile *tf)
219 if (tf->ctl != ap->last_ctl) {
220 pi->proto->write_regr(pi, 1, 6, tf->ctl);
221 ap->last_ctl = tf->ctl;
225 if (tf->flags & ATA_TFLAG_ISADDR) {
226 if (tf->flags & ATA_TFLAG_LBA48) {
228 tf->hob_feature);
230 tf->hob_nsect);
232 tf->hob_lbal);
234 tf->hob_lbam);
236 tf->hob_lbah);
238 pi->proto->write_regr(pi, 0, ATA_REG_FEATURE, tf->feature);
239 pi->proto->write_regr(pi, 0, ATA_REG_NSECT, tf->nsect);
240 pi->proto->write_regr(pi, 0, ATA_REG_LBAL, tf->lbal);
241 pi->proto->write_regr(pi, 0, ATA_REG_LBAM, tf->lbam);
242 pi->proto->write_regr(pi, 0, ATA_REG_LBAH, tf->lbah);
245 if (tf->flags & ATA_TFLAG_DEVICE)
246 pi->proto->write_regr(pi, 0, ATA_REG_DEVICE, tf->device);
251 static void pata_parport_tf_read(struct ata_port *ap, struct ata_taskfile *tf)
255 tf->status = pi->proto->read_regr(pi, 0, ATA_REG_STATUS);
256 tf->error = pi->proto->read_regr(pi, 0, ATA_REG_ERR);
257 tf->nsect = pi->proto->read_regr(pi, 0, ATA_REG_NSECT);
258 tf->lbal = pi->proto->read_regr(pi, 0, ATA_REG_LBAL);
259 tf->lbam = pi->proto->read_regr(pi, 0, ATA_REG_LBAM);
260 tf->lbah = pi->proto->read_regr(pi, 0, ATA_REG_LBAH);
261 tf->device = pi->proto->read_regr(pi, 0, ATA_REG_DEVICE);
263 if (tf->flags & ATA_TFLAG_LBA48) {
264 pi->proto->write_regr(pi, 1, 6, tf->ctl | ATA_HOB);
265 tf->hob_feature = pi->proto->read_regr(pi, 0, ATA_REG_ERR);
266 tf->hob_nsect = pi->proto->read_regr(pi, 0, ATA_REG_NSECT);
267 tf->hob_lbal = pi->proto->read_regr(pi, 0, ATA_REG_LBAL);
268 tf->hob_lbam = pi->proto->read_regr(pi, 0, ATA_REG_LBAM);
269 tf->hob_lbah = pi->proto->read_regr(pi, 0, ATA_REG_LBAH);
270 pi->proto->write_regr(pi, 1, 6, tf->ctl);
271 ap->last_ctl = tf->ctl;
276 const struct ata_taskfile *tf)
280 pi->proto->write_regr(pi, 0, ATA_REG_CMD, tf->command);