Lines Matching refs:tf
416 qc ? qc->tf.command : 0xff, irq_stat, idma_stat); in inic_host_intr()
464 if (qc->tf.flags & ATA_TFLAG_WRITE) in inic_fill_sg()
467 if (ata_is_dma(qc->tf.protocol)) in inic_fill_sg()
487 bool is_atapi = ata_is_atapi(qc->tf.protocol); in inic_qc_prep()
488 bool is_data = ata_is_data(qc->tf.protocol); in inic_qc_prep()
506 cpb->device = qc->tf.device; in inic_qc_prep()
507 cpb->feature = qc->tf.feature; in inic_qc_prep()
508 cpb->nsect = qc->tf.nsect; in inic_qc_prep()
509 cpb->lbal = qc->tf.lbal; in inic_qc_prep()
510 cpb->lbam = qc->tf.lbam; in inic_qc_prep()
511 cpb->lbah = qc->tf.lbah; in inic_qc_prep()
513 if (qc->tf.flags & ATA_TFLAG_LBA48) { in inic_qc_prep()
514 cpb->hob_feature = qc->tf.hob_feature; in inic_qc_prep()
515 cpb->hob_nsect = qc->tf.hob_nsect; in inic_qc_prep()
516 cpb->hob_lbal = qc->tf.hob_lbal; in inic_qc_prep()
517 cpb->hob_lbam = qc->tf.hob_lbam; in inic_qc_prep()
518 cpb->hob_lbah = qc->tf.hob_lbah; in inic_qc_prep()
521 cpb->command = qc->tf.command; in inic_qc_prep()
558 static void inic_tf_read(struct ata_port *ap, struct ata_taskfile *tf) in inic_tf_read() argument
562 tf->feature = readb(port_base + PORT_TF_FEATURE); in inic_tf_read()
563 tf->nsect = readb(port_base + PORT_TF_NSECT); in inic_tf_read()
564 tf->lbal = readb(port_base + PORT_TF_LBAL); in inic_tf_read()
565 tf->lbam = readb(port_base + PORT_TF_LBAM); in inic_tf_read()
566 tf->lbah = readb(port_base + PORT_TF_LBAH); in inic_tf_read()
567 tf->device = readb(port_base + PORT_TF_DEVICE); in inic_tf_read()
568 tf->command = readb(port_base + PORT_TF_COMMAND); in inic_tf_read()
574 struct ata_taskfile tf; in inic_qc_fill_rtf() local
583 inic_tf_read(qc->ap, &tf); in inic_qc_fill_rtf()
585 if (!(tf.command & ATA_ERR)) in inic_qc_fill_rtf()
588 rtf->command = tf.command; in inic_qc_fill_rtf()
589 rtf->feature = tf.feature; in inic_qc_fill_rtf()
647 struct ata_taskfile tf; in inic_hardreset() local
659 inic_tf_read(ap, &tf); in inic_hardreset()
660 *class = ata_dev_classify(&tf); in inic_hardreset()