Lines Matching refs:block_opts
2327 struct f_midi2_block_opts *block_opts; in f_midi2_block_opts_create() local
2336 block_opts = kzalloc(sizeof(*block_opts), GFP_KERNEL); in f_midi2_block_opts_create()
2337 if (!block_opts) { in f_midi2_block_opts_create()
2342 block_opts->ep = ep_opts; in f_midi2_block_opts_create()
2343 block_opts->id = blk; in f_midi2_block_opts_create()
2346 block_opts->info.direction = SNDRV_UMP_DIR_BIDIRECTION; in f_midi2_block_opts_create()
2347 block_opts->info.first_group = 0; in f_midi2_block_opts_create()
2348 block_opts->info.num_groups = 1; in f_midi2_block_opts_create()
2349 block_opts->info.ui_hint = SNDRV_UMP_BLOCK_UI_HINT_BOTH; in f_midi2_block_opts_create()
2350 block_opts->info.active = 1; in f_midi2_block_opts_create()
2352 ep_opts->blks[blk] = block_opts; in f_midi2_block_opts_create()
2353 *block_p = block_opts; in f_midi2_block_opts_create()
2365 struct f_midi2_block_opts *block_opts; in f_midi2_opts_block_make() local
2381 ret = f_midi2_block_opts_create(ep_opts, blk, &block_opts); in f_midi2_opts_block_make()
2385 config_group_init_type_name(&block_opts->group, name, in f_midi2_opts_block_make()
2387 return &block_opts->group; in f_midi2_opts_block_make()
2394 struct f_midi2_block_opts *block_opts = to_f_midi2_block_opts(item); in f_midi2_opts_block_drop() local
2396 mutex_lock(&block_opts->ep->opts->lock); in f_midi2_opts_block_drop()
2397 block_opts->ep->blks[block_opts->id] = NULL; in f_midi2_opts_block_drop()
2398 mutex_unlock(&block_opts->ep->opts->lock); in f_midi2_opts_block_drop()
2645 struct f_midi2_block_opts *block_opts; in f_midi2_alloc_inst() local
2667 ret = f_midi2_block_opts_create(ep_opts, 0, &block_opts); in f_midi2_alloc_inst()
2675 block_opts->info.midi1_num_groups = 1; in f_midi2_alloc_inst()
2684 config_group_init_type_name(&block_opts->group, "block.0", in f_midi2_alloc_inst()
2686 configfs_add_default_group(&block_opts->group, &ep_opts->group); in f_midi2_alloc_inst()