Lines Matching refs:func
33 struct ufunction * func; member
205 static rt_err_t _cdc_send_notifi(ufunction_t func,ucdc_notification_code_t notifi,rt_uint16_t wValu… in _cdc_send_notifi() argument
209 RT_ASSERT(func!=RT_NULL) in _cdc_send_notifi()
210 eps = &((rt_ecm_eth_t)func->user_data)->eps; in _cdc_send_notifi()
219 rt_usbd_io_request(func->device, eps->ep_cmd, &eps->ep_cmd->request); in _cdc_send_notifi()
224 static rt_err_t _ecm_set_eth_packet_filter(ufunction_t func, ureq_t setup) in _ecm_set_eth_packet_filter() argument
226 rt_ecm_eth_t _ecm_eth = (rt_ecm_eth_t)func->user_data; in _ecm_set_eth_packet_filter()
227 dcd_ep0_send_status(func->device->dcd); in _ecm_set_eth_packet_filter()
231 _cdc_send_notifi(func, UCDC_NOTIFI_NETWORK_CONNECTION, 1, 0); in _ecm_set_eth_packet_filter()
248 static rt_err_t _interface_handler(ufunction_t func, ureq_t setup) in _interface_handler() argument
250 RT_ASSERT(func != RT_NULL); in _interface_handler()
257 _ecm_set_eth_packet_filter(func, setup); in _interface_handler()
275 static rt_err_t _ep_in_handler(ufunction_t func, rt_size_t size) in _ep_in_handler() argument
277 rt_ecm_eth_t ecm_device = (rt_ecm_eth_t)func->user_data; in _ep_in_handler()
290 static rt_err_t _ep_out_handler(ufunction_t func, rt_size_t size) in _ep_out_handler() argument
292 rt_ecm_eth_t ecm_device = (rt_ecm_eth_t)func->user_data; in _ep_out_handler()
306 …rt_usbd_io_request(ecm_device->func->device, ecm_device->eps.ep_out, &ecm_device->eps.ep_out->requ… in _ep_out_handler()
393 if(ecm_eth_dev->func->device->state == USB_STATE_CONFIGURED) in rt_ecm_eth_rx()
400 …rt_usbd_io_request(ecm_eth_dev->func->device, ecm_eth_dev->eps.ep_out, &ecm_eth_dev->eps.ep_out->r… in rt_ecm_eth_rx()
444 if(ecm_eth_dev->func->device->state == USB_STATE_CONFIGURED) in rt_ecm_eth_tx()
449 …rt_usbd_io_request(ecm_eth_dev->func->device, ecm_eth_dev->eps.ep_in, &ecm_eth_dev->eps.ep_in->req… in rt_ecm_eth_tx()
463 static rt_err_t _ep_cmd_handler(ufunction_t func, rt_size_t size) in _ep_cmd_handler() argument
475 static rt_err_t _function_enable(ufunction_t func) in _function_enable() argument
478 rt_ecm_eth_t ecm_device = (rt_ecm_eth_t)func->user_data; in _function_enable()
492 rt_usbd_io_request(func->device, eps->ep_out, &eps->ep_out->request); in _function_enable()
503 static rt_err_t _function_disable(ufunction_t func) in _function_disable() argument
507 eth_device_linkchange(&((rt_ecm_eth_t)func->user_data)->parent, RT_FALSE); in _function_disable()
510 ((rt_ecm_eth_t)func->user_data)->rx_size = 0; in _function_disable()
511 ((rt_ecm_eth_t)func->user_data)->rx_offset = 0; in _function_disable()
581 _ecm_eth->func = cdc; in rt_usbd_function_ecm_create()