Lines Matching full:bulk

1084  * uvc_video_decode_start is called with URB data at the start of a bulk or
1102 * uvc_video_decode_end is called with header data at the end of a bulk or
1317 * uvc_video_encode_data(). Only bulk transfers are currently supported.
1346 nbytes = min(stream->bulk.max_payload_size - stream->bulk.payload_size, in uvc_video_encode_data()
1535 if (urb->actual_length == 0 && stream->bulk.header_size == 0) in uvc_video_decode_bulk()
1540 stream->bulk.payload_size += len; in uvc_video_decode_bulk()
1546 if (stream->bulk.header_size == 0 && !stream->bulk.skip_payload) { in uvc_video_decode_bulk()
1555 stream->bulk.skip_payload = 1; in uvc_video_decode_bulk()
1557 memcpy(stream->bulk.header, mem, ret); in uvc_video_decode_bulk()
1558 stream->bulk.header_size = ret; in uvc_video_decode_bulk()
1568 * The buffer queue might have been cancelled while a bulk transfer in uvc_video_decode_bulk()
1574 if (!stream->bulk.skip_payload && buf != NULL) in uvc_video_decode_bulk()
1582 stream->bulk.payload_size >= stream->bulk.max_payload_size) { in uvc_video_decode_bulk()
1583 if (!stream->bulk.skip_payload && buf != NULL) { in uvc_video_decode_bulk()
1584 uvc_video_decode_end(stream, buf, stream->bulk.header, in uvc_video_decode_bulk()
1585 stream->bulk.payload_size); in uvc_video_decode_bulk()
1590 stream->bulk.header_size = 0; in uvc_video_decode_bulk()
1591 stream->bulk.skip_payload = 0; in uvc_video_decode_bulk()
1592 stream->bulk.payload_size = 0; in uvc_video_decode_bulk()
1611 if (stream->bulk.header_size == 0) { in uvc_video_encode_bulk()
1613 stream->bulk.header_size = ret; in uvc_video_encode_bulk()
1614 stream->bulk.payload_size += ret; in uvc_video_encode_bulk()
1622 stream->bulk.payload_size += ret; in uvc_video_encode_bulk()
1626 stream->bulk.payload_size == stream->bulk.max_payload_size) { in uvc_video_encode_bulk()
1635 stream->bulk.header_size = 0; in uvc_video_encode_bulk()
1636 stream->bulk.payload_size = 0; in uvc_video_encode_bulk()
1765 * Limit the buffer size to UVC_MAX_PACKETS bulk/isochronous packets. If the
1782 * Compute the number of packets. Bulk endpoints might transfer UVC in uvc_alloc_urb_buffers()
1819 * Uninitialize isochronous/bulk URBs and free transfer buffers.
1918 * Initialize bulk URBs and allocate transfer buffers. The packet size is
1932 stream->bulk.max_payload_size = size; in uvc_init_video_bulk()
1969 * Initialize isochronous/bulk URBs and allocate transfer buffers.
1982 stream->bulk.header_size = 0; in uvc_video_start_transfer()
1983 stream->bulk.skip_payload = 0; in uvc_video_start_transfer()
1984 stream->bulk.payload_size = 0; in uvc_video_start_transfer()
2054 /* Bulk endpoint, proceed to URB initialization. */ in uvc_video_start_transfer()
2317 * UVC doesn't specify how to inform a bulk-based device in uvc_video_stop_streaming()
2320 * bulk endpoint, mimic the same behaviour. in uvc_video_stop_streaming()