Lines Matching refs:opts
275 struct f_serial_opts *opts = to_f_serial_opts(item); in f_serial_attr_show() local
281 ret = f_serial_opts_attr->show(opts, page); in f_serial_attr_show()
288 struct f_serial_opts *opts = to_f_serial_opts(item); in serial_attr_release() local
290 usb_put_function_instance(&opts->func_inst); in serial_attr_release()
298 static ssize_t f_serial_port_num_show(struct f_serial_opts *opts, char *page) in f_serial_port_num_show() argument
300 return sprintf(page, "%u\n", opts->port_num); in f_serial_port_num_show()
319 struct f_serial_opts *opts; in gser_free_inst() local
321 opts = container_of(f, struct f_serial_opts, func_inst); in gser_free_inst()
322 gserial_free_line(opts->port_num); in gser_free_inst()
323 kfree(opts); in gser_free_inst()
328 struct f_serial_opts *opts; in gser_alloc_inst() local
331 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in gser_alloc_inst()
332 if (!opts) in gser_alloc_inst()
335 opts->func_inst.free_func_inst = gser_free_inst; in gser_alloc_inst()
336 ret = gserial_alloc_line(&opts->port_num); in gser_alloc_inst()
338 kfree(opts); in gser_alloc_inst()
341 config_group_init_type_name(&opts->func_inst.group, "", in gser_alloc_inst()
344 return &opts->func_inst; in gser_alloc_inst()
363 struct f_serial_opts *opts; in gser_alloc() local
370 opts = container_of(fi, struct f_serial_opts, func_inst); in gser_alloc()
372 gser->port_num = opts->port_num; in gser_alloc()