• Home
  • Raw
  • Download

Lines Matching refs:props

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