• Home
  • Raw
  • Download

Lines Matching refs:tf

174 static void k2_sata_tf_load(struct ata_port *ap, const struct ata_taskfile *tf)  in k2_sata_tf_load()  argument
177 unsigned int is_addr = tf->flags & ATA_TFLAG_ISADDR; in k2_sata_tf_load()
179 if (tf->ctl != ap->last_ctl) { in k2_sata_tf_load()
180 writeb(tf->ctl, ioaddr->ctl_addr); in k2_sata_tf_load()
181 ap->last_ctl = tf->ctl; in k2_sata_tf_load()
184 if (is_addr && (tf->flags & ATA_TFLAG_LBA48)) { in k2_sata_tf_load()
185 writew(tf->feature | (((u16)tf->hob_feature) << 8), in k2_sata_tf_load()
187 writew(tf->nsect | (((u16)tf->hob_nsect) << 8), in k2_sata_tf_load()
189 writew(tf->lbal | (((u16)tf->hob_lbal) << 8), in k2_sata_tf_load()
191 writew(tf->lbam | (((u16)tf->hob_lbam) << 8), in k2_sata_tf_load()
193 writew(tf->lbah | (((u16)tf->hob_lbah) << 8), in k2_sata_tf_load()
196 writew(tf->feature, ioaddr->feature_addr); in k2_sata_tf_load()
197 writew(tf->nsect, ioaddr->nsect_addr); in k2_sata_tf_load()
198 writew(tf->lbal, ioaddr->lbal_addr); in k2_sata_tf_load()
199 writew(tf->lbam, ioaddr->lbam_addr); in k2_sata_tf_load()
200 writew(tf->lbah, ioaddr->lbah_addr); in k2_sata_tf_load()
203 if (tf->flags & ATA_TFLAG_DEVICE) in k2_sata_tf_load()
204 writeb(tf->device, ioaddr->device_addr); in k2_sata_tf_load()
210 static void k2_sata_tf_read(struct ata_port *ap, struct ata_taskfile *tf) in k2_sata_tf_read() argument
215 tf->command = k2_stat_check_status(ap); in k2_sata_tf_read()
216 tf->device = readw(ioaddr->device_addr); in k2_sata_tf_read()
223 tf->feature = feature; in k2_sata_tf_read()
224 tf->nsect = nsect; in k2_sata_tf_read()
225 tf->lbal = lbal; in k2_sata_tf_read()
226 tf->lbam = lbam; in k2_sata_tf_read()
227 tf->lbah = lbah; in k2_sata_tf_read()
229 if (tf->flags & ATA_TFLAG_LBA48) { in k2_sata_tf_read()
230 tf->hob_feature = feature >> 8; in k2_sata_tf_read()
231 tf->hob_nsect = nsect >> 8; in k2_sata_tf_read()
232 tf->hob_lbal = lbal >> 8; in k2_sata_tf_read()
233 tf->hob_lbam = lbam >> 8; in k2_sata_tf_read()
234 tf->hob_lbah = lbah >> 8; in k2_sata_tf_read()
249 unsigned int rw = (qc->tf.flags & ATA_TFLAG_WRITE); in k2_bmdma_setup_mmio()
265 if (qc->tf.protocol != ATA_PROT_DMA) in k2_bmdma_setup_mmio()
266 ap->ops->sff_exec_command(ap, &qc->tf); in k2_bmdma_setup_mmio()
309 if (qc->tf.protocol == ATA_PROT_DMA) in k2_bmdma_start_mmio()
310 ap->ops->sff_exec_command(ap, &qc->tf); in k2_bmdma_start_mmio()