Lines Matching refs:opts
258 struct f_serial_opts *opts = to_f_serial_opts(item); in serial_attr_release() local
260 usb_put_function_instance(&opts->func_inst); in serial_attr_release()
308 struct f_serial_opts *opts; in gser_free_inst() local
310 opts = container_of(f, struct f_serial_opts, func_inst); in gser_free_inst()
311 gserial_free_line(opts->port_num); in gser_free_inst()
312 kfree(opts); in gser_free_inst()
317 struct f_serial_opts *opts; in gser_alloc_inst() local
320 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in gser_alloc_inst()
321 if (!opts) in gser_alloc_inst()
324 opts->func_inst.free_func_inst = gser_free_inst; in gser_alloc_inst()
325 ret = gserial_alloc_line(&opts->port_num); in gser_alloc_inst()
327 kfree(opts); in gser_alloc_inst()
330 config_group_init_type_name(&opts->func_inst.group, "", in gser_alloc_inst()
333 return &opts->func_inst; in gser_alloc_inst()
370 struct f_serial_opts *opts; in gser_alloc() local
377 opts = container_of(fi, struct f_serial_opts, func_inst); in gser_alloc()
379 gser->port_num = opts->port_num; in gser_alloc()