• Home
  • Raw
  • Download

Lines Matching refs:opts

146 	struct f_uvc_opts *opts;					\
154 opts = to_f_uvc_opts(opts_item); \
156 mutex_lock(&opts->lock); \
158 mutex_unlock(&opts->lock); \
169 struct f_uvc_opts *opts; \
178 opts = to_f_uvc_opts(opts_item); \
180 mutex_lock(&opts->lock); \
181 if (ch->linked || opts->refcnt) { \
197 mutex_unlock(&opts->lock); \
264 struct f_uvc_opts *opts; \
273 opts = to_f_uvc_opts(opts_item); \
274 pd = &opts->uvc_processing; \
276 mutex_lock(&opts->lock); \
278 mutex_unlock(&opts->lock); \
297 struct f_uvc_opts *opts; in uvcg_default_processing_bm_controls_show() local
307 opts = to_f_uvc_opts(opts_item); in uvcg_default_processing_bm_controls_show()
308 pd = &opts->uvc_processing; in uvcg_default_processing_bm_controls_show()
310 mutex_lock(&opts->lock); in uvcg_default_processing_bm_controls_show()
315 mutex_unlock(&opts->lock); in uvcg_default_processing_bm_controls_show()
367 struct f_uvc_opts *opts; \
377 opts = to_f_uvc_opts(opts_item); \
378 cd = &opts->uvc_camera_terminal; \
380 mutex_lock(&opts->lock); \
382 mutex_unlock(&opts->lock); \
408 struct f_uvc_opts *opts; in uvcg_default_camera_bm_controls_show() local
419 opts = to_f_uvc_opts(opts_item); in uvcg_default_camera_bm_controls_show()
420 cd = &opts->uvc_camera_terminal; in uvcg_default_camera_bm_controls_show()
422 mutex_lock(&opts->lock); in uvcg_default_camera_bm_controls_show()
427 mutex_unlock(&opts->lock); in uvcg_default_camera_bm_controls_show()
481 struct f_uvc_opts *opts; \
491 opts = to_f_uvc_opts(opts_item); \
492 cd = &opts->uvc_output_terminal; \
494 mutex_lock(&opts->lock); \
496 mutex_unlock(&opts->lock); \
516 struct f_uvc_opts *opts; in uvcg_default_output_b_source_id_show() local
526 opts = to_f_uvc_opts(opts_item); in uvcg_default_output_b_source_id_show()
527 cd = &opts->uvc_output_terminal; in uvcg_default_output_b_source_id_show()
529 mutex_lock(&opts->lock); in uvcg_default_output_b_source_id_show()
531 mutex_unlock(&opts->lock); in uvcg_default_output_b_source_id_show()
542 struct f_uvc_opts *opts; in uvcg_default_output_b_source_id_store() local
557 opts = to_f_uvc_opts(opts_item); in uvcg_default_output_b_source_id_store()
558 cd = &opts->uvc_output_terminal; in uvcg_default_output_b_source_id_store()
560 mutex_lock(&opts->lock); in uvcg_default_output_b_source_id_store()
562 mutex_unlock(&opts->lock); in uvcg_default_output_b_source_id_store()
650 struct f_uvc_opts *opts; in uvcg_control_class_allow_link() local
663 opts = to_f_uvc_opts(control->ci_parent); in uvcg_control_class_allow_link()
665 mutex_lock(&opts->lock); in uvcg_control_class_allow_link()
667 class_array = uvcg_get_ctl_class_arr(src, opts); in uvcg_control_class_allow_link()
670 if (opts->refcnt || class_array[0]) { in uvcg_control_class_allow_link()
681 mutex_unlock(&opts->lock); in uvcg_control_class_allow_link()
692 struct f_uvc_opts *opts; in uvcg_control_class_drop_link() local
704 opts = to_f_uvc_opts(control->ci_parent); in uvcg_control_class_drop_link()
706 mutex_lock(&opts->lock); in uvcg_control_class_drop_link()
708 class_array = uvcg_get_ctl_class_arr(src, opts); in uvcg_control_class_drop_link()
709 if (!class_array || opts->refcnt) in uvcg_control_class_drop_link()
717 mutex_unlock(&opts->lock); in uvcg_control_class_drop_link()
779 struct f_uvc_opts *opts; in uvcg_default_control_b_interface_number_show() local
785 opts = to_f_uvc_opts(opts_item); in uvcg_default_control_b_interface_number_show()
787 mutex_lock(&opts->lock); in uvcg_default_control_b_interface_number_show()
788 result += sprintf(page, "%u\n", opts->control_interface); in uvcg_default_control_b_interface_number_show()
789 mutex_unlock(&opts->lock); in uvcg_default_control_b_interface_number_show()
849 struct f_uvc_opts *opts; in uvcg_format_bma_controls_show() local
858 opts = to_f_uvc_opts(opts_item); in uvcg_format_bma_controls_show()
860 mutex_lock(&opts->lock); in uvcg_format_bma_controls_show()
867 mutex_unlock(&opts->lock); in uvcg_format_bma_controls_show()
876 struct f_uvc_opts *opts; in uvcg_format_bma_controls_store() local
884 opts = to_f_uvc_opts(opts_item); in uvcg_format_bma_controls_store()
886 mutex_lock(&opts->lock); in uvcg_format_bma_controls_store()
887 if (ch->linked || opts->refcnt) { in uvcg_format_bma_controls_store()
900 mutex_unlock(&opts->lock); in uvcg_format_bma_controls_store()
935 struct f_uvc_opts *opts; in uvcg_streaming_header_allow_link() local
945 opts = to_f_uvc_opts(opts_item); in uvcg_streaming_header_allow_link()
947 mutex_lock(&opts->lock); in uvcg_streaming_header_allow_link()
991 mutex_unlock(&opts->lock); in uvcg_streaming_header_allow_link()
1001 struct f_uvc_opts *opts; in uvcg_streaming_header_drop_link() local
1010 opts = to_f_uvc_opts(opts_item); in uvcg_streaming_header_drop_link()
1012 mutex_lock(&opts->lock); in uvcg_streaming_header_drop_link()
1029 mutex_unlock(&opts->lock); in uvcg_streaming_header_drop_link()
1044 struct f_uvc_opts *opts; \
1052 opts = to_f_uvc_opts(opts_item); \
1054 mutex_lock(&opts->lock); \
1056 mutex_unlock(&opts->lock); \
1153 struct f_uvc_opts *opts; \
1161 opts = to_f_uvc_opts(opts_item); \
1163 mutex_lock(&opts->lock); \
1165 mutex_unlock(&opts->lock); \
1175 struct f_uvc_opts *opts; \
1189 opts = to_f_uvc_opts(opts_item); \
1192 mutex_lock(&opts->lock); \
1193 if (fmt->linked || opts->refcnt) { \
1201 mutex_unlock(&opts->lock); \
1213 struct f_uvc_opts *opts; in uvcg_frame_b_frame_index_show() local
1230 opts = to_f_uvc_opts(opts_item); in uvcg_frame_b_frame_index_show()
1232 mutex_lock(&opts->lock); in uvcg_frame_b_frame_index_show()
1234 mutex_unlock(&opts->lock); in uvcg_frame_b_frame_index_show()
1257 struct f_uvc_opts *opts; in uvcg_frame_dw_frame_interval_show() local
1266 opts = to_f_uvc_opts(opts_item); in uvcg_frame_dw_frame_interval_show()
1268 mutex_lock(&opts->lock); in uvcg_frame_dw_frame_interval_show()
1273 mutex_unlock(&opts->lock); in uvcg_frame_dw_frame_interval_show()
1334 struct f_uvc_opts *opts; in uvcg_frame_dw_frame_interval_store() local
1344 opts = to_f_uvc_opts(opts_item); in uvcg_frame_dw_frame_interval_store()
1347 mutex_lock(&opts->lock); in uvcg_frame_dw_frame_interval_store()
1348 if (fmt->linked || opts->refcnt) { in uvcg_frame_dw_frame_interval_store()
1377 mutex_unlock(&opts->lock); in uvcg_frame_dw_frame_interval_store()
1408 struct f_uvc_opts *opts; in uvcg_frame_make() local
1425 opts = to_f_uvc_opts(opts_item); in uvcg_frame_make()
1427 mutex_lock(&opts->lock); in uvcg_frame_make()
1436 mutex_unlock(&opts->lock); in uvcg_frame_make()
1441 mutex_unlock(&opts->lock); in uvcg_frame_make()
1451 struct f_uvc_opts *opts; in uvcg_frame_drop() local
1455 opts = to_f_uvc_opts(opts_item); in uvcg_frame_drop()
1457 mutex_lock(&opts->lock); in uvcg_frame_drop()
1460 mutex_unlock(&opts->lock); in uvcg_frame_drop()
1506 struct f_uvc_opts *opts; in uvcg_uncompressed_guid_format_show() local
1513 opts = to_f_uvc_opts(opts_item); in uvcg_uncompressed_guid_format_show()
1515 mutex_lock(&opts->lock); in uvcg_uncompressed_guid_format_show()
1517 mutex_unlock(&opts->lock); in uvcg_uncompressed_guid_format_show()
1528 struct f_uvc_opts *opts; in uvcg_uncompressed_guid_format_store() local
1536 opts = to_f_uvc_opts(opts_item); in uvcg_uncompressed_guid_format_store()
1538 mutex_lock(&opts->lock); in uvcg_uncompressed_guid_format_store()
1539 if (ch->fmt.linked || opts->refcnt) { in uvcg_uncompressed_guid_format_store()
1549 mutex_unlock(&opts->lock); in uvcg_uncompressed_guid_format_store()
1561 struct f_uvc_opts *opts; \
1569 opts = to_f_uvc_opts(opts_item); \
1571 mutex_lock(&opts->lock); \
1573 mutex_unlock(&opts->lock); \
1586 struct f_uvc_opts *opts; \
1594 opts = to_f_uvc_opts(opts_item); \
1596 mutex_lock(&opts->lock); \
1598 mutex_unlock(&opts->lock); \
1609 struct f_uvc_opts *opts; \
1618 opts = to_f_uvc_opts(opts_item); \
1620 mutex_lock(&opts->lock); \
1621 if (u->fmt.linked || opts->refcnt) { \
1633 mutex_unlock(&opts->lock); \
1755 struct f_uvc_opts *opts; \
1763 opts = to_f_uvc_opts(opts_item); \
1765 mutex_lock(&opts->lock); \
1767 mutex_unlock(&opts->lock); \
1779 struct f_uvc_opts *opts; \
1787 opts = to_f_uvc_opts(opts_item); \
1789 mutex_lock(&opts->lock); \
1791 mutex_unlock(&opts->lock); \
1802 struct f_uvc_opts *opts; \
1811 opts = to_f_uvc_opts(opts_item); \
1813 mutex_lock(&opts->lock); \
1814 if (u->fmt.linked || opts->refcnt) { \
1826 mutex_unlock(&opts->lock); \
1925 struct f_uvc_opts *opts; \
1934 opts = to_f_uvc_opts(opts_item); \
1935 cd = &opts->uvc_color_matching; \
1937 mutex_lock(&opts->lock); \
1939 mutex_unlock(&opts->lock); \
2216 struct f_uvc_opts *opts; in uvcg_streaming_class_allow_link() local
2231 opts = to_f_uvc_opts(streaming->ci_parent); in uvcg_streaming_class_allow_link()
2233 mutex_lock(&opts->lock); in uvcg_streaming_class_allow_link()
2235 class_array = __uvcg_get_stream_class_arr(src, opts); in uvcg_streaming_class_allow_link()
2236 if (!class_array || *class_array || opts->refcnt) { in uvcg_streaming_class_allow_link()
2273 *cl_arr = (struct uvc_descriptor_header *)&opts->uvc_color_matching; in uvcg_streaming_class_allow_link()
2279 mutex_unlock(&opts->lock); in uvcg_streaming_class_allow_link()
2290 struct f_uvc_opts *opts; in uvcg_streaming_class_drop_link() local
2302 opts = to_f_uvc_opts(streaming->ci_parent); in uvcg_streaming_class_drop_link()
2304 mutex_lock(&opts->lock); in uvcg_streaming_class_drop_link()
2306 class_array = __uvcg_get_stream_class_arr(src, opts); in uvcg_streaming_class_drop_link()
2310 if (opts->refcnt) in uvcg_streaming_class_drop_link()
2320 mutex_unlock(&opts->lock); in uvcg_streaming_class_drop_link()
2382 struct f_uvc_opts *opts; in uvcg_default_streaming_b_interface_number_show() local
2388 opts = to_f_uvc_opts(opts_item); in uvcg_default_streaming_b_interface_number_show()
2390 mutex_lock(&opts->lock); in uvcg_default_streaming_b_interface_number_show()
2391 result += sprintf(page, "%u\n", opts->streaming_interface); in uvcg_default_streaming_b_interface_number_show()
2392 mutex_unlock(&opts->lock); in uvcg_default_streaming_b_interface_number_show()
2429 struct f_uvc_opts *opts = to_f_uvc_opts(item); in uvc_func_item_release() local
2432 usb_put_function_instance(&opts->func_inst); in uvc_func_item_release()
2443 struct f_uvc_opts *opts = to_f_uvc_opts(item); \
2446 mutex_lock(&opts->lock); \
2447 result = sprintf(page, "%u\n", opts->cname); \
2448 mutex_unlock(&opts->lock); \
2457 struct f_uvc_opts *opts = to_f_uvc_opts(item); \
2461 mutex_lock(&opts->lock); \
2462 if (opts->refcnt) { \
2475 opts->cname = num; \
2478 mutex_unlock(&opts->lock); \
2494 struct f_uvc_opts *opts = to_f_uvc_opts(item); \
2497 mutex_lock(&opts->lock); \
2498 result = snprintf(page, sizeof(opts->aname), "%s", opts->aname);\
2499 mutex_unlock(&opts->lock); \
2507 struct f_uvc_opts *opts = to_f_uvc_opts(item); \
2508 int size = min(sizeof(opts->aname), len + 1); \
2511 mutex_lock(&opts->lock); \
2512 if (opts->refcnt) { \
2517 ret = strscpy(opts->aname, page, size); \
2522 mutex_unlock(&opts->lock); \
2554 int uvcg_attach_configfs(struct f_uvc_opts *opts) in uvcg_attach_configfs() argument
2558 config_group_init_type_name(&opts->func_inst.group, uvc_func_type.name, in uvcg_attach_configfs()
2561 ret = uvcg_config_create_children(&opts->func_inst.group, in uvcg_attach_configfs()
2564 config_group_put(&opts->func_inst.group); in uvcg_attach_configfs()