Lines Matching refs:props

141 	if ((i = usb_allocate_stream_buffers(stream,stream->props.count,  in usb_bulk_urb_init()
142 stream->props.u.bulk.buffersize)) < 0) in usb_bulk_urb_init()
146 for (i = 0; i < stream->props.count; i++) { in usb_bulk_urb_init()
155 usb_rcvbulkpipe(stream->udev,stream->props.endpoint), in usb_bulk_urb_init()
157 stream->props.u.bulk.buffersize, in usb_bulk_urb_init()
171 if ((i = usb_allocate_stream_buffers(stream,stream->props.count, in usb_isoc_urb_init()
172 stream->props.u.isoc.framesize*stream->props.u.isoc.framesperurb)) < 0) in usb_isoc_urb_init()
176 for (i = 0; i < stream->props.count; i++) { in usb_isoc_urb_init()
180 stream->urb_list[i] = usb_alloc_urb(stream->props.u.isoc.framesperurb, GFP_ATOMIC); in usb_isoc_urb_init()
193 urb->pipe = usb_rcvisocpipe(stream->udev,stream->props.endpoint); in usb_isoc_urb_init()
195 urb->interval = stream->props.u.isoc.interval; in usb_isoc_urb_init()
196 urb->number_of_packets = stream->props.u.isoc.framesperurb; in usb_isoc_urb_init()
201 for (j = 0; j < stream->props.u.isoc.framesperurb; j++) { in usb_isoc_urb_init()
203 urb->iso_frame_desc[j].length = stream->props.u.isoc.framesize; in usb_isoc_urb_init()
204 frame_offset += stream->props.u.isoc.framesize; in usb_isoc_urb_init()
212 int usb_urb_init(struct usb_data_stream *stream, struct usb_data_stream_properties *props) in usb_urb_init() argument
214 if (stream == NULL || props == NULL) in usb_urb_init()
217 memcpy(&stream->props, props, sizeof(*props)); in usb_urb_init()
219 usb_clear_halt(stream->udev,usb_rcvbulkpipe(stream->udev,stream->props.endpoint)); in usb_urb_init()
226 switch (stream->props.type) { in usb_urb_init()