Lines Matching refs:group
120 int (*create_children)(struct config_group *group);
125 struct config_group *group = to_config_group(item); in uvcg_config_item_release() local
127 kfree(group); in uvcg_config_item_release()
137 static int uvcg_config_create_children(struct config_group *group, in uvcg_config_create_children() argument
144 return type->create_children(group); in uvcg_config_create_children()
147 ret = uvcg_config_create_group(group, *child); in uvcg_config_create_children()
158 struct config_group *group; in uvcg_config_create_group() local
160 group = kzalloc(sizeof(*group), GFP_KERNEL); in uvcg_config_create_group()
161 if (!group) in uvcg_config_create_group()
164 config_group_init_type_name(group, type->name, &type->type); in uvcg_config_create_group()
165 configfs_add_default_group(group, parent); in uvcg_config_create_group()
167 return uvcg_config_create_children(group, type); in uvcg_config_create_group()
170 static void uvcg_config_remove_children(struct config_group *group) in uvcg_config_remove_children() argument
174 list_for_each_entry_safe(child, n, &group->default_groups, group_entry) { in uvcg_config_remove_children()
267 static struct config_item *uvcg_control_header_make(struct config_group *group, in uvcg_control_header_make() argument
308 struct config_group *group = to_config_group(item); \
311 struct mutex *su_mutex = &group->cg_subsys->su_mutex; \
317 opts_item = group->cg_item.ci_parent->ci_parent->ci_parent; \
341 struct config_group *group = to_config_group(item); in uvcg_default_processing_bm_controls_store() local
342 struct mutex *su_mutex = &group->cg_subsys->su_mutex; in uvcg_default_processing_bm_controls_store()
352 opts_item = group->cg_item.ci_parent->ci_parent->ci_parent; in uvcg_default_processing_bm_controls_store()
399 struct config_group *group = to_config_group(item); in uvcg_default_processing_bm_controls_show() local
402 struct mutex *su_mutex = &group->cg_subsys->su_mutex; in uvcg_default_processing_bm_controls_show()
409 opts_item = group->cg_item.ci_parent->ci_parent->ci_parent; in uvcg_default_processing_bm_controls_show()
469 struct config_group *group = to_config_group(item); \
472 struct mutex *su_mutex = &group->cg_subsys->su_mutex; \
478 opts_item = group->cg_item.ci_parent->ci_parent->ci_parent-> \
510 struct config_group *group = to_config_group(item); in uvcg_default_camera_bm_controls_store() local
511 struct mutex *su_mutex = &group->cg_subsys->su_mutex; in uvcg_default_camera_bm_controls_store()
521 opts_item = group->cg_item.ci_parent->ci_parent->ci_parent-> in uvcg_default_camera_bm_controls_store()
569 struct config_group *group = to_config_group(item); in uvcg_default_camera_bm_controls_show() local
572 struct mutex *su_mutex = &group->cg_subsys->su_mutex; in uvcg_default_camera_bm_controls_show()
579 opts_item = group->cg_item.ci_parent->ci_parent->ci_parent-> in uvcg_default_camera_bm_controls_show()
642 struct config_group *group = to_config_group(item); \
645 struct mutex *su_mutex = &group->cg_subsys->su_mutex; \
651 opts_item = group->cg_item.ci_parent->ci_parent-> \
677 struct config_group *group = to_config_group(item); in uvcg_default_output_b_source_id_show() local
680 struct mutex *su_mutex = &group->cg_subsys->su_mutex; in uvcg_default_output_b_source_id_show()
686 opts_item = group->cg_item.ci_parent->ci_parent-> in uvcg_default_output_b_source_id_show()
703 struct config_group *group = to_config_group(item); in uvcg_default_output_b_source_id_store() local
706 struct mutex *su_mutex = &group->cg_subsys->su_mutex; in uvcg_default_output_b_source_id_store()
717 opts_item = group->cg_item.ci_parent->ci_parent-> in uvcg_default_output_b_source_id_store()
791 struct config_group *group = to_config_group(item->ci_parent); \
792 struct mutex *su_mutex = &group->cg_subsys->su_mutex; \
820 struct config_group *group = to_config_group(item->ci_parent); in uvcg_extension_b_num_controls_store() local
821 struct mutex *su_mutex = &group->cg_subsys->su_mutex; in uvcg_extension_b_num_controls_store()
854 struct config_group *group = to_config_group(item->ci_parent); in uvcg_extension_b_nr_in_pins_store() local
855 struct mutex *su_mutex = &group->cg_subsys->su_mutex; in uvcg_extension_b_nr_in_pins_store()
907 struct config_group *group = to_config_group(item->ci_parent); in uvcg_extension_b_control_size_store() local
908 struct mutex *su_mutex = &group->cg_subsys->su_mutex; in uvcg_extension_b_control_size_store()
957 struct config_group *group = to_config_group(item->ci_parent); in uvcg_extension_guid_extension_code_show() local
958 struct mutex *su_mutex = &group->cg_subsys->su_mutex; in uvcg_extension_guid_extension_code_show()
980 struct config_group *group = to_config_group(item->ci_parent); in uvcg_extension_guid_extension_code_store() local
981 struct mutex *su_mutex = &group->cg_subsys->su_mutex; in uvcg_extension_guid_extension_code_store()
1009 struct config_group *group = to_config_group(item->ci_parent); in uvcg_extension_ba_source_id_show() local
1010 struct mutex *su_mutex = &group->cg_subsys->su_mutex; in uvcg_extension_ba_source_id_show()
1037 struct config_group *group = to_config_group(item->ci_parent); in uvcg_extension_ba_source_id_store() local
1038 struct mutex *su_mutex = &group->cg_subsys->su_mutex; in uvcg_extension_ba_source_id_store()
1088 struct config_group *group = to_config_group(item->ci_parent); in uvcg_extension_bm_controls_show() local
1089 struct mutex *su_mutex = &group->cg_subsys->su_mutex; in uvcg_extension_bm_controls_show()
1116 struct config_group *group = to_config_group(item->ci_parent); in uvcg_extension_bm_controls_store() local
1117 struct mutex *su_mutex = &group->cg_subsys->su_mutex; in uvcg_extension_bm_controls_store()
1247 static void uvcg_extension_drop(struct config_group *group, struct config_item *item) in uvcg_extension_drop() argument
1253 opts_item = group->cg_item.ci_parent->ci_parent; in uvcg_extension_drop()
1266 static struct config_item *uvcg_extension_make(struct config_group *group, const char *name) in uvcg_extension_make() argument
1272 opts_item = group->cg_item.ci_parent->ci_parent; in uvcg_extension_make()
1319 struct config_group group; member
1326 struct uvcg_control_class_group *group = in uvcg_get_ctl_class_arr() local
1328 group.cg_item); in uvcg_get_ctl_class_arr()
1330 if (!strcmp(group->name, "fs")) in uvcg_get_ctl_class_arr()
1333 if (!strcmp(group->name, "ss")) in uvcg_get_ctl_class_arr()
1437 struct uvcg_control_class_group *group; in uvcg_control_class_create_children() local
1439 group = kzalloc(sizeof(*group), GFP_KERNEL); in uvcg_control_class_create_children()
1440 if (!group) in uvcg_control_class_create_children()
1443 group->name = names[i]; in uvcg_control_class_create_children()
1445 config_group_init_type_name(&group->group, group->name, in uvcg_control_class_create_children()
1447 configfs_add_default_group(&group->group, parent); in uvcg_control_class_create_children()
1469 struct config_group *group = to_config_group(item); in uvcg_default_control_b_interface_number_show() local
1470 struct mutex *su_mutex = &group->cg_subsys->su_mutex; in uvcg_default_control_b_interface_number_show()
1494 struct config_group *group = to_config_group(item); in uvcg_default_control_enable_interrupt_ep_show() local
1495 struct mutex *su_mutex = &group->cg_subsys->su_mutex; in uvcg_default_control_enable_interrupt_ep_show()
1517 struct config_group *group = to_config_group(item); in uvcg_default_control_enable_interrupt_ep_store() local
1518 struct mutex *su_mutex = &group->cg_subsys->su_mutex; in uvcg_default_control_enable_interrupt_ep_store()
1674 struct mutex *su_mutex = &f->group.cg_subsys->su_mutex; in uvcg_format_bma_controls_show()
1680 opts_item = f->group.cg_item.ci_parent->ci_parent->ci_parent; in uvcg_format_bma_controls_show()
1701 struct mutex *su_mutex = &ch->group.cg_subsys->su_mutex; in uvcg_format_bma_controls_store()
1706 opts_item = ch->group.cg_item.ci_parent->ci_parent->ci_parent; in uvcg_format_bma_controls_store()
1778 group); in uvcg_streaming_header_allow_link()
1817 group); in uvcg_streaming_header_drop_link()
1888 *uvcg_streaming_header_make(struct config_group *group, const char *name) in uvcg_streaming_header_make() argument
2127 static struct config_item *uvcg_frame_make(struct config_group *group, in uvcg_frame_make() argument
2149 opts_item = group->cg_item.ci_parent->ci_parent->ci_parent; in uvcg_frame_make()
2153 fmt = to_uvcg_format(&group->cg_item); in uvcg_frame_make()
2183 static void uvcg_frame_drop(struct config_group *group, struct config_item *item) in uvcg_frame_drop() argument
2191 opts_item = group->cg_item.ci_parent->ci_parent->ci_parent; in uvcg_frame_drop()
2196 fmt = to_uvcg_format(&group->cg_item); in uvcg_frame_drop()
2241 struct mutex *su_mutex = &ch->fmt.group.cg_subsys->su_mutex; in uvcg_uncompressed_guid_format_show()
2245 opts_item = ch->fmt.group.cg_item.ci_parent->ci_parent->ci_parent; in uvcg_uncompressed_guid_format_show()
2263 struct mutex *su_mutex = &ch->fmt.group.cg_subsys->su_mutex; in uvcg_uncompressed_guid_format_store()
2270 opts_item = ch->fmt.group.cg_item.ci_parent->ci_parent->ci_parent; in uvcg_uncompressed_guid_format_store()
2307 struct mutex *su_mutex = &u->fmt.group.cg_subsys->su_mutex; \
2312 opts_item = u->fmt.group.cg_item.ci_parent->ci_parent->ci_parent;\
2332 struct mutex *su_mutex = &u->fmt.group.cg_subsys->su_mutex; \
2337 opts_item = u->fmt.group.cg_item.ci_parent->ci_parent->ci_parent;\
2355 struct mutex *su_mutex = &u->fmt.group.cg_subsys->su_mutex; \
2361 opts_item = u->fmt.group.cg_item.ci_parent->ci_parent->ci_parent;\
2436 static struct config_group *uvcg_uncompressed_make(struct config_group *group, in uvcg_uncompressed_make() argument
2447 streaming = group->cg_item.ci_parent; in uvcg_uncompressed_make()
2471 config_group_init_type_name(&h->fmt.group, name, in uvcg_uncompressed_make()
2474 return &h->fmt.group; in uvcg_uncompressed_make()
2505 struct mutex *su_mutex = &u->fmt.group.cg_subsys->su_mutex; \
2510 opts_item = u->fmt.group.cg_item.ci_parent->ci_parent->ci_parent;\
2529 struct mutex *su_mutex = &u->fmt.group.cg_subsys->su_mutex; \
2534 opts_item = u->fmt.group.cg_item.ci_parent->ci_parent->ci_parent;\
2552 struct mutex *su_mutex = &u->fmt.group.cg_subsys->su_mutex; \
2558 opts_item = u->fmt.group.cg_item.ci_parent->ci_parent->ci_parent;\
2632 static struct config_group *uvcg_mjpeg_make(struct config_group *group, in uvcg_mjpeg_make() argument
2639 streaming = group->cg_item.ci_parent; in uvcg_mjpeg_make()
2661 config_group_init_type_name(&h->fmt.group, name, in uvcg_mjpeg_make()
2664 return &h->fmt.group; in uvcg_mjpeg_make()
2688 struct config_group *group = to_config_group(item); \
2690 to_uvcg_color_matching(group); \
2693 struct mutex *su_mutex = &group->cg_subsys->su_mutex; \
2698 opts_item = group->cg_item.ci_parent->ci_parent->ci_parent; \
2713 struct config_group *group = to_config_group(item); \
2714 struct mutex *su_mutex = &group->cg_subsys->su_mutex; \
2716 to_uvcg_color_matching(group); \
2733 opts_item = group->cg_item.ci_parent->ci_parent->ci_parent; \
2784 static struct config_group *uvcg_color_matching_make(struct config_group *group, in uvcg_color_matching_make() argument
2797 config_group_init_type_name(&color_match->group, name, in uvcg_color_matching_make()
2800 return &color_match->group; in uvcg_color_matching_make()
2822 config_group_init_type_name(&color_match->group, "default", in uvcg_color_matching_create_children()
2824 configfs_add_default_group(&color_match->group, parent); in uvcg_color_matching_create_children()
2844 struct config_group group; member
2851 struct uvcg_streaming_class_group *group = in __uvcg_get_stream_class_arr() local
2853 group.cg_item); in __uvcg_get_stream_class_arr()
2855 if (!strcmp(group->name, "fs")) in __uvcg_get_stream_class_arr()
2858 if (!strcmp(group->name, "hs")) in __uvcg_get_stream_class_arr()
2861 if (!strcmp(group->name, "ss")) in __uvcg_get_stream_class_arr()
2914 grp = &f->fmt->group; in __uvcg_iter_strm_cls()
3218 struct uvcg_streaming_class_group *group; in uvcg_streaming_class_create_children() local
3220 group = kzalloc(sizeof(*group), GFP_KERNEL); in uvcg_streaming_class_create_children()
3221 if (!group) in uvcg_streaming_class_create_children()
3224 group->name = names[i]; in uvcg_streaming_class_create_children()
3226 config_group_init_type_name(&group->group, group->name, in uvcg_streaming_class_create_children()
3228 configfs_add_default_group(&group->group, parent); in uvcg_streaming_class_create_children()
3250 struct config_group *group = to_config_group(item); in uvcg_default_streaming_b_interface_number_show() local
3251 struct mutex *su_mutex = &group->cg_subsys->su_mutex; in uvcg_default_streaming_b_interface_number_show()
3489 config_group_init_type_name(&opts->func_inst.group, uvc_func_type.name, in uvcg_attach_configfs()
3492 ret = uvcg_config_create_children(&opts->func_inst.group, in uvcg_attach_configfs()
3495 config_group_put(&opts->func_inst.group); in uvcg_attach_configfs()