Lines Matching refs:opts
392 struct f_serial_opts *opts = to_f_serial_opts(item); in obex_attr_release() local
394 usb_put_function_instance(&opts->func_inst); in obex_attr_release()
421 struct f_serial_opts *opts; in obex_free_inst() local
423 opts = container_of(f, struct f_serial_opts, func_inst); in obex_free_inst()
424 gserial_free_line(opts->port_num); in obex_free_inst()
425 kfree(opts); in obex_free_inst()
430 struct f_serial_opts *opts; in obex_alloc_inst() local
433 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in obex_alloc_inst()
434 if (!opts) in obex_alloc_inst()
437 opts->func_inst.free_func_inst = obex_free_inst; in obex_alloc_inst()
438 ret = gserial_alloc_line(&opts->port_num); in obex_alloc_inst()
440 kfree(opts); in obex_alloc_inst()
443 config_group_init_type_name(&opts->func_inst.group, "", in obex_alloc_inst()
446 return &opts->func_inst; in obex_alloc_inst()
465 struct f_serial_opts *opts; in obex_alloc() local
472 opts = container_of(fi, struct f_serial_opts, func_inst); in obex_alloc()
474 obex->port_num = opts->port_num; in obex_alloc()