color_match
if (!color_match(comp->color, cq->done_color))
if (!color_match(comp->color, cq->done_color))
if (!color_match(comp->pkt_type_color, cq->done_color))
struct uvcg_color_matching *color_match;
color_match = to_uvcg_color_matching(to_config_group(cm_default));
return color_match;
struct uvcg_color_matching *color_match;
color_match = uvcg_format_get_default_color_match(streaming);
if (!color_match)
h->fmt.color_matching = color_match;
color_match->refcnt++;
struct uvcg_color_matching *color_match;
color_match = uvcg_format_get_default_color_match(streaming);
if (!color_match)
h->fmt.color_matching = color_match;
color_match->refcnt++;
struct uvcg_color_matching *color_match;
color_match = uvcg_format_get_default_color_match(streaming);
if (!color_match)
h->fmt.color_matching = color_match;
color_match->refcnt++;
struct uvcg_color_matching *color_match = \
le##bits##_to_cpu(color_match->desc.aname)); \
struct uvcg_color_matching *color_match = \
if (color_match->refcnt) { \
color_match->desc.aname = num; \
struct uvcg_color_matching *color_match =
kfree(color_match);
struct uvcg_color_matching *color_match;
color_match = kzalloc_obj(*color_match);
if (!color_match)
color_match->desc.bLength = UVC_DT_COLOR_MATCHING_SIZE;
color_match->desc.bDescriptorType = USB_DT_CS_INTERFACE;
color_match->desc.bDescriptorSubType = UVC_VS_COLORFORMAT;
config_group_init_type_name(&color_match->group, name,
return &color_match->group;
struct uvcg_color_matching *color_match;
color_match = kzalloc_obj(*color_match);
if (!color_match)
color_match->desc.bLength = UVC_DT_COLOR_MATCHING_SIZE;
color_match->desc.bDescriptorType = USB_DT_CS_INTERFACE;
color_match->desc.bDescriptorSubType = UVC_VS_COLORFORMAT;
color_match->desc.bColorPrimaries = UVC_COLOR_PRIMARIES_BT_709_SRGB;
color_match->desc.bTransferCharacteristics = UVC_TRANSFER_CHARACTERISTICS_BT_709;
color_match->desc.bMatrixCoefficients = UVC_MATRIX_COEFFICIENTS_SMPTE_170M;
config_group_init_type_name(&color_match->group, "default",
configfs_add_default_group(&color_match->group, parent);
struct uvcg_color_matching *color_match = priv1;
*size += sizeof(color_match->desc);
struct uvcg_color_matching *color_match = priv1;
memcpy(*dest, &color_match->desc, sizeof(color_match->desc));
*dest += sizeof(color_match->desc);