Lines Matching refs:opts

63 	struct f_uvc_opts *opts;					\
71 opts = to_f_uvc_opts(opts_item); \
73 mutex_lock(&opts->lock); \
75 mutex_unlock(&opts->lock); \
85 struct f_uvc_opts *opts; \
94 opts = to_f_uvc_opts(opts_item); \
96 mutex_lock(&opts->lock); \
97 if (ch->linked || opts->refcnt) { \
113 mutex_unlock(&opts->lock); \
210 struct f_uvc_opts *opts; \
219 opts = to_f_uvc_opts(opts_item); \
220 pd = &opts->uvc_processing; \
222 mutex_lock(&opts->lock); \
224 mutex_unlock(&opts->lock); \
248 struct f_uvc_opts *opts; in uvcg_default_processing_bm_controls_show() local
258 opts = to_f_uvc_opts(opts_item); in uvcg_default_processing_bm_controls_show()
259 pd = &opts->uvc_processing; in uvcg_default_processing_bm_controls_show()
261 mutex_lock(&opts->lock); in uvcg_default_processing_bm_controls_show()
266 mutex_unlock(&opts->lock); in uvcg_default_processing_bm_controls_show()
332 struct f_uvc_opts *opts; \
342 opts = to_f_uvc_opts(opts_item); \
343 cd = &opts->uvc_camera_terminal; \
345 mutex_lock(&opts->lock); \
347 mutex_unlock(&opts->lock); \
378 struct f_uvc_opts *opts; in uvcg_default_camera_bm_controls_show() local
389 opts = to_f_uvc_opts(opts_item); in uvcg_default_camera_bm_controls_show()
390 cd = &opts->uvc_camera_terminal; in uvcg_default_camera_bm_controls_show()
392 mutex_lock(&opts->lock); in uvcg_default_camera_bm_controls_show()
397 mutex_unlock(&opts->lock); in uvcg_default_camera_bm_controls_show()
464 struct f_uvc_opts *opts; \
474 opts = to_f_uvc_opts(opts_item); \
475 cd = &opts->uvc_output_terminal; \
477 mutex_lock(&opts->lock); \
479 mutex_unlock(&opts->lock); \
573 struct f_uvc_opts *opts; in uvcg_control_class_allow_link() local
586 opts = to_f_uvc_opts(control->ci_parent); in uvcg_control_class_allow_link()
588 mutex_lock(&opts->lock); in uvcg_control_class_allow_link()
590 class_array = uvcg_get_ctl_class_arr(src, opts); in uvcg_control_class_allow_link()
593 if (opts->refcnt || class_array[0]) { in uvcg_control_class_allow_link()
604 mutex_unlock(&opts->lock); in uvcg_control_class_allow_link()
614 struct f_uvc_opts *opts; in uvcg_control_class_drop_link() local
627 opts = to_f_uvc_opts(control->ci_parent); in uvcg_control_class_drop_link()
629 mutex_lock(&opts->lock); in uvcg_control_class_drop_link()
631 class_array = uvcg_get_ctl_class_arr(src, opts); in uvcg_control_class_drop_link()
634 if (opts->refcnt) { in uvcg_control_class_drop_link()
645 mutex_unlock(&opts->lock); in uvcg_control_class_drop_link()
728 struct f_uvc_opts *opts; in uvcg_format_bma_controls_show() local
737 opts = to_f_uvc_opts(opts_item); in uvcg_format_bma_controls_show()
739 mutex_lock(&opts->lock); in uvcg_format_bma_controls_show()
746 mutex_unlock(&opts->lock); in uvcg_format_bma_controls_show()
755 struct f_uvc_opts *opts; in uvcg_format_bma_controls_store() local
763 opts = to_f_uvc_opts(opts_item); in uvcg_format_bma_controls_store()
765 mutex_lock(&opts->lock); in uvcg_format_bma_controls_store()
766 if (ch->linked || opts->refcnt) { in uvcg_format_bma_controls_store()
779 mutex_unlock(&opts->lock); in uvcg_format_bma_controls_store()
811 struct f_uvc_opts *opts; in uvcg_streaming_header_allow_link() local
821 opts = to_f_uvc_opts(opts_item); in uvcg_streaming_header_allow_link()
823 mutex_lock(&opts->lock); in uvcg_streaming_header_allow_link()
852 mutex_unlock(&opts->lock); in uvcg_streaming_header_allow_link()
862 struct f_uvc_opts *opts; in uvcg_streaming_header_drop_link() local
872 opts = to_f_uvc_opts(opts_item); in uvcg_streaming_header_drop_link()
874 mutex_lock(&opts->lock); in uvcg_streaming_header_drop_link()
889 mutex_unlock(&opts->lock); in uvcg_streaming_header_drop_link()
906 struct f_uvc_opts *opts; \
914 opts = to_f_uvc_opts(opts_item); \
916 mutex_lock(&opts->lock); \
918 mutex_unlock(&opts->lock); \
1036 struct f_uvc_opts *opts; \
1044 opts = to_f_uvc_opts(opts_item); \
1046 mutex_lock(&opts->lock); \
1048 mutex_unlock(&opts->lock); \
1057 struct f_uvc_opts *opts; \
1071 opts = to_f_uvc_opts(opts_item); \
1074 mutex_lock(&opts->lock); \
1075 if (fmt->linked || opts->refcnt) { \
1083 mutex_unlock(&opts->lock); \
1114 struct f_uvc_opts *opts; in uvcg_frame_dw_frame_interval_show() local
1123 opts = to_f_uvc_opts(opts_item); in uvcg_frame_dw_frame_interval_show()
1125 mutex_lock(&opts->lock); in uvcg_frame_dw_frame_interval_show()
1131 mutex_unlock(&opts->lock); in uvcg_frame_dw_frame_interval_show()
1191 struct f_uvc_opts *opts; in uvcg_frame_dw_frame_interval_store() local
1201 opts = to_f_uvc_opts(opts_item); in uvcg_frame_dw_frame_interval_store()
1204 mutex_lock(&opts->lock); in uvcg_frame_dw_frame_interval_store()
1205 if (fmt->linked || opts->refcnt) { in uvcg_frame_dw_frame_interval_store()
1232 mutex_unlock(&opts->lock); in uvcg_frame_dw_frame_interval_store()
1266 struct f_uvc_opts *opts; in uvcg_frame_make() local
1283 opts = to_f_uvc_opts(opts_item); in uvcg_frame_make()
1285 mutex_lock(&opts->lock); in uvcg_frame_make()
1294 mutex_unlock(&opts->lock); in uvcg_frame_make()
1299 mutex_unlock(&opts->lock); in uvcg_frame_make()
1310 struct f_uvc_opts *opts; in uvcg_frame_drop() local
1314 opts = to_f_uvc_opts(opts_item); in uvcg_frame_drop()
1316 mutex_lock(&opts->lock); in uvcg_frame_drop()
1320 mutex_unlock(&opts->lock); in uvcg_frame_drop()
1352 struct f_uvc_opts *opts; in uvcg_uncompressed_guid_format_show() local
1359 opts = to_f_uvc_opts(opts_item); in uvcg_uncompressed_guid_format_show()
1361 mutex_lock(&opts->lock); in uvcg_uncompressed_guid_format_show()
1363 mutex_unlock(&opts->lock); in uvcg_uncompressed_guid_format_show()
1373 struct f_uvc_opts *opts; in uvcg_uncompressed_guid_format_store() local
1381 opts = to_f_uvc_opts(opts_item); in uvcg_uncompressed_guid_format_store()
1383 mutex_lock(&opts->lock); in uvcg_uncompressed_guid_format_store()
1384 if (ch->fmt.linked || opts->refcnt) { in uvcg_uncompressed_guid_format_store()
1394 mutex_unlock(&opts->lock); in uvcg_uncompressed_guid_format_store()
1409 struct f_uvc_opts *opts; \
1417 opts = to_f_uvc_opts(opts_item); \
1419 mutex_lock(&opts->lock); \
1421 mutex_unlock(&opts->lock); \
1435 struct f_uvc_opts *opts; \
1443 opts = to_f_uvc_opts(opts_item); \
1445 mutex_lock(&opts->lock); \
1447 mutex_unlock(&opts->lock); \
1457 struct f_uvc_opts *opts; \
1466 opts = to_f_uvc_opts(opts_item); \
1468 mutex_lock(&opts->lock); \
1469 if (u->fmt.linked || opts->refcnt) { \
1485 mutex_unlock(&opts->lock); \
1624 struct f_uvc_opts *opts; \
1632 opts = to_f_uvc_opts(opts_item); \
1634 mutex_lock(&opts->lock); \
1636 mutex_unlock(&opts->lock); \
1649 struct f_uvc_opts *opts; \
1657 opts = to_f_uvc_opts(opts_item); \
1659 mutex_lock(&opts->lock); \
1661 mutex_unlock(&opts->lock); \
1671 struct f_uvc_opts *opts; \
1680 opts = to_f_uvc_opts(opts_item); \
1682 mutex_lock(&opts->lock); \
1683 if (u->fmt.linked || opts->refcnt) { \
1699 mutex_unlock(&opts->lock); \
1825 struct f_uvc_opts *opts; \
1834 opts = to_f_uvc_opts(opts_item); \
1835 cd = &opts->uvc_color_matching; \
1837 mutex_lock(&opts->lock); \
1839 mutex_unlock(&opts->lock); \
2119 struct f_uvc_opts *opts; in uvcg_streaming_class_allow_link() local
2134 opts = to_f_uvc_opts(streaming->ci_parent); in uvcg_streaming_class_allow_link()
2136 mutex_lock(&opts->lock); in uvcg_streaming_class_allow_link()
2138 class_array = __uvcg_get_stream_class_arr(src, opts); in uvcg_streaming_class_allow_link()
2139 if (!class_array || *class_array || opts->refcnt) { in uvcg_streaming_class_allow_link()
2176 *cl_arr = (struct uvc_descriptor_header *)&opts->uvc_color_matching; in uvcg_streaming_class_allow_link()
2182 mutex_unlock(&opts->lock); in uvcg_streaming_class_allow_link()
2192 struct f_uvc_opts *opts; in uvcg_streaming_class_drop_link() local
2205 opts = to_f_uvc_opts(streaming->ci_parent); in uvcg_streaming_class_drop_link()
2207 mutex_lock(&opts->lock); in uvcg_streaming_class_drop_link()
2209 class_array = __uvcg_get_stream_class_arr(src, opts); in uvcg_streaming_class_drop_link()
2213 if (opts->refcnt) { in uvcg_streaming_class_drop_link()
2226 mutex_unlock(&opts->lock); in uvcg_streaming_class_drop_link()
2293 struct f_uvc_opts *opts = to_f_uvc_opts(item); in uvc_attr_release() local
2295 usb_put_function_instance(&opts->func_inst); in uvc_attr_release()
2306 struct f_uvc_opts *opts, char *page) \
2310 mutex_lock(&opts->lock); \
2311 result = sprintf(page, "%d\n", conv(opts->cname)); \
2312 mutex_unlock(&opts->lock); \
2318 f_uvc_opts_##cname##_store(struct f_uvc_opts *opts, \
2324 mutex_lock(&opts->lock); \
2325 if (opts->refcnt) { \
2338 opts->cname = vnoc(num); \
2341 mutex_unlock(&opts->lock); \
2386 int uvcg_attach_configfs(struct f_uvc_opts *opts) in uvcg_attach_configfs() argument
2463 uvcg_init_group(&opts->func_inst.group, in uvcg_attach_configfs()