Lines Matching +full:non +full:- +full:empty

1 /* SPDX-License-Identifier: GPL-2.0 */
17 #include <media/media-device.h>
18 #include <media/v4l2-device.h>
19 #include <media/v4l2-event.h>
20 #include <media/v4l2-fh.h>
21 #include <media/videobuf2-v4l2.h>
23 /* --------------------------------------------------------------------------
29 #define UVC_TERM_DIRECTION(term) ((term)->type & 0x8000)
31 #define UVC_ENTITY_TYPE(entity) ((entity)->type & 0x7fff)
32 #define UVC_ENTITY_IS_UNIT(entity) (((entity)->type & 0xff00) == 0)
33 #define UVC_ENTITY_IS_TERM(entity) (((entity)->type & 0xff00) != 0)
36 ((entity)->type & 0x8000) == UVC_TERM_INPUT)
39 ((entity)->type & 0x8000) == UVC_TERM_OUTPUT)
44 /* ------------------------------------------------------------------------
82 /* ------------------------------------------------------------------------
155 * specification have a non-null MSB, so it is safe to use the MSB to
157 * code makes sure terminal types have a non-null MSB.
172 * Entities exposed by the UVC device use IDs 0-255, extra entities
181 /* Media controller-related fields. */
337 u32 caps; /* V4L2 chain-wide caps */
343 unsigned int first_data; /* Index of the first non-empty packet */
346 unsigned int nb_empty; /* Number of empty packets */
353 bool has_initial_pts; /* Whether the first non-empty packet has a PTS */
354 bool has_early_pts; /* Whether a PTS is present before the first non-empty packet */
370 unsigned int nb_empty; /* Number of empty packets */
378 unsigned int nb_scr_count_ok; /* Number of frames with at least one SCR per non empty packet */
404 * struct uvc_urb - URB context management structure
514 for ((uvc_urb) = &(uvc_streaming)->uvc_urb[0]; \
515 (uvc_urb) < &(uvc_streaming)->uvc_urb[UVC_URBS]; \
520 return uvc_urb - &uvc_urb->stream->uvc_urb[0]; in uvc_urb_index()
593 /* ------------------------------------------------------------------------
623 dev_printk(KERN_DEBUG, &(_dev)->udev->dev, fmt, \
635 if (!test_and_set_bit(warn, &(_dev)->warnings)) \
636 dev_info(&(_dev)->udev->dev, fmt, ##__VA_ARGS__); \
639 /* --------------------------------------------------------------------------
683 return vb2_is_streaming(&queue->queue); in uvc_queue_streaming()