Lines Matching refs:props

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