Lines Matching refs:tf
42 struct ata_taskfile tf; in sata_pmp_read() local
45 ata_tf_init(pmp_dev, &tf); in sata_pmp_read()
46 tf.command = ATA_CMD_PMP_READ; in sata_pmp_read()
47 tf.protocol = ATA_PROT_NODATA; in sata_pmp_read()
48 tf.flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE | ATA_TFLAG_LBA48; in sata_pmp_read()
49 tf.feature = reg; in sata_pmp_read()
50 tf.device = link->pmp; in sata_pmp_read()
52 err_mask = ata_exec_internal(pmp_dev, &tf, NULL, DMA_NONE, NULL, 0, in sata_pmp_read()
57 *r_val = tf.nsect | tf.lbal << 8 | tf.lbam << 16 | tf.lbah << 24; in sata_pmp_read()
79 struct ata_taskfile tf; in sata_pmp_write() local
81 ata_tf_init(pmp_dev, &tf); in sata_pmp_write()
82 tf.command = ATA_CMD_PMP_WRITE; in sata_pmp_write()
83 tf.protocol = ATA_PROT_NODATA; in sata_pmp_write()
84 tf.flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE | ATA_TFLAG_LBA48; in sata_pmp_write()
85 tf.feature = reg; in sata_pmp_write()
86 tf.device = link->pmp; in sata_pmp_write()
87 tf.nsect = val & 0xff; in sata_pmp_write()
88 tf.lbal = (val >> 8) & 0xff; in sata_pmp_write()
89 tf.lbam = (val >> 16) & 0xff; in sata_pmp_write()
90 tf.lbah = (val >> 24) & 0xff; in sata_pmp_write()
92 return ata_exec_internal(pmp_dev, &tf, NULL, DMA_NONE, NULL, 0, in sata_pmp_write()