Searched refs:rio_cmd (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/usb/misc/
H A Drio500.c114 struct RioCommand rio_cmd; ioctl_rio() local
134 if (copy_from_user(&rio_cmd, data, sizeof(struct RioCommand))) { ioctl_rio()
138 if (rio_cmd.length < 0 || rio_cmd.length > PAGE_SIZE) { ioctl_rio()
147 if (copy_from_user(buffer, rio_cmd.buffer, rio_cmd.length)) { ioctl_rio()
153 requesttype = rio_cmd.requesttype | USB_DIR_IN | ioctl_rio()
157 requesttype, rio_cmd.request, rio_cmd.value, ioctl_rio()
158 rio_cmd.index, rio_cmd.length); ioctl_rio()
164 rio_cmd.request, ioctl_rio()
166 rio_cmd.value, ioctl_rio()
167 rio_cmd.index, buffer, ioctl_rio()
168 rio_cmd.length, ioctl_rio()
169 jiffies_to_msecs(rio_cmd.timeout)); ioctl_rio()
181 if (copy_to_user(rio_cmd.buffer, buffer, ioctl_rio()
182 rio_cmd.length)) { ioctl_rio()
190 /* rio_cmd.buffer contains a raw stream of single byte ioctl_rio()
205 if (copy_from_user(&rio_cmd, data, sizeof(struct RioCommand))) { ioctl_rio()
209 if (rio_cmd.length < 0 || rio_cmd.length > PAGE_SIZE) { ioctl_rio()
218 if (copy_from_user(buffer, rio_cmd.buffer, rio_cmd.length)) { ioctl_rio()
224 requesttype = rio_cmd.requesttype | USB_DIR_OUT | ioctl_rio()
228 requesttype, rio_cmd.request, rio_cmd.value, ioctl_rio()
229 rio_cmd.index, rio_cmd.length); ioctl_rio()
235 rio_cmd.request, ioctl_rio()
237 rio_cmd.value, ioctl_rio()
238 rio_cmd.index, buffer, ioctl_rio()
239 rio_cmd.length, ioctl_rio()
240 jiffies_to_msecs(rio_cmd.timeout)); ioctl_rio()

Completed in 101 milliseconds