Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/usb/gadget/function/
Df_serial.c258 func_inst.group); in to_f_serial_opts()
265 usb_put_function_instance(&opts->func_inst); in serial_attr_release()
294 opts = container_of(f, struct f_serial_opts, func_inst); in gser_free_inst()
308 opts->func_inst.free_func_inst = gser_free_inst; in gser_alloc_inst()
314 config_group_init_type_name(&opts->func_inst.group, "", in gser_alloc_inst()
317 return &opts->func_inst; in gser_alloc_inst()
343 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()
389 func_inst.group); in to_f_gether_opts()
425 opts = container_of(f, struct f_gether_opts, func_inst); in geth_free_inst()
441 opts->func_inst.free_func_inst = geth_free_inst; in geth_alloc_inst()
449 config_group_init_type_name(&opts->func_inst.group, "", in geth_alloc_inst()
452 return &opts->func_inst; in geth_alloc_inst()
480 opts = container_of(fi, struct f_gether_opts, func_inst); in geth_alloc()
Df_obex.c387 func_inst.group); in to_f_serial_opts()
394 usb_put_function_instance(&opts->func_inst); in obex_attr_release()
423 opts = container_of(f, struct f_serial_opts, func_inst); in obex_free_inst()
437 opts->func_inst.free_func_inst = obex_free_inst; in obex_alloc_inst()
443 config_group_init_type_name(&opts->func_inst.group, "", in obex_alloc_inst()
446 return &opts->func_inst; in obex_alloc_inst()
472 opts = container_of(fi, struct f_serial_opts, func_inst); in obex_alloc()
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_loopback.c229 opts = container_of(f->fi, struct f_lb_opts, func_inst); in lb_free_func()
440 lb_opts = container_of(fi, struct f_lb_opts, func_inst); in loopback_alloc()
465 func_inst.group); in to_f_lb_opts()
472 usb_put_function_instance(&lb_opts->func_inst); in lb_attr_release()
571 lb_opts = container_of(fi, struct f_lb_opts, func_inst); in lb_free_instance()
583 lb_opts->func_inst.free_func_inst = lb_free_instance; in loopback_alloc_instance()
587 config_group_init_type_name(&lb_opts->func_inst.group, "", in loopback_alloc_instance()
590 return &lb_opts->func_inst; in loopback_alloc_instance()
Df_eem.c255 eem_opts = container_of(f->fi, struct f_eem_opts, func_inst); in eem_bind()
529 func_inst.group); in to_f_eem_opts()
565 opts = container_of(f, struct f_eem_opts, func_inst); in eem_free_inst()
581 opts->func_inst.free_func_inst = eem_free_inst; in eem_alloc_inst()
589 config_group_init_type_name(&opts->func_inst.group, "", &eem_func_type); in eem_alloc_inst()
591 return &opts->func_inst; in eem_alloc_inst()
600 opts = container_of(f->fi, struct f_eem_opts, func_inst); in eem_free()
624 opts = container_of(fi, struct f_eem_opts, func_inst); in eem_alloc()
Df_rndis.c680 rndis_opts = container_of(f->fi, struct f_rndis_opts, func_inst); in rndis_bind()
835 opts = container_of(f, struct f_rndis_opts, func_inst); in rndis_borrow_net()
848 func_inst.group); in to_f_rndis_opts()
884 opts = container_of(f, struct f_rndis_opts, func_inst); in rndis_free_inst()
908 opts->func_inst.free_func_inst = rndis_free_inst; in rndis_alloc_inst()
919 usb_os_desc_prepare_interf_dir(&opts->func_inst.group, 1, descs, in rndis_alloc_inst()
921 config_group_init_type_name(&opts->func_inst.group, "", in rndis_alloc_inst()
924 return &opts->func_inst; in rndis_alloc_inst()
934 opts = container_of(f->fi, struct f_rndis_opts, func_inst); in rndis_free()
964 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()
583 func_inst.group); in to_f_phonet_opts()
590 usb_put_function_instance(&opts->func_inst); in phonet_attr_release()
619 opts = container_of(f, struct f_phonet_opts, func_inst); in phonet_free_inst()
635 opts->func_inst.free_func_inst = phonet_free_inst; in phonet_alloc_inst()
643 config_group_init_type_name(&opts->func_inst.group, "", in phonet_alloc_inst()
646 return &opts->func_inst; in phonet_alloc_inst()
683 opts = container_of(fi, struct f_phonet_opts, func_inst); in phonet_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()
677 audio_opts = container_of(f->fi, struct f_uac1_opts, func_inst); in f_audio_bind()
769 func_inst.group); in to_f_uac1_opts()
776 usb_put_function_instance(&opts->func_inst); in f_uac1_attr_release()
895 opts = container_of(f, struct f_uac1_opts, func_inst); in f_audio_free_inst()
914 opts->func_inst.free_func_inst = f_audio_free_inst; in f_audio_alloc_inst()
916 config_group_init_type_name(&opts->func_inst.group, "", in f_audio_alloc_inst()
925 return &opts->func_inst; in f_audio_alloc_inst()
934 opts = container_of(f->fi, struct f_uac1_opts, func_inst); in f_audio_free()
[all …]
Df_ecm.c693 ecm_opts = container_of(f->fi, struct f_ecm_opts, func_inst); in ecm_bind()
822 func_inst.group); in to_f_ecm_opts()
858 opts = container_of(f, struct f_ecm_opts, func_inst); in ecm_free_inst()
874 opts->func_inst.free_func_inst = ecm_free_inst; in ecm_alloc_inst()
882 config_group_init_type_name(&opts->func_inst.group, "", &ecm_func_type); in ecm_alloc_inst()
884 return &opts->func_inst; in ecm_alloc_inst()
893 opts = container_of(f->fi, struct f_ecm_opts, func_inst); in ecm_free()
923 opts = container_of(fi, struct f_ecm_opts, func_inst); in ecm_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_acm.c750 opts = container_of(fi, struct f_serial_opts, func_inst); in acm_alloc_func()
761 func_inst.group); in to_f_serial_opts()
768 usb_put_function_instance(&opts->func_inst); in acm_attr_release()
797 opts = container_of(fi, struct f_serial_opts, func_inst); in acm_free_instance()
810 opts->func_inst.free_func_inst = acm_free_instance; in acm_alloc_instance()
816 config_group_init_type_name(&opts->func_inst.group, "", in acm_alloc_instance()
818 return &opts->func_inst; in acm_alloc_instance()
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_gether.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_ecm.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
Du_hid.h22 struct usb_function_instance func_inst; member
Du_uac2.h29 struct usb_function_instance func_inst; member
Df_hid.c705 func_inst.group); in to_f_hid_opts()
712 usb_put_function_instance(&opts->func_inst); in hid_attr_release()
835 opts = container_of(f, struct f_hid_opts, func_inst); in hidg_free_inst()
861 opts->func_inst.free_func_inst = hidg_free_inst; in hidg_alloc_inst()
862 ret = &opts->func_inst; in hidg_alloc_inst()
883 config_group_init_type_name(&opts->func_inst.group, "", &hid_func_type); in hidg_alloc_inst()
896 opts = container_of(f->fi, struct f_hid_opts, func_inst); in hidg_free()
929 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()
1439 func_inst.group); in to_f_uac2_opts()
1446 usb_put_function_instance(&opts->func_inst); in f_uac2_attr_release()
1521 opts = container_of(f, struct f_uac2_opts, func_inst); in afunc_free_inst()
1534 opts->func_inst.free_func_inst = afunc_free_inst; in afunc_alloc_inst()
1536 config_group_init_type_name(&opts->func_inst.group, "", in afunc_alloc_inst()
1545 return &opts->func_inst; in afunc_alloc_inst()
[all …]
Df_sourcesink.c469 opts = container_of(f->fi, struct f_ss_opts, func_inst); in sourcesink_free_func()
860 ss_opts = container_of(fi, struct f_ss_opts, func_inst); in source_sink_alloc_func()
889 func_inst.group); in to_f_ss_opts()
896 usb_put_function_instance(&ss_opts->func_inst); in ss_attr_release()
1176 ss_opts = container_of(fi, struct f_ss_opts, func_inst); in source_sink_free_instance()
1188 ss_opts->func_inst.free_func_inst = source_sink_free_instance; in source_sink_alloc_inst()
1193 config_group_init_type_name(&ss_opts->func_inst.group, "", in source_sink_alloc_inst()
1196 return &ss_opts->func_inst; in source_sink_alloc_inst()
Df_midi.c903 func_inst.group); in to_f_midi_opts()
910 usb_put_function_instance(&opts->func_inst); in midi_attr_release()
1035 opts = container_of(f, struct f_midi_opts, func_inst); in f_midi_free_inst()
1052 opts->func_inst.free_func_inst = f_midi_free_inst; in f_midi_alloc_inst()
1060 config_group_init_type_name(&opts->func_inst.group, "", in f_midi_alloc_inst()
1063 return &opts->func_inst; in f_midi_alloc_inst()
1073 opts = container_of(f->fi, struct f_midi_opts, func_inst); in f_midi_free()
1108 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.h60 struct usb_function_instance func_inst; member
Df_printer.c1146 func_inst.group); in to_f_printer_opts()
1153 usb_put_function_instance(&opts->func_inst); in printer_attr_release()
1267 opts = container_of(f, struct f_printer_opts, func_inst); in gprinter_free_inst()
1291 opts->func_inst.free_func_inst = gprinter_free_inst; in gprinter_alloc_inst()
1292 ret = &opts->func_inst; in gprinter_alloc_inst()
1313 config_group_init_type_name(&opts->func_inst.group, "", in gprinter_alloc_inst()
1326 opts = container_of(f->fi, struct f_printer_opts, func_inst); in gprinter_free()
1382 opts = container_of(fi, struct f_printer_opts, func_inst); in gprinter_alloc()
Df_ncm.c1348 ncm_opts = container_of(f->fi, struct f_ncm_opts, func_inst); in ncm_bind()
1472 func_inst.group); in to_f_ncm_opts()
1508 opts = container_of(f, struct f_ncm_opts, func_inst); in ncm_free_inst()
1524 opts->func_inst.free_func_inst = ncm_free_inst; in ncm_alloc_inst()
1532 config_group_init_type_name(&opts->func_inst.group, "", &ncm_func_type); in ncm_alloc_inst()
1534 return &opts->func_inst; in ncm_alloc_inst()
1543 opts = container_of(f->fi, struct f_ncm_opts, func_inst); in ncm_free()
1577 opts = container_of(fi, struct f_ncm_opts, func_inst); in ncm_alloc()
Du_ether_configfs.h24 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()
3110 func_inst.group); in to_ffs_opts()
3117 usb_put_function_instance(&opts->func_inst); in ffs_attr_release()
3190 opts->func_inst.set_inst_name = ffs_set_inst_name; in ffs_alloc_inst()
3191 opts->func_inst.free_func_inst = ffs_free_inst; in ffs_alloc_inst()
3202 config_group_init_type_name(&opts->func_inst.group, "", in ffs_alloc_inst()
3204 return &opts->func_inst; in ffs_alloc_inst()
3218 container_of(f->fi, struct f_fs_opts, func_inst); in ffs_func_unbind()
3465 if (opts->no_configfs || !opts->func_inst.group.cg_item.ci_parent in ffs_closed()
3466 || !atomic_read(&opts->func_inst.group.cg_item.ci_kref.refcount)) in ffs_closed()
[all …]
Df_uvc.c771 opts->func_inst.free_func_inst = uvc_free_inst; in uvc_alloc_inst()
844 return &opts->func_inst; in uvc_alloc_inst()
851 func_inst); in uvc_free()
Df_mass_storage.c3134 func_inst.group); in to_fsg_opts()
3329 usb_put_function_instance(&opts->func_inst); in fsg_attr_release()
3458 opts->func_inst.free_func_inst = fsg_free_inst; in fsg_alloc_inst()
3475 (const char **)&opts->func_inst.group.cg_item.ci_name); in fsg_alloc_inst()
3483 opts->func_inst.group.default_groups = opts->default_groups; in fsg_alloc_inst()
3485 config_group_init_type_name(&opts->func_inst.group, "", &fsg_func_type); in fsg_alloc_inst()
3487 return &opts->func_inst; in fsg_alloc_inst()
3502 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.c2191 func_inst.group); in to_f_uvc_opts()
2198 usb_put_function_instance(&opts->func_inst); in uvc_attr_release()
2362 uvcg_init_group(&opts->func_inst.group, in uvcg_attach_configfs()
/linux-4.4.14/drivers/usb/gadget/legacy/
Dg_ffs.c334 ecm_opts = container_of(fi_ecm, struct f_ecm_opts, func_inst); in gfs_bind()
343 func_inst); in gfs_bind()
358 func_inst); in gfs_bind()
382 ecm_opts = container_of(fi_ecm, struct f_ecm_opts, func_inst); in gfs_bind()
388 func_inst); in gfs_bind()
Dether.c324 eem_opts = container_of(fi_eem, struct f_eem_opts, func_inst); in eth_bind()
338 ecm_opts = container_of(fi_ecm, struct f_ecm_opts, func_inst); in eth_bind()
351 func_inst); in eth_bind()
Daudio.c225 uac2_opts = container_of(fi_uac2, struct f_uac2_opts, func_inst); in audio_bind()
233 uac1_opts = container_of(fi_uac1, struct f_uac1_opts, func_inst); in audio_bind()
Dzero.c281 ss_opts = container_of(func_inst_ss, struct f_ss_opts, func_inst); in zero_bind()
301 lb_opts = container_of(func_inst_lb, struct f_lb_opts, func_inst); in zero_bind()
Dmulti.c322 ecm_opts = container_of(fi_ecm, struct f_ecm_opts, func_inst); in multi_bind()
338 rndis_opts = container_of(fi_rndis, struct f_rndis_opts, func_inst); in multi_bind()
Dncm.c143 ncm_opts = container_of(f_ncm_inst, struct f_ncm_opts, func_inst); in gncm_bind()
Dgmidi.c160 midi_opts = container_of(fi_midi, struct f_midi_opts, func_inst); in midi_bind()
Dprinter.c159 opts = container_of(fi_printer, struct f_printer_opts, func_inst); in printer_bind()
Dcdc2.c158 ecm_opts = container_of(fi_ecm, struct f_ecm_opts, func_inst); in cdc_bind()
Dhid.c155 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()