Lines Matching defs:opts
580 struct f_phonet_opts *opts = to_f_phonet_opts(item);
582 usb_put_function_instance(&opts->func_inst);
609 struct f_phonet_opts *opts;
611 opts = container_of(f, struct f_phonet_opts, func_inst);
612 if (opts->bound)
613 gphonet_cleanup(opts->net);
615 free_netdev(opts->net);
616 kfree(opts);
621 struct f_phonet_opts *opts;
623 opts = kzalloc(sizeof(*opts), GFP_KERNEL);
624 if (!opts)
627 opts->func_inst.free_func_inst = phonet_free_inst;
628 opts->net = gphonet_setup_default();
629 if (IS_ERR(opts->net)) {
630 struct net_device *net = opts->net;
631 kfree(opts);
635 config_group_init_type_name(&opts->func_inst.group, "",
638 return &opts->func_inst;
667 struct f_phonet_opts *opts;
675 opts = container_of(fi, struct f_phonet_opts, func_inst);
677 fp->dev = opts->net;