Lines Matching refs:tf
314 const struct ata_taskfile *tf) in sata_rcar_tf_load() argument
317 unsigned int is_addr = tf->flags & ATA_TFLAG_ISADDR; in sata_rcar_tf_load()
319 if (tf->ctl != ap->last_ctl) { in sata_rcar_tf_load()
320 iowrite32(tf->ctl, ioaddr->ctl_addr); in sata_rcar_tf_load()
321 ap->last_ctl = tf->ctl; in sata_rcar_tf_load()
325 if (is_addr && (tf->flags & ATA_TFLAG_LBA48)) { in sata_rcar_tf_load()
326 iowrite32(tf->hob_feature, ioaddr->feature_addr); in sata_rcar_tf_load()
327 iowrite32(tf->hob_nsect, ioaddr->nsect_addr); in sata_rcar_tf_load()
328 iowrite32(tf->hob_lbal, ioaddr->lbal_addr); in sata_rcar_tf_load()
329 iowrite32(tf->hob_lbam, ioaddr->lbam_addr); in sata_rcar_tf_load()
330 iowrite32(tf->hob_lbah, ioaddr->lbah_addr); in sata_rcar_tf_load()
332 tf->hob_feature, in sata_rcar_tf_load()
333 tf->hob_nsect, in sata_rcar_tf_load()
334 tf->hob_lbal, in sata_rcar_tf_load()
335 tf->hob_lbam, in sata_rcar_tf_load()
336 tf->hob_lbah); in sata_rcar_tf_load()
340 iowrite32(tf->feature, ioaddr->feature_addr); in sata_rcar_tf_load()
341 iowrite32(tf->nsect, ioaddr->nsect_addr); in sata_rcar_tf_load()
342 iowrite32(tf->lbal, ioaddr->lbal_addr); in sata_rcar_tf_load()
343 iowrite32(tf->lbam, ioaddr->lbam_addr); in sata_rcar_tf_load()
344 iowrite32(tf->lbah, ioaddr->lbah_addr); in sata_rcar_tf_load()
346 tf->feature, in sata_rcar_tf_load()
347 tf->nsect, in sata_rcar_tf_load()
348 tf->lbal, in sata_rcar_tf_load()
349 tf->lbam, in sata_rcar_tf_load()
350 tf->lbah); in sata_rcar_tf_load()
353 if (tf->flags & ATA_TFLAG_DEVICE) { in sata_rcar_tf_load()
354 iowrite32(tf->device, ioaddr->device_addr); in sata_rcar_tf_load()
355 VPRINTK("device 0x%X\n", tf->device); in sata_rcar_tf_load()
361 static void sata_rcar_tf_read(struct ata_port *ap, struct ata_taskfile *tf) in sata_rcar_tf_read() argument
365 tf->command = sata_rcar_check_status(ap); in sata_rcar_tf_read()
366 tf->feature = ioread32(ioaddr->error_addr); in sata_rcar_tf_read()
367 tf->nsect = ioread32(ioaddr->nsect_addr); in sata_rcar_tf_read()
368 tf->lbal = ioread32(ioaddr->lbal_addr); in sata_rcar_tf_read()
369 tf->lbam = ioread32(ioaddr->lbam_addr); in sata_rcar_tf_read()
370 tf->lbah = ioread32(ioaddr->lbah_addr); in sata_rcar_tf_read()
371 tf->device = ioread32(ioaddr->device_addr); in sata_rcar_tf_read()
373 if (tf->flags & ATA_TFLAG_LBA48) { in sata_rcar_tf_read()
374 iowrite32(tf->ctl | ATA_HOB, ioaddr->ctl_addr); in sata_rcar_tf_read()
375 tf->hob_feature = ioread32(ioaddr->error_addr); in sata_rcar_tf_read()
376 tf->hob_nsect = ioread32(ioaddr->nsect_addr); in sata_rcar_tf_read()
377 tf->hob_lbal = ioread32(ioaddr->lbal_addr); in sata_rcar_tf_read()
378 tf->hob_lbam = ioread32(ioaddr->lbam_addr); in sata_rcar_tf_read()
379 tf->hob_lbah = ioread32(ioaddr->lbah_addr); in sata_rcar_tf_read()
380 iowrite32(tf->ctl, ioaddr->ctl_addr); in sata_rcar_tf_read()
381 ap->last_ctl = tf->ctl; in sata_rcar_tf_read()
386 const struct ata_taskfile *tf) in sata_rcar_exec_command() argument
388 DPRINTK("ata%u: cmd 0x%X\n", ap->print_id, tf->command); in sata_rcar_exec_command()
390 iowrite32(tf->command, ap->ioaddr.command_addr); in sata_rcar_exec_command()
521 unsigned int rw = qc->tf.flags & ATA_TFLAG_WRITE; in sata_rcar_bmdma_setup()
541 ap->ops->sff_exec_command(ap, &qc->tf); in sata_rcar_bmdma_setup()