Lines Matching defs:opts
389 struct f_serial_opts *opts = to_f_serial_opts(item);
391 usb_put_function_instance(&opts->func_inst);
418 struct f_serial_opts *opts;
420 opts = container_of(f, struct f_serial_opts, func_inst);
421 gserial_free_line(opts->port_num);
422 kfree(opts);
427 struct f_serial_opts *opts;
430 opts = kzalloc(sizeof(*opts), GFP_KERNEL);
431 if (!opts)
434 opts->func_inst.free_func_inst = obex_free_inst;
435 ret = gserial_alloc_line_no_console(&opts->port_num);
437 kfree(opts);
440 config_group_init_type_name(&opts->func_inst.group, "",
443 return &opts->func_inst;
462 struct f_serial_opts *opts;
469 opts = container_of(fi, struct f_serial_opts, func_inst);
471 obex->port_num = opts->port_num;