Lines Matching refs:props
142 if ((i = usb_allocate_stream_buffers(stream,stream->props.count,
143 stream->props.u.bulk.buffersize)) < 0)
147 for (i = 0; i < stream->props.count; i++) {
156 usb_rcvbulkpipe(stream->udev,stream->props.endpoint),
158 stream->props.u.bulk.buffersize,
172 if ((i = usb_allocate_stream_buffers(stream,stream->props.count,
173 stream->props.u.isoc.framesize*stream->props.u.isoc.framesperurb)) < 0)
177 for (i = 0; i < stream->props.count; i++) {
181 stream->urb_list[i] = usb_alloc_urb(stream->props.u.isoc.framesperurb, GFP_KERNEL);
194 urb->pipe = usb_rcvisocpipe(stream->udev,stream->props.endpoint);
196 urb->interval = stream->props.u.isoc.interval;
197 urb->number_of_packets = stream->props.u.isoc.framesperurb;
202 for (j = 0; j < stream->props.u.isoc.framesperurb; j++) {
204 urb->iso_frame_desc[j].length = stream->props.u.isoc.framesize;
205 frame_offset += stream->props.u.isoc.framesize;
213 int usb_urb_init(struct usb_data_stream *stream, struct usb_data_stream_properties *props)
215 if (stream == NULL || props == NULL)
218 memcpy(&stream->props, props, sizeof(*props));
220 usb_clear_halt(stream->udev,usb_rcvbulkpipe(stream->udev,stream->props.endpoint));
227 switch (stream->props.type) {