Lines Matching refs:func

356 static rt_err_t _audio_start(ufunction_t func)  in _audio_start()  argument
361 rt_usbd_io_request(func->device, speaker.ep, &speaker.ep->request); in _audio_start()
369 static rt_err_t _audio_stop(ufunction_t func) in _audio_stop() argument
376 static rt_err_t _ep_data_handler(ufunction_t func, rt_size_t size) in _ep_data_handler() argument
378 RT_ASSERT(func != RT_NULL); in _ep_data_handler()
384 rt_usbd_io_request(func->device, speaker.ep, &speaker.ep->request); in _ep_data_handler()
400 static rt_err_t _interface_as_handler(ufunction_t func, ureq_t setup) in _interface_as_handler() argument
402 RT_ASSERT(func != RT_NULL); in _interface_as_handler()
403 RT_ASSERT(func->device != RT_NULL); in _interface_as_handler()
418 _audio_start(func); in _interface_as_handler()
422 _audio_stop(func); in _interface_as_handler()
434 static rt_err_t _function_enable(ufunction_t func) in _function_enable() argument
436 RT_ASSERT(func != RT_NULL); in _function_enable()
443 static rt_err_t _function_disable(ufunction_t func) in _function_disable() argument
445 RT_ASSERT(func != RT_NULL); in _function_disable()
448 _audio_stop(func); in _function_disable()
494 ufunction_t func; in rt_usbd_function_uac_speaker_create() local
510 func = rt_usbd_function_new(device, &dev_desc, &ops); in rt_usbd_function_uac_speaker_create()
547 rt_usbd_function_add_interface(func, intf_ac); in rt_usbd_function_uac_speaker_create()
548 rt_usbd_function_add_interface(func, intf_as); in rt_usbd_function_uac_speaker_create()
550 return func; in rt_usbd_function_uac_speaker_create()