Lines Matching refs:constant
72 } constant; member
86 } constant; member
121 } constant; member
151 } constant; member
193 xSemaphoreGiveFromISR(client_obj->constant.event_sem, &xTaskWoken); in _unblock_client()
196 xSemaphoreGive(client_obj->constant.event_sem); in _unblock_client()
219 xSemaphoreGiveFromISR(p_host_lib_obj->constant.event_sem, &xTaskWoken); in _unblock_lib()
222 xSemaphoreGive(p_host_lib_obj->constant.event_sem); in _unblock_lib()
233 xSemaphoreTake(p_host_lib_obj->constant.mux_lock, portMAX_DELAY); in send_event_msg_to_clients()
247 if (xQueueSend(client_obj->constant.event_msg_queue, event_msg, 0) == pdTRUE) { in send_event_msg_to_clients()
256 xSemaphoreGive(p_host_lib_obj->constant.mux_lock); in send_event_msg_to_clients()
339 client_t *client_obj = (client_t *)ep_obj->constant.intf_obj->constant.client_obj; in pipe_callback()
377 host_lib_obj->constant.event_sem = event_sem; in usb_host_install()
378 host_lib_obj->constant.mux_lock = mux_lock; in usb_host_install()
389 ret = usb_new_phy(&phy_config, &host_lib_obj->constant.phy_handle); in usb_host_install()
440 if (p_host_lib_obj->constant.phy_handle) { in usb_host_install()
441 ESP_ERROR_CHECK(usb_del_phy(p_host_lib_obj->constant.phy_handle)); in usb_host_install()
478 if (host_lib_obj->constant.phy_handle) { in usb_host_uninstall()
479 ESP_ERROR_CHECK(usb_del_phy(host_lib_obj->constant.phy_handle)); in usb_host_uninstall()
482 vSemaphoreDelete(host_lib_obj->constant.mux_lock); in usb_host_uninstall()
483 vSemaphoreDelete(host_lib_obj->constant.event_sem); in usb_host_uninstall()
497 BaseType_t sem_ret = xSemaphoreTake(p_host_lib_obj->constant.event_sem, timeout_ticks); in usb_host_lib_handle_events()
586 ESP_ERROR_CHECK(hcd_pipe_command(ep_obj->constant.pipe_hdl, HCD_PIPE_CMD_FLUSH)); in _handle_pending_ep()
591 urb_t *urb = hcd_urb_dequeue(ep_obj->constant.pipe_hdl); in _handle_pending_ep()
595 urb = hcd_urb_dequeue(ep_obj->constant.pipe_hdl); in _handle_pending_ep()
637 client_obj->constant.event_sem = event_sem; in usb_host_client_register()
638 client_obj->constant.event_callback = client_config->async.client_event_callback; in usb_host_client_register()
639 client_obj->constant.callback_arg = client_config->async.callback_arg; in usb_host_client_register()
640 client_obj->constant.event_msg_queue = event_msg_queue; in usb_host_client_register()
643 xSemaphoreTake(p_host_lib_obj->constant.mux_lock, portMAX_DELAY); in usb_host_client_register()
648 xSemaphoreGive(p_host_lib_obj->constant.mux_lock); in usb_host_client_register()
673 xSemaphoreTake(p_host_lib_obj->constant.mux_lock, portMAX_DELAY); in usb_host_client_deregister()
707 vQueueDelete(client_obj->constant.event_msg_queue); in usb_host_client_deregister()
708 vSemaphoreDelete(client_obj->constant.event_sem); in usb_host_client_deregister()
712 xSemaphoreGive(p_host_lib_obj->constant.mux_lock); in usb_host_client_deregister()
727 BaseType_t sem_ret = xSemaphoreTake(client_obj->constant.event_sem, timeout_ticks); in usb_host_client_handle_events()
755 while (uxQueueMessagesWaiting(client_obj->constant.event_msg_queue) > 0) { in usb_host_client_handle_events()
759 … BaseType_t queue_ret = xQueueReceive(client_obj->constant.event_msg_queue, &event_msg, 0); in usb_host_client_handle_events()
761 client_obj->constant.event_callback(&event_msg, client_obj->constant.callback_arg); in usb_host_client_handle_events()
767 uxQueueMessagesWaiting(client_obj->constant.event_msg_queue) == 0) { in usb_host_client_handle_events()
833 xSemaphoreTake(p_host_lib_obj->constant.mux_lock, portMAX_DELAY); in usb_host_device_close()
839 if (intf_obj->constant.dev_hdl == dev_hdl) { in usb_host_device_close()
867 xSemaphoreGive(p_host_lib_obj->constant.mux_lock); in usb_host_device_close()
937 ep_obj->constant.pipe_hdl = pipe_hdl; in endpoint_alloc()
938 ep_obj->constant.ep_desc = ep_desc; in endpoint_alloc()
939 ep_obj->constant.intf_obj = intf_obj; in endpoint_alloc()
956 ESP_ERROR_CHECK(usbh_ep_free(dev_hdl, ep_obj->constant.ep_desc->bEndpointAddress)); in endpoint_free()
967 intf_obj->constant.intf_desc = intf_desc; in interface_alloc()
968 intf_obj->constant.client_obj = client_obj; in interface_alloc()
969 intf_obj->constant.dev_hdl = dev_hdl; in interface_alloc()
978 for (int i = 0; i < intf_obj->constant.intf_desc->bNumEndpoints; i++) { in interface_free()
979 assert(intf_obj->constant.endpoints[i] == NULL); in interface_free()
1016 intf_obj->constant.endpoints[i] = ep_obj; in interface_claim()
1023 …TAILQ_INSERT_TAIL(&client_obj->dynamic.idle_ep_tailq, intf_obj->constant.endpoints[i], dynamic.tai… in interface_claim()
1033 endpoint_free(dev_hdl, intf_obj->constant.endpoints[i]); in interface_claim()
1034 intf_obj->constant.endpoints[i] = NULL; in interface_claim()
1048 …if (intf_obj_iter->constant.dev_hdl == dev_hdl && intf_obj_iter->constant.intf_desc->bInterfaceNum… in interface_release()
1061 for (int i = 0; i < intf_obj->constant.intf_desc->bNumEndpoints; i++) { in interface_release()
1062 endpoint_t *ep_obj = intf_obj->constant.endpoints[i]; in interface_release()
1075 for (int i = 0; i < intf_obj->constant.intf_desc->bNumEndpoints; i++) { in interface_release()
1076 …TAILQ_REMOVE(&client_obj->dynamic.idle_ep_tailq, intf_obj->constant.endpoints[i], dynamic.tailq_en… in interface_release()
1084 for (int i = 0; i < intf_obj->constant.intf_desc->bNumEndpoints; i++) { in interface_release()
1085 endpoint_free(dev_hdl, intf_obj->constant.endpoints[i]); in interface_release()
1086 intf_obj->constant.endpoints[i] = NULL; in interface_release()
1111 xSemaphoreTake(p_host_lib_obj->constant.mux_lock, portMAX_DELAY); in usb_host_interface_claim()
1123 xSemaphoreGive(p_host_lib_obj->constant.mux_lock); in usb_host_interface_claim()
1148 xSemaphoreTake(p_host_lib_obj->constant.mux_lock, portMAX_DELAY); in usb_host_interface_release()
1150 xSemaphoreGive(p_host_lib_obj->constant.mux_lock); in usb_host_interface_release()
1171 ret = hcd_pipe_command(ep_obj->constant.pipe_hdl, HCD_PIPE_CMD_HALT); in usb_host_endpoint_halt()
1185 ret = hcd_pipe_command(ep_obj->constant.pipe_hdl, HCD_PIPE_CMD_FLUSH); in usb_host_endpoint_flush()
1199 ret = hcd_pipe_command(ep_obj->constant.pipe_hdl, HCD_PIPE_CMD_CLEAR); in usb_host_endpoint_clear()
1297 USB_EP_DESC_GET_XFERTYPE(ep_obj->constant.ep_desc), in usb_host_transfer_submit()
1298 USB_EP_DESC_GET_MPS(ep_obj->constant.ep_desc), in usb_host_transfer_submit()
1304 if (hcd_pipe_get_state(ep_obj->constant.pipe_hdl) != HCD_PIPE_STATE_ACTIVE) { in usb_host_transfer_submit()
1308 ret = hcd_urb_enqueue(ep_obj->constant.pipe_hdl, urb_obj); in usb_host_transfer_submit()