Lines Matching refs:dynamic
66 } dynamic; member
110 } dynamic; member
141 } dynamic; member
163 client_obj->dynamic.opened_dev_addr_map |= (1 << (dev_addr - 1)); in _record_client_opened_device()
169 client_obj->dynamic.opened_dev_addr_map &= ~(1 << (dev_addr - 1)); in _clear_client_opened_device()
175 return (client_obj->dynamic.opened_dev_addr_map & (1 << (dev_addr - 1))); in _check_client_opened_device()
181 if (!client_obj->dynamic.flags.events_pending && !client_obj->dynamic.flags.handling_events) { in _unblock_client()
182 client_obj->dynamic.flags.events_pending = 1; in _unblock_client()
207 …if (!p_host_lib_obj->dynamic.flags.process_pending && !p_host_lib_obj->dynamic.flags.handling_even… in _unblock_lib()
208 p_host_lib_obj->dynamic.flags.process_pending = 1; in _unblock_lib()
236 TAILQ_FOREACH(client_obj, &p_host_lib_obj->mux_protected.client_tailq, dynamic.tailq_entry) { in send_event_msg_to_clients()
269 p_host_lib_obj->dynamic.process_pending_flags |= PROCESS_PENDING_FLAG_USBH; in notif_callback()
272 p_host_lib_obj->dynamic.process_pending_flags |= PROCESS_PENDING_FLAG_HUB; in notif_callback()
288 TAILQ_INSERT_TAIL(&client_obj->dynamic.done_ctrl_xfer_tailq, urb, tailq_entry); in ctrl_xfer_callback()
289 client_obj->dynamic.num_done_ctrl_xfer++; in ctrl_xfer_callback()
323 p_host_lib_obj->dynamic.lib_event_flags |= USB_HOST_LIB_EVENT_FLAGS_ALL_FREE; in dev_event_callback()
343 ep_obj->dynamic.last_event = pipe_event; in pipe_callback()
345 if (!ep_obj->dynamic.flags.pending) { in pipe_callback()
346 ep_obj->dynamic.flags.pending = 1; in pipe_callback()
347 TAILQ_REMOVE(&client_obj->dynamic.idle_ep_tailq, ep_obj, dynamic.tailq_entry); in pipe_callback()
348 TAILQ_INSERT_TAIL(&client_obj->dynamic.pending_ep_tailq, ep_obj, dynamic.tailq_entry); in pipe_callback()
460 HOST_CHECK_FROM_CRIT(p_host_lib_obj->dynamic.process_pending_flags == 0 && in usb_host_uninstall()
461 p_host_lib_obj->dynamic.lib_event_flags == 0 && in usb_host_uninstall()
462 p_host_lib_obj->dynamic.flags.val == 0, in usb_host_uninstall()
494 if (!p_host_lib_obj->dynamic.flags.process_pending) { in usb_host_lib_handle_events()
505 uint32_t process_pending_flags = p_host_lib_obj->dynamic.process_pending_flags; in usb_host_lib_handle_events()
506 p_host_lib_obj->dynamic.process_pending_flags = 0; in usb_host_lib_handle_events()
507 p_host_lib_obj->dynamic.flags.handling_events = 1; in usb_host_lib_handle_events()
518 process_pending_flags = p_host_lib_obj->dynamic.process_pending_flags; in usb_host_lib_handle_events()
519 p_host_lib_obj->dynamic.process_pending_flags = 0; in usb_host_lib_handle_events()
521 p_host_lib_obj->dynamic.flags.process_pending = 0; in usb_host_lib_handle_events()
522 p_host_lib_obj->dynamic.flags.handling_events = 0; in usb_host_lib_handle_events()
523 event_flags = p_host_lib_obj->dynamic.lib_event_flags; in usb_host_lib_handle_events()
524 p_host_lib_obj->dynamic.lib_event_flags = 0; in usb_host_lib_handle_events()
552 num_clients_temp = p_host_lib_obj->dynamic.flags.num_clients; in usb_host_lib_info()
569 while (!TAILQ_EMPTY(&client_obj->dynamic.pending_ep_tailq)) { in _handle_pending_ep()
571 endpoint_t *ep_obj = TAILQ_FIRST(&client_obj->dynamic.pending_ep_tailq); in _handle_pending_ep()
572 TAILQ_REMOVE(&client_obj->dynamic.pending_ep_tailq, ep_obj, dynamic.tailq_entry); in _handle_pending_ep()
573 TAILQ_INSERT_TAIL(&client_obj->dynamic.idle_ep_tailq, ep_obj, dynamic.tailq_entry); in _handle_pending_ep()
574 ep_obj->dynamic.flags.pending = 0; in _handle_pending_ep()
575 hcd_pipe_event_t last_event = ep_obj->dynamic.last_event; in _handle_pending_ep()
606 assert(num_urb_dequeued <= ep_obj->dynamic.num_urb_inflight); in _handle_pending_ep()
607 ep_obj->dynamic.num_urb_inflight -= num_urb_dequeued; in _handle_pending_ep()
633 TAILQ_INIT(&client_obj->dynamic.pending_ep_tailq); in usb_host_client_register()
634 TAILQ_INIT(&client_obj->dynamic.idle_ep_tailq); in usb_host_client_register()
636 TAILQ_INIT(&client_obj->dynamic.done_ctrl_xfer_tailq); in usb_host_client_register()
645 p_host_lib_obj->dynamic.flags.num_clients++; in usb_host_client_register()
647 TAILQ_INSERT_TAIL(&p_host_lib_obj->mux_protected.client_tailq, client_obj, dynamic.tailq_entry); in usb_host_client_register()
677 if (!TAILQ_EMPTY(&client_obj->dynamic.pending_ep_tailq) || in usb_host_client_deregister()
678 !TAILQ_EMPTY(&client_obj->dynamic.idle_ep_tailq) || in usb_host_client_deregister()
679 !TAILQ_EMPTY(&client_obj->dynamic.done_ctrl_xfer_tailq) || in usb_host_client_deregister()
680 client_obj->dynamic.flags.handling_events || in usb_host_client_deregister()
681 client_obj->dynamic.flags.blocked || in usb_host_client_deregister()
682 client_obj->dynamic.flags.taking_mux || in usb_host_client_deregister()
683 client_obj->dynamic.flags.num_intf_claimed != 0 || in usb_host_client_deregister()
684 client_obj->dynamic.num_done_ctrl_xfer != 0 || in usb_host_client_deregister()
685 client_obj->dynamic.opened_dev_addr_map != 0) { in usb_host_client_deregister()
697 TAILQ_REMOVE(&p_host_lib_obj->mux_protected.client_tailq, client_obj, dynamic.tailq_entry); in usb_host_client_deregister()
699 p_host_lib_obj->dynamic.flags.num_clients--; in usb_host_client_deregister()
700 if (p_host_lib_obj->dynamic.flags.num_clients == 0) { in usb_host_client_deregister()
702 p_host_lib_obj->dynamic.lib_event_flags |= USB_HOST_LIB_EVENT_FLAGS_NO_CLIENTS; in usb_host_client_deregister()
723 if (!client_obj->dynamic.flags.events_pending) { in usb_host_client_handle_events()
725 client_obj->dynamic.flags.blocked = 1; in usb_host_client_handle_events()
729 client_obj->dynamic.flags.blocked = 0; in usb_host_client_handle_events()
738 client_obj->dynamic.flags.handling_events = 1; in usb_host_client_handle_events()
739 while (client_obj->dynamic.flags.handling_events) { in usb_host_client_handle_events()
741 if (!TAILQ_EMPTY(&client_obj->dynamic.pending_ep_tailq)) { in usb_host_client_handle_events()
745 while (client_obj->dynamic.num_done_ctrl_xfer > 0) { in usb_host_client_handle_events()
746 urb_t *urb = TAILQ_FIRST(&client_obj->dynamic.done_ctrl_xfer_tailq); in usb_host_client_handle_events()
747 TAILQ_REMOVE(&client_obj->dynamic.done_ctrl_xfer_tailq, urb, tailq_entry); in usb_host_client_handle_events()
748 client_obj->dynamic.num_done_ctrl_xfer--; in usb_host_client_handle_events()
765 if (TAILQ_EMPTY(&client_obj->dynamic.pending_ep_tailq) && in usb_host_client_handle_events()
766 client_obj->dynamic.num_done_ctrl_xfer == 0 && in usb_host_client_handle_events()
769 client_obj->dynamic.flags.events_pending = 0; in usb_host_client_handle_events()
770 client_obj->dynamic.flags.handling_events = 0; in usb_host_client_handle_events()
874 …HOST_CHECK_FROM_CRIT(p_host_lib_obj->dynamic.flags.num_clients == 0, ESP_ERR_INVALID_STATE); //… in usb_host_device_free_all()
1023 …TAILQ_INSERT_TAIL(&client_obj->dynamic.idle_ep_tailq, intf_obj->constant.endpoints[i], dynamic.tai… in interface_claim()
1064 if (ep_obj->dynamic.num_urb_inflight != 0 || ep_obj->dynamic.flags.pending) { in interface_release()
1076 …TAILQ_REMOVE(&client_obj->dynamic.idle_ep_tailq, intf_obj->constant.endpoints[i], dynamic.tailq_en… in interface_release()
1107 client_obj->dynamic.flags.taking_mux = 1; in usb_host_interface_claim()
1127 client_obj->dynamic.flags.num_intf_claimed++; in usb_host_interface_claim()
1129 client_obj->dynamic.flags.taking_mux = 0; in usb_host_interface_claim()
1144 client_obj->dynamic.flags.taking_mux = 1; in usb_host_interface_release()
1154 client_obj->dynamic.flags.num_intf_claimed--; in usb_host_interface_release()
1156 client_obj->dynamic.flags.taking_mux = 0; in usb_host_interface_release()
1301 ep_obj->dynamic.num_urb_inflight++; in usb_host_transfer_submit()
1317 ep_obj->dynamic.num_urb_inflight--; in usb_host_transfer_submit()