Lines Matching defs:opts
388 struct f_serial_opts *opts = to_f_serial_opts(item);
390 usb_put_function_instance(&opts->func_inst);
417 struct f_serial_opts *opts;
419 opts = container_of(f, struct f_serial_opts, func_inst);
420 gserial_free_line(opts->port_num);
421 kfree(opts);
426 struct f_serial_opts *opts;
429 opts = kzalloc(sizeof(*opts), GFP_KERNEL);
430 if (!opts)
433 opts->func_inst.free_func_inst = obex_free_inst;
434 ret = gserial_alloc_line_no_console(&opts->port_num);
436 kfree(opts);
439 config_group_init_type_name(&opts->func_inst.group, "",
442 return &opts->func_inst;
461 struct f_serial_opts *opts;
468 opts = container_of(fi, struct f_serial_opts, func_inst);
470 obex->port_num = opts->port_num;