Lines Matching defs:opts
583 struct f_phonet_opts *opts = to_f_phonet_opts(item);
585 usb_put_function_instance(&opts->func_inst);
612 struct f_phonet_opts *opts;
614 opts = container_of(f, struct f_phonet_opts, func_inst);
615 if (opts->bound)
616 gphonet_cleanup(opts->net);
618 free_netdev(opts->net);
619 kfree(opts);
624 struct f_phonet_opts *opts;
626 opts = kzalloc(sizeof(*opts), GFP_KERNEL);
627 if (!opts)
630 opts->func_inst.free_func_inst = phonet_free_inst;
631 opts->net = gphonet_setup_default();
632 if (IS_ERR(opts->net)) {
633 struct net_device *net = opts->net;
634 kfree(opts);
638 config_group_init_type_name(&opts->func_inst.group, "",
641 return &opts->func_inst;
670 struct f_phonet_opts *opts;
676 opts = container_of(fi, struct f_phonet_opts, func_inst);
678 fp->dev = opts->net;