Lines Matching refs:desc

202 	result = sprintf(page, "%u\n", le##bits##_to_cpu(ch->desc.aname));\
239 ch->desc.aname = cpu_to_le##bits(num); \
276 h->desc.bLength = UVC_DT_HEADER_SIZE(1); in uvcg_control_header_make()
277 h->desc.bDescriptorType = USB_DT_CS_INTERFACE; in uvcg_control_header_make()
278 h->desc.bDescriptorSubType = UVC_VC_HEADER; in uvcg_control_header_make()
279 h->desc.bcdUVC = cpu_to_le16(0x0110); in uvcg_control_header_make()
280 h->desc.dwClockFrequency = cpu_to_le32(48000000); in uvcg_control_header_make()
804 ret = sprintf(page, "%u\n", xu->desc.aname); \
838 xu->desc.bNumControls = num; in uvcg_extension_b_num_controls_store()
874 if (num == xu->desc.bNrInPins) { in uvcg_extension_b_nr_in_pins_store()
879 tmp_buf = krealloc_array(xu->desc.baSourceID, num, sizeof(u8), in uvcg_extension_b_nr_in_pins_store()
886 xu->desc.baSourceID = tmp_buf; in uvcg_extension_b_nr_in_pins_store()
887 xu->desc.bNrInPins = num; in uvcg_extension_b_nr_in_pins_store()
888 xu->desc.bLength = UVC_DT_EXTENSION_UNIT_SIZE(xu->desc.bNrInPins, in uvcg_extension_b_nr_in_pins_store()
889 xu->desc.bControlSize); in uvcg_extension_b_nr_in_pins_store()
927 if (num == xu->desc.bControlSize) { in uvcg_extension_b_control_size_store()
932 tmp_buf = krealloc_array(xu->desc.bmControls, num, sizeof(u8), in uvcg_extension_b_control_size_store()
939 xu->desc.bmControls = tmp_buf; in uvcg_extension_b_control_size_store()
940 xu->desc.bControlSize = num; in uvcg_extension_b_control_size_store()
941 xu->desc.bLength = UVC_DT_EXTENSION_UNIT_SIZE(xu->desc.bNrInPins, in uvcg_extension_b_control_size_store()
942 xu->desc.bControlSize); in uvcg_extension_b_control_size_store()
969 memcpy(page, xu->desc.guidExtensionCode, sizeof(xu->desc.guidExtensionCode)); in uvcg_extension_guid_extension_code_show()
974 return sizeof(xu->desc.guidExtensionCode); in uvcg_extension_guid_extension_code_show()
993 memcpy(xu->desc.guidExtensionCode, page, in uvcg_extension_guid_extension_code_store()
994 min(sizeof(xu->desc.guidExtensionCode), len)); in uvcg_extension_guid_extension_code_store()
999 ret = sizeof(xu->desc.guidExtensionCode); in uvcg_extension_guid_extension_code_store()
1023 for (ret = 0, i = 0; i < xu->desc.bNrInPins; ++i) { in uvcg_extension_ba_source_id_show()
1024 ret += sprintf(pg, "%u\n", xu->desc.baSourceID[i]); in uvcg_extension_ba_source_id_show()
1070 kfree(xu->desc.baSourceID); in uvcg_extension_ba_source_id_store()
1071 xu->desc.baSourceID = source_ids; in uvcg_extension_ba_source_id_store()
1072 xu->desc.bNrInPins = n; in uvcg_extension_ba_source_id_store()
1073 xu->desc.bLength = UVC_DT_EXTENSION_UNIT_SIZE(xu->desc.bNrInPins, in uvcg_extension_ba_source_id_store()
1074 xu->desc.bControlSize); in uvcg_extension_ba_source_id_store()
1102 for (ret = 0, i = 0; i < xu->desc.bControlSize; ++i) { in uvcg_extension_bm_controls_show()
1103 ret += sprintf(pg, "0x%02x\n", xu->desc.bmControls[i]); in uvcg_extension_bm_controls_show()
1149 kfree(xu->desc.bmControls); in uvcg_extension_bm_controls_store()
1150 xu->desc.bmControls = bm_controls; in uvcg_extension_bm_controls_store()
1151 xu->desc.bControlSize = n; in uvcg_extension_bm_controls_store()
1152 xu->desc.bLength = UVC_DT_EXTENSION_UNIT_SIZE(xu->desc.bNrInPins, in uvcg_extension_bm_controls_store()
1153 xu->desc.bControlSize); in uvcg_extension_bm_controls_store()
1260 kfree(xu->desc.baSourceID); in uvcg_extension_drop()
1261 kfree(xu->desc.bmControls); in uvcg_extension_drop()
1279 xu->desc.bLength = UVC_DT_EXTENSION_UNIT_SIZE(0, 0); in uvcg_extension_make()
1280 xu->desc.bDescriptorType = USB_DT_CS_INTERFACE; in uvcg_extension_make()
1281 xu->desc.bDescriptorSubType = UVC_VC_EXTENSION_UNIT; in uvcg_extension_make()
1282 xu->desc.bNumControls = 0; in uvcg_extension_make()
1283 xu->desc.bNrInPins = 0; in uvcg_extension_make()
1284 xu->desc.baSourceID = NULL; in uvcg_extension_make()
1285 xu->desc.bControlSize = 0; in uvcg_extension_make()
1286 xu->desc.bmControls = NULL; in uvcg_extension_make()
1290 xu->desc.bUnitID = ++opts->last_unit_id; in uvcg_extension_make()
1370 class_array[0] = (struct uvc_descriptor_header *)&target_hdr->desc; in uvcg_control_class_allow_link()
1855 result = sprintf(page, "%u\n", le##bits##_to_cpu(sh->desc.aname));\
1897 h->desc.bDescriptorType = USB_DT_CS_INTERFACE; in uvcg_streaming_header_make()
1898 h->desc.bDescriptorSubType = UVC_VS_INPUT_HEADER; in uvcg_streaming_header_make()
1899 h->desc.bTerminalLink = 3; in uvcg_streaming_header_make()
1900 h->desc.bControlSize = UVCG_STREAMING_CONTROL_SIZE; in uvcg_streaming_header_make()
2249 memcpy(page, ch->desc.guidFormat, sizeof(ch->desc.guidFormat)); in uvcg_uncompressed_guid_format_show()
2254 return sizeof(ch->desc.guidFormat); in uvcg_uncompressed_guid_format_show()
2265 u8 tmpguidFormat[sizeof(ch->desc.guidFormat)]; in uvcg_uncompressed_guid_format_store()
2288 memcpy(ch->desc.guidFormat, tmpguidFormat, in uvcg_uncompressed_guid_format_store()
2289 min(sizeof(ch->desc.guidFormat), len)); in uvcg_uncompressed_guid_format_store()
2290 ret = sizeof(ch->desc.guidFormat); in uvcg_uncompressed_guid_format_store()
2316 result = sprintf(page, "%u\n", le##bits##_to_cpu(u->desc.aname));\
2341 result = sprintf(page, "%u\n", le##bits##_to_cpu(u->desc.aname));\
2380 u->desc.aname = num; \
2456 h->desc.bLength = UVC_DT_FORMAT_UNCOMPRESSED_SIZE; in uvcg_uncompressed_make()
2457 h->desc.bDescriptorType = USB_DT_CS_INTERFACE; in uvcg_uncompressed_make()
2458 h->desc.bDescriptorSubType = UVC_VS_FORMAT_UNCOMPRESSED; in uvcg_uncompressed_make()
2459 memcpy(h->desc.guidFormat, guid, sizeof(guid)); in uvcg_uncompressed_make()
2460 h->desc.bBitsPerPixel = 16; in uvcg_uncompressed_make()
2461 h->desc.bDefaultFrameIndex = 1; in uvcg_uncompressed_make()
2462 h->desc.bAspectRatioX = 0; in uvcg_uncompressed_make()
2463 h->desc.bAspectRatioY = 0; in uvcg_uncompressed_make()
2464 h->desc.bmInterlaceFlags = 0; in uvcg_uncompressed_make()
2465 h->desc.bCopyProtect = 0; in uvcg_uncompressed_make()
2514 result = sprintf(page, "%u\n", le##bits##_to_cpu(u->desc.aname));\
2538 result = sprintf(page, "%u\n", le##bits##_to_cpu(u->desc.aname));\
2577 u->desc.aname = num; \
2648 h->desc.bLength = UVC_DT_FORMAT_MJPEG_SIZE; in uvcg_mjpeg_make()
2649 h->desc.bDescriptorType = USB_DT_CS_INTERFACE; in uvcg_mjpeg_make()
2650 h->desc.bDescriptorSubType = UVC_VS_FORMAT_MJPEG; in uvcg_mjpeg_make()
2651 h->desc.bDefaultFrameIndex = 1; in uvcg_mjpeg_make()
2652 h->desc.bAspectRatioX = 0; in uvcg_mjpeg_make()
2653 h->desc.bAspectRatioY = 0; in uvcg_mjpeg_make()
2654 h->desc.bmInterlaceFlags = 0; in uvcg_mjpeg_make()
2655 h->desc.bCopyProtect = 0; in uvcg_mjpeg_make()
2703 le##bits##_to_cpu(color_match->desc.aname)); \
2738 color_match->desc.aname = num; \
2793 color_match->desc.bLength = UVC_DT_COLOR_MATCHING_SIZE; in uvcg_color_matching_make()
2794 color_match->desc.bDescriptorType = USB_DT_CS_INTERFACE; in uvcg_color_matching_make()
2795 color_match->desc.bDescriptorSubType = UVC_VS_COLORFORMAT; in uvcg_color_matching_make()
2815 color_match->desc.bLength = UVC_DT_COLOR_MATCHING_SIZE; in uvcg_color_matching_create_children()
2816 color_match->desc.bDescriptorType = USB_DT_CS_INTERFACE; in uvcg_color_matching_create_children()
2817 color_match->desc.bDescriptorSubType = UVC_VS_COLORFORMAT; in uvcg_color_matching_create_children()
2818 color_match->desc.bColorPrimaries = UVC_COLOR_PRIMARIES_BT_709_SRGB; in uvcg_color_matching_create_children()
2819 color_match->desc.bTransferCharacteristics = UVC_TRANSFER_CHARACTERISTICS_BT_709; in uvcg_color_matching_create_children()
2820 color_match->desc.bMatrixCoefficients = UVC_MATRIX_COEFFICIENTS_SMPTE_170M; in uvcg_color_matching_create_children()
2949 *size += sizeof(h->desc); in __uvcg_cnt_strm()
2962 *size += sizeof(u->desc); in __uvcg_cnt_strm()
2967 *size += sizeof(m->desc); in __uvcg_cnt_strm()
2984 *size += sizeof(color_match->desc); in __uvcg_cnt_strm()
3017 memcpy(*dest, &h->desc, sizeof(h->desc)); in __uvcg_fill_strm()
3018 *dest += sizeof(h->desc); in __uvcg_fill_strm()
3024 ihdr->bLength = sizeof(h->desc) + h->num_fmt * sz; in __uvcg_fill_strm()
3036 u->desc.bFormatIndex = n + 1; in __uvcg_fill_strm()
3037 u->desc.bNumFrameDescriptors = fmt->num_frames; in __uvcg_fill_strm()
3038 memcpy(*dest, &u->desc, sizeof(u->desc)); in __uvcg_fill_strm()
3039 *dest += sizeof(u->desc); in __uvcg_fill_strm()
3044 m->desc.bFormatIndex = n + 1; in __uvcg_fill_strm()
3045 m->desc.bNumFrameDescriptors = fmt->num_frames; in __uvcg_fill_strm()
3046 memcpy(*dest, &m->desc, sizeof(m->desc)); in __uvcg_fill_strm()
3047 *dest += sizeof(m->desc); in __uvcg_fill_strm()
3075 memcpy(*dest, &color_match->desc, sizeof(color_match->desc)); in __uvcg_fill_strm()
3076 *dest += sizeof(color_match->desc); in __uvcg_fill_strm()