Lines Matching defs:args
131 u8 args[4], xfer_rate = 0;
147 if (copy_from_user(args, argp, 4))
151 tf->feature = args[2];
152 if (args[0] == ATA_CMD_SMART) {
153 tf->nsect = args[3];
154 tf->lbal = args[1];
160 tf->nsect = args[1];
164 tf->command = args[0];
165 cmd.protocol = args[3] ? ATA_PROT_PIO : ATA_PROT_NODATA;
167 if (args[3]) {
169 bufsize = SECTOR_SIZE * args[3];
187 err = ide_raw_taskfile(drive, &cmd, buf, args[3]);
189 args[0] = tf->status;
190 args[1] = tf->error;
191 args[2] = tf->nsect;
193 if (copy_to_user(argp, &args, 4))
206 u8 args[7];
209 if (copy_from_user(args, p, 7))
213 memcpy(&cmd.tf.feature, &args[1], 6);
214 cmd.tf.command = args[0];
220 args[0] = cmd.tf.command;
221 memcpy(&args[1], &cmd.tf.feature, 6);
223 if (copy_to_user(p, args, 7))