In c:/Freescale_BM_USB_Stack_v5.0/Src/usb_core/device/sources/classes/audio/usb_audio.c:
Lines 107-144, 174-211, and 1803-1839 are the places where audio_endpoint_data is used. Observe that it is ONLY used inside code that is guarded with #if AUDIO_IMPLEMENT_QUEUING/#endif pairs. Lines 325-331 are where it is set. (I reported the use of HID_IMPLEMENT_QUEUING in those lines, instead of AUDIO_IMPLEMENT_QUEUING, in a separate topic.)
That the data is used ONLY inside those guards indicates that all of the code that sets the data can also be guarded, and also the lines that declare that data, in usb_audio.h, at lines 133-150 and line 179.
In c:/Freescale_BM_USB_Stack_v5.0/Src/usb_core/device/sources/classes/hid/usb_hid.c:
Lines 148-168 and 633-656 are the places where hid_endpoint_data is used. (There is some commented-out code to deallocate the hid_endpoint_data, left over from when it was malloc()'ed.) Observe that it is ONLY used inside code that is guarded with #if HID_IMPLEMENT_QUEUING/#endif pairs. Lines 230-239, 255-264, and 288-296 are where it is set.
That the data is used ONLY inside those guards indicates that all of the code that sets the data can also be guarded, and also the lines that declare that data, in usb_hid.h, at lines 85-101 and line 114.