Lines Matching refs:opts
422 struct f_serial_opts *opts = to_f_serial_opts(item); in f_obex_attr_show() local
428 ret = f_serial_opts_attr->show(opts, page); in f_obex_attr_show()
435 struct f_serial_opts *opts = to_f_serial_opts(item); in obex_attr_release() local
437 usb_put_function_instance(&opts->func_inst); in obex_attr_release()
445 static ssize_t f_obex_port_num_show(struct f_serial_opts *opts, char *page) in f_obex_port_num_show() argument
447 return sprintf(page, "%u\n", opts->port_num); in f_obex_port_num_show()
466 struct f_serial_opts *opts; in obex_free_inst() local
468 opts = container_of(f, struct f_serial_opts, func_inst); in obex_free_inst()
469 gserial_free_line(opts->port_num); in obex_free_inst()
470 kfree(opts); in obex_free_inst()
475 struct f_serial_opts *opts; in obex_alloc_inst() local
478 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in obex_alloc_inst()
479 if (!opts) in obex_alloc_inst()
482 opts->func_inst.free_func_inst = obex_free_inst; in obex_alloc_inst()
483 ret = gserial_alloc_line(&opts->port_num); in obex_alloc_inst()
485 kfree(opts); in obex_alloc_inst()
488 config_group_init_type_name(&opts->func_inst.group, "", in obex_alloc_inst()
491 return &opts->func_inst; in obex_alloc_inst()
510 struct f_serial_opts *opts; in obex_alloc() local
517 opts = container_of(fi, struct f_serial_opts, func_inst); in obex_alloc()
519 obex->port_num = opts->port_num; in obex_alloc()