• Home
  • Raw
  • Download

Lines Matching refs:usb_config

58 		     const struct usb_config *, uint8_t);
90 const struct usb_config *setup, uint8_t n_setup) in ugen_transfer_setup()
183 struct usb_config usb_config[2]; in ugen_open_pipe_write() local
193 (void)memset_s(usb_config, sizeof(usb_config), 0, sizeof(usb_config)); in ugen_open_pipe_write()
195 usb_config[1].type = UE_CONTROL; in ugen_open_pipe_write()
196 usb_config[1].endpoint = 0; in ugen_open_pipe_write()
197 usb_config[1].direction = UE_DIR_ANY; in ugen_open_pipe_write()
198 usb_config[1].timeout = 1000; /* 1 second */ in ugen_open_pipe_write()
199 usb_config[1].interval = 50;/* 50 milliseconds */ in ugen_open_pipe_write()
200 usb_config[1].bufsize = sizeof(struct usb_device_request); in ugen_open_pipe_write()
201 usb_config[1].callback = &ugen_write_clear_stall_callback; in ugen_open_pipe_write()
202 usb_config[1].usb_mode = USB_MODE_HOST; in ugen_open_pipe_write()
204 usb_config[0].type = ed->bmAttributes & UE_XFERTYPE; in ugen_open_pipe_write()
205 usb_config[0].endpoint = ed->bEndpointAddress & UE_ADDR; in ugen_open_pipe_write()
206 usb_config[0].stream_id = 0; /* XXX support more stream ID's */ in ugen_open_pipe_write()
207 usb_config[0].direction = UE_DIR_TX; in ugen_open_pipe_write()
208 usb_config[0].interval = USB_DEFAULT_INTERVAL; in ugen_open_pipe_write()
209 usb_config[0].flags.proxy_buffer = 1; in ugen_open_pipe_write()
210 usb_config[0].usb_mode = USB_MODE_DUAL; /* both modes */ in ugen_open_pipe_write()
216 usb_config[0].flags.force_short_xfer = 1; in ugen_open_pipe_write()
218 usb_config[0].callback = &ugen_ctrl_write_callback; in ugen_open_pipe_write()
219 usb_config[0].timeout = f->timeout; in ugen_open_pipe_write()
220 usb_config[0].frames = 1; in ugen_open_pipe_write()
221 usb_config[0].bufsize = f->bufsize; in ugen_open_pipe_write()
222 if (ugen_transfer_setup(f, usb_config, 2)) { in ugen_open_pipe_write()
230 usb_config[0].flags.short_xfer_ok = 1; in ugen_open_pipe_write()
231 usb_config[0].bufsize = 0; /* use default */ in ugen_open_pipe_write()
232 usb_config[0].frames = f->nframes; in ugen_open_pipe_write()
233 usb_config[0].callback = &ugen_isoc_write_callback; in ugen_open_pipe_write()
234 usb_config[0].timeout = 0; in ugen_open_pipe_write()
237 usb_config[1] = usb_config[0]; in ugen_open_pipe_write()
239 if (ugen_transfer_setup(f, usb_config, 2)) { in ugen_open_pipe_write()
252 struct usb_config usb_config[2]; in ugen_open_pipe_read() local
262 (void)memset_s(usb_config, sizeof(usb_config), 0, sizeof(usb_config)); in ugen_open_pipe_read()
264 usb_config[1].type = UE_CONTROL; in ugen_open_pipe_read()
265 usb_config[1].endpoint = 0; in ugen_open_pipe_read()
266 usb_config[1].direction = UE_DIR_ANY; in ugen_open_pipe_read()
267 usb_config[1].timeout = 1000; /* 1 second */ in ugen_open_pipe_read()
268 usb_config[1].interval = 50;/* 50 milliseconds */ in ugen_open_pipe_read()
269 usb_config[1].bufsize = sizeof(struct usb_device_request); in ugen_open_pipe_read()
270 usb_config[1].callback = &ugen_read_clear_stall_callback; in ugen_open_pipe_read()
271 usb_config[1].usb_mode = USB_MODE_HOST; in ugen_open_pipe_read()
273 usb_config[0].type = ed->bmAttributes & UE_XFERTYPE; in ugen_open_pipe_read()
274 usb_config[0].endpoint = ed->bEndpointAddress & UE_ADDR; in ugen_open_pipe_read()
275 usb_config[0].stream_id = 0; /* XXX support more stream ID's */ in ugen_open_pipe_read()
276 usb_config[0].direction = UE_DIR_RX; in ugen_open_pipe_read()
277 usb_config[0].interval = USB_DEFAULT_INTERVAL; in ugen_open_pipe_read()
278 usb_config[0].flags.proxy_buffer = 1; in ugen_open_pipe_read()
279 usb_config[0].usb_mode = USB_MODE_DUAL; /* both modes */ in ugen_open_pipe_read()
285 usb_config[0].flags.short_xfer_ok = 1; in ugen_open_pipe_read()
287 usb_config[0].timeout = f->timeout; in ugen_open_pipe_read()
288 usb_config[0].frames = 1; in ugen_open_pipe_read()
289 usb_config[0].callback = &ugen_ctrl_read_callback; in ugen_open_pipe_read()
290 usb_config[0].bufsize = f->bufsize; in ugen_open_pipe_read()
292 if (ugen_transfer_setup(f, usb_config, 2)) { in ugen_open_pipe_read()
300 usb_config[0].flags.short_xfer_ok = 1; in ugen_open_pipe_read()
301 usb_config[0].bufsize = 0; /* use default */ in ugen_open_pipe_read()
302 usb_config[0].frames = f->nframes; in ugen_open_pipe_read()
303 usb_config[0].callback = &ugen_isoc_read_callback; in ugen_open_pipe_read()
304 usb_config[0].timeout = 0; in ugen_open_pipe_read()
307 usb_config[1] = usb_config[0]; in ugen_open_pipe_read()
309 if (ugen_transfer_setup(f, usb_config, 2)) { in ugen_open_pipe_read()
1380 struct usb_config usb_config[1]; in ugen_ioctl() local
1520 (void)memset_s(usb_config, sizeof(usb_config), 0, sizeof(usb_config)); in ugen_ioctl()
1522 usb_config[0].type = ed->bmAttributes & UE_XFERTYPE; in ugen_ioctl()
1523 usb_config[0].endpoint = ed->bEndpointAddress & UE_ADDR; in ugen_ioctl()
1524 usb_config[0].direction = ed->bEndpointAddress & (UE_DIR_OUT | UE_DIR_IN); in ugen_ioctl()
1525 usb_config[0].interval = USB_DEFAULT_INTERVAL; in ugen_ioctl()
1526 usb_config[0].flags.proxy_buffer = 1; in ugen_ioctl()
1528 usb_config[0].flags.pre_scale_frames = 1; in ugen_ioctl()
1529 usb_config[0].callback = &ugen_ctrl_fs_callback; in ugen_ioctl()
1530 usb_config[0].timeout = 0; /* no timeout */ in ugen_ioctl()
1531 usb_config[0].frames = u.popen->max_frames; in ugen_ioctl()
1532 usb_config[0].bufsize = u.popen->max_bufsize; in ugen_ioctl()
1533 usb_config[0].usb_mode = USB_MODE_DUAL; /* both modes */ in ugen_ioctl()
1540 usb_config[0].stream_id = u.popen_stream->stream_id; in ugen_ioctl()
1543 if (usb_config[0].type == UE_CONTROL) { in ugen_ioctl()
1550 isread = ((usb_config[0].endpoint & in ugen_ioctl()
1570 f->fs_xfer + u.popen->ep_index, usb_config, 1, in ugen_ioctl()