Lines Matching refs:tf
416 qc ? qc->tf.command : 0xff, irq_stat, idma_stat);
464 if (qc->tf.flags & ATA_TFLAG_WRITE)
467 if (ata_is_dma(qc->tf.protocol))
487 bool is_atapi = ata_is_atapi(qc->tf.protocol);
488 bool is_data = ata_is_data(qc->tf.protocol);
504 cpb->device = qc->tf.device;
505 cpb->feature = qc->tf.feature;
506 cpb->nsect = qc->tf.nsect;
507 cpb->lbal = qc->tf.lbal;
508 cpb->lbam = qc->tf.lbam;
509 cpb->lbah = qc->tf.lbah;
511 if (qc->tf.flags & ATA_TFLAG_LBA48) {
512 cpb->hob_feature = qc->tf.hob_feature;
513 cpb->hob_nsect = qc->tf.hob_nsect;
514 cpb->hob_lbal = qc->tf.hob_lbal;
515 cpb->hob_lbam = qc->tf.hob_lbam;
516 cpb->hob_lbah = qc->tf.hob_lbah;
519 cpb->command = qc->tf.command;
556 static void inic_tf_read(struct ata_port *ap, struct ata_taskfile *tf)
560 tf->error = readb(port_base + PORT_TF_FEATURE);
561 tf->nsect = readb(port_base + PORT_TF_NSECT);
562 tf->lbal = readb(port_base + PORT_TF_LBAL);
563 tf->lbam = readb(port_base + PORT_TF_LBAM);
564 tf->lbah = readb(port_base + PORT_TF_LBAH);
565 tf->device = readb(port_base + PORT_TF_DEVICE);
566 tf->status = readb(port_base + PORT_TF_COMMAND);
572 struct ata_taskfile tf;
581 inic_tf_read(qc->ap, &tf);
583 if (tf.status & ATA_ERR) {
584 rtf->status = tf.status;
585 rtf->error = tf.error;
643 struct ata_taskfile tf;
655 inic_tf_read(ap, &tf);
656 *class = ata_port_classify(ap, &tf);