Lines Matching refs:uarg
135 static int bsg_sg_io(struct request_queue *q, fmode_t mode, void __user *uarg)
142 if (copy_from_user(&hdr, uarg, sizeof(hdr)))
193 if (!ret && copy_to_user(uarg, &hdr, sizeof(hdr)))
329 static int bsg_get_command_q(struct bsg_device *bd, int __user *uarg)
331 return put_user(bd->max_queue, uarg);
334 static int bsg_set_command_q(struct bsg_device *bd, int __user *uarg)
338 if (get_user(queue, uarg))
352 void __user *uarg = (void __user *) arg;
359 return bsg_get_command_q(bd, uarg);
361 return bsg_set_command_q(bd, uarg);
374 return scsi_cmd_ioctl(bd->queue, NULL, file->f_mode, cmd, uarg);
376 return bsg_sg_io(bd->queue, file->f_mode, uarg);