Lines Matching refs:props
17 struct usb_data_stream_properties *props);
92 struct usb_data_stream_properties *props) in usb_urb_submitv2() argument
96 if (props) { in usb_urb_submitv2()
97 ret = usb_urb_reconfig(stream, props); in usb_urb_submitv2()
141 for (i = 0; i < stream->props.count; i++) { in usb_urb_alloc_bulk_urbs()
153 stream->props.endpoint), in usb_urb_alloc_bulk_urbs()
155 stream->props.u.bulk.buffersize, in usb_urb_alloc_bulk_urbs()
168 for (i = 0; i < stream->props.count; i++) { in usb_urb_alloc_isoc_urbs()
173 stream->props.u.isoc.framesperurb, GFP_ATOMIC); in usb_urb_alloc_isoc_urbs()
187 stream->props.endpoint); in usb_urb_alloc_isoc_urbs()
189 urb->interval = stream->props.u.isoc.interval; in usb_urb_alloc_isoc_urbs()
190 urb->number_of_packets = stream->props.u.isoc.framesperurb; in usb_urb_alloc_isoc_urbs()
191 urb->transfer_buffer_length = stream->props.u.isoc.framesize * in usb_urb_alloc_isoc_urbs()
192 stream->props.u.isoc.framesperurb; in usb_urb_alloc_isoc_urbs()
195 for (j = 0; j < stream->props.u.isoc.framesperurb; j++) { in usb_urb_alloc_isoc_urbs()
198 stream->props.u.isoc.framesize; in usb_urb_alloc_isoc_urbs()
199 frame_offset += stream->props.u.isoc.framesize; in usb_urb_alloc_isoc_urbs()
251 struct usb_data_stream_properties *props) in usb_urb_reconfig() argument
255 if (!props) in usb_urb_reconfig()
259 if (props->type == USB_BULK) { in usb_urb_reconfig()
260 buf_size = stream->props.u.bulk.buffersize; in usb_urb_reconfig()
261 } else if (props->type == USB_ISOC) { in usb_urb_reconfig()
262 buf_size = props->u.isoc.framesize * props->u.isoc.framesperurb; in usb_urb_reconfig()
265 KBUILD_MODNAME, props->type); in usb_urb_reconfig()
269 if (stream->buf_num < props->count || stream->buf_size < buf_size) { in usb_urb_reconfig()
277 if (stream->props.type == props->type && in usb_urb_reconfig()
278 stream->props.count == props->count && in usb_urb_reconfig()
279 stream->props.endpoint == props->endpoint) { in usb_urb_reconfig()
280 if (props->type == USB_BULK && in usb_urb_reconfig()
281 props->u.bulk.buffersize == in usb_urb_reconfig()
282 stream->props.u.bulk.buffersize) in usb_urb_reconfig()
284 else if (props->type == USB_ISOC && in usb_urb_reconfig()
285 props->u.isoc.framesperurb == in usb_urb_reconfig()
286 stream->props.u.isoc.framesperurb && in usb_urb_reconfig()
287 props->u.isoc.framesize == in usb_urb_reconfig()
288 stream->props.u.isoc.framesize && in usb_urb_reconfig()
289 props->u.isoc.interval == in usb_urb_reconfig()
290 stream->props.u.isoc.interval) in usb_urb_reconfig()
297 memcpy(&stream->props, props, sizeof(*props)); in usb_urb_reconfig()
298 if (props->type == USB_BULK) in usb_urb_reconfig()
300 else if (props->type == USB_ISOC) in usb_urb_reconfig()
307 const struct usb_data_stream_properties *props) in usb_urb_initv2() argument
311 if (!stream || !props) in usb_urb_initv2()
314 memcpy(&stream->props, props, sizeof(*props)); in usb_urb_initv2()
323 switch (stream->props.type) { in usb_urb_initv2()
325 ret = usb_alloc_stream_buffers(stream, stream->props.count, in usb_urb_initv2()
326 stream->props.u.bulk.buffersize); in usb_urb_initv2()
332 ret = usb_alloc_stream_buffers(stream, stream->props.count, in usb_urb_initv2()
333 stream->props.u.isoc.framesize * in usb_urb_initv2()
334 stream->props.u.isoc.framesperurb); in usb_urb_initv2()