Lines Matching refs:tf
77 struct ide_taskfile *tf = &cmd->tf; in ide_complete_cmd() local
79 u8 tf_cmd = tf->command; in ide_complete_cmd()
81 tf->error = err; in ide_complete_cmd()
82 tf->status = stat; in ide_complete_cmd()
89 cmd->tf.data = data[0]; in ide_complete_cmd()
97 if (tf->lbal != 0xc4) { in ide_complete_cmd()
155 static void ide_tf_set_specify_cmd(ide_drive_t *drive, struct ide_taskfile *tf) in ide_tf_set_specify_cmd() argument
157 tf->nsect = drive->sect; in ide_tf_set_specify_cmd()
158 tf->lbal = drive->sect; in ide_tf_set_specify_cmd()
159 tf->lbam = drive->cyl; in ide_tf_set_specify_cmd()
160 tf->lbah = drive->cyl >> 8; in ide_tf_set_specify_cmd()
161 tf->device = (drive->head - 1) | drive->select; in ide_tf_set_specify_cmd()
162 tf->command = ATA_CMD_INIT_DEV_PARAMS; in ide_tf_set_specify_cmd()
165 static void ide_tf_set_restore_cmd(ide_drive_t *drive, struct ide_taskfile *tf) in ide_tf_set_restore_cmd() argument
167 tf->nsect = drive->sect; in ide_tf_set_restore_cmd()
168 tf->command = ATA_CMD_RESTORE; in ide_tf_set_restore_cmd()
171 static void ide_tf_set_setmult_cmd(ide_drive_t *drive, struct ide_taskfile *tf) in ide_tf_set_setmult_cmd() argument
173 tf->nsect = drive->mult_req; in ide_tf_set_setmult_cmd()
174 tf->command = ATA_CMD_SET_MULTI; in ide_tf_set_setmult_cmd()
204 ide_tf_set_specify_cmd(drive, &cmd.tf); in do_special()
207 ide_tf_set_restore_cmd(drive, &cmd.tf); in do_special()
210 ide_tf_set_setmult_cmd(drive, &cmd.tf); in do_special()
214 cmd.valid.out.tf = IDE_VALID_OUT_TF | IDE_VALID_DEVICE; in do_special()
215 cmd.valid.in.tf = IDE_VALID_IN_TF | IDE_VALID_DEVICE; in do_special()