Lines Matching refs:opts
263 struct f_serial_opts *opts = to_f_serial_opts(item); in serial_attr_release() local
265 usb_put_function_instance(&opts->func_inst); in serial_attr_release()
292 struct f_serial_opts *opts; in gser_free_inst() local
294 opts = container_of(f, struct f_serial_opts, func_inst); in gser_free_inst()
295 gserial_free_line(opts->port_num); in gser_free_inst()
296 kfree(opts); in gser_free_inst()
301 struct f_serial_opts *opts; in gser_alloc_inst() local
304 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in gser_alloc_inst()
305 if (!opts) in gser_alloc_inst()
308 opts->func_inst.free_func_inst = gser_free_inst; in gser_alloc_inst()
309 ret = gserial_alloc_line(&opts->port_num); in gser_alloc_inst()
311 kfree(opts); in gser_alloc_inst()
314 config_group_init_type_name(&opts->func_inst.group, "", in gser_alloc_inst()
317 return &opts->func_inst; in gser_alloc_inst()
336 struct f_serial_opts *opts; in gser_alloc() local
343 opts = container_of(fi, struct f_serial_opts, func_inst); in gser_alloc()
345 gser->port_num = opts->port_num; in gser_alloc()