Lines Matching refs:tf
390 static void via_tf_load(struct ata_port *ap, const struct ata_taskfile *tf) in via_tf_load() argument
394 unsigned int is_addr = tf->flags & ATA_TFLAG_ISADDR; in via_tf_load()
397 if (tf->ctl != ap->last_ctl) { in via_tf_load()
398 iowrite8(tf->ctl, ioaddr->ctl_addr); in via_tf_load()
399 ap->last_ctl = tf->ctl; in via_tf_load()
404 if (tf->flags & ATA_TFLAG_DEVICE) { in via_tf_load()
405 iowrite8(tf->device, ioaddr->device_addr); in via_tf_load()
406 vp->cached_device = tf->device; in via_tf_load()
410 if (is_addr && (tf->flags & ATA_TFLAG_LBA48)) { in via_tf_load()
412 iowrite8(tf->hob_feature, ioaddr->feature_addr); in via_tf_load()
413 iowrite8(tf->hob_nsect, ioaddr->nsect_addr); in via_tf_load()
414 iowrite8(tf->hob_lbal, ioaddr->lbal_addr); in via_tf_load()
415 iowrite8(tf->hob_lbam, ioaddr->lbam_addr); in via_tf_load()
416 iowrite8(tf->hob_lbah, ioaddr->lbah_addr); in via_tf_load()
418 tf->hob_feature, in via_tf_load()
419 tf->hob_nsect, in via_tf_load()
420 tf->hob_lbal, in via_tf_load()
421 tf->hob_lbam, in via_tf_load()
422 tf->hob_lbah); in via_tf_load()
426 iowrite8(tf->feature, ioaddr->feature_addr); in via_tf_load()
427 iowrite8(tf->nsect, ioaddr->nsect_addr); in via_tf_load()
428 iowrite8(tf->lbal, ioaddr->lbal_addr); in via_tf_load()
429 iowrite8(tf->lbam, ioaddr->lbam_addr); in via_tf_load()
430 iowrite8(tf->lbah, ioaddr->lbah_addr); in via_tf_load()
432 tf->feature, in via_tf_load()
433 tf->nsect, in via_tf_load()
434 tf->lbal, in via_tf_load()
435 tf->lbam, in via_tf_load()
436 tf->lbah); in via_tf_load()