Home
last modified time | relevance | path

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

123

/drivers/usb/gadget/function/
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()
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()
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()
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()
A Df_tcm.c32 struct usb_function_instance *func_inst; member
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()
1743 struct f_tcm_opts, func_inst); in usbg_drop_tpg()
1749 &opts->func_inst.group.cg_item); in usbg_drop_tpg()
2439 func_inst.group); in to_f_tcm_opts()
2470 tpg_instances[i].func_inst = NULL; in tcm_free_inst()
2543 if (!tpg_instances[i].func_inst) in tcm_alloc_inst()
2551 tpg_instances[i].func_inst = &opts->func_inst; in tcm_alloc_inst()
[all …]
A Df_eem.c255 eem_opts = container_of(f->fi, struct f_eem_opts, func_inst); in eem_bind()
558 func_inst.group); in to_f_eem_opts()
594 opts = container_of(f, struct f_eem_opts, func_inst); in eem_free_inst()
610 opts->func_inst.free_func_inst = eem_free_inst; in eem_alloc_inst()
618 config_group_init_type_name(&opts->func_inst.group, "", &eem_func_type); in eem_alloc_inst()
620 return &opts->func_inst; in eem_alloc_inst()
629 opts = container_of(f->fi, struct f_eem_opts, func_inst); in eem_free()
653 opts = container_of(fi, struct f_eem_opts, func_inst); in eem_alloc()
A Df_rndis.c669 rndis_opts = container_of(f->fi, struct f_rndis_opts, func_inst); in rndis_bind()
826 opts = container_of(f, struct f_rndis_opts, func_inst); in rndis_borrow_net()
839 func_inst.group); in to_f_rndis_opts()
887 opts = container_of(f, struct f_rndis_opts, func_inst); in rndis_free_inst()
912 opts->func_inst.free_func_inst = rndis_free_inst; in rndis_alloc_inst()
927 config_group_init_type_name(&opts->func_inst.group, "", in rndis_alloc_inst()
930 usb_os_desc_prepare_interf_dir(&opts->func_inst.group, 1, descs, in rndis_alloc_inst()
933 rndis_free_inst(&opts->func_inst); in rndis_alloc_inst()
938 return &opts->func_inst; in rndis_alloc_inst()
948 opts = container_of(f->fi, struct f_rndis_opts, func_inst); in rndis_free()
[all …]
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()
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 …]
A Dg_zero.h30 struct usb_function_instance func_inst; member
51 struct usb_function_instance func_inst; member
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
A Df_acm.c728 opts = container_of(f->fi, struct f_serial_opts, func_inst); in acm_free_func()
773 opts = container_of(fi, struct f_serial_opts, func_inst); in acm_alloc_func()
790 func_inst.group); in to_f_serial_opts()
797 usb_put_function_instance(&opts->func_inst); in acm_attr_release()
878 opts = container_of(fi, struct f_serial_opts, func_inst); in acm_free_instance()
893 opts->func_inst.free_func_inst = acm_free_instance; in acm_alloc_instance()
900 config_group_init_type_name(&opts->func_inst.group, "", in acm_alloc_instance()
902 return &opts->func_inst; in acm_alloc_instance()
A Df_ecm.c685 ecm_opts = container_of(f->fi, struct f_ecm_opts, func_inst); in ecm_bind()
810 func_inst.group); in to_f_ecm_opts()
846 opts = container_of(f, struct f_ecm_opts, func_inst); in ecm_free_inst()
862 opts->func_inst.free_func_inst = ecm_free_inst; in ecm_alloc_inst()
870 config_group_init_type_name(&opts->func_inst.group, "", &ecm_func_type); in ecm_alloc_inst()
872 return &opts->func_inst; in ecm_alloc_inst()
907 opts = container_of(f->fi, struct f_ecm_opts, func_inst); in ecm_free()
942 opts = container_of(fi, struct f_ecm_opts, func_inst); in ecm_alloc()
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()
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()
A Df_ncm.c1186 ncm_opts = container_of(port->func.fi, struct f_ncm_opts, func_inst); in ncm_unwrap_ntb()
1442 ncm_opts = container_of(f->fi, struct f_ncm_opts, func_inst); in ncm_bind()
1586 func_inst.group); in to_f_ncm_opts()
1667 opts = container_of(f, struct f_ncm_opts, func_inst); in ncm_free_inst()
1689 opts->func_inst.free_func_inst = ncm_free_inst; in ncm_alloc_inst()
1702 config_group_init_type_name(&opts->func_inst.group, "", &ncm_func_type); in ncm_alloc_inst()
1704 usb_os_desc_prepare_interf_dir(&opts->func_inst.group, 1, descs, in ncm_alloc_inst()
1707 ncm_free_inst(&opts->func_inst); in ncm_alloc_inst()
1712 return &opts->func_inst; in ncm_alloc_inst()
1721 opts = container_of(f->fi, struct f_ncm_opts, func_inst); in ncm_free()
[all …]
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()
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()
A Du_ecm.h19 struct usb_function_instance func_inst; member
A Du_eem.h19 struct usb_function_instance func_inst; member
A Du_gether.h19 struct usb_function_instance func_inst; member
A Du_printer.h19 struct usb_function_instance func_inst; member
/drivers/usb/gadget/legacy/
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()
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()
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()

Completed in 53 milliseconds

123