Lines Matching refs:opts

59 	struct f_uvc_opts *opts;					\
67 opts = to_f_uvc_opts(opts_item); \
69 mutex_lock(&opts->lock); \
71 mutex_unlock(&opts->lock); \
82 struct f_uvc_opts *opts; \
91 opts = to_f_uvc_opts(opts_item); \
93 mutex_lock(&opts->lock); \
94 if (ch->linked || opts->refcnt) { \
110 mutex_unlock(&opts->lock); \
196 struct f_uvc_opts *opts; \
205 opts = to_f_uvc_opts(opts_item); \
206 pd = &opts->uvc_processing; \
208 mutex_lock(&opts->lock); \
210 mutex_unlock(&opts->lock); \
233 struct f_uvc_opts *opts; in uvcg_default_processing_bm_controls_show() local
243 opts = to_f_uvc_opts(opts_item); in uvcg_default_processing_bm_controls_show()
244 pd = &opts->uvc_processing; in uvcg_default_processing_bm_controls_show()
246 mutex_lock(&opts->lock); in uvcg_default_processing_bm_controls_show()
251 mutex_unlock(&opts->lock); in uvcg_default_processing_bm_controls_show()
302 struct f_uvc_opts *opts; \
312 opts = to_f_uvc_opts(opts_item); \
313 cd = &opts->uvc_camera_terminal; \
315 mutex_lock(&opts->lock); \
317 mutex_unlock(&opts->lock); \
347 struct f_uvc_opts *opts; in uvcg_default_camera_bm_controls_show() local
358 opts = to_f_uvc_opts(opts_item); in uvcg_default_camera_bm_controls_show()
359 cd = &opts->uvc_camera_terminal; in uvcg_default_camera_bm_controls_show()
361 mutex_lock(&opts->lock); in uvcg_default_camera_bm_controls_show()
366 mutex_unlock(&opts->lock); in uvcg_default_camera_bm_controls_show()
419 struct f_uvc_opts *opts; \
429 opts = to_f_uvc_opts(opts_item); \
430 cd = &opts->uvc_output_terminal; \
432 mutex_lock(&opts->lock); \
434 mutex_unlock(&opts->lock); \
514 struct f_uvc_opts *opts; in uvcg_control_class_allow_link() local
527 opts = to_f_uvc_opts(control->ci_parent); in uvcg_control_class_allow_link()
529 mutex_lock(&opts->lock); in uvcg_control_class_allow_link()
531 class_array = uvcg_get_ctl_class_arr(src, opts); in uvcg_control_class_allow_link()
534 if (opts->refcnt || class_array[0]) { in uvcg_control_class_allow_link()
545 mutex_unlock(&opts->lock); in uvcg_control_class_allow_link()
555 struct f_uvc_opts *opts; in uvcg_control_class_drop_link() local
567 opts = to_f_uvc_opts(control->ci_parent); in uvcg_control_class_drop_link()
569 mutex_lock(&opts->lock); in uvcg_control_class_drop_link()
571 class_array = uvcg_get_ctl_class_arr(src, opts); in uvcg_control_class_drop_link()
572 if (!class_array || opts->refcnt) in uvcg_control_class_drop_link()
580 mutex_unlock(&opts->lock); in uvcg_control_class_drop_link()
648 struct f_uvc_opts *opts; in uvcg_format_bma_controls_show() local
657 opts = to_f_uvc_opts(opts_item); in uvcg_format_bma_controls_show()
659 mutex_lock(&opts->lock); in uvcg_format_bma_controls_show()
666 mutex_unlock(&opts->lock); in uvcg_format_bma_controls_show()
675 struct f_uvc_opts *opts; in uvcg_format_bma_controls_store() local
683 opts = to_f_uvc_opts(opts_item); in uvcg_format_bma_controls_store()
685 mutex_lock(&opts->lock); in uvcg_format_bma_controls_store()
686 if (ch->linked || opts->refcnt) { in uvcg_format_bma_controls_store()
699 mutex_unlock(&opts->lock); in uvcg_format_bma_controls_store()
728 struct f_uvc_opts *opts; in uvcg_streaming_header_allow_link() local
738 opts = to_f_uvc_opts(opts_item); in uvcg_streaming_header_allow_link()
740 mutex_lock(&opts->lock); in uvcg_streaming_header_allow_link()
769 mutex_unlock(&opts->lock); in uvcg_streaming_header_allow_link()
779 struct f_uvc_opts *opts; in uvcg_streaming_header_drop_link() local
788 opts = to_f_uvc_opts(opts_item); in uvcg_streaming_header_drop_link()
790 mutex_lock(&opts->lock); in uvcg_streaming_header_drop_link()
805 mutex_unlock(&opts->lock); in uvcg_streaming_header_drop_link()
819 struct f_uvc_opts *opts; \
827 opts = to_f_uvc_opts(opts_item); \
829 mutex_lock(&opts->lock); \
831 mutex_unlock(&opts->lock); \
940 struct f_uvc_opts *opts; \
948 opts = to_f_uvc_opts(opts_item); \
950 mutex_lock(&opts->lock); \
952 mutex_unlock(&opts->lock); \
962 struct f_uvc_opts *opts; \
976 opts = to_f_uvc_opts(opts_item); \
979 mutex_lock(&opts->lock); \
980 if (fmt->linked || opts->refcnt) { \
988 mutex_unlock(&opts->lock); \
1016 struct f_uvc_opts *opts; in uvcg_frame_dw_frame_interval_show() local
1025 opts = to_f_uvc_opts(opts_item); in uvcg_frame_dw_frame_interval_show()
1027 mutex_lock(&opts->lock); in uvcg_frame_dw_frame_interval_show()
1033 mutex_unlock(&opts->lock); in uvcg_frame_dw_frame_interval_show()
1094 struct f_uvc_opts *opts; in uvcg_frame_dw_frame_interval_store() local
1104 opts = to_f_uvc_opts(opts_item); in uvcg_frame_dw_frame_interval_store()
1107 mutex_lock(&opts->lock); in uvcg_frame_dw_frame_interval_store()
1108 if (fmt->linked || opts->refcnt) { in uvcg_frame_dw_frame_interval_store()
1135 mutex_unlock(&opts->lock); in uvcg_frame_dw_frame_interval_store()
1164 struct f_uvc_opts *opts; in uvcg_frame_make() local
1181 opts = to_f_uvc_opts(opts_item); in uvcg_frame_make()
1183 mutex_lock(&opts->lock); in uvcg_frame_make()
1192 mutex_unlock(&opts->lock); in uvcg_frame_make()
1197 mutex_unlock(&opts->lock); in uvcg_frame_make()
1208 struct f_uvc_opts *opts; in uvcg_frame_drop() local
1212 opts = to_f_uvc_opts(opts_item); in uvcg_frame_drop()
1214 mutex_lock(&opts->lock); in uvcg_frame_drop()
1218 mutex_unlock(&opts->lock); in uvcg_frame_drop()
1243 struct f_uvc_opts *opts; in uvcg_uncompressed_guid_format_show() local
1250 opts = to_f_uvc_opts(opts_item); in uvcg_uncompressed_guid_format_show()
1252 mutex_lock(&opts->lock); in uvcg_uncompressed_guid_format_show()
1254 mutex_unlock(&opts->lock); in uvcg_uncompressed_guid_format_show()
1265 struct f_uvc_opts *opts; in uvcg_uncompressed_guid_format_store() local
1273 opts = to_f_uvc_opts(opts_item); in uvcg_uncompressed_guid_format_store()
1275 mutex_lock(&opts->lock); in uvcg_uncompressed_guid_format_store()
1276 if (ch->fmt.linked || opts->refcnt) { in uvcg_uncompressed_guid_format_store()
1286 mutex_unlock(&opts->lock); in uvcg_uncompressed_guid_format_store()
1298 struct f_uvc_opts *opts; \
1306 opts = to_f_uvc_opts(opts_item); \
1308 mutex_lock(&opts->lock); \
1310 mutex_unlock(&opts->lock); \
1323 struct f_uvc_opts *opts; \
1331 opts = to_f_uvc_opts(opts_item); \
1333 mutex_lock(&opts->lock); \
1335 mutex_unlock(&opts->lock); \
1346 struct f_uvc_opts *opts; \
1355 opts = to_f_uvc_opts(opts_item); \
1357 mutex_lock(&opts->lock); \
1358 if (u->fmt.linked || opts->refcnt) { \
1374 mutex_unlock(&opts->lock); \
1500 struct f_uvc_opts *opts; \
1508 opts = to_f_uvc_opts(opts_item); \
1510 mutex_lock(&opts->lock); \
1512 mutex_unlock(&opts->lock); \
1524 struct f_uvc_opts *opts; \
1532 opts = to_f_uvc_opts(opts_item); \
1534 mutex_lock(&opts->lock); \
1536 mutex_unlock(&opts->lock); \
1547 struct f_uvc_opts *opts; \
1556 opts = to_f_uvc_opts(opts_item); \
1558 mutex_lock(&opts->lock); \
1559 if (u->fmt.linked || opts->refcnt) { \
1575 mutex_unlock(&opts->lock); \
1690 struct f_uvc_opts *opts; \
1699 opts = to_f_uvc_opts(opts_item); \
1700 cd = &opts->uvc_color_matching; \
1702 mutex_lock(&opts->lock); \
1704 mutex_unlock(&opts->lock); \
1976 struct f_uvc_opts *opts; in uvcg_streaming_class_allow_link() local
1991 opts = to_f_uvc_opts(streaming->ci_parent); in uvcg_streaming_class_allow_link()
1993 mutex_lock(&opts->lock); in uvcg_streaming_class_allow_link()
1995 class_array = __uvcg_get_stream_class_arr(src, opts); in uvcg_streaming_class_allow_link()
1996 if (!class_array || *class_array || opts->refcnt) { in uvcg_streaming_class_allow_link()
2033 *cl_arr = (struct uvc_descriptor_header *)&opts->uvc_color_matching; in uvcg_streaming_class_allow_link()
2039 mutex_unlock(&opts->lock); in uvcg_streaming_class_allow_link()
2049 struct f_uvc_opts *opts; in uvcg_streaming_class_drop_link() local
2061 opts = to_f_uvc_opts(streaming->ci_parent); in uvcg_streaming_class_drop_link()
2063 mutex_lock(&opts->lock); in uvcg_streaming_class_drop_link()
2065 class_array = __uvcg_get_stream_class_arr(src, opts); in uvcg_streaming_class_drop_link()
2069 if (opts->refcnt) in uvcg_streaming_class_drop_link()
2079 mutex_unlock(&opts->lock); in uvcg_streaming_class_drop_link()
2114 struct f_uvc_opts *opts = to_f_uvc_opts(item); in uvc_attr_release() local
2116 usb_put_function_instance(&opts->func_inst); in uvc_attr_release()
2127 struct f_uvc_opts *opts = to_f_uvc_opts(item); \
2130 mutex_lock(&opts->lock); \
2131 result = sprintf(page, "%d\n", conv(opts->cname)); \
2132 mutex_unlock(&opts->lock); \
2141 struct f_uvc_opts *opts = to_f_uvc_opts(item); \
2145 mutex_lock(&opts->lock); \
2146 if (opts->refcnt) { \
2159 opts->cname = vnoc(num); \
2162 mutex_unlock(&opts->lock); \
2194 int uvcg_attach_configfs(struct f_uvc_opts *opts) in uvcg_attach_configfs() argument
2298 config_group_init_type_name(&opts->func_inst.group, in uvcg_attach_configfs()
2302 &opts->func_inst.group); in uvcg_attach_configfs()
2304 &opts->func_inst.group); in uvcg_attach_configfs()