• Home
  • Raw
  • Download

Lines Matching refs:tf

179 static void k2_sata_tf_load(struct ata_port *ap, const struct ata_taskfile *tf)  in k2_sata_tf_load()  argument
182 unsigned int is_addr = tf->flags & ATA_TFLAG_ISADDR; in k2_sata_tf_load()
184 if (tf->ctl != ap->last_ctl) { in k2_sata_tf_load()
185 writeb(tf->ctl, ioaddr->ctl_addr); in k2_sata_tf_load()
186 ap->last_ctl = tf->ctl; in k2_sata_tf_load()
189 if (is_addr && (tf->flags & ATA_TFLAG_LBA48)) { in k2_sata_tf_load()
190 writew(tf->feature | (((u16)tf->hob_feature) << 8), in k2_sata_tf_load()
192 writew(tf->nsect | (((u16)tf->hob_nsect) << 8), in k2_sata_tf_load()
194 writew(tf->lbal | (((u16)tf->hob_lbal) << 8), in k2_sata_tf_load()
196 writew(tf->lbam | (((u16)tf->hob_lbam) << 8), in k2_sata_tf_load()
198 writew(tf->lbah | (((u16)tf->hob_lbah) << 8), in k2_sata_tf_load()
201 writew(tf->feature, ioaddr->feature_addr); in k2_sata_tf_load()
202 writew(tf->nsect, ioaddr->nsect_addr); in k2_sata_tf_load()
203 writew(tf->lbal, ioaddr->lbal_addr); in k2_sata_tf_load()
204 writew(tf->lbam, ioaddr->lbam_addr); in k2_sata_tf_load()
205 writew(tf->lbah, ioaddr->lbah_addr); in k2_sata_tf_load()
208 if (tf->flags & ATA_TFLAG_DEVICE) in k2_sata_tf_load()
209 writeb(tf->device, ioaddr->device_addr); in k2_sata_tf_load()
215 static void k2_sata_tf_read(struct ata_port *ap, struct ata_taskfile *tf) in k2_sata_tf_read() argument
220 tf->command = k2_stat_check_status(ap); in k2_sata_tf_read()
221 tf->device = readw(ioaddr->device_addr); in k2_sata_tf_read()
228 tf->feature = feature; in k2_sata_tf_read()
229 tf->nsect = nsect; in k2_sata_tf_read()
230 tf->lbal = lbal; in k2_sata_tf_read()
231 tf->lbam = lbam; in k2_sata_tf_read()
232 tf->lbah = lbah; in k2_sata_tf_read()
234 if (tf->flags & ATA_TFLAG_LBA48) { in k2_sata_tf_read()
235 tf->hob_feature = feature >> 8; in k2_sata_tf_read()
236 tf->hob_nsect = nsect >> 8; in k2_sata_tf_read()
237 tf->hob_lbal = lbal >> 8; in k2_sata_tf_read()
238 tf->hob_lbam = lbam >> 8; in k2_sata_tf_read()
239 tf->hob_lbah = lbah >> 8; in k2_sata_tf_read()
254 unsigned int rw = (qc->tf.flags & ATA_TFLAG_WRITE); in k2_bmdma_setup_mmio()
270 if (qc->tf.protocol != ATA_PROT_DMA) in k2_bmdma_setup_mmio()
271 ap->ops->sff_exec_command(ap, &qc->tf); in k2_bmdma_setup_mmio()
314 if (qc->tf.protocol == ATA_PROT_DMA) in k2_bmdma_start_mmio()
315 ap->ops->sff_exec_command(ap, &qc->tf); in k2_bmdma_start_mmio()