Home
last modified time | relevance | path

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

12

/linux/drivers/usb/gadget/function/
H A Df_subset.c304 gether_opts = container_of(f->fi, struct f_gether_opts, func_inst); in geth_bind()
377 func_inst.group); in to_f_gether_opts()
413 opts = container_of(f, struct f_gether_opts, func_inst); in geth_free_inst()
429 opts->func_inst.free_func_inst = geth_free_inst; in geth_alloc_inst()
437 config_group_init_type_name(&opts->func_inst.group, "", in geth_alloc_inst()
440 return &opts->func_inst; in geth_alloc_inst()
448 opts = container_of(f->fi, struct f_gether_opts, func_inst); in geth_free()
460 opts = container_of(f->fi, struct f_gether_opts, func_inst); in geth_unbind()
481 opts = container_of(fi, struct f_gether_opts, func_inst); in geth_alloc()
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_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_eem.c257 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()
642 opts = container_of(f->fi, struct f_eem_opts, func_inst); in eem_unbind()
661 opts = container_of(fi, struct f_eem_opts, func_inst); in eem_alloc()
H A Df_rndis.c675 rndis_opts = container_of(f->fi, struct f_rndis_opts, func_inst); in rndis_bind()
815 opts = container_of(f, struct f_rndis_opts, func_inst); in rndis_borrow_net()
828 func_inst.group); in to_f_rndis_opts()
876 opts = container_of(f, struct f_rndis_opts, func_inst); in rndis_free_inst()
901 opts->func_inst.free_func_inst = rndis_free_inst; in rndis_alloc_inst()
916 config_group_init_type_name(&opts->func_inst.group, "", in rndis_alloc_inst()
919 usb_os_desc_prepare_interf_dir(&opts->func_inst.group, 1, descs, in rndis_alloc_inst()
922 rndis_free_inst(&opts->func_inst); in rndis_alloc_inst()
927 return &opts->func_inst; in rndis_alloc_inst()
937 opts = container_of(f->fi, struct f_rndis_opts, func_inst); in rndis_free()
[all …]
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_ecm.c690 ecm_opts = container_of(f->fi, struct f_ecm_opts, func_inst); in ecm_bind()
806 func_inst.group); in to_f_ecm_opts()
842 opts = container_of(f, struct f_ecm_opts, func_inst); in ecm_free_inst()
858 opts->func_inst.free_func_inst = ecm_free_inst; in ecm_alloc_inst()
866 config_group_init_type_name(&opts->func_inst.group, "", &ecm_func_type); in ecm_alloc_inst()
868 return &opts->func_inst; in ecm_alloc_inst()
903 opts = container_of(f->fi, struct f_ecm_opts, func_inst); in ecm_free()
917 ecm_opts = container_of(f->fi, struct f_ecm_opts, func_inst); in ecm_unbind()
945 opts = container_of(fi, struct f_ecm_opts, func_inst); in ecm_alloc()
H A Df_acm.c724 opts = container_of(f->fi, struct f_serial_opts, func_inst); in acm_free_func()
769 opts = container_of(fi, struct f_serial_opts, func_inst); in acm_alloc_func()
786 func_inst.group); in to_f_serial_opts()
793 usb_put_function_instance(&opts->func_inst); in acm_attr_release()
874 opts = container_of(fi, struct f_serial_opts, func_inst); in acm_free_instance()
889 opts->func_inst.free_func_inst = acm_free_instance; in acm_alloc_instance()
896 config_group_init_type_name(&opts->func_inst.group, "", in acm_alloc_instance()
898 return &opts->func_inst; in acm_alloc_instance()
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.c886 opts = container_of(f->fi, struct f_midi_opts, func_inst); in f_midi_bind()
1082 func_inst.group); in to_f_midi_opts()
1089 usb_put_function_instance(&opts->func_inst); in midi_attr_release()
1261 opts = container_of(f, struct f_midi_opts, func_inst); in f_midi_free_inst()
1285 opts->func_inst.free_func_inst = f_midi_free_inst; in f_midi_alloc_inst()
1295 config_group_init_type_name(&opts->func_inst.group, "", in f_midi_alloc_inst()
1298 return &opts->func_inst; in f_midi_alloc_inst()
1308 opts = container_of(f->fi, struct f_midi_opts, func_inst); in f_midi_free()
1320 f_midi_free_inst(&opts->func_inst); in f_midi_free()
1353 opts = container_of(fi, struct f_midi_opts, func_inst); in f_midi_alloc()
H A Df_ncm.c1188 ncm_opts = container_of(port->func.fi, struct f_ncm_opts, func_inst); in ncm_unwrap_ntb()
1457 ncm_opts = container_of(f->fi, struct f_ncm_opts, func_inst); in ncm_bind()
1590 func_inst.group); in to_f_ncm_opts()
1671 opts = container_of(f, struct f_ncm_opts, func_inst); in ncm_free_inst()
1693 opts->func_inst.free_func_inst = ncm_free_inst; in ncm_alloc_inst()
1706 config_group_init_type_name(&opts->func_inst.group, "", &ncm_func_type); in ncm_alloc_inst()
1708 usb_os_desc_prepare_interf_dir(&opts->func_inst.group, 1, descs, in ncm_alloc_inst()
1711 ncm_free_inst(&opts->func_inst); in ncm_alloc_inst()
1716 return &opts->func_inst; in ncm_alloc_inst()
1725 opts = container_of(f->fi, struct f_ncm_opts, func_inst); in ncm_free()
[all …]
H A Du_printer.h19 struct usb_function_instance func_inst; member
H A Du_eem.h33 struct usb_function_instance func_inst; member
H A Du_gether.h33 struct usb_function_instance func_inst; member
H A Du_ecm.h33 struct usb_function_instance func_inst; member
H A Du_tcm.h29 struct usb_function_instance func_inst; member
H A Du_ncm.h33 struct usb_function_instance func_inst; member
H A Du_phonet.h15 struct usb_function_instance func_inst; member
H A Du_hid.h19 struct usb_function_instance func_inst; member
H A Df_sourcesink.c458 opts = container_of(f->fi, struct f_ss_opts, func_inst); in sourcesink_free_func()
851 ss_opts = container_of(fi, struct f_ss_opts, func_inst); in source_sink_alloc_func()
883 func_inst.group); in to_f_ss_opts()
890 usb_put_function_instance(&ss_opts->func_inst); in ss_attr_release()
1292 ss_opts = container_of(fi, struct f_ss_opts, func_inst); in source_sink_free_instance()
1304 ss_opts->func_inst.free_func_inst = source_sink_free_instance; in source_sink_alloc_inst()
1311 config_group_init_type_name(&ss_opts->func_inst.group, "", in source_sink_alloc_inst()
1314 return &ss_opts->func_inst; in source_sink_alloc_inst()
H A Du_rndis.h41 struct usb_function_instance func_inst; member
/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()

12