Lines Matching refs:opts
221 struct f_lb_opts *opts; in lb_free_func() local
223 opts = container_of(f->fi, struct f_lb_opts, func_inst); in lb_free_func()
225 mutex_lock(&opts->lock); in lb_free_func()
226 opts->refcnt--; in lb_free_func()
227 mutex_unlock(&opts->lock); in lb_free_func()
473 struct f_lb_opts *opts = to_f_lb_opts(item); in f_lb_opts_qlen_show() local
476 mutex_lock(&opts->lock); in f_lb_opts_qlen_show()
477 result = sprintf(page, "%d\n", opts->qlen); in f_lb_opts_qlen_show()
478 mutex_unlock(&opts->lock); in f_lb_opts_qlen_show()
486 struct f_lb_opts *opts = to_f_lb_opts(item); in f_lb_opts_qlen_store() local
490 mutex_lock(&opts->lock); in f_lb_opts_qlen_store()
491 if (opts->refcnt) { in f_lb_opts_qlen_store()
500 opts->qlen = num; in f_lb_opts_qlen_store()
503 mutex_unlock(&opts->lock); in f_lb_opts_qlen_store()
511 struct f_lb_opts *opts = to_f_lb_opts(item); in f_lb_opts_bulk_buflen_show() local
514 mutex_lock(&opts->lock); in f_lb_opts_bulk_buflen_show()
515 result = sprintf(page, "%d\n", opts->bulk_buflen); in f_lb_opts_bulk_buflen_show()
516 mutex_unlock(&opts->lock); in f_lb_opts_bulk_buflen_show()
524 struct f_lb_opts *opts = to_f_lb_opts(item); in f_lb_opts_bulk_buflen_store() local
528 mutex_lock(&opts->lock); in f_lb_opts_bulk_buflen_store()
529 if (opts->refcnt) { in f_lb_opts_bulk_buflen_store()
538 opts->bulk_buflen = num; in f_lb_opts_bulk_buflen_store()
541 mutex_unlock(&opts->lock); in f_lb_opts_bulk_buflen_store()