Lines Matching refs:tf
398 qc ? qc->tf.command : 0xff, irq_stat, idma_stat); in inic_host_intr()
446 if (qc->tf.flags & ATA_TFLAG_WRITE) in inic_fill_sg()
449 if (ata_is_dma(qc->tf.protocol)) in inic_fill_sg()
469 bool is_atapi = ata_is_atapi(qc->tf.protocol); in inic_qc_prep()
470 bool is_data = ata_is_data(qc->tf.protocol); in inic_qc_prep()
488 cpb->device = qc->tf.device; in inic_qc_prep()
489 cpb->feature = qc->tf.feature; in inic_qc_prep()
490 cpb->nsect = qc->tf.nsect; in inic_qc_prep()
491 cpb->lbal = qc->tf.lbal; in inic_qc_prep()
492 cpb->lbam = qc->tf.lbam; in inic_qc_prep()
493 cpb->lbah = qc->tf.lbah; in inic_qc_prep()
495 if (qc->tf.flags & ATA_TFLAG_LBA48) { in inic_qc_prep()
496 cpb->hob_feature = qc->tf.hob_feature; in inic_qc_prep()
497 cpb->hob_nsect = qc->tf.hob_nsect; in inic_qc_prep()
498 cpb->hob_lbal = qc->tf.hob_lbal; in inic_qc_prep()
499 cpb->hob_lbam = qc->tf.hob_lbam; in inic_qc_prep()
500 cpb->hob_lbah = qc->tf.hob_lbah; in inic_qc_prep()
503 cpb->command = qc->tf.command; in inic_qc_prep()
538 static void inic_tf_read(struct ata_port *ap, struct ata_taskfile *tf) in inic_tf_read() argument
542 tf->feature = readb(port_base + PORT_TF_FEATURE); in inic_tf_read()
543 tf->nsect = readb(port_base + PORT_TF_NSECT); in inic_tf_read()
544 tf->lbal = readb(port_base + PORT_TF_LBAL); in inic_tf_read()
545 tf->lbam = readb(port_base + PORT_TF_LBAM); in inic_tf_read()
546 tf->lbah = readb(port_base + PORT_TF_LBAH); in inic_tf_read()
547 tf->device = readb(port_base + PORT_TF_DEVICE); in inic_tf_read()
548 tf->command = readb(port_base + PORT_TF_COMMAND); in inic_tf_read()
554 struct ata_taskfile tf; in inic_qc_fill_rtf() local
563 inic_tf_read(qc->ap, &tf); in inic_qc_fill_rtf()
565 if (!(tf.command & ATA_ERR)) in inic_qc_fill_rtf()
568 rtf->command = tf.command; in inic_qc_fill_rtf()
569 rtf->feature = tf.feature; in inic_qc_fill_rtf()
627 struct ata_taskfile tf; in inic_hardreset() local
639 inic_tf_read(ap, &tf); in inic_hardreset()
640 *class = ata_dev_classify(&tf); in inic_hardreset()