Lines Matching full:bulk
1003 * uvc_video_decode_start is called with URB data at the start of a bulk or
1021 * uvc_video_decode_end is called with header data at the end of a bulk or
1206 * uvc_video_encode_data(). Only bulk transfers are currently supported.
1235 nbytes = min(stream->bulk.max_payload_size - stream->bulk.payload_size, in uvc_video_encode_data()
1421 if (urb->actual_length == 0 && stream->bulk.header_size == 0) in uvc_video_decode_bulk()
1426 stream->bulk.payload_size += len; in uvc_video_decode_bulk()
1431 if (stream->bulk.header_size == 0 && !stream->bulk.skip_payload) { in uvc_video_decode_bulk()
1440 stream->bulk.skip_payload = 1; in uvc_video_decode_bulk()
1442 memcpy(stream->bulk.header, mem, ret); in uvc_video_decode_bulk()
1443 stream->bulk.header_size = ret; in uvc_video_decode_bulk()
1452 /* The buffer queue might have been cancelled while a bulk transfer in uvc_video_decode_bulk()
1458 if (!stream->bulk.skip_payload && buf != NULL) in uvc_video_decode_bulk()
1465 stream->bulk.payload_size >= stream->bulk.max_payload_size) { in uvc_video_decode_bulk()
1466 if (!stream->bulk.skip_payload && buf != NULL) { in uvc_video_decode_bulk()
1467 uvc_video_decode_end(stream, buf, stream->bulk.header, in uvc_video_decode_bulk()
1468 stream->bulk.payload_size); in uvc_video_decode_bulk()
1473 stream->bulk.header_size = 0; in uvc_video_decode_bulk()
1474 stream->bulk.skip_payload = 0; in uvc_video_decode_bulk()
1475 stream->bulk.payload_size = 0; in uvc_video_decode_bulk()
1494 if (stream->bulk.header_size == 0) { in uvc_video_encode_bulk()
1496 stream->bulk.header_size = ret; in uvc_video_encode_bulk()
1497 stream->bulk.payload_size += ret; in uvc_video_encode_bulk()
1505 stream->bulk.payload_size += ret; in uvc_video_encode_bulk()
1509 stream->bulk.payload_size == stream->bulk.max_payload_size) { in uvc_video_encode_bulk()
1518 stream->bulk.header_size = 0; in uvc_video_encode_bulk()
1519 stream->bulk.payload_size = 0; in uvc_video_encode_bulk()
1617 * Limit the buffer size to UVC_MAX_PACKETS bulk/isochronous packets. If the
1633 /* Compute the number of packets. Bulk endpoints might transfer UVC in uvc_alloc_urb_buffers()
1676 * Uninitialize isochronous/bulk URBs and free transfer buffers.
1787 * Initialize bulk URBs and allocate transfer buffers. The packet size is
1801 stream->bulk.max_payload_size = size; in uvc_init_video_bulk()
1840 * Initialize isochronous/bulk URBs and allocate transfer buffers.
1853 stream->bulk.header_size = 0; in uvc_video_start_transfer()
1854 stream->bulk.skip_payload = 0; in uvc_video_start_transfer()
1855 stream->bulk.payload_size = 0; in uvc_video_start_transfer()
1912 /* Bulk endpoint, proceed to URB initialization. */ in uvc_video_start_transfer()
2150 /* UVC doesn't specify how to inform a bulk-based device in uvc_video_stop_streaming()
2153 * bulk endpoint, mimic the same behaviour. in uvc_video_stop_streaming()