Lines Matching refs:tf
278 static void scc_tf_load (struct ata_port *ap, const struct ata_taskfile *tf) in scc_tf_load() argument
281 unsigned int is_addr = tf->flags & ATA_TFLAG_ISADDR; in scc_tf_load()
283 if (tf->ctl != ap->last_ctl) { in scc_tf_load()
284 out_be32(ioaddr->ctl_addr, tf->ctl); in scc_tf_load()
285 ap->last_ctl = tf->ctl; in scc_tf_load()
289 if (is_addr && (tf->flags & ATA_TFLAG_LBA48)) { in scc_tf_load()
290 out_be32(ioaddr->feature_addr, tf->hob_feature); in scc_tf_load()
291 out_be32(ioaddr->nsect_addr, tf->hob_nsect); in scc_tf_load()
292 out_be32(ioaddr->lbal_addr, tf->hob_lbal); in scc_tf_load()
293 out_be32(ioaddr->lbam_addr, tf->hob_lbam); in scc_tf_load()
294 out_be32(ioaddr->lbah_addr, tf->hob_lbah); in scc_tf_load()
296 tf->hob_feature, in scc_tf_load()
297 tf->hob_nsect, in scc_tf_load()
298 tf->hob_lbal, in scc_tf_load()
299 tf->hob_lbam, in scc_tf_load()
300 tf->hob_lbah); in scc_tf_load()
304 out_be32(ioaddr->feature_addr, tf->feature); in scc_tf_load()
305 out_be32(ioaddr->nsect_addr, tf->nsect); in scc_tf_load()
306 out_be32(ioaddr->lbal_addr, tf->lbal); in scc_tf_load()
307 out_be32(ioaddr->lbam_addr, tf->lbam); in scc_tf_load()
308 out_be32(ioaddr->lbah_addr, tf->lbah); in scc_tf_load()
310 tf->feature, in scc_tf_load()
311 tf->nsect, in scc_tf_load()
312 tf->lbal, in scc_tf_load()
313 tf->lbam, in scc_tf_load()
314 tf->lbah); in scc_tf_load()
317 if (tf->flags & ATA_TFLAG_DEVICE) { in scc_tf_load()
318 out_be32(ioaddr->device_addr, tf->device); in scc_tf_load()
319 VPRINTK("device 0x%X\n", tf->device); in scc_tf_load()
345 static void scc_tf_read (struct ata_port *ap, struct ata_taskfile *tf) in scc_tf_read() argument
349 tf->command = scc_check_status(ap); in scc_tf_read()
350 tf->feature = in_be32(ioaddr->error_addr); in scc_tf_read()
351 tf->nsect = in_be32(ioaddr->nsect_addr); in scc_tf_read()
352 tf->lbal = in_be32(ioaddr->lbal_addr); in scc_tf_read()
353 tf->lbam = in_be32(ioaddr->lbam_addr); in scc_tf_read()
354 tf->lbah = in_be32(ioaddr->lbah_addr); in scc_tf_read()
355 tf->device = in_be32(ioaddr->device_addr); in scc_tf_read()
357 if (tf->flags & ATA_TFLAG_LBA48) { in scc_tf_read()
358 out_be32(ioaddr->ctl_addr, tf->ctl | ATA_HOB); in scc_tf_read()
359 tf->hob_feature = in_be32(ioaddr->error_addr); in scc_tf_read()
360 tf->hob_nsect = in_be32(ioaddr->nsect_addr); in scc_tf_read()
361 tf->hob_lbal = in_be32(ioaddr->lbal_addr); in scc_tf_read()
362 tf->hob_lbam = in_be32(ioaddr->lbam_addr); in scc_tf_read()
363 tf->hob_lbah = in_be32(ioaddr->lbah_addr); in scc_tf_read()
364 out_be32(ioaddr->ctl_addr, tf->ctl); in scc_tf_read()
365 ap->last_ctl = tf->ctl; in scc_tf_read()
378 const struct ata_taskfile *tf) in scc_exec_command() argument
380 DPRINTK("ata%u: cmd 0x%X\n", ap->print_id, tf->command); in scc_exec_command()
382 out_be32(ap->ioaddr.command_addr, tf->command); in scc_exec_command()
438 unsigned int rw = (qc->tf.flags & ATA_TFLAG_WRITE); in scc_bmdma_setup()
453 ap->ops->sff_exec_command(ap, &qc->tf); in scc_bmdma_setup()
767 if ((qc->tf.protocol == ATA_PROT_DMA && in scc_bmdma_status()