• Home
  • Raw
  • Download

Lines Matching refs:tf

75 	cmd->tf.command = ide_rw_cmds[index + lba48 + write];  in ide_tf_set_cmd()
90 struct ide_taskfile *tf = &cmd.tf; in __ide_do_rw_disk() local
101 cmd.valid.out.tf = IDE_VALID_OUT_TF | IDE_VALID_DEVICE; in __ide_do_rw_disk()
102 cmd.valid.in.tf = IDE_VALID_IN_TF | IDE_VALID_DEVICE; in __ide_do_rw_disk()
109 tf->nsect = nsectors & 0xff; in __ide_do_rw_disk()
110 tf->lbal = (u8) block; in __ide_do_rw_disk()
111 tf->lbam = (u8)(block >> 8); in __ide_do_rw_disk()
112 tf->lbah = (u8)(block >> 16); in __ide_do_rw_disk()
113 tf->device = ATA_LBA; in __ide_do_rw_disk()
115 tf = &cmd.hob; in __ide_do_rw_disk()
116 tf->nsect = (nsectors >> 8) & 0xff; in __ide_do_rw_disk()
117 tf->lbal = (u8)(block >> 24); in __ide_do_rw_disk()
119 tf->lbam = (u8)((u64)block >> 32); in __ide_do_rw_disk()
120 tf->lbah = (u8)((u64)block >> 40); in __ide_do_rw_disk()
127 tf->nsect = nsectors & 0xff; in __ide_do_rw_disk()
128 tf->lbal = block; in __ide_do_rw_disk()
129 tf->lbam = block >>= 8; in __ide_do_rw_disk()
130 tf->lbah = block >>= 8; in __ide_do_rw_disk()
131 tf->device = ((block >> 8) & 0xf) | ATA_LBA; in __ide_do_rw_disk()
143 tf->nsect = nsectors & 0xff; in __ide_do_rw_disk()
144 tf->lbal = sect; in __ide_do_rw_disk()
145 tf->lbam = cyl; in __ide_do_rw_disk()
146 tf->lbah = cyl >> 8; in __ide_do_rw_disk()
147 tf->device = head; in __ide_do_rw_disk()
209 struct ide_taskfile *tf = &cmd.tf; in idedisk_read_native_max_address() local
214 tf->command = ATA_CMD_READ_NATIVE_MAX_EXT; in idedisk_read_native_max_address()
216 tf->command = ATA_CMD_READ_NATIVE_MAX; in idedisk_read_native_max_address()
217 tf->device = ATA_LBA; in idedisk_read_native_max_address()
219 cmd.valid.out.tf = IDE_VALID_OUT_TF | IDE_VALID_DEVICE; in idedisk_read_native_max_address()
220 cmd.valid.in.tf = IDE_VALID_IN_TF | IDE_VALID_DEVICE; in idedisk_read_native_max_address()
230 if (!(tf->status & ATA_ERR)) in idedisk_read_native_max_address()
243 struct ide_taskfile *tf = &cmd.tf; in idedisk_set_max_address() local
249 tf->lbal = (addr_req >> 0) & 0xff; in idedisk_set_max_address()
250 tf->lbam = (addr_req >>= 8) & 0xff; in idedisk_set_max_address()
251 tf->lbah = (addr_req >>= 8) & 0xff; in idedisk_set_max_address()
256 tf->command = ATA_CMD_SET_MAX_EXT; in idedisk_set_max_address()
258 tf->device = (addr_req >>= 8) & 0x0f; in idedisk_set_max_address()
259 tf->command = ATA_CMD_SET_MAX; in idedisk_set_max_address()
261 tf->device |= ATA_LBA; in idedisk_set_max_address()
263 cmd.valid.out.tf = IDE_VALID_OUT_TF | IDE_VALID_DEVICE; in idedisk_set_max_address()
264 cmd.valid.in.tf = IDE_VALID_IN_TF | IDE_VALID_DEVICE; in idedisk_set_max_address()
274 if (!(tf->status & ATA_ERR)) in idedisk_set_max_address()
449 cmd->tf.command = ATA_CMD_FLUSH_EXT; in idedisk_prep_rq()
451 cmd->tf.command = ATA_CMD_FLUSH; in idedisk_prep_rq()
452 cmd->valid.out.tf = IDE_VALID_OUT_TF | IDE_VALID_DEVICE; in idedisk_prep_rq()
513 cmd.tf.feature = feature; in ide_do_setfeature()
514 cmd.tf.nsect = nsect; in ide_do_setfeature()
515 cmd.tf.command = ATA_CMD_SET_FEATURES; in ide_do_setfeature()
516 cmd.valid.out.tf = IDE_VALID_OUT_TF | IDE_VALID_DEVICE; in ide_do_setfeature()
517 cmd.valid.in.tf = IDE_VALID_IN_TF | IDE_VALID_DEVICE; in ide_do_setfeature()
588 cmd.tf.command = ATA_CMD_FLUSH_EXT; in do_idedisk_flushcache()
590 cmd.tf.command = ATA_CMD_FLUSH; in do_idedisk_flushcache()
591 cmd.valid.out.tf = IDE_VALID_OUT_TF | IDE_VALID_DEVICE; in do_idedisk_flushcache()
592 cmd.valid.in.tf = IDE_VALID_IN_TF | IDE_VALID_DEVICE; in do_idedisk_flushcache()
772 cmd.tf.command = on ? ATA_CMD_MEDIA_LOCK : ATA_CMD_MEDIA_UNLOCK; in ide_disk_set_doorlock()
773 cmd.valid.out.tf = IDE_VALID_OUT_TF | IDE_VALID_DEVICE; in ide_disk_set_doorlock()
774 cmd.valid.in.tf = IDE_VALID_IN_TF | IDE_VALID_DEVICE; in ide_disk_set_doorlock()