/drivers/usb/gadget/function/ |
D | f_serial.c | 255 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()
|
D | f_subset.c | 302 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()
|
D | f_loopback.c | 225 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()
|
D | f_obex.c | 384 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()
|
D | f_tcm.c | 31 struct usb_function_instance *func_inst; member 1354 if (tpg_instances[i].func_inst && !tpg_instances[i].tpg) in usbg_make_tpg() 1359 opts = container_of(tpg_instances[i].func_inst, struct f_tcm_opts, in usbg_make_tpg() 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() 1411 configfs_undepend_item_unlocked(&opts->func_inst.group.cg_item); in usbg_make_tpg() 1439 opts = container_of(tpg_instances[i].func_inst, in usbg_drop_tpg() 1440 struct f_tcm_opts, func_inst); in usbg_drop_tpg() 1446 &opts->func_inst.group.cg_item); in usbg_drop_tpg() [all …]
|
D | f_eem.c | 255 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()
|
D | f_rndis.c | 682 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 …]
|
D | f_phonet.c | 488 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()
|
D | f_uac1_legacy.c | 331 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 …]
|
D | u_uvc.h | 20 #define fi_to_f_uvc_opts(f) container_of(f, struct f_uvc_opts, func_inst) 23 struct usb_function_instance func_inst; member
|
D | g_zero.h | 30 struct usb_function_instance func_inst; member 51 struct usb_function_instance func_inst; member
|
D | f_ecm.c | 696 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()
|
D | f_acm.c | 765 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()
|
D | f_midi.c | 1069 func_inst.group); in to_f_midi_opts() 1076 usb_put_function_instance(&opts->func_inst); in midi_attr_release() 1202 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() 1294 if (create_alsa_device(&opts->func_inst)) { in f_midi_alloc_inst() 1299 config_group_init_type_name(&opts->func_inst.group, "", in f_midi_alloc_inst() 1302 return &opts->func_inst; in f_midi_alloc_inst() 1312 opts = container_of(f->fi, struct f_midi_opts, func_inst); in f_midi_free() 1319 opts->func_inst.f = NULL; in f_midi_free() 1324 f_midi_free_inst(&opts->func_inst); in f_midi_free() [all …]
|
D | f_audio_source.c | 284 struct usb_function_instance func_inst; member 943 func_inst.group); in to_audio_source_instance() 949 return container_of(fi, struct audio_source_instance, func_inst); in to_fi_audio_source() 956 usb_put_function_instance(&fi_audio->func_inst); in audio_source_attr_release() 1016 fi_audio->func_inst.set_inst_name = audio_source_set_inst_name; in audio_source_alloc_inst() 1017 fi_audio->func_inst.free_func_inst = audio_source_free_inst; in audio_source_alloc_inst() 1026 config_group_init_type_name(&fi_audio->func_inst.group, "", in audio_source_alloc_inst() 1052 return &fi_audio->func_inst; in audio_source_alloc_inst()
|
D | u_fs.h | 292 struct usb_function_instance func_inst; member 300 return container_of(fi, struct f_fs_opts, func_inst); in to_f_fs_opts()
|
D | f_mass_storage.h | 72 struct usb_function_instance func_inst; member 115 return container_of(fi, struct fsg_opts, func_inst); in fsg_opts_from_func_inst()
|
D | f_ncm.c | 1447 ncm_opts = container_of(f->fi, struct f_ncm_opts, func_inst); in ncm_bind() 1590 func_inst.group); in to_f_ncm_opts() 1626 opts = container_of(f, struct f_ncm_opts, func_inst); in ncm_free_inst() 1648 opts->func_inst.free_func_inst = ncm_free_inst; in ncm_alloc_inst() 1660 config_group_init_type_name(&opts->func_inst.group, "", &ncm_func_type); in ncm_alloc_inst() 1662 usb_os_desc_prepare_interf_dir(&opts->func_inst.group, 1, descs, in ncm_alloc_inst() 1665 ncm_free_inst(&opts->func_inst); in ncm_alloc_inst() 1670 return &opts->func_inst; in ncm_alloc_inst() 1679 opts = container_of(f->fi, struct f_ncm_opts, func_inst); in ncm_free() 1720 opts = container_of(fi, struct f_ncm_opts, func_inst); in ncm_alloc()
|
D | f_sourcesink.c | 453 opts = container_of(f->fi, struct f_ss_opts, func_inst); in sourcesink_free_func() 846 ss_opts = container_of(fi, struct f_ss_opts, func_inst); in source_sink_alloc_func() 877 func_inst.group); in to_f_ss_opts() 884 usb_put_function_instance(&ss_opts->func_inst); in ss_attr_release() 1242 ss_opts = container_of(fi, struct f_ss_opts, func_inst); in source_sink_free_instance() 1254 ss_opts->func_inst.free_func_inst = source_sink_free_instance; in source_sink_alloc_inst() 1261 config_group_init_type_name(&ss_opts->func_inst.group, "", in source_sink_alloc_inst() 1264 return &ss_opts->func_inst; in source_sink_alloc_inst()
|
D | f_uac1.c | 54 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() 1351 func_inst.group); in to_f_uac1_opts() 1358 usb_put_function_instance(&opts->func_inst); in f_uac1_attr_release() 1470 opts = container_of(f, struct f_uac1_opts, func_inst); in f_audio_free_inst() 1483 opts->func_inst.free_func_inst = f_audio_free_inst; in f_audio_alloc_inst() 1485 config_group_init_type_name(&opts->func_inst.group, "", in f_audio_alloc_inst() 1508 return &opts->func_inst; in f_audio_alloc_inst() 1517 opts = container_of(f->fi, struct f_uac1_opts, func_inst); in f_audio_free() 1552 opts = container_of(fi, struct f_uac1_opts, func_inst); in f_audio_alloc()
|
D | f_hid.c | 1040 func_inst.group); in to_f_hid_opts() 1047 usb_put_function_instance(&opts->func_inst); in hid_attr_release() 1182 opts = container_of(f, struct f_hid_opts, func_inst); in hidg_free_inst() 1208 opts->func_inst.free_func_inst = hidg_free_inst; in hidg_alloc_inst() 1209 ret = &opts->func_inst; in hidg_alloc_inst() 1230 config_group_init_type_name(&opts->func_inst.group, "", &hid_func_type); in hidg_alloc_inst() 1243 opts = container_of(f->fi, struct f_hid_opts, func_inst); in hidg_free() 1270 opts = container_of(fi, struct f_hid_opts, func_inst); in hidg_alloc()
|
D | u_gether.h | 19 struct usb_function_instance func_inst; member
|
/drivers/usb/gadget/legacy/ |
D | g_ffs.c | 330 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()
|
D | audio.c | 264 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()
|
D | ether.c | 320 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()
|