Lines Matching refs:opts
58 struct f_uvc_opts *opts; \
66 opts = to_f_uvc_opts(opts_item); \
68 mutex_lock(&opts->lock); \
70 mutex_unlock(&opts->lock); \
81 struct f_uvc_opts *opts; \
90 opts = to_f_uvc_opts(opts_item); \
92 mutex_lock(&opts->lock); \
93 if (ch->linked || opts->refcnt) { \
109 mutex_unlock(&opts->lock); \
195 struct f_uvc_opts *opts; \
204 opts = to_f_uvc_opts(opts_item); \
205 pd = &opts->uvc_processing; \
207 mutex_lock(&opts->lock); \
209 mutex_unlock(&opts->lock); \
232 struct f_uvc_opts *opts; in uvcg_default_processing_bm_controls_show() local
242 opts = to_f_uvc_opts(opts_item); in uvcg_default_processing_bm_controls_show()
243 pd = &opts->uvc_processing; in uvcg_default_processing_bm_controls_show()
245 mutex_lock(&opts->lock); in uvcg_default_processing_bm_controls_show()
250 mutex_unlock(&opts->lock); in uvcg_default_processing_bm_controls_show()
306 struct f_uvc_opts *opts; \
316 opts = to_f_uvc_opts(opts_item); \
317 cd = &opts->uvc_camera_terminal; \
319 mutex_lock(&opts->lock); \
321 mutex_unlock(&opts->lock); \
351 struct f_uvc_opts *opts; in uvcg_default_camera_bm_controls_show() local
362 opts = to_f_uvc_opts(opts_item); in uvcg_default_camera_bm_controls_show()
363 cd = &opts->uvc_camera_terminal; in uvcg_default_camera_bm_controls_show()
365 mutex_lock(&opts->lock); in uvcg_default_camera_bm_controls_show()
370 mutex_unlock(&opts->lock); in uvcg_default_camera_bm_controls_show()
428 struct f_uvc_opts *opts; \
438 opts = to_f_uvc_opts(opts_item); \
439 cd = &opts->uvc_output_terminal; \
441 mutex_lock(&opts->lock); \
443 mutex_unlock(&opts->lock); \
534 struct f_uvc_opts *opts; in uvcg_control_class_allow_link() local
547 opts = to_f_uvc_opts(control->ci_parent); in uvcg_control_class_allow_link()
549 mutex_lock(&opts->lock); in uvcg_control_class_allow_link()
551 class_array = uvcg_get_ctl_class_arr(src, opts); in uvcg_control_class_allow_link()
554 if (opts->refcnt || class_array[0]) { in uvcg_control_class_allow_link()
565 mutex_unlock(&opts->lock); in uvcg_control_class_allow_link()
575 struct f_uvc_opts *opts; in uvcg_control_class_drop_link() local
588 opts = to_f_uvc_opts(control->ci_parent); in uvcg_control_class_drop_link()
590 mutex_lock(&opts->lock); in uvcg_control_class_drop_link()
592 class_array = uvcg_get_ctl_class_arr(src, opts); in uvcg_control_class_drop_link()
595 if (opts->refcnt) { in uvcg_control_class_drop_link()
606 mutex_unlock(&opts->lock); in uvcg_control_class_drop_link()
689 struct f_uvc_opts *opts; in uvcg_format_bma_controls_show() local
698 opts = to_f_uvc_opts(opts_item); in uvcg_format_bma_controls_show()
700 mutex_lock(&opts->lock); in uvcg_format_bma_controls_show()
707 mutex_unlock(&opts->lock); in uvcg_format_bma_controls_show()
716 struct f_uvc_opts *opts; in uvcg_format_bma_controls_store() local
724 opts = to_f_uvc_opts(opts_item); in uvcg_format_bma_controls_store()
726 mutex_lock(&opts->lock); in uvcg_format_bma_controls_store()
727 if (ch->linked || opts->refcnt) { in uvcg_format_bma_controls_store()
740 mutex_unlock(&opts->lock); in uvcg_format_bma_controls_store()
769 struct f_uvc_opts *opts; in uvcg_streaming_header_allow_link() local
779 opts = to_f_uvc_opts(opts_item); in uvcg_streaming_header_allow_link()
781 mutex_lock(&opts->lock); in uvcg_streaming_header_allow_link()
810 mutex_unlock(&opts->lock); in uvcg_streaming_header_allow_link()
820 struct f_uvc_opts *opts; in uvcg_streaming_header_drop_link() local
830 opts = to_f_uvc_opts(opts_item); in uvcg_streaming_header_drop_link()
832 mutex_lock(&opts->lock); in uvcg_streaming_header_drop_link()
847 mutex_unlock(&opts->lock); in uvcg_streaming_header_drop_link()
863 struct f_uvc_opts *opts; \
871 opts = to_f_uvc_opts(opts_item); \
873 mutex_lock(&opts->lock); \
875 mutex_unlock(&opts->lock); \
984 struct f_uvc_opts *opts; \
992 opts = to_f_uvc_opts(opts_item); \
994 mutex_lock(&opts->lock); \
996 mutex_unlock(&opts->lock); \
1006 struct f_uvc_opts *opts; \
1020 opts = to_f_uvc_opts(opts_item); \
1023 mutex_lock(&opts->lock); \
1024 if (fmt->linked || opts->refcnt) { \
1032 mutex_unlock(&opts->lock); \
1060 struct f_uvc_opts *opts; in uvcg_frame_dw_frame_interval_show() local
1069 opts = to_f_uvc_opts(opts_item); in uvcg_frame_dw_frame_interval_show()
1071 mutex_lock(&opts->lock); in uvcg_frame_dw_frame_interval_show()
1077 mutex_unlock(&opts->lock); in uvcg_frame_dw_frame_interval_show()
1138 struct f_uvc_opts *opts; in uvcg_frame_dw_frame_interval_store() local
1148 opts = to_f_uvc_opts(opts_item); in uvcg_frame_dw_frame_interval_store()
1151 mutex_lock(&opts->lock); in uvcg_frame_dw_frame_interval_store()
1152 if (fmt->linked || opts->refcnt) { in uvcg_frame_dw_frame_interval_store()
1179 mutex_unlock(&opts->lock); in uvcg_frame_dw_frame_interval_store()
1208 struct f_uvc_opts *opts; in uvcg_frame_make() local
1225 opts = to_f_uvc_opts(opts_item); in uvcg_frame_make()
1227 mutex_lock(&opts->lock); in uvcg_frame_make()
1236 mutex_unlock(&opts->lock); in uvcg_frame_make()
1241 mutex_unlock(&opts->lock); in uvcg_frame_make()
1252 struct f_uvc_opts *opts; in uvcg_frame_drop() local
1256 opts = to_f_uvc_opts(opts_item); in uvcg_frame_drop()
1258 mutex_lock(&opts->lock); in uvcg_frame_drop()
1262 mutex_unlock(&opts->lock); in uvcg_frame_drop()
1287 struct f_uvc_opts *opts; in uvcg_uncompressed_guid_format_show() local
1294 opts = to_f_uvc_opts(opts_item); in uvcg_uncompressed_guid_format_show()
1296 mutex_lock(&opts->lock); in uvcg_uncompressed_guid_format_show()
1298 mutex_unlock(&opts->lock); in uvcg_uncompressed_guid_format_show()
1309 struct f_uvc_opts *opts; in uvcg_uncompressed_guid_format_store() local
1317 opts = to_f_uvc_opts(opts_item); in uvcg_uncompressed_guid_format_store()
1319 mutex_lock(&opts->lock); in uvcg_uncompressed_guid_format_store()
1320 if (ch->fmt.linked || opts->refcnt) { in uvcg_uncompressed_guid_format_store()
1330 mutex_unlock(&opts->lock); in uvcg_uncompressed_guid_format_store()
1342 struct f_uvc_opts *opts; \
1350 opts = to_f_uvc_opts(opts_item); \
1352 mutex_lock(&opts->lock); \
1354 mutex_unlock(&opts->lock); \
1367 struct f_uvc_opts *opts; \
1375 opts = to_f_uvc_opts(opts_item); \
1377 mutex_lock(&opts->lock); \
1379 mutex_unlock(&opts->lock); \
1390 struct f_uvc_opts *opts; \
1399 opts = to_f_uvc_opts(opts_item); \
1401 mutex_lock(&opts->lock); \
1402 if (u->fmt.linked || opts->refcnt) { \
1418 mutex_unlock(&opts->lock); \
1544 struct f_uvc_opts *opts; \
1552 opts = to_f_uvc_opts(opts_item); \
1554 mutex_lock(&opts->lock); \
1556 mutex_unlock(&opts->lock); \
1568 struct f_uvc_opts *opts; \
1576 opts = to_f_uvc_opts(opts_item); \
1578 mutex_lock(&opts->lock); \
1580 mutex_unlock(&opts->lock); \
1591 struct f_uvc_opts *opts; \
1600 opts = to_f_uvc_opts(opts_item); \
1602 mutex_lock(&opts->lock); \
1603 if (u->fmt.linked || opts->refcnt) { \
1619 mutex_unlock(&opts->lock); \
1734 struct f_uvc_opts *opts; \
1743 opts = to_f_uvc_opts(opts_item); \
1744 cd = &opts->uvc_color_matching; \
1746 mutex_lock(&opts->lock); \
1748 mutex_unlock(&opts->lock); \
2025 struct f_uvc_opts *opts; in uvcg_streaming_class_allow_link() local
2040 opts = to_f_uvc_opts(streaming->ci_parent); in uvcg_streaming_class_allow_link()
2042 mutex_lock(&opts->lock); in uvcg_streaming_class_allow_link()
2044 class_array = __uvcg_get_stream_class_arr(src, opts); in uvcg_streaming_class_allow_link()
2045 if (!class_array || *class_array || opts->refcnt) { in uvcg_streaming_class_allow_link()
2082 *cl_arr = (struct uvc_descriptor_header *)&opts->uvc_color_matching; in uvcg_streaming_class_allow_link()
2088 mutex_unlock(&opts->lock); in uvcg_streaming_class_allow_link()
2098 struct f_uvc_opts *opts; in uvcg_streaming_class_drop_link() local
2111 opts = to_f_uvc_opts(streaming->ci_parent); in uvcg_streaming_class_drop_link()
2113 mutex_lock(&opts->lock); in uvcg_streaming_class_drop_link()
2115 class_array = __uvcg_get_stream_class_arr(src, opts); in uvcg_streaming_class_drop_link()
2119 if (opts->refcnt) { in uvcg_streaming_class_drop_link()
2132 mutex_unlock(&opts->lock); in uvcg_streaming_class_drop_link()
2196 struct f_uvc_opts *opts = to_f_uvc_opts(item); in uvc_attr_release() local
2198 usb_put_function_instance(&opts->func_inst); in uvc_attr_release()
2209 struct f_uvc_opts *opts = to_f_uvc_opts(item); \
2212 mutex_lock(&opts->lock); \
2213 result = sprintf(page, "%d\n", conv(opts->cname)); \
2214 mutex_unlock(&opts->lock); \
2223 struct f_uvc_opts *opts = to_f_uvc_opts(item); \
2227 mutex_lock(&opts->lock); \
2228 if (opts->refcnt) { \
2241 opts->cname = vnoc(num); \
2244 mutex_unlock(&opts->lock); \
2285 int uvcg_attach_configfs(struct f_uvc_opts *opts) in uvcg_attach_configfs() argument
2362 uvcg_init_group(&opts->func_inst.group, in uvcg_attach_configfs()