Lines Matching refs:opts
729 struct f_serial_opts *opts; in acm_alloc_func() local
750 opts = container_of(fi, struct f_serial_opts, func_inst); in acm_alloc_func()
751 acm->port_num = opts->port_num; in acm_alloc_func()
766 struct f_serial_opts *opts = to_f_serial_opts(item); in acm_attr_release() local
768 usb_put_function_instance(&opts->func_inst); in acm_attr_release()
795 struct f_serial_opts *opts; in acm_free_instance() local
797 opts = container_of(fi, struct f_serial_opts, func_inst); in acm_free_instance()
798 gserial_free_line(opts->port_num); in acm_free_instance()
799 kfree(opts); in acm_free_instance()
804 struct f_serial_opts *opts; in acm_alloc_instance() local
807 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in acm_alloc_instance()
808 if (!opts) in acm_alloc_instance()
810 opts->func_inst.free_func_inst = acm_free_instance; in acm_alloc_instance()
811 ret = gserial_alloc_line(&opts->port_num); in acm_alloc_instance()
813 kfree(opts); in acm_alloc_instance()
816 config_group_init_type_name(&opts->func_inst.group, "", in acm_alloc_instance()
818 return &opts->func_inst; in acm_alloc_instance()