Lines Matching refs:qh

55 				ehci_qh_t		*qh);
72 ehci_qh_t *qh);
76 ehci_qh_t *qh);
80 ehci_qh_t *qh);
83 ehci_qh_t *qh);
112 ehci_qh_t *qh);
309 ehci_qh_t *qh;
350 qh = &ehcip->ehci_qh_pool_addr[i];
351 bzero((void *)qh, sizeof (ehci_qh_t));
354 "ehci_alloc_qh: Allocated address 0x%p", (void *)qh);
358 Set_QH(qh->qh_link_ptr, EHCI_QH_LINK_PTR_VALID);
359 Set_QH(qh->qh_ctrl, EHCI_QH_CTRL_ED_INACTIVATE);
365 qh)) == USB_NO_RESOURCES) {
367 Set_QH(qh->qh_state, EHCI_QH_FREE);
372 ehci_unpack_endpoint(ehcip, ph, qh);
374 Set_QH(qh->qh_curr_qtd, NULL);
375 Set_QH(qh->qh_alt_next_qtd,
379 Set_QH(qh->qh_state, EHCI_QH_ACTIVE);
381 Set_QH(qh->qh_status, EHCI_QH_STS_HALTED);
384 Set_QH(qh->qh_state, EHCI_QH_STATIC);
387 ehci_print_qh(ehcip, qh);
389 return (qh);
404 ehci_qh_t *qh)
520 Set_QH(qh->qh_ctrl, ctrl);
521 Set_QH(qh->qh_split_ctrl, split_ctrl);
522 Set_QH(qh->qh_status, status);
540 "ehci_insert_qh: qh=0x%p", (void *)pp->pp_qh);
573 ehci_qh_t *qh = pp->pp_qh;
584 ASSERT((Get_QH(qh->qh_prev) & EHCI_QH_LINK_PTR) == NULL);
586 qh_addr = ehci_qh_cpu_to_iommu(ehcip, qh);
593 Set_QH(qh->qh_ctrl,
594 (Get_QH(qh->qh_ctrl) | EHCI_QH_CTRL_RECLAIM_HEAD));
597 Set_QH(qh->qh_link_ptr, qh_addr | EHCI_QH_LINK_REF_QH);
598 Set_QH(qh->qh_prev, qh_addr);
600 ehcip->ehci_head_of_async_sched_list = qh;
640 Set_QH(qh->qh_ctrl,
641 (Get_QH(qh->qh_ctrl) & ~EHCI_QH_CTRL_RECLAIM_HEAD));
647 Set_QH(qh->qh_link_ptr,
649 Set_QH(qh->qh_prev, ehci_qh_cpu_to_iommu(ehcip, async_head_qh));
652 Set_QH(next_qh->qh_prev, ehci_qh_cpu_to_iommu(ehcip, qh));
672 ehci_qh_t *qh = pp->pp_qh;
682 ASSERT((Get_QH(qh->qh_prev) & EHCI_QH_LINK_PTR) == NULL);
698 Set_QH(qh->qh_prev, ehci_qh_cpu_to_iommu(ehcip, lattice_qh));
702 /* Update this qh to point to the next one in the lattice */
703 Set_QH(qh->qh_link_ptr, Get_QH(lattice_qh->qh_link_ptr));
705 /* Update the previous pointer of qh->qh_link_ptr */
708 ehci_qh_cpu_to_iommu(ehcip, qh));
711 /* Update qh's link pointer to terminate periodic list */
712 Set_QH(qh->qh_link_ptr,
718 (ehci_qh_cpu_to_iommu(ehcip, qh) | EHCI_QH_LINK_REF_QH));
740 ehci_qh_t *qh = pp->pp_qh;
745 "ehci_modify_qh_status_bit: action=0x%x qh=0x%p",
746 action, (void *)qh);
748 ehci_print_qh(ehcip, qh);
774 Set_QH(qh->qh_ctrl,
775 (Get_QH(qh->qh_ctrl) & ~EHCI_QH_CTRL_ED_INACTIVATE));
776 Set_QH(qh->qh_status,
777 Get_QH(qh->qh_status) & ~(EHCI_QH_STS_XACT_STATUS));
783 status = Get_QH(qh->qh_status);
794 smask = Get_QH(qh->qh_split_ctrl) &
796 eps = Get_QH(qh->qh_ctrl) & EHCI_QH_CTRL_ED_SPEED;
801 ehci_halt_hs_qh(ehcip, pp, qh);
804 ehci_halt_fls_intr_qh(ehcip, qh);
806 ehci_halt_fls_ctrl_and_bulk_qh(ehcip, pp, qh);
817 ehci_print_qh(ehcip, qh);
819 status = Get_QH(qh->qh_status);
822 "ehci_modify_qh_status_bit: Failed to halt qh=0x%p",
823 (void *)qh);
825 ehci_print_qh(ehcip, qh);
848 ehci_qh_t *qh)
855 /* Remove this qh from the HCD's view, but do not reclaim it */
869 Set_QH(qh->qh_status,
870 ((Get_QH(qh->qh_status) &
888 ehci_qh_t *qh)
897 /* Remove this qh from the HCD's view, but do not reclaim it */
911 Set_QH(qh->qh_status,
912 ((Get_QH(qh->qh_status) &
916 status = Get_QH(qh->qh_status);
922 ehci_clear_tt_buffer(ehcip, ph, qh);
941 ehci_qh_t *qh)
975 wValue |= (Get_QH(qh->qh_ctrl) & EHCI_QH_CTRL_DEVICE_ADDRESS) << 4;
976 wValue |= (Get_QH(qh->qh_ctrl) & EHCI_QH_CTRL_ED_HIGH_SPEED) >>
1043 ehci_qh_t *qh)
1056 Set_QH(qh->qh_ctrl,
1057 (Get_QH(qh->qh_ctrl) | EHCI_QH_CTRL_ED_INACTIVATE));
1067 status = Get_QH(qh->qh_status) & EHCI_QTD_CTRL_ACTIVE_XACT;
1075 status = Get_QH(qh->qh_status) & EHCI_QTD_CTRL_ACTIVE_XACT;
1083 status = Get_QH(qh->qh_status);
1086 Set_QH(qh->qh_status,
1087 ((Get_QH(qh->qh_status) &
1095 if (Get_QH(qh->qh_status) & EHCI_QH_STS_HALTED) {
1104 "ehci_halt_fls_intr_qh: qh=0x%p frames past=%llu,"
1105 " status=0x%x, 0x%x", (void *)qh,
1107 starting_frame), status, Get_QH(qh->qh_status));
1128 "ehci_remove_qh: qh=0x%p", (void *)pp->pp_qh);
1162 ehci_qh_t *qh = pp->pp_qh; /* qh to be removed */
1171 Get_QH(qh->qh_prev) & EHCI_QH_LINK_PTR);
1173 Get_QH(qh->qh_link_ptr) & EHCI_QH_LINK_PTR);
1182 if (qh == next_qh) {
1183 ASSERT(Get_QH(qh->qh_ctrl) & EHCI_QH_CTRL_RECLAIM_HEAD);
1192 if (ehcip->ehci_head_of_async_sched_list == qh) {
1194 ASSERT(Get_QH(qh->qh_ctrl) & EHCI_QH_CTRL_RECLAIM_HEAD);
1200 Set_QH(prev_qh->qh_link_ptr, Get_QH(qh->qh_link_ptr));
1201 Set_QH(next_qh->qh_prev, Get_QH(qh->qh_prev));
1205 Set_QH(qh->qh_prev, NULL);
1226 ehci_qh_t *qh = pp->pp_qh; /* qh to be removed */
1234 prev_qh = ehci_qh_iommu_to_cpu(ehcip, Get_QH(qh->qh_prev));
1236 Get_QH(qh->qh_link_ptr) & EHCI_QH_LINK_PTR);
1242 /* Update previous qh's link pointer */
1243 Set_QH(prev_qh->qh_link_ptr, Get_QH(qh->qh_link_ptr));
1247 Set_QH(next_qh->qh_prev, Get_QH(qh->qh_prev));
1250 /* Update previous qh's link pointer */
1252 (Get_QH(qh->qh_link_ptr) | EHCI_QH_LINK_PTR_VALID));
1256 Set_QH(qh->qh_prev, NULL);
1274 ehci_qh_t *qh = pp->pp_qh; /* qh to be removed */
1288 Set_QH(qh->qh_reclaim_frame,
1302 ehci_qh_cpu_to_iommu(ehcip, qh));
1304 ehcip->ehci_reclaim_list = qh;
1307 ASSERT(Get_QH(qh->qh_reclaim_next) == NULL);
1369 uint32_t qh;
1371 qh = (uint32_t)ehcip->ehci_qh_pool_cookie.dmac_address +
1374 ASSERT(qh >= ehcip->ehci_qh_pool_cookie.dmac_address);
1375 ASSERT(qh <= ehcip->ehci_qh_pool_cookie.dmac_address +
1378 return (qh);
1393 ehci_qh_t *qh;
1400 qh = (ehci_qh_t *)((uintptr_t)
1404 ASSERT(qh >= ehcip->ehci_qh_pool_addr);
1405 ASSERT((uintptr_t)qh <= (uintptr_t)ehcip->ehci_qh_pool_addr +
1408 return (qh);
1426 ehci_qh_t *qh)
1448 Set_QH(qh->qh_next_qtd, ehci_qtd_cpu_to_iommu(ehcip,
1451 /* Set qh's dummy qtd field */
1452 Set_QH(qh->qh_dummy_qtd, ehci_qtd_cpu_to_iommu(ehcip, first_dummy_qtd));
2261 ehci_qh_t *qh = pp->pp_qh;
2276 Get_QH(qh->qh_dummy_qtd));
2281 Set_QH(qh->qh_dummy_qtd, ehci_qtd_cpu_to_iommu(ehcip, next_dummy_qtd));
2306 /* Print qh and qtd */
2307 ehci_print_qh(ehcip, qh);
3879 ehci_qh_t *qh = pp->pp_qh;
3898 data_toggle = (Get_QH(qh->qh_status) &