Home
last modified time | relevance | path

Searched refs:func_inst (Results 1 – 25 of 52) sorted by relevance

123

/linux/drivers/usb/gadget/function/
H A Df_serial.c253 func_inst.group); in to_f_serial_opts()
260 usb_put_function_instance(&opts->func_inst); in serial_attr_release()
310 opts = container_of(f, struct f_serial_opts, func_inst); in gser_free_inst()
324 opts->func_inst.free_func_inst = gser_free_inst; in gser_alloc_inst()
330 config_group_init_type_name(&opts->func_inst.group, "", in gser_alloc_inst()
333 return &opts->func_inst; in gser_alloc_inst()
383 opts = container_of(fi, struct f_serial_opts, func_inst); in gser_alloc()
H A Df_subset.c302 gether_opts = container_of(f->fi, struct f_gether_opts, func_inst); in geth_bind()
383 func_inst.group); in to_f_gether_opts()
419 opts = container_of(f, struct f_gether_opts, func_inst); in geth_free_inst()
435 opts->func_inst.free_func_inst = geth_free_inst; in geth_alloc_inst()
443 config_group_init_type_name(&opts->func_inst.group, "", in geth_alloc_inst()
446 return &opts->func_inst; in geth_alloc_inst()
474 opts = container_of(fi, struct f_gether_opts, func_inst); in geth_alloc()
H A Df_loopback.c223 opts = container_of(f->fi, struct f_lb_opts, func_inst); in lb_free_func()
432 lb_opts = container_of(fi, struct f_lb_opts, func_inst); in loopback_alloc()
457 func_inst.group); in to_f_lb_opts()
464 usb_put_function_instance(&lb_opts->func_inst); in lb_attr_release()
563 lb_opts = container_of(fi, struct f_lb_opts, func_inst); in lb_free_instance()
575 lb_opts->func_inst.free_func_inst = lb_free_instance; in loopback_alloc_instance()
579 config_group_init_type_name(&lb_opts->func_inst.group, "", in loopback_alloc_instance()
582 return &lb_opts->func_inst; in loopback_alloc_instance()
H A Df_obex.c383 func_inst.group); in to_f_serial_opts()
390 usb_put_function_instance(&opts->func_inst); in obex_attr_release()
419 opts = container_of(f, struct f_serial_opts, func_inst); in obex_free_inst()
433 opts->func_inst.free_func_inst = obex_free_inst; in obex_alloc_inst()
439 config_group_init_type_name(&opts->func_inst.group, "", in obex_alloc_inst()
442 return &opts->func_inst; in obex_alloc_inst()
468 opts = container_of(fi, struct f_serial_opts, func_inst); in obex_alloc()
H A Df_tcm.c32 struct usb_function_instance *func_inst; member
1656 if (tpg_instances[i].func_inst && !tpg_instances[i].tpg) in usbg_make_tpg()
1661 opts = container_of(tpg_instances[i].func_inst, struct f_tcm_opts, in usbg_make_tpg()
1662 func_inst); in usbg_make_tpg()
1673 &opts->func_inst.group.cg_item); in usbg_make_tpg()
1701 tpg->fi = tpg_instances[i].func_inst; in usbg_make_tpg()
1714 configfs_undepend_item_unlocked(&opts->func_inst.group.cg_item); in usbg_make_tpg()
1742 opts = container_of(tpg_instances[i].func_inst, in usbg_drop_tpg()
1743 struct f_tcm_opts, func_inst); in usbg_drop_tpg()
1749 &opts->func_inst.group.cg_item); in usbg_drop_tpg()
[all …]
H A Df_eem.c255 eem_opts = container_of(f->fi, struct f_eem_opts, func_inst); in eem_bind()
563 func_inst.group); in to_f_eem_opts()
599 opts = container_of(f, struct f_eem_opts, func_inst); in eem_free_inst()
615 opts->func_inst.free_func_inst = eem_free_inst; in eem_alloc_inst()
623 config_group_init_type_name(&opts->func_inst.group, "", &eem_func_type); in eem_alloc_inst()
625 return &opts->func_inst; in eem_alloc_inst()
634 opts = container_of(f->fi, struct f_eem_opts, func_inst); in eem_free()
658 opts = container_of(fi, struct f_eem_opts, func_inst); in eem_alloc()
H A Dg_zero.h30 struct usb_function_instance func_inst; member
51 struct usb_function_instance func_inst; member
H A Du_uvc.h20 #define fi_to_f_uvc_opts(f) container_of(f, struct f_uvc_opts, func_inst)
23 struct usb_function_instance func_inst; member
H A Df_phonet.c491 phonet_opts = container_of(f->fi, struct f_phonet_opts, func_inst); in pn_bind()
578 func_inst.group); in to_f_phonet_opts()
585 usb_put_function_instance(&opts->func_inst); in phonet_attr_release()
614 opts = container_of(f, struct f_phonet_opts, func_inst); in phonet_free_inst()
630 opts->func_inst.free_func_inst = phonet_free_inst; in phonet_alloc_inst()
638 config_group_init_type_name(&opts->func_inst.group, "", in phonet_alloc_inst()
641 return &opts->func_inst; in phonet_alloc_inst()
676 opts = container_of(fi, struct f_phonet_opts, func_inst); in phonet_alloc()
H A Df_uac1_legacy.c331 func_inst); in f_audio_out_ep_complete()
586 opts = container_of(f->fi, struct f_uac1_legacy_opts, func_inst); in f_audio_set_alt()
709 audio_opts = container_of(f->fi, struct f_uac1_legacy_opts, func_inst); in f_audio_bind()
805 func_inst.group); in to_f_uac1_opts()
812 usb_put_function_instance(&opts->func_inst); in f_uac1_attr_release()
931 opts = container_of(f, struct f_uac1_legacy_opts, func_inst); in f_audio_free_inst()
950 opts->func_inst.free_func_inst = f_audio_free_inst; in f_audio_alloc_inst()
952 config_group_init_type_name(&opts->func_inst.group, "", in f_audio_alloc_inst()
961 return &opts->func_inst; in f_audio_alloc_inst()
970 opts = container_of(f->fi, struct f_uac1_legacy_opts, func_inst); in f_audio_free()
[all …]
H A Du_fs.h290 struct usb_function_instance func_inst; member
298 return container_of(fi, struct f_fs_opts, func_inst); in to_f_fs_opts()
H A Df_mass_storage.h72 struct usb_function_instance func_inst; member
115 return container_of(fi, struct fsg_opts, func_inst); in fsg_opts_from_func_inst()
H A Df_midi.c1079 func_inst.group); in to_f_midi_opts()
1086 usb_put_function_instance(&opts->func_inst); in midi_attr_release()
1256 opts = container_of(f, struct f_midi_opts, func_inst); in f_midi_free_inst()
1280 opts->func_inst.free_func_inst = f_midi_free_inst; in f_midi_alloc_inst()
1289 config_group_init_type_name(&opts->func_inst.group, "", in f_midi_alloc_inst()
1292 return &opts->func_inst; in f_midi_alloc_inst()
1302 opts = container_of(f->fi, struct f_midi_opts, func_inst); in f_midi_free()
1313 f_midi_free_inst(&opts->func_inst); in f_midi_free()
1346 opts = container_of(fi, struct f_midi_opts, func_inst); in f_midi_alloc()
H A Du_gether.h19 struct usb_function_instance func_inst; member
H A Du_eem.h19 struct usb_function_instance func_inst; member
H A Du_ecm.h19 struct usb_function_instance func_inst; member
H A Du_printer.h19 struct usb_function_instance func_inst; member
H A Du_midi.h19 struct usb_function_instance func_inst; member
H A Df_sourcesink.c451 opts = container_of(f->fi, struct f_ss_opts, func_inst); in sourcesink_free_func()
844 ss_opts = container_of(fi, struct f_ss_opts, func_inst); in source_sink_alloc_func()
875 func_inst.group); in to_f_ss_opts()
882 usb_put_function_instance(&ss_opts->func_inst); in ss_attr_release()
1240 ss_opts = container_of(fi, struct f_ss_opts, func_inst); in source_sink_free_instance()
1252 ss_opts->func_inst.free_func_inst = source_sink_free_instance; in source_sink_alloc_inst()
1259 config_group_init_type_name(&ss_opts->func_inst.group, "", in source_sink_alloc_inst()
1262 return &ss_opts->func_inst; in source_sink_alloc_inst()
H A Du_tcm.h29 struct usb_function_instance func_inst; member
H A Du_ncm.h19 struct usb_function_instance func_inst; member
/linux/net/9p/
H A Dtrans_usbg.c66 struct usb_function_instance func_inst; member
462 struct f_usb9pfs_opts, func_inst); in p9_usbg_close()
699 opts = container_of(f->fi, struct f_usb9pfs_opts, func_inst); in usb9pfs_func_bind()
730 opts = container_of(f->fi, struct f_usb9pfs_opts, func_inst); in usb9pfs_free_func()
769 usb9pfs_opts = container_of(fi, struct f_usb9pfs_opts, func_inst); in usb9pfs_alloc()
792 func_inst.group); in to_f_usb9pfs_opts()
797 return container_of(fi, struct f_usb9pfs_opts, func_inst); in fi_to_f_usb9pfs_opts()
804 usb_put_function_instance(&usb9pfs_opts->func_inst); in usb9pfs_attr_release()
898 container_of(fi, struct f_usb9pfs_opts, func_inst); in usb9pfs_free_instance()
919 usb9pfs_opts->func_inst.set_inst_name = usb9pfs_set_inst_tag; in usb9pfs_alloc_instance()
[all …]
/linux/drivers/usb/gadget/legacy/
H A Dg_ffs.c324 ecm_opts = container_of(fi_ecm, struct f_ecm_opts, func_inst); in gfs_bind()
333 func_inst); in gfs_bind()
347 func_inst)->net; in gfs_bind()
369 ecm_opts = container_of(fi_ecm, struct f_ecm_opts, func_inst); in gfs_bind()
375 func_inst); in gfs_bind()
H A Dether.c320 eem_opts = container_of(fi_eem, struct f_eem_opts, func_inst); in eth_bind()
334 ecm_opts = container_of(fi_ecm, struct f_ecm_opts, func_inst); in eth_bind()
347 func_inst); in eth_bind()
H A Daudio.c283 uac2_opts = container_of(fi_uac2, struct f_uac2_opts, func_inst); in audio_bind()
301 uac1_opts = container_of(fi_uac1, struct f_uac1_opts, func_inst); in audio_bind()
316 uac1_opts = container_of(fi_uac1, struct f_uac1_legacy_opts, func_inst); in audio_bind()

123