Lines Matching refs:props

16 		struct usb_data_stream_properties *props);
91 struct usb_data_stream_properties *props) in usb_urb_submitv2() argument
95 if (props) { in usb_urb_submitv2()
96 ret = usb_urb_reconfig(stream, props); in usb_urb_submitv2()
140 for (i = 0; i < stream->props.count; i++) { in usb_urb_alloc_bulk_urbs()
152 stream->props.endpoint), in usb_urb_alloc_bulk_urbs()
154 stream->props.u.bulk.buffersize, in usb_urb_alloc_bulk_urbs()
169 for (i = 0; i < stream->props.count; i++) { in usb_urb_alloc_isoc_urbs()
174 stream->props.u.isoc.framesperurb, GFP_ATOMIC); in usb_urb_alloc_isoc_urbs()
188 stream->props.endpoint); in usb_urb_alloc_isoc_urbs()
190 urb->interval = stream->props.u.isoc.interval; in usb_urb_alloc_isoc_urbs()
191 urb->number_of_packets = stream->props.u.isoc.framesperurb; in usb_urb_alloc_isoc_urbs()
192 urb->transfer_buffer_length = stream->props.u.isoc.framesize * in usb_urb_alloc_isoc_urbs()
193 stream->props.u.isoc.framesperurb; in usb_urb_alloc_isoc_urbs()
197 for (j = 0; j < stream->props.u.isoc.framesperurb; j++) { in usb_urb_alloc_isoc_urbs()
200 stream->props.u.isoc.framesize; in usb_urb_alloc_isoc_urbs()
201 frame_offset += stream->props.u.isoc.framesize; in usb_urb_alloc_isoc_urbs()
260 struct usb_data_stream_properties *props) in usb_urb_reconfig() argument
264 if (!props) in usb_urb_reconfig()
268 if (props->type == USB_BULK) { in usb_urb_reconfig()
269 buf_size = stream->props.u.bulk.buffersize; in usb_urb_reconfig()
270 } else if (props->type == USB_ISOC) { in usb_urb_reconfig()
271 buf_size = props->u.isoc.framesize * props->u.isoc.framesperurb; in usb_urb_reconfig()
274 KBUILD_MODNAME, props->type); in usb_urb_reconfig()
278 if (stream->buf_num < props->count || stream->buf_size < buf_size) { in usb_urb_reconfig()
286 if (stream->props.type == props->type && in usb_urb_reconfig()
287 stream->props.count == props->count && in usb_urb_reconfig()
288 stream->props.endpoint == props->endpoint) { in usb_urb_reconfig()
289 if (props->type == USB_BULK && in usb_urb_reconfig()
290 props->u.bulk.buffersize == in usb_urb_reconfig()
291 stream->props.u.bulk.buffersize) in usb_urb_reconfig()
293 else if (props->type == USB_ISOC && in usb_urb_reconfig()
294 props->u.isoc.framesperurb == in usb_urb_reconfig()
295 stream->props.u.isoc.framesperurb && in usb_urb_reconfig()
296 props->u.isoc.framesize == in usb_urb_reconfig()
297 stream->props.u.isoc.framesize && in usb_urb_reconfig()
298 props->u.isoc.interval == in usb_urb_reconfig()
299 stream->props.u.isoc.interval) in usb_urb_reconfig()
306 memcpy(&stream->props, props, sizeof(*props)); in usb_urb_reconfig()
307 if (props->type == USB_BULK) in usb_urb_reconfig()
309 else if (props->type == USB_ISOC) in usb_urb_reconfig()
316 const struct usb_data_stream_properties *props) in usb_urb_initv2() argument
320 if (!stream || !props) in usb_urb_initv2()
323 memcpy(&stream->props, props, sizeof(*props)); in usb_urb_initv2()
332 switch (stream->props.type) { in usb_urb_initv2()
334 ret = usb_alloc_stream_buffers(stream, stream->props.count, in usb_urb_initv2()
335 stream->props.u.bulk.buffersize); in usb_urb_initv2()
341 ret = usb_alloc_stream_buffers(stream, stream->props.count, in usb_urb_initv2()
342 stream->props.u.isoc.framesize * in usb_urb_initv2()
343 stream->props.u.isoc.framesperurb); in usb_urb_initv2()