Lines Matching refs:ehcip

48 	ehci_state_t		*ehcip);
50 ehci_state_t *ehcip);
52 ehci_state_t *ehcip,
55 ehci_state_t *ehcip,
62 ehci_state_t *ehcip,
67 ehci_state_t *ehcip,
72 ehci_state_t *ehcip,
77 ehci_state_t *ehcip,
82 ehci_state_t *ehcip,
85 ehci_state_t *ehcip,
88 ehci_state_t *ehcip,
93 ehci_state_t *ehcip,
101 ehci_state_t *ehcip);
103 ehci_state_t *ehcip,
107 ehci_state_t *ehcip,
113 ehci_state_t *ehcip,
132 ehci_state_t *ehcip)
134 return (ehci_allocate_isoc_pools(ehcip));
143 ehci_state_t *ehcip)
151 if (ehcip->ehci_itd_pool_addr && ehcip->ehci_itd_pool_mem_handle) {
153 itd = &ehcip->ehci_itd_pool_addr[i];
154 ctrl = Get_ITD(ehcip->
161 mutex_enter(&ehcip->ehci_int_mutex);
170 ehci_deallocate_itd(ehcip, itw, itd);
171 ehci_deallocate_itw(ehcip, pp, itw);
173 mutex_exit(&ehcip->ehci_int_mutex);
181 if ((ehcip->ehci_dma_addr_bind_flag &
185 ehcip->ehci_itd_pool_dma_handle);
189 ddi_dma_mem_free(&ehcip->ehci_itd_pool_mem_handle);
193 if (ehcip->ehci_itd_pool_dma_handle) {
194 ddi_dma_free_handle(&ehcip->ehci_itd_pool_dma_handle);
205 ehci_state_t *ehcip,
211 USB_DPRINTF_L4(PRINT_MASK_LISTS, ehcip->ehci_log_hdl,
214 ASSERT(mutex_owned(&ehcip->ehci_int_mutex));
217 ehci_mark_reclaim_isoc(ehcip, pp);
223 ehci_wait_for_isoc_completion(ehcip, pp);
226 ehci_remove_isoc_itds(ehcip, pp);
253 ehcip, pp, completion_reason);
266 ehci_state_t *ehcip,
269 ASSERT(mutex_owned(&ehcip->ehci_int_mutex));
276 (void) cv_reltimedwait(&pp->pp_xfer_cmpl_cv, &ehcip->ehci_int_mutex,
280 USB_DPRINTF_L2(PRINT_MASK_LISTS, ehcip->ehci_log_hdl,
300 ehci_state_t *ehcip,
313 USB_DPRINTF_L4(PRINT_MASK_LISTS, ehcip->ehci_log_hdl,
316 ASSERT(mutex_owned(&ehcip->ehci_int_mutex));
322 USB_DPRINTF_L2(PRINT_MASK_LISTS, ehcip->ehci_log_hdl,
374 USB_DPRINTF_L2(PRINT_MASK_LISTS, ehcip->ehci_log_hdl,
391 USB_DPRINTF_L2(PRINT_MASK_LISTS, ehcip->ehci_log_hdl,
399 USB_DPRINTF_L4(PRINT_MASK_LISTS, ehcip->ehci_log_hdl,
403 if ((itw = ehci_allocate_itw_resources(ehcip, pp, itw_xfer_size,
412 if (ehci_allocate_isoc_in_resource(ehcip, pp, itw, usb_flags) !=
415 ehci_deallocate_itw(ehcip, pp, itw);
445 ehci_state_t *ehcip,
453 USB_DPRINTF_L4(PRINT_MASK_LISTS, ehcip->ehci_log_hdl,
457 ASSERT(mutex_owned(&ehcip->ehci_int_mutex));
468 error = ehci_insert_itd_req(ehcip, pp, itw, usb_flags);
470 error = ehci_insert_sitd_req(ehcip, pp, itw, usb_flags);
474 error = ehci_insert_isoc_to_pfl(ehcip, pp, itw);
483 temp_itd = ehci_itd_iommu_to_cpu(ehcip,
485 ehci_deallocate_itd(ehcip, itw, new_itd);
489 ehci_deallocate_isoc_in_resource(ehcip, pp, itw);
534 ehci_state_t *ehcip,
561 USB_DPRINTF_L3(PRINT_MASK_INTR, ehcip->ehci_log_hdl,
577 itw->itw_itd_free_list = ehci_itd_iommu_to_cpu(ehcip,
586 USB_DPRINTF_L2(PRINT_MASK_INTR, ehcip->ehci_log_hdl,
611 ehcip->ehci_log_hdl,
629 ehcip->ehci_log_hdl,
676 ehci_print_itd(ehcip, new_itd);
682 ehci_insert_itd_on_itw(ehcip, itw, new_itd);
698 ehci_state_t *ehcip,
805 itw->itw_itd_free_list = ehci_itd_iommu_to_cpu(ehcip,
824 ehci_insert_itd_on_itw(ehcip, itw, new_sitd);
841 ehci_state_t *ehcip,
847 USB_DPRINTF_L4(PRINT_MASK_INTR, ehcip->ehci_log_hdl,
850 ASSERT(mutex_owned(&ehcip->ehci_int_mutex));
854 USB_DPRINTF_L4(PRINT_MASK_INTR, ehcip->ehci_log_hdl,
862 next_itd = ehci_itd_iommu_to_cpu(ehcip,
865 ehci_reclaim_isoc(ehcip, curr_itw, curr_itd, pp);
870 ehci_deallocate_itw(ehcip, pp, curr_itw);
885 ehci_state_t *ehcip,
895 USB_DPRINTF_L4(PRINT_MASK_INTR, ehcip->ehci_log_hdl,
904 current_frame_number = ehci_get_current_frame_number(ehcip);
911 USB_DPRINTF_L4(PRINT_MASK_INTR, ehcip->ehci_log_hdl,
917 next_itd = ehci_itd_iommu_to_cpu(ehcip,
958 ehci_remove_isoc_from_pfl(ehcip, curr_itd);
974 ehci_state_t *ehcip,
979 USB_DPRINTF_L4(PRINT_MASK_INTR, ehcip->ehci_log_hdl,
994 ehci_deallocate_isoc_in_resource(ehcip, pp, itw);
1002 ehci_deallocate_itd(ehcip, itw, itd);
1014 ehci_state_t *ehcip,
1023 USB_DPRINTF_L4(PRINT_MASK_INTR, ehcip->ehci_log_hdl,
1030 itw = ehci_allocate_isoc_resources(ehcip, ph, NULL, flags);
1038 ehcip, pp, itw);
1039 ehci_deallocate_itw(ehcip, pp, itw);
1054 USB_DPRINTF_L3(PRINT_MASK_LISTS, ehcip->ehci_log_hdl,
1062 error = ehci_insert_isoc_req(ehcip, pp, itw, flags);
1075 ehcip, pp, itw);
1076 ehci_deallocate_itw(ehcip, pp, itw);
1104 ehci_state_t *ehcip)
1111 USB_DPRINTF_L4(PRINT_MASK_INTR, ehcip->ehci_log_hdl,
1114 ASSERT(mutex_owned(&ehcip->ehci_int_mutex));
1117 Sync_ITD_Pool(ehcip);
1120 curr_itd = ehci_create_done_itd_list(ehcip);
1121 USB_DPRINTF_L3(PRINT_MASK_INTR, ehcip->ehci_log_hdl,
1127 next_itd = ehci_itd_iommu_to_cpu(ehcip,
1136 ehci_print_itd(ehcip, curr_itd);
1138 ehci_print_sitd(ehcip, curr_itd);
1146 ehci_parse_isoc_error(ehcip, curr_itw, curr_itd);
1147 ehci_handle_isoc(ehcip, curr_itw, curr_itd);
1150 ehci_reclaim_isoc(ehcip, curr_itw, curr_itd, pp);
1159 ehci_deallocate_itw(ehcip, pp, curr_itw);
1163 USB_DPRINTF_L3(PRINT_MASK_LISTS, ehcip->ehci_log_hdl,
1172 USB_DPRINTF_L3(PRINT_MASK_INTR, ehcip->ehci_log_hdl,
1183 ehci_state_t *ehcip,
1189 ASSERT(mutex_owned(&ehcip->ehci_int_mutex));
1191 USB_DPRINTF_L4(PRINT_MASK_INTR, ehcip->ehci_log_hdl,
1197 ehci_handle_itd(ehcip, pp, itw, itd, itw->itw_handle_callback_value);
1210 ehci_state_t *ehcip,
1222 USB_DPRINTF_L4(PRINT_MASK_INTR, ehcip->ehci_log_hdl,
1252 ehci_deallocate_itd(ehcip, itw, itd);
1262 USB_DPRINTF_L3(PRINT_MASK_INTR, ehcip->ehci_log_hdl,
1270 ehci_deallocate_itd(ehcip, itw, itd);
1278 USB_DPRINTF_L3(PRINT_MASK_INTR, ehcip->ehci_log_hdl,
1283 ehci_sendup_itd_message(ehcip, pp, itw, itd, USB_CR_OK);
1286 ehci_deallocate_itd(ehcip, itw, itd);
1297 if ((error = ehci_allocate_isoc_in_resource(ehcip, pp, itw, 0)) ==
1306 if (ehci_allocate_itds_for_itw(ehcip, itw, itw->itw_num_itds) !=
1308 ehci_deallocate_isoc_in_resource(ehcip, pp, itw);
1315 (ehci_insert_isoc_req(ehcip, pp, itw, 0) != USB_SUCCESS)) {
1341 ehci_state_t *ehcip,
1353 ASSERT(mutex_owned(&ehcip->ehci_int_mutex));
1355 USB_DPRINTF_L4(PRINT_MASK_INTR, ehcip->ehci_log_hdl,
1365 USB_DPRINTF_L3(PRINT_MASK_INTR, ehcip->ehci_log_hdl,
1384 USB_DPRINTF_L3(PRINT_MASK_INTR, ehcip->ehci_log_hdl,
1403 ehci_state_t *ehcip = ehci_obtain_state(
1409 USB_DPRINTF_L4(PRINT_MASK_HCDI, ehcip->ehci_log_hdl,
1413 ASSERT(mutex_owned(&ehcip->ehci_int_mutex));
1444 mutex_exit(&ehcip->ehci_int_mutex);
1448 mutex_enter(&ehcip->ehci_int_mutex);