• Home
  • Raw
  • Download

Lines Matching refs:usb_config

58 		     const struct usb_config *, uint8_t);
88 const struct usb_config *setup, uint8_t n_setup) in ugen_transfer_setup()
180 struct usb_config usb_config[2]; in ugen_open_pipe_write() local
190 (void)memset_s(usb_config, sizeof(usb_config), 0, sizeof(usb_config)); in ugen_open_pipe_write()
192 usb_config[1].type = UE_CONTROL; in ugen_open_pipe_write()
193 usb_config[1].endpoint = 0; in ugen_open_pipe_write()
194 usb_config[1].direction = UE_DIR_ANY; in ugen_open_pipe_write()
195 usb_config[1].timeout = 1000; /* 1 second */ in ugen_open_pipe_write()
196 usb_config[1].interval = 50;/* 50 milliseconds */ in ugen_open_pipe_write()
197 usb_config[1].bufsize = sizeof(struct usb_device_request); in ugen_open_pipe_write()
198 usb_config[1].callback = &ugen_write_clear_stall_callback; in ugen_open_pipe_write()
199 usb_config[1].usb_mode = USB_MODE_HOST; in ugen_open_pipe_write()
201 usb_config[0].type = ed->bmAttributes & UE_XFERTYPE; in ugen_open_pipe_write()
202 usb_config[0].endpoint = ed->bEndpointAddress & UE_ADDR; in ugen_open_pipe_write()
203 usb_config[0].stream_id = 0; /* XXX support more stream ID's */ in ugen_open_pipe_write()
204 usb_config[0].direction = UE_DIR_TX; in ugen_open_pipe_write()
205 usb_config[0].interval = USB_DEFAULT_INTERVAL; in ugen_open_pipe_write()
206 usb_config[0].flags.proxy_buffer = 1; in ugen_open_pipe_write()
207 usb_config[0].usb_mode = USB_MODE_DUAL; /* both modes */ in ugen_open_pipe_write()
213 usb_config[0].flags.force_short_xfer = 1; in ugen_open_pipe_write()
215 usb_config[0].callback = &ugen_ctrl_write_callback; in ugen_open_pipe_write()
216 usb_config[0].timeout = f->timeout; in ugen_open_pipe_write()
217 usb_config[0].frames = 1; in ugen_open_pipe_write()
218 usb_config[0].bufsize = f->bufsize; in ugen_open_pipe_write()
219 if (ugen_transfer_setup(f, usb_config, 2)) { in ugen_open_pipe_write()
227 usb_config[0].flags.short_xfer_ok = 1; in ugen_open_pipe_write()
228 usb_config[0].bufsize = 0; /* use default */ in ugen_open_pipe_write()
229 usb_config[0].frames = f->nframes; in ugen_open_pipe_write()
230 usb_config[0].callback = &ugen_isoc_write_callback; in ugen_open_pipe_write()
231 usb_config[0].timeout = 0; in ugen_open_pipe_write()
234 usb_config[1] = usb_config[0]; in ugen_open_pipe_write()
236 if (ugen_transfer_setup(f, usb_config, 2)) { in ugen_open_pipe_write()
249 struct usb_config usb_config[2]; in ugen_open_pipe_read() local
259 (void)memset_s(usb_config, sizeof(usb_config), 0, sizeof(usb_config)); in ugen_open_pipe_read()
261 usb_config[1].type = UE_CONTROL; in ugen_open_pipe_read()
262 usb_config[1].endpoint = 0; in ugen_open_pipe_read()
263 usb_config[1].direction = UE_DIR_ANY; in ugen_open_pipe_read()
264 usb_config[1].timeout = 1000; /* 1 second */ in ugen_open_pipe_read()
265 usb_config[1].interval = 50;/* 50 milliseconds */ in ugen_open_pipe_read()
266 usb_config[1].bufsize = sizeof(struct usb_device_request); in ugen_open_pipe_read()
267 usb_config[1].callback = &ugen_read_clear_stall_callback; in ugen_open_pipe_read()
268 usb_config[1].usb_mode = USB_MODE_HOST; in ugen_open_pipe_read()
270 usb_config[0].type = ed->bmAttributes & UE_XFERTYPE; in ugen_open_pipe_read()
271 usb_config[0].endpoint = ed->bEndpointAddress & UE_ADDR; in ugen_open_pipe_read()
272 usb_config[0].stream_id = 0; /* XXX support more stream ID's */ in ugen_open_pipe_read()
273 usb_config[0].direction = UE_DIR_RX; in ugen_open_pipe_read()
274 usb_config[0].interval = USB_DEFAULT_INTERVAL; in ugen_open_pipe_read()
275 usb_config[0].flags.proxy_buffer = 1; in ugen_open_pipe_read()
276 usb_config[0].usb_mode = USB_MODE_DUAL; /* both modes */ in ugen_open_pipe_read()
282 usb_config[0].flags.short_xfer_ok = 1; in ugen_open_pipe_read()
284 usb_config[0].timeout = f->timeout; in ugen_open_pipe_read()
285 usb_config[0].frames = 1; in ugen_open_pipe_read()
286 usb_config[0].callback = &ugen_ctrl_read_callback; in ugen_open_pipe_read()
287 usb_config[0].bufsize = f->bufsize; in ugen_open_pipe_read()
289 if (ugen_transfer_setup(f, usb_config, 2)) { in ugen_open_pipe_read()
297 usb_config[0].flags.short_xfer_ok = 1; in ugen_open_pipe_read()
298 usb_config[0].bufsize = 0; /* use default */ in ugen_open_pipe_read()
299 usb_config[0].frames = f->nframes; in ugen_open_pipe_read()
300 usb_config[0].callback = &ugen_isoc_read_callback; in ugen_open_pipe_read()
301 usb_config[0].timeout = 0; in ugen_open_pipe_read()
304 usb_config[1] = usb_config[0]; in ugen_open_pipe_read()
306 if (ugen_transfer_setup(f, usb_config, 2)) { in ugen_open_pipe_read()
1320 struct usb_config usb_config[1]; in ugen_ioctl() local
1460 (void)memset_s(usb_config, sizeof(usb_config), 0, sizeof(usb_config)); in ugen_ioctl()
1462 usb_config[0].type = ed->bmAttributes & UE_XFERTYPE; in ugen_ioctl()
1463 usb_config[0].endpoint = ed->bEndpointAddress & UE_ADDR; in ugen_ioctl()
1464 usb_config[0].direction = ed->bEndpointAddress & (UE_DIR_OUT | UE_DIR_IN); in ugen_ioctl()
1465 usb_config[0].interval = USB_DEFAULT_INTERVAL; in ugen_ioctl()
1466 usb_config[0].flags.proxy_buffer = 1; in ugen_ioctl()
1468 usb_config[0].flags.pre_scale_frames = 1; in ugen_ioctl()
1469 usb_config[0].callback = &ugen_ctrl_fs_callback; in ugen_ioctl()
1470 usb_config[0].timeout = 0; /* no timeout */ in ugen_ioctl()
1471 usb_config[0].frames = u.popen->max_frames; in ugen_ioctl()
1472 usb_config[0].bufsize = u.popen->max_bufsize; in ugen_ioctl()
1473 usb_config[0].usb_mode = USB_MODE_DUAL; /* both modes */ in ugen_ioctl()
1480 usb_config[0].stream_id = u.popen_stream->stream_id; in ugen_ioctl()
1483 if (usb_config[0].type == UE_CONTROL) { in ugen_ioctl()
1489 isread = ((usb_config[0].endpoint & in ugen_ioctl()
1509 f->fs_xfer + u.popen->ep_index, usb_config, 1, in ugen_ioctl()