Lines Matching refs:tf
124 struct ide_taskfile *tf = &cmd.tf; in ide_cmd_ioctl() local
142 tf->feature = args[2]; in ide_cmd_ioctl()
144 tf->nsect = args[3]; in ide_cmd_ioctl()
145 tf->lbal = args[1]; in ide_cmd_ioctl()
146 tf->lbam = ATA_SMART_LBAM_PASS; in ide_cmd_ioctl()
147 tf->lbah = ATA_SMART_LBAH_PASS; in ide_cmd_ioctl()
148 cmd.valid.out.tf = IDE_VALID_OUT_TF; in ide_cmd_ioctl()
149 cmd.valid.in.tf = IDE_VALID_NSECT; in ide_cmd_ioctl()
151 tf->nsect = args[1]; in ide_cmd_ioctl()
152 cmd.valid.out.tf = IDE_VALID_FEATURE | IDE_VALID_NSECT; in ide_cmd_ioctl()
153 cmd.valid.in.tf = IDE_VALID_NSECT; in ide_cmd_ioctl()
155 tf->command = args[0]; in ide_cmd_ioctl()
166 if (tf->command == ATA_CMD_SET_FEATURES && in ide_cmd_ioctl()
167 tf->feature == SETFEATURES_XFER && in ide_cmd_ioctl()
168 tf->nsect >= XFER_SW_DMA_0) { in ide_cmd_ioctl()
169 xfer_rate = ide_find_dma_mode(drive, tf->nsect); in ide_cmd_ioctl()
170 if (xfer_rate != tf->nsect) { in ide_cmd_ioctl()
180 args[0] = tf->status; in ide_cmd_ioctl()
181 args[1] = tf->error; in ide_cmd_ioctl()
182 args[2] = tf->nsect; in ide_cmd_ioctl()
205 memcpy(&cmd.tf.feature, &args[1], 6); in ide_task_ioctl()
206 cmd.tf.command = args[0]; in ide_task_ioctl()
207 cmd.valid.out.tf = IDE_VALID_OUT_TF | IDE_VALID_DEVICE; in ide_task_ioctl()
208 cmd.valid.in.tf = IDE_VALID_IN_TF | IDE_VALID_DEVICE; in ide_task_ioctl()
212 args[0] = cmd.tf.command; in ide_task_ioctl()
213 memcpy(&args[1], &cmd.tf.feature, 6); in ide_task_ioctl()