Lines Matching refs:tf
370 const struct ata_taskfile *tf) in sata_rcar_tf_load() argument
373 unsigned int is_addr = tf->flags & ATA_TFLAG_ISADDR; in sata_rcar_tf_load()
375 if (tf->ctl != ap->last_ctl) { in sata_rcar_tf_load()
376 iowrite32(tf->ctl, ioaddr->ctl_addr); in sata_rcar_tf_load()
377 ap->last_ctl = tf->ctl; in sata_rcar_tf_load()
381 if (is_addr && (tf->flags & ATA_TFLAG_LBA48)) { in sata_rcar_tf_load()
382 iowrite32(tf->hob_feature, ioaddr->feature_addr); in sata_rcar_tf_load()
383 iowrite32(tf->hob_nsect, ioaddr->nsect_addr); in sata_rcar_tf_load()
384 iowrite32(tf->hob_lbal, ioaddr->lbal_addr); in sata_rcar_tf_load()
385 iowrite32(tf->hob_lbam, ioaddr->lbam_addr); in sata_rcar_tf_load()
386 iowrite32(tf->hob_lbah, ioaddr->lbah_addr); in sata_rcar_tf_load()
388 tf->hob_feature, in sata_rcar_tf_load()
389 tf->hob_nsect, in sata_rcar_tf_load()
390 tf->hob_lbal, in sata_rcar_tf_load()
391 tf->hob_lbam, in sata_rcar_tf_load()
392 tf->hob_lbah); in sata_rcar_tf_load()
396 iowrite32(tf->feature, ioaddr->feature_addr); in sata_rcar_tf_load()
397 iowrite32(tf->nsect, ioaddr->nsect_addr); in sata_rcar_tf_load()
398 iowrite32(tf->lbal, ioaddr->lbal_addr); in sata_rcar_tf_load()
399 iowrite32(tf->lbam, ioaddr->lbam_addr); in sata_rcar_tf_load()
400 iowrite32(tf->lbah, ioaddr->lbah_addr); in sata_rcar_tf_load()
402 tf->feature, in sata_rcar_tf_load()
403 tf->nsect, in sata_rcar_tf_load()
404 tf->lbal, in sata_rcar_tf_load()
405 tf->lbam, in sata_rcar_tf_load()
406 tf->lbah); in sata_rcar_tf_load()
409 if (tf->flags & ATA_TFLAG_DEVICE) { in sata_rcar_tf_load()
410 iowrite32(tf->device, ioaddr->device_addr); in sata_rcar_tf_load()
411 VPRINTK("device 0x%X\n", tf->device); in sata_rcar_tf_load()
417 static void sata_rcar_tf_read(struct ata_port *ap, struct ata_taskfile *tf) in sata_rcar_tf_read() argument
421 tf->command = sata_rcar_check_status(ap); in sata_rcar_tf_read()
422 tf->feature = ioread32(ioaddr->error_addr); in sata_rcar_tf_read()
423 tf->nsect = ioread32(ioaddr->nsect_addr); in sata_rcar_tf_read()
424 tf->lbal = ioread32(ioaddr->lbal_addr); in sata_rcar_tf_read()
425 tf->lbam = ioread32(ioaddr->lbam_addr); in sata_rcar_tf_read()
426 tf->lbah = ioread32(ioaddr->lbah_addr); in sata_rcar_tf_read()
427 tf->device = ioread32(ioaddr->device_addr); in sata_rcar_tf_read()
429 if (tf->flags & ATA_TFLAG_LBA48) { in sata_rcar_tf_read()
430 iowrite32(tf->ctl | ATA_HOB, ioaddr->ctl_addr); in sata_rcar_tf_read()
431 tf->hob_feature = ioread32(ioaddr->error_addr); in sata_rcar_tf_read()
432 tf->hob_nsect = ioread32(ioaddr->nsect_addr); in sata_rcar_tf_read()
433 tf->hob_lbal = ioread32(ioaddr->lbal_addr); in sata_rcar_tf_read()
434 tf->hob_lbam = ioread32(ioaddr->lbam_addr); in sata_rcar_tf_read()
435 tf->hob_lbah = ioread32(ioaddr->lbah_addr); in sata_rcar_tf_read()
436 iowrite32(tf->ctl, ioaddr->ctl_addr); in sata_rcar_tf_read()
437 ap->last_ctl = tf->ctl; in sata_rcar_tf_read()
442 const struct ata_taskfile *tf) in sata_rcar_exec_command() argument
444 DPRINTK("ata%u: cmd 0x%X\n", ap->print_id, tf->command); in sata_rcar_exec_command()
446 iowrite32(tf->command, ap->ioaddr.command_addr); in sata_rcar_exec_command()
565 unsigned int rw = qc->tf.flags & ATA_TFLAG_WRITE; in sata_rcar_bmdma_setup()
586 ap->ops->sff_exec_command(ap, &qc->tf); in sata_rcar_bmdma_setup()