Lines Matching refs:ss_opts
838 struct f_ss_opts *ss_opts; in source_sink_alloc_func() local
844 ss_opts = container_of(fi, struct f_ss_opts, func_inst); in source_sink_alloc_func()
846 mutex_lock(&ss_opts->lock); in source_sink_alloc_func()
847 ss_opts->refcnt++; in source_sink_alloc_func()
848 mutex_unlock(&ss_opts->lock); in source_sink_alloc_func()
850 ss->pattern = ss_opts->pattern; in source_sink_alloc_func()
851 ss->isoc_interval = ss_opts->isoc_interval; in source_sink_alloc_func()
852 ss->isoc_maxpacket = ss_opts->isoc_maxpacket; in source_sink_alloc_func()
853 ss->isoc_mult = ss_opts->isoc_mult; in source_sink_alloc_func()
854 ss->isoc_maxburst = ss_opts->isoc_maxburst; in source_sink_alloc_func()
855 ss->buflen = ss_opts->bulk_buflen; in source_sink_alloc_func()
856 ss->bulk_qlen = ss_opts->bulk_qlen; in source_sink_alloc_func()
857 ss->iso_qlen = ss_opts->iso_qlen; in source_sink_alloc_func()
880 struct f_ss_opts *ss_opts = to_f_ss_opts(item); in ss_attr_release() local
882 usb_put_function_instance(&ss_opts->func_inst); in ss_attr_release()
1238 struct f_ss_opts *ss_opts; in source_sink_free_instance() local
1240 ss_opts = container_of(fi, struct f_ss_opts, func_inst); in source_sink_free_instance()
1241 kfree(ss_opts); in source_sink_free_instance()
1246 struct f_ss_opts *ss_opts; in source_sink_alloc_inst() local
1248 ss_opts = kzalloc(sizeof(*ss_opts), GFP_KERNEL); in source_sink_alloc_inst()
1249 if (!ss_opts) in source_sink_alloc_inst()
1251 mutex_init(&ss_opts->lock); in source_sink_alloc_inst()
1252 ss_opts->func_inst.free_func_inst = source_sink_free_instance; in source_sink_alloc_inst()
1253 ss_opts->isoc_interval = GZERO_ISOC_INTERVAL; in source_sink_alloc_inst()
1254 ss_opts->isoc_maxpacket = GZERO_ISOC_MAXPACKET; in source_sink_alloc_inst()
1255 ss_opts->bulk_buflen = GZERO_BULK_BUFLEN; in source_sink_alloc_inst()
1256 ss_opts->bulk_qlen = GZERO_SS_BULK_QLEN; in source_sink_alloc_inst()
1257 ss_opts->iso_qlen = GZERO_SS_ISO_QLEN; in source_sink_alloc_inst()
1259 config_group_init_type_name(&ss_opts->func_inst.group, "", in source_sink_alloc_inst()
1262 return &ss_opts->func_inst; in source_sink_alloc_inst()