Home
last modified time | relevance | path

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

123

/OK3568_Linux_fs/kernel/drivers/usb/gadget/function/
H A Df_serial.c255 func_inst.group); in to_f_serial_opts()
262 usb_put_function_instance(&opts->func_inst); in serial_attr_release()
312 opts = container_of(f, struct f_serial_opts, func_inst); in gser_free_inst()
326 opts->func_inst.free_func_inst = gser_free_inst; in gser_alloc_inst()
332 config_group_init_type_name(&opts->func_inst.group, "", in gser_alloc_inst()
335 return &opts->func_inst; in gser_alloc_inst()
379 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()
385 func_inst.group); in to_f_gether_opts()
421 opts = container_of(f, struct f_gether_opts, func_inst); in geth_free_inst()
437 opts->func_inst.free_func_inst = geth_free_inst; in geth_alloc_inst()
445 config_group_init_type_name(&opts->func_inst.group, "", in geth_alloc_inst()
448 return &opts->func_inst; in geth_alloc_inst()
476 opts = container_of(fi, struct f_gether_opts, func_inst); in geth_alloc()
H A Df_loopback.c225 opts = container_of(f->fi, struct f_lb_opts, func_inst); in lb_free_func()
434 lb_opts = container_of(fi, struct f_lb_opts, func_inst); in loopback_alloc()
459 func_inst.group); in to_f_lb_opts()
466 usb_put_function_instance(&lb_opts->func_inst); in lb_attr_release()
565 lb_opts = container_of(fi, struct f_lb_opts, func_inst); in lb_free_instance()
577 lb_opts->func_inst.free_func_inst = lb_free_instance; in loopback_alloc_instance()
581 config_group_init_type_name(&lb_opts->func_inst.group, "", in loopback_alloc_instance()
584 return &lb_opts->func_inst; in loopback_alloc_instance()
H A Df_obex.c384 func_inst.group); in to_f_serial_opts()
391 usb_put_function_instance(&opts->func_inst); in obex_attr_release()
420 opts = container_of(f, struct f_serial_opts, func_inst); in obex_free_inst()
434 opts->func_inst.free_func_inst = obex_free_inst; in obex_alloc_inst()
440 config_group_init_type_name(&opts->func_inst.group, "", in obex_alloc_inst()
443 return &opts->func_inst; in obex_alloc_inst()
469 opts = container_of(fi, struct f_serial_opts, func_inst); in obex_alloc()
H A Df_tcm.c31 struct usb_function_instance *func_inst; member
1358 if (tpg_instances[i].func_inst && !tpg_instances[i].tpg) in usbg_make_tpg()
1363 opts = container_of(tpg_instances[i].func_inst, struct f_tcm_opts, in usbg_make_tpg()
1364 func_inst); in usbg_make_tpg()
1375 &opts->func_inst.group.cg_item); in usbg_make_tpg()
1402 tpg->fi = tpg_instances[i].func_inst; in usbg_make_tpg()
1415 configfs_undepend_item_unlocked(&opts->func_inst.group.cg_item); in usbg_make_tpg()
1443 opts = container_of(tpg_instances[i].func_inst, in usbg_drop_tpg()
1444 struct f_tcm_opts, func_inst); in usbg_drop_tpg()
1450 &opts->func_inst.group.cg_item); in usbg_drop_tpg()
[all …]
H A Du_uac.h36 struct usb_function_instance func_inst; member
178 return container_of(agdev->func.fi, struct f_uac_opts, func_inst); in g_audio_to_uac_opts()
184 func_inst.group); in to_f_uac_opts()
191 usb_put_function_instance(&opts->func_inst); in f_uac_attr_release()
H A Df_eem.c255 eem_opts = container_of(f->fi, struct f_eem_opts, func_inst); in eem_bind()
560 func_inst.group); in to_f_eem_opts()
596 opts = container_of(f, struct f_eem_opts, func_inst); in eem_free_inst()
612 opts->func_inst.free_func_inst = eem_free_inst; in eem_alloc_inst()
620 config_group_init_type_name(&opts->func_inst.group, "", &eem_func_type); in eem_alloc_inst()
622 return &opts->func_inst; in eem_alloc_inst()
631 opts = container_of(f->fi, struct f_eem_opts, func_inst); in eem_free()
655 opts = container_of(fi, struct f_eem_opts, func_inst); in eem_alloc()
H A Df_rndis.c696 rndis_opts = container_of(f->fi, struct f_rndis_opts, func_inst); in rndis_bind()
855 opts = container_of(f, struct f_rndis_opts, func_inst); in rndis_borrow_net()
868 func_inst.group); in to_f_rndis_opts()
916 opts = container_of(f, struct f_rndis_opts, func_inst); in rndis_free_inst()
941 opts->func_inst.free_func_inst = rndis_free_inst; in rndis_alloc_inst()
956 config_group_init_type_name(&opts->func_inst.group, "", in rndis_alloc_inst()
959 usb_os_desc_prepare_interf_dir(&opts->func_inst.group, 1, descs, in rndis_alloc_inst()
962 rndis_free_inst(&opts->func_inst); in rndis_alloc_inst()
967 return &opts->func_inst; in rndis_alloc_inst()
977 opts = container_of(f->fi, struct f_rndis_opts, func_inst); in rndis_free()
[all …]
H A Df_phonet.c488 phonet_opts = container_of(f->fi, struct f_phonet_opts, func_inst); in pn_bind()
575 func_inst.group); in to_f_phonet_opts()
582 usb_put_function_instance(&opts->func_inst); in phonet_attr_release()
611 opts = container_of(f, struct f_phonet_opts, func_inst); in phonet_free_inst()
627 opts->func_inst.free_func_inst = phonet_free_inst; in phonet_alloc_inst()
635 config_group_init_type_name(&opts->func_inst.group, "", in phonet_alloc_inst()
638 return &opts->func_inst; in phonet_alloc_inst()
675 opts = container_of(fi, struct f_phonet_opts, func_inst); in phonet_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)
24 struct usb_function_instance func_inst; member
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()
714 audio_opts = container_of(f->fi, struct f_uac1_legacy_opts, func_inst); in f_audio_bind()
810 func_inst.group); in to_f_uac1_opts()
817 usb_put_function_instance(&opts->func_inst); in f_uac1_attr_release()
936 opts = container_of(f, struct f_uac1_legacy_opts, func_inst); in f_audio_free_inst()
955 opts->func_inst.free_func_inst = f_audio_free_inst; in f_audio_alloc_inst()
957 config_group_init_type_name(&opts->func_inst.group, "", in f_audio_alloc_inst()
966 return &opts->func_inst; in f_audio_alloc_inst()
975 opts = container_of(f->fi, struct f_uac1_legacy_opts, func_inst); in f_audio_free()
[all …]
H A Df_ecm.c696 ecm_opts = container_of(f->fi, struct f_ecm_opts, func_inst); in ecm_bind()
827 func_inst.group); in to_f_ecm_opts()
863 opts = container_of(f, struct f_ecm_opts, func_inst); in ecm_free_inst()
879 opts->func_inst.free_func_inst = ecm_free_inst; in ecm_alloc_inst()
887 config_group_init_type_name(&opts->func_inst.group, "", &ecm_func_type); in ecm_alloc_inst()
889 return &opts->func_inst; in ecm_alloc_inst()
898 opts = container_of(f->fi, struct f_ecm_opts, func_inst); in ecm_free()
933 opts = container_of(fi, struct f_ecm_opts, func_inst); in ecm_alloc()
H A Df_acm.c765 opts = container_of(fi, struct f_serial_opts, func_inst); in acm_alloc_func()
778 func_inst.group); in to_f_serial_opts()
785 usb_put_function_instance(&opts->func_inst); in acm_attr_release()
835 opts = container_of(fi, struct f_serial_opts, func_inst); in acm_free_instance()
848 opts->func_inst.free_func_inst = acm_free_instance; in acm_alloc_instance()
854 config_group_init_type_name(&opts->func_inst.group, "", in acm_alloc_instance()
856 return &opts->func_inst; in acm_alloc_instance()
H A Df_midi.c1077 func_inst.group); in to_f_midi_opts()
1084 usb_put_function_instance(&opts->func_inst); in midi_attr_release()
1210 opts = container_of(f, struct f_midi_opts, func_inst); in f_midi_free_inst()
1293 opts->func_inst.free_func_inst = f_midi_free_inst; in f_midi_alloc_inst()
1302 if (create_alsa_device(&opts->func_inst)) { in f_midi_alloc_inst()
1307 config_group_init_type_name(&opts->func_inst.group, "", in f_midi_alloc_inst()
1310 return &opts->func_inst; in f_midi_alloc_inst()
1320 opts = container_of(f->fi, struct f_midi_opts, func_inst); in f_midi_free()
1327 opts->func_inst.f = NULL; in f_midi_free()
1332 f_midi_free_inst(&opts->func_inst); in f_midi_free()
[all …]
H A Df_audio_source.c284 struct usb_function_instance func_inst; member
943 func_inst.group); in to_audio_source_instance()
949 return container_of(fi, struct audio_source_instance, func_inst); in to_fi_audio_source()
956 usb_put_function_instance(&fi_audio->func_inst); in audio_source_attr_release()
1016 fi_audio->func_inst.set_inst_name = audio_source_set_inst_name; in audio_source_alloc_inst()
1017 fi_audio->func_inst.free_func_inst = audio_source_free_inst; in audio_source_alloc_inst()
1026 config_group_init_type_name(&fi_audio->func_inst.group, "", in audio_source_alloc_inst()
1052 return &fi_audio->func_inst; in audio_source_alloc_inst()
H A Du_fs.h292 struct usb_function_instance func_inst; member
300 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_ncm.c1431 ncm_opts = container_of(f->fi, struct f_ncm_opts, func_inst); in ncm_bind()
1579 func_inst.group); in to_f_ncm_opts()
1615 opts = container_of(f, struct f_ncm_opts, func_inst); in ncm_free_inst()
1637 opts->func_inst.free_func_inst = ncm_free_inst; in ncm_alloc_inst()
1649 config_group_init_type_name(&opts->func_inst.group, "", &ncm_func_type); in ncm_alloc_inst()
1651 usb_os_desc_prepare_interf_dir(&opts->func_inst.group, 1, descs, in ncm_alloc_inst()
1654 ncm_free_inst(&opts->func_inst); in ncm_alloc_inst()
1659 return &opts->func_inst; in ncm_alloc_inst()
1668 opts = container_of(f->fi, struct f_ncm_opts, func_inst); in ncm_free()
1709 opts = container_of(fi, struct f_ncm_opts, func_inst); in ncm_alloc()
H A Df_sourcesink.c453 opts = container_of(f->fi, struct f_ss_opts, func_inst); in sourcesink_free_func()
845 ss_opts = container_of(fi, struct f_ss_opts, func_inst); in source_sink_alloc_func()
876 func_inst.group); in to_f_ss_opts()
883 usb_put_function_instance(&ss_opts->func_inst); in ss_attr_release()
1241 ss_opts = container_of(fi, struct f_ss_opts, func_inst); in source_sink_free_instance()
1253 ss_opts->func_inst.free_func_inst = source_sink_free_instance; in source_sink_alloc_inst()
1260 config_group_init_type_name(&ss_opts->func_inst.group, "", in source_sink_alloc_inst()
1263 return &ss_opts->func_inst; in source_sink_alloc_inst()
H A Df_hid.c1039 func_inst.group); in to_f_hid_opts()
1046 usb_put_function_instance(&opts->func_inst); in hid_attr_release()
1181 opts = container_of(f, struct f_hid_opts, func_inst); in hidg_free_inst()
1207 opts->func_inst.free_func_inst = hidg_free_inst; in hidg_alloc_inst()
1208 ret = &opts->func_inst; in hidg_alloc_inst()
1229 config_group_init_type_name(&opts->func_inst.group, "", &hid_func_type); in hidg_alloc_inst()
1242 opts = container_of(f->fi, struct f_hid_opts, func_inst); in hidg_free()
1269 opts = container_of(fi, struct f_hid_opts, func_inst); in hidg_alloc()
H A Du_ecm.h19 struct usb_function_instance func_inst; member
/OK3568_Linux_fs/kernel/drivers/usb/gadget/legacy/
H A Dg_ffs.c330 ecm_opts = container_of(fi_ecm, struct f_ecm_opts, func_inst); in gfs_bind()
339 func_inst); in gfs_bind()
353 func_inst)->net; in gfs_bind()
375 ecm_opts = container_of(fi_ecm, struct f_ecm_opts, func_inst); in gfs_bind()
381 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.c270 uac2_opts = container_of(fi_uac2, struct f_uac2_opts, func_inst); in audio_bind()
286 uac1_opts = container_of(fi_uac1, struct f_uac1_opts, func_inst); in audio_bind()
301 uac1_opts = container_of(fi_uac1, struct f_uac1_legacy_opts, func_inst); in audio_bind()

123