Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/usb/gadget/function/
Df_serial.c267 func_inst.group); in to_f_serial_opts()
290 usb_put_function_instance(&opts->func_inst); in serial_attr_release()
321 opts = container_of(f, struct f_serial_opts, func_inst); in gser_free_inst()
335 opts->func_inst.free_func_inst = gser_free_inst; in gser_alloc_inst()
341 config_group_init_type_name(&opts->func_inst.group, "", in gser_alloc_inst()
344 return &opts->func_inst; in gser_alloc_inst()
370 opts = container_of(fi, struct f_serial_opts, func_inst); in gser_alloc()
Df_subset.c306 gether_opts = container_of(f->fi, struct f_gether_opts, func_inst); in geth_bind()
397 func_inst.group); in to_f_gether_opts()
433 opts = container_of(f, struct f_gether_opts, func_inst); in geth_free_inst()
449 opts->func_inst.free_func_inst = geth_free_inst; in geth_alloc_inst()
457 config_group_init_type_name(&opts->func_inst.group, "", in geth_alloc_inst()
460 return &opts->func_inst; in geth_alloc_inst()
488 opts = container_of(fi, struct f_gether_opts, func_inst); in geth_alloc()
Df_loopback.c236 opts = container_of(f->fi, struct f_lb_opts, func_inst); in lb_free_func()
393 lb_opts = container_of(fi, struct f_lb_opts, func_inst); in loopback_alloc()
418 func_inst.group); in to_f_lb_opts()
428 usb_put_function_instance(&lb_opts->func_inst); in lb_attr_release()
531 lb_opts = container_of(fi, struct f_lb_opts, func_inst); in lb_free_instance()
543 lb_opts->func_inst.free_func_inst = lb_free_instance; in loopback_alloc_instance()
547 config_group_init_type_name(&lb_opts->func_inst.group, "", in loopback_alloc_instance()
550 return &lb_opts->func_inst; in loopback_alloc_instance()
Du_uvc.h22 #define fi_to_f_uvc_opts(f) container_of(f, struct f_uvc_opts, func_inst)
25 struct usb_function_instance func_inst; member
Dg_zero.h25 struct usb_function_instance func_inst; member
44 struct usb_function_instance func_inst; member
Df_obex.c414 func_inst.group); in to_f_serial_opts()
437 usb_put_function_instance(&opts->func_inst); in obex_attr_release()
468 opts = container_of(f, struct f_serial_opts, func_inst); in obex_free_inst()
482 opts->func_inst.free_func_inst = obex_free_inst; in obex_alloc_inst()
488 config_group_init_type_name(&opts->func_inst.group, "", in obex_alloc_inst()
491 return &opts->func_inst; in obex_alloc_inst()
517 opts = container_of(fi, struct f_serial_opts, func_inst); in obex_alloc()
Df_eem.c258 eem_opts = container_of(f->fi, struct f_eem_opts, func_inst); in eem_bind()
539 func_inst.group); in to_f_eem_opts()
575 opts = container_of(f, struct f_eem_opts, func_inst); in eem_free_inst()
591 opts->func_inst.free_func_inst = eem_free_inst; in eem_alloc_inst()
599 config_group_init_type_name(&opts->func_inst.group, "", &eem_func_type); in eem_alloc_inst()
601 return &opts->func_inst; in eem_alloc_inst()
610 opts = container_of(f->fi, struct f_eem_opts, func_inst); in eem_free()
634 opts = container_of(fi, struct f_eem_opts, func_inst); in eem_alloc()
Df_uac1.c331 func_inst); in f_audio_out_ep_complete()
584 opts = container_of(f->fi, struct f_uac1_opts, func_inst); in f_audio_set_alt()
678 audio_opts = container_of(f->fi, struct f_uac1_opts, func_inst); in f_audio_bind()
773 func_inst.group); in to_f_uac1_opts()
783 usb_put_function_instance(&opts->func_inst); in f_uac1_attr_release()
906 opts = container_of(f, struct f_uac1_opts, func_inst); in f_audio_free_inst()
925 opts->func_inst.free_func_inst = f_audio_free_inst; in f_audio_alloc_inst()
927 config_group_init_type_name(&opts->func_inst.group, "", in f_audio_alloc_inst()
936 return &opts->func_inst; in f_audio_alloc_inst()
945 opts = container_of(f->fi, struct f_uac1_opts, func_inst); in f_audio_free()
[all …]
Df_rndis.c683 rndis_opts = container_of(f->fi, struct f_rndis_opts, func_inst); in rndis_bind()
849 opts = container_of(f, struct f_rndis_opts, func_inst); in rndis_borrow_net()
862 func_inst.group); in to_f_rndis_opts()
898 opts = container_of(f, struct f_rndis_opts, func_inst); in rndis_free_inst()
922 opts->func_inst.free_func_inst = rndis_free_inst; in rndis_alloc_inst()
933 usb_os_desc_prepare_interf_dir(&opts->func_inst.group, 1, descs, in rndis_alloc_inst()
935 config_group_init_type_name(&opts->func_inst.group, "", 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()
978 opts = container_of(fi, struct f_rndis_opts, func_inst); in rndis_alloc()
Df_phonet.c496 phonet_opts = container_of(f->fi, struct f_phonet_opts, func_inst); in pn_bind()
589 func_inst.group); in to_f_phonet_opts()
611 usb_put_function_instance(&opts->func_inst); in phonet_attr_release()
642 opts = container_of(f, struct f_phonet_opts, func_inst); in phonet_free_inst()
658 opts->func_inst.free_func_inst = phonet_free_inst; in phonet_alloc_inst()
666 config_group_init_type_name(&opts->func_inst.group, "", in phonet_alloc_inst()
669 return &opts->func_inst; in phonet_alloc_inst()
706 opts = container_of(fi, struct f_phonet_opts, func_inst); in phonet_alloc()
Du_fs.h288 struct usb_function_instance func_inst; member
296 return container_of(fi, struct f_fs_opts, func_inst); in to_f_fs_opts()
Df_ecm.c699 ecm_opts = container_of(f->fi, struct f_ecm_opts, func_inst); in ecm_bind()
839 func_inst.group); in to_f_ecm_opts()
875 opts = container_of(f, struct f_ecm_opts, func_inst); in ecm_free_inst()
891 opts->func_inst.free_func_inst = ecm_free_inst; in ecm_alloc_inst()
899 config_group_init_type_name(&opts->func_inst.group, "", &ecm_func_type); in ecm_alloc_inst()
901 return &opts->func_inst; in ecm_alloc_inst()
910 opts = container_of(f->fi, struct f_ecm_opts, func_inst); in ecm_free()
940 opts = container_of(fi, struct f_ecm_opts, func_inst); in ecm_alloc()
Df_mass_storage.h82 struct usb_function_instance func_inst; member
124 return container_of(fi, struct fsg_opts, func_inst); in fsg_opts_from_func_inst()
Du_ecm.h22 struct usb_function_instance func_inst; member
Du_eem.h22 struct usb_function_instance func_inst; member
Du_ncm.h22 struct usb_function_instance func_inst; member
Du_gether.h22 struct usb_function_instance func_inst; member
Du_printer.h24 struct usb_function_instance func_inst; member
Du_midi.h22 struct usb_function_instance func_inst; member
Df_acm.c766 opts = container_of(fi, struct f_serial_opts, func_inst); in acm_alloc_func()
777 func_inst.group); in to_f_serial_opts()
799 usb_put_function_instance(&opts->func_inst); in acm_attr_release()
831 opts = container_of(fi, struct f_serial_opts, func_inst); in acm_free_instance()
844 opts->func_inst.free_func_inst = acm_free_instance; in acm_alloc_instance()
850 config_group_init_type_name(&opts->func_inst.group, "", in acm_alloc_instance()
852 return &opts->func_inst; in acm_alloc_instance()
Du_hid.h22 struct usb_function_instance func_inst; member
Du_uac2.h29 struct usb_function_instance func_inst; member
Df_hid.c709 func_inst.group); in to_f_hid_opts()
719 usb_put_function_instance(&opts->func_inst); in hid_attr_release()
845 opts = container_of(f, struct f_hid_opts, func_inst); in hidg_free_inst()
871 opts->func_inst.free_func_inst = hidg_free_inst; in hidg_alloc_inst()
872 ret = &opts->func_inst; in hidg_alloc_inst()
893 config_group_init_type_name(&opts->func_inst.group, "", &hid_func_type); in hidg_alloc_inst()
906 opts = container_of(f->fi, struct f_hid_opts, func_inst); in hidg_free()
939 opts = container_of(fi, struct f_hid_opts, func_inst); in hidg_alloc()
Du_rndis.h22 struct usb_function_instance func_inst; member
Du_phonet.h18 struct usb_function_instance func_inst; member
Df_uac2.c154 return container_of(agdev->func.fi, struct f_uac2_opts, func_inst); in agdev_to_uac2_opts()
372 opts = container_of(audio_dev->func.fi, struct f_uac2_opts, func_inst); in uac2_pcm_open()
455 opts = container_of(audio_dev->func.fi, struct f_uac2_opts, func_inst); in snd_uac2_probe()
1014 uac2_opts = container_of(fn->fi, struct f_uac2_opts, func_inst); in afunc_bind()
1445 func_inst.group); in to_f_uac2_opts()
1455 usb_put_function_instance(&opts->func_inst); in f_uac2_attr_release()
1533 opts = container_of(f, struct f_uac2_opts, func_inst); in afunc_free_inst()
1546 opts->func_inst.free_func_inst = afunc_free_inst; in afunc_alloc_inst()
1548 config_group_init_type_name(&opts->func_inst.group, "", in afunc_alloc_inst()
1557 return &opts->func_inst; in afunc_alloc_inst()
[all …]
Df_sourcesink.c482 opts = container_of(f->fi, struct f_ss_opts, func_inst); in sourcesink_free_func()
875 ss_opts = container_of(fi, struct f_ss_opts, func_inst); in source_sink_alloc_func()
904 func_inst.group); in to_f_ss_opts()
914 usb_put_function_instance(&ss_opts->func_inst); in ss_attr_release()
1202 ss_opts = container_of(fi, struct f_ss_opts, func_inst); in source_sink_free_instance()
1214 ss_opts->func_inst.free_func_inst = source_sink_free_instance; in source_sink_alloc_inst()
1219 config_group_init_type_name(&ss_opts->func_inst.group, "", in source_sink_alloc_inst()
1222 return &ss_opts->func_inst; in source_sink_alloc_inst()
Df_midi.c902 func_inst.group); in to_f_midi_opts()
912 usb_put_function_instance(&opts->func_inst); in midi_attr_release()
1039 opts = container_of(f, struct f_midi_opts, func_inst); in f_midi_free_inst()
1056 opts->func_inst.free_func_inst = f_midi_free_inst; in f_midi_alloc_inst()
1064 config_group_init_type_name(&opts->func_inst.group, "", in f_midi_alloc_inst()
1067 return &opts->func_inst; in f_midi_alloc_inst()
1077 opts = container_of(f->fi, struct f_midi_opts, func_inst); in f_midi_free()
1112 opts = container_of(fi, struct f_midi_opts, func_inst); in f_midi_alloc()
Du_serial.h21 struct usb_function_instance func_inst; member
Du_uac1.h62 struct usb_function_instance func_inst; member
Df_printer.c1147 func_inst.group); in to_f_printer_opts()
1157 usb_put_function_instance(&opts->func_inst); in printer_attr_release()
1266 opts = container_of(f, struct f_printer_opts, func_inst); in gprinter_free_inst()
1290 opts->func_inst.free_func_inst = gprinter_free_inst; in gprinter_alloc_inst()
1291 ret = &opts->func_inst; in gprinter_alloc_inst()
1312 config_group_init_type_name(&opts->func_inst.group, "", in gprinter_alloc_inst()
1325 opts = container_of(f->fi, struct f_printer_opts, func_inst); in gprinter_free()
1381 opts = container_of(fi, struct f_printer_opts, func_inst); in gprinter_alloc()
Df_ncm.c1353 ncm_opts = container_of(f->fi, struct f_ncm_opts, func_inst); in ncm_bind()
1488 func_inst.group); in to_f_ncm_opts()
1524 opts = container_of(f, struct f_ncm_opts, func_inst); in ncm_free_inst()
1540 opts->func_inst.free_func_inst = ncm_free_inst; in ncm_alloc_inst()
1548 config_group_init_type_name(&opts->func_inst.group, "", &ncm_func_type); in ncm_alloc_inst()
1550 return &opts->func_inst; in ncm_alloc_inst()
1559 opts = container_of(f->fi, struct f_ncm_opts, func_inst); in ncm_free()
1593 opts = container_of(fi, struct f_ncm_opts, func_inst); in ncm_alloc()
Du_ether_configfs.h27 usb_put_function_instance(&opts->func_inst); \
Df_fs.c2688 container_of(f->fi, struct f_fs_opts, func_inst); in ffs_do_functionfs_bind()
3104 func_inst.group); in to_ffs_opts()
3111 usb_put_function_instance(&opts->func_inst); in ffs_attr_release()
3184 opts->func_inst.set_inst_name = ffs_set_inst_name; in ffs_alloc_inst()
3185 opts->func_inst.free_func_inst = ffs_free_inst; in ffs_alloc_inst()
3196 config_group_init_type_name(&opts->func_inst.group, "", in ffs_alloc_inst()
3198 return &opts->func_inst; in ffs_alloc_inst()
3212 container_of(f->fi, struct f_fs_opts, func_inst); in ffs_func_unbind()
3459 if (opts->no_configfs || !opts->func_inst.group.cg_item.ci_parent in ffs_closed()
3460 || !atomic_read(&opts->func_inst.group.cg_item.ci_kref.refcount)) in ffs_closed()
[all …]
Df_uvc.c801 opts->func_inst.free_func_inst = uvc_free_inst; in uvc_alloc_inst()
874 return &opts->func_inst; in uvc_alloc_inst()
881 func_inst); in uvc_free()
Df_mass_storage.c3130 func_inst.group); in to_fsg_opts()
3348 usb_put_function_instance(&opts->func_inst); in fsg_attr_release()
3481 opts->func_inst.free_func_inst = fsg_free_inst; in fsg_alloc_inst()
3498 (const char **)&opts->func_inst.group.cg_item.ci_name); in fsg_alloc_inst()
3506 opts->func_inst.group.default_groups = opts->default_groups; in fsg_alloc_inst()
3508 config_group_init_type_name(&opts->func_inst.group, "", &fsg_func_type); in fsg_alloc_inst()
3510 return &opts->func_inst; in fsg_alloc_inst()
3525 opts = container_of(f->fi, struct fsg_opts, func_inst); in fsg_free()
Du_uac1.c211 opts = container_of(card->func.fi, struct f_uac1_opts, func_inst); in gaudio_open_snd_dev()
Duvc_configfs.c2285 func_inst.group); in to_f_uvc_opts()
2295 usb_put_function_instance(&opts->func_inst); in uvc_attr_release()
2463 uvcg_init_group(&opts->func_inst.group, in uvcg_attach_configfs()
/linux-4.1.27/drivers/usb/gadget/legacy/
Dg_ffs.c348 ecm_opts = container_of(fi_ecm, struct f_ecm_opts, func_inst); in gfs_bind()
357 func_inst); in gfs_bind()
372 func_inst); in gfs_bind()
396 ecm_opts = container_of(fi_ecm, struct f_ecm_opts, func_inst); in gfs_bind()
402 func_inst); in gfs_bind()
Dether.c337 eem_opts = container_of(fi_eem, struct f_eem_opts, func_inst); in eth_bind()
351 ecm_opts = container_of(fi_ecm, struct f_ecm_opts, func_inst); in eth_bind()
364 func_inst); in eth_bind()
Daudio.c239 uac2_opts = container_of(fi_uac2, struct f_uac2_opts, func_inst); in audio_bind()
247 uac1_opts = container_of(fi_uac1, struct f_uac1_opts, func_inst); in audio_bind()
Dzero.c298 ss_opts = container_of(func_inst_ss, struct f_ss_opts, func_inst); in zero_bind()
318 lb_opts = container_of(func_inst_lb, struct f_lb_opts, func_inst); in zero_bind()
Dmulti.c336 ecm_opts = container_of(fi_ecm, struct f_ecm_opts, func_inst); in multi_bind()
352 rndis_opts = container_of(fi_rndis, struct f_rndis_opts, func_inst); in multi_bind()
Dncm.c156 ncm_opts = container_of(f_ncm_inst, struct f_ncm_opts, func_inst); in gncm_bind()
Dgmidi.c162 midi_opts = container_of(fi_midi, struct f_midi_opts, func_inst); in midi_bind()
Dprinter.c171 opts = container_of(fi_printer, struct f_printer_opts, func_inst); in printer_bind()
Dcdc2.c172 ecm_opts = container_of(fi_ecm, struct f_ecm_opts, func_inst); in cdc_bind()
Dhid.c170 hid_opts = container_of(n->fi, struct f_hid_opts, func_inst); in hid_bind()
Dwebcam.c381 uvc_opts = container_of(fi_uvc, struct f_uvc_opts, func_inst); in webcam_bind()