Searched refs:lb_opts (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/drivers/usb/gadget/function/
H A Df_loopback.c434 struct f_lb_opts *lb_opts; loopback_alloc() local
440 lb_opts = container_of(fi, struct f_lb_opts, func_inst); loopback_alloc()
442 mutex_lock(&lb_opts->lock); loopback_alloc()
443 lb_opts->refcnt++; loopback_alloc()
444 mutex_unlock(&lb_opts->lock); loopback_alloc()
446 loop->buflen = lb_opts->bulk_buflen; loopback_alloc()
447 loop->qlen = lb_opts->qlen; loopback_alloc()
470 struct f_lb_opts *lb_opts = to_f_lb_opts(item); lb_attr_release() local
472 usb_put_function_instance(&lb_opts->func_inst); lb_attr_release()
569 struct f_lb_opts *lb_opts; lb_free_instance() local
571 lb_opts = container_of(fi, struct f_lb_opts, func_inst); lb_free_instance()
572 kfree(lb_opts); lb_free_instance()
577 struct f_lb_opts *lb_opts; loopback_alloc_instance() local
579 lb_opts = kzalloc(sizeof(*lb_opts), GFP_KERNEL); loopback_alloc_instance()
580 if (!lb_opts) loopback_alloc_instance()
582 mutex_init(&lb_opts->lock); loopback_alloc_instance()
583 lb_opts->func_inst.free_func_inst = lb_free_instance; loopback_alloc_instance()
584 lb_opts->bulk_buflen = GZERO_BULK_BUFLEN; loopback_alloc_instance()
585 lb_opts->qlen = GZERO_QLEN; loopback_alloc_instance()
587 config_group_init_type_name(&lb_opts->func_inst.group, "", loopback_alloc_instance()
590 return &lb_opts->func_inst; loopback_alloc_instance()
/linux-4.4.14/drivers/usb/gadget/legacy/
H A Dzero.c261 struct f_lb_opts *lb_opts; zero_bind() local
301 lb_opts = container_of(func_inst_lb, struct f_lb_opts, func_inst); zero_bind()
302 lb_opts->bulk_buflen = gzero_options.bulk_buflen; zero_bind()
303 lb_opts->qlen = gzero_options.qlen; zero_bind()

Completed in 100 milliseconds