Lines Matching refs:block_opts
2329 struct f_midi2_block_opts *block_opts; in f_midi2_block_opts_create() local
2338 block_opts = kzalloc(sizeof(*block_opts), GFP_KERNEL); in f_midi2_block_opts_create()
2339 if (!block_opts) { in f_midi2_block_opts_create()
2344 block_opts->ep = ep_opts; in f_midi2_block_opts_create()
2345 block_opts->id = blk; in f_midi2_block_opts_create()
2348 block_opts->info.direction = SNDRV_UMP_DIR_BIDIRECTION; in f_midi2_block_opts_create()
2349 block_opts->info.first_group = 0; in f_midi2_block_opts_create()
2350 block_opts->info.num_groups = 1; in f_midi2_block_opts_create()
2351 block_opts->info.ui_hint = SNDRV_UMP_BLOCK_UI_HINT_BOTH; in f_midi2_block_opts_create()
2352 block_opts->info.active = 1; in f_midi2_block_opts_create()
2354 ep_opts->blks[blk] = block_opts; in f_midi2_block_opts_create()
2355 *block_p = block_opts; in f_midi2_block_opts_create()
2367 struct f_midi2_block_opts *block_opts; in f_midi2_opts_block_make() local
2383 ret = f_midi2_block_opts_create(ep_opts, blk, &block_opts); in f_midi2_opts_block_make()
2387 config_group_init_type_name(&block_opts->group, name, in f_midi2_opts_block_make()
2389 return &block_opts->group; in f_midi2_opts_block_make()
2396 struct f_midi2_block_opts *block_opts = to_f_midi2_block_opts(item); in f_midi2_opts_block_drop() local
2398 mutex_lock(&block_opts->ep->opts->lock); in f_midi2_opts_block_drop()
2399 block_opts->ep->blks[block_opts->id] = NULL; in f_midi2_opts_block_drop()
2400 mutex_unlock(&block_opts->ep->opts->lock); in f_midi2_opts_block_drop()
2647 struct f_midi2_block_opts *block_opts; in f_midi2_alloc_inst() local
2669 ret = f_midi2_block_opts_create(ep_opts, 0, &block_opts); in f_midi2_alloc_inst()
2677 block_opts->info.midi1_num_groups = 1; in f_midi2_alloc_inst()
2686 config_group_init_type_name(&block_opts->group, "block.0", in f_midi2_alloc_inst()
2688 configfs_add_default_group(&block_opts->group, &ep_opts->group); in f_midi2_alloc_inst()