Home
last modified time | relevance | path

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

123

/Linux-v5.4/drivers/usb/gadget/function/
Df_serial.c255 func_inst.group); in to_f_serial_opts()
262 usb_put_function_instance(&opts->func_inst); in serial_attr_release()
291 opts = container_of(f, struct f_serial_opts, func_inst); in gser_free_inst()
305 opts->func_inst.free_func_inst = gser_free_inst; in gser_alloc_inst()
311 config_group_init_type_name(&opts->func_inst.group, "", in gser_alloc_inst()
314 return &opts->func_inst; in gser_alloc_inst()
340 opts = container_of(fi, struct f_serial_opts, func_inst); in gser_alloc()
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()
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()
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()
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
Dg_zero.h30 struct usb_function_instance func_inst; member
51 struct usb_function_instance func_inst; member
Df_eem.c250 eem_opts = container_of(f->fi, struct f_eem_opts, func_inst); in eem_bind()
527 func_inst.group); in to_f_eem_opts()
563 opts = container_of(f, struct f_eem_opts, func_inst); in eem_free_inst()
579 opts->func_inst.free_func_inst = eem_free_inst; in eem_alloc_inst()
587 config_group_init_type_name(&opts->func_inst.group, "", &eem_func_type); in eem_alloc_inst()
589 return &opts->func_inst; in eem_alloc_inst()
598 opts = container_of(f->fi, struct f_eem_opts, func_inst); in eem_free()
622 opts = container_of(fi, struct f_eem_opts, func_inst); in eem_alloc()
Df_tcm.c31 struct usb_function_instance *func_inst; member
1352 if (tpg_instances[i].func_inst && !tpg_instances[i].tpg) in usbg_make_tpg()
1357 opts = container_of(tpg_instances[i].func_inst, struct f_tcm_opts, in usbg_make_tpg()
1358 func_inst); in usbg_make_tpg()
1369 &opts->func_inst.group.cg_item); in usbg_make_tpg()
1396 tpg->fi = tpg_instances[i].func_inst; in usbg_make_tpg()
1409 configfs_undepend_item_unlocked(&opts->func_inst.group.cg_item); in usbg_make_tpg()
1437 opts = container_of(tpg_instances[i].func_inst, in usbg_drop_tpg()
1438 struct f_tcm_opts, func_inst); in usbg_drop_tpg()
1444 &opts->func_inst.group.cg_item); in usbg_drop_tpg()
[all …]
Df_rndis.c679 rndis_opts = container_of(f->fi, struct f_rndis_opts, func_inst); in rndis_bind()
838 opts = container_of(f, struct f_rndis_opts, func_inst); in rndis_borrow_net()
851 func_inst.group); in to_f_rndis_opts()
899 opts = container_of(f, struct f_rndis_opts, func_inst); in rndis_free_inst()
924 opts->func_inst.free_func_inst = rndis_free_inst; in rndis_alloc_inst()
939 config_group_init_type_name(&opts->func_inst.group, "", in rndis_alloc_inst()
942 usb_os_desc_prepare_interf_dir(&opts->func_inst.group, 1, descs, in rndis_alloc_inst()
945 rndis_free_inst(&opts->func_inst); in rndis_alloc_inst()
950 return &opts->func_inst; in rndis_alloc_inst()
960 opts = container_of(f->fi, struct f_rndis_opts, func_inst); in rndis_free()
[all …]
Df_uac1.c521 audio_opts = container_of(f->fi, struct f_uac1_opts, func_inst); in f_audio_bind()
634 func_inst.group); in to_f_uac1_opts()
641 usb_put_function_instance(&opts->func_inst); in f_uac1_attr_release()
720 opts = container_of(f, struct f_uac1_opts, func_inst); in f_audio_free_inst()
733 opts->func_inst.free_func_inst = f_audio_free_inst; in f_audio_alloc_inst()
735 config_group_init_type_name(&opts->func_inst.group, "", in f_audio_alloc_inst()
745 return &opts->func_inst; in f_audio_alloc_inst()
754 opts = container_of(f->fi, struct f_uac1_opts, func_inst); in f_audio_free()
781 opts = container_of(fi, struct f_uac1_opts, func_inst); in f_audio_alloc()
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()
Df_uac1_legacy.c331 func_inst); in f_audio_out_ep_complete()
584 opts = container_of(f->fi, struct f_uac1_legacy_opts, func_inst); in f_audio_set_alt()
707 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 …]
Df_ecm.c689 ecm_opts = container_of(f->fi, struct f_ecm_opts, func_inst); in ecm_bind()
820 func_inst.group); in to_f_ecm_opts()
856 opts = container_of(f, struct f_ecm_opts, func_inst); in ecm_free_inst()
872 opts->func_inst.free_func_inst = ecm_free_inst; in ecm_alloc_inst()
880 config_group_init_type_name(&opts->func_inst.group, "", &ecm_func_type); in ecm_alloc_inst()
882 return &opts->func_inst; in ecm_alloc_inst()
891 opts = container_of(f->fi, struct f_ecm_opts, func_inst); in ecm_free()
921 opts = container_of(fi, struct f_ecm_opts, func_inst); in ecm_alloc()
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()
Df_acm.c749 opts = container_of(fi, struct f_serial_opts, func_inst); in acm_alloc_func()
760 func_inst.group); in to_f_serial_opts()
767 usb_put_function_instance(&opts->func_inst); in acm_attr_release()
796 opts = container_of(fi, struct f_serial_opts, func_inst); in acm_free_instance()
809 opts->func_inst.free_func_inst = acm_free_instance; in acm_alloc_instance()
815 config_group_init_type_name(&opts->func_inst.group, "", in acm_alloc_instance()
817 return &opts->func_inst; in acm_alloc_instance()
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()
Df_uac2.c59 return container_of(agdev->func.fi, struct f_uac2_opts, func_inst); in g_audio_to_uac2_opts()
604 uac2_opts = container_of(fn->fi, struct f_uac2_opts, func_inst); in afunc_bind()
976 func_inst.group); in to_f_uac2_opts()
983 usb_put_function_instance(&opts->func_inst); in f_uac2_attr_release()
1060 opts = container_of(f, struct f_uac2_opts, func_inst); in afunc_free_inst()
1073 opts->func_inst.free_func_inst = afunc_free_inst; in afunc_alloc_inst()
1075 config_group_init_type_name(&opts->func_inst.group, "", in afunc_alloc_inst()
1085 return &opts->func_inst; in afunc_alloc_inst()
1094 opts = container_of(f->fi, struct f_uac2_opts, func_inst); in afunc_free()
1120 opts = container_of(fi, struct f_uac2_opts, func_inst); in afunc_alloc()
Du_ecm.h19 struct usb_function_instance func_inst; member
Du_eem.h19 struct usb_function_instance func_inst; member
Du_gether.h19 struct usb_function_instance func_inst; member
Du_printer.h19 struct usb_function_instance func_inst; member
Du_midi.h19 struct usb_function_instance func_inst; member
/Linux-v5.4/drivers/usb/gadget/legacy/
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()
Daudio.c264 uac2_opts = container_of(fi_uac2, struct f_uac2_opts, func_inst); in audio_bind()
274 uac1_opts = container_of(fi_uac1, struct f_uac1_opts, func_inst); in audio_bind()
283 uac1_opts = container_of(fi_uac1, struct f_uac1_legacy_opts, func_inst); in audio_bind()
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()

123