Home
last modified time | relevance | path

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

123

/linux/drivers/usb/gadget/function/
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()
375 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()
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()
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()
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()
A Df_tcm.c31 struct usb_function_instance *func_inst; member
1360 func_inst); in usbg_make_tpg()
1371 &opts->func_inst.group.cg_item); in usbg_make_tpg()
1398 tpg->fi = tpg_instances[i].func_inst; in usbg_make_tpg()
1440 struct f_tcm_opts, func_inst); in usbg_drop_tpg()
1446 &opts->func_inst.group.cg_item); in usbg_drop_tpg()
2134 func_inst.group); in to_f_tcm_opts()
2165 tpg_instances[i].func_inst = NULL; in tcm_free_inst()
2238 if (!tpg_instances[i].func_inst) in tcm_alloc_inst()
2246 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()
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()
A Df_rndis.c682 rndis_opts = container_of(f->fi, struct f_rndis_opts, func_inst); in rndis_bind()
841 opts = container_of(f, struct f_rndis_opts, func_inst); in rndis_borrow_net()
854 func_inst.group); in to_f_rndis_opts()
902 opts = container_of(f, struct f_rndis_opts, func_inst); in rndis_free_inst()
927 opts->func_inst.free_func_inst = rndis_free_inst; in rndis_alloc_inst()
942 config_group_init_type_name(&opts->func_inst.group, "", in rndis_alloc_inst()
945 usb_os_desc_prepare_interf_dir(&opts->func_inst.group, 1, descs, in rndis_alloc_inst()
948 rndis_free_inst(&opts->func_inst); in rndis_alloc_inst()
953 return &opts->func_inst; in rndis_alloc_inst()
963 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()
678 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 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 Dg_zero.h30 struct usb_function_instance func_inst; member
51 struct usb_function_instance func_inst; member
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()
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()
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()
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_midi.c1079 func_inst.group); in to_f_midi_opts()
1086 usb_put_function_instance(&opts->func_inst); in midi_attr_release()
1212 opts = container_of(f, struct f_midi_opts, func_inst); in f_midi_free_inst()
1236 opts->func_inst.free_func_inst = f_midi_free_inst; in f_midi_alloc_inst()
1245 config_group_init_type_name(&opts->func_inst.group, "", in f_midi_alloc_inst()
1248 return &opts->func_inst; in f_midi_alloc_inst()
1258 opts = container_of(f->fi, struct f_midi_opts, func_inst); in f_midi_free()
1269 f_midi_free_inst(&opts->func_inst); in f_midi_free()
1302 opts = container_of(fi, struct f_midi_opts, func_inst); in f_midi_alloc()
A Df_ncm.c1425 ncm_opts = container_of(f->fi, struct f_ncm_opts, func_inst); in ncm_bind()
1573 func_inst.group); in to_f_ncm_opts()
1609 opts = container_of(f, struct f_ncm_opts, func_inst); in ncm_free_inst()
1631 opts->func_inst.free_func_inst = ncm_free_inst; in ncm_alloc_inst()
1643 config_group_init_type_name(&opts->func_inst.group, "", &ncm_func_type); in ncm_alloc_inst()
1645 usb_os_desc_prepare_interf_dir(&opts->func_inst.group, 1, descs, in ncm_alloc_inst()
1648 ncm_free_inst(&opts->func_inst); in ncm_alloc_inst()
1653 return &opts->func_inst; in ncm_alloc_inst()
1662 opts = container_of(f->fi, struct f_ncm_opts, func_inst); in ncm_free()
1703 opts = container_of(fi, struct f_ncm_opts, func_inst); in ncm_alloc()
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()
A Df_uac1.c54 return container_of(audio->func.fi, struct f_uac1_opts, func_inst); in g_audio_to_uac1_opts()
1130 audio_opts = container_of(f->fi, struct f_uac1_opts, func_inst); in f_audio_bind()
1352 func_inst.group); in to_f_uac1_opts()
1359 usb_put_function_instance(&opts->func_inst); in f_uac1_attr_release()
1471 opts = container_of(f, struct f_uac1_opts, func_inst); in f_audio_free_inst()
1484 opts->func_inst.free_func_inst = f_audio_free_inst; in f_audio_alloc_inst()
1486 config_group_init_type_name(&opts->func_inst.group, "", in f_audio_alloc_inst()
1509 return &opts->func_inst; in f_audio_alloc_inst()
1518 opts = container_of(f->fi, struct f_uac1_opts, func_inst); in f_audio_free()
1553 opts = container_of(fi, struct f_uac1_opts, func_inst); in f_audio_alloc()
A Df_hid.c1043 func_inst.group); in to_f_hid_opts()
1050 usb_put_function_instance(&opts->func_inst); in hid_attr_release()
1185 opts = container_of(f, struct f_hid_opts, func_inst); in hidg_free_inst()
1211 opts->func_inst.free_func_inst = hidg_free_inst; in hidg_alloc_inst()
1212 ret = &opts->func_inst; in hidg_alloc_inst()
1233 config_group_init_type_name(&opts->func_inst.group, "", &hid_func_type); in hidg_alloc_inst()
1246 opts = container_of(f->fi, struct f_hid_opts, func_inst); in hidg_free()
1275 opts = container_of(fi, struct f_hid_opts, func_inst); in hidg_alloc()
A Du_ecm.h19 struct usb_function_instance func_inst; member
A Du_eem.h19 struct usb_function_instance func_inst; member
/linux/drivers/usb/gadget/legacy/
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()
A 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()
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()

Completed in 65 milliseconds

123