Lines Matching refs:oper
297 temp = XREAD4(sc, oper, XHCI_CRCR_LO); in xhci_reset_command_queue_locked()
309 XWRITE4(sc, oper, XHCI_CRCR_LO, temp | XHCI_CRCR_LO_CS); in xhci_reset_command_queue_locked()
310 XWRITE4(sc, oper, XHCI_CRCR_HI, 0); in xhci_reset_command_queue_locked()
312 XWRITE4(sc, oper, XHCI_CRCR_LO, temp | XHCI_CRCR_LO_CA); in xhci_reset_command_queue_locked()
313 XWRITE4(sc, oper, XHCI_CRCR_HI, 0); in xhci_reset_command_queue_locked()
319 temp = XREAD4(sc, oper, XHCI_CRCR_LO); in xhci_reset_command_queue_locked()
344 XWRITE4(sc, oper, XHCI_CRCR_LO, ((uint32_t)addr) | XHCI_CRCR_LO_RCS); in xhci_reset_command_queue_locked()
345 XWRITE4(sc, oper, XHCI_CRCR_HI, (uint32_t)(addr >> 32)); in xhci_reset_command_queue_locked()
374 XREAD4(sc, oper, XHCI_CONFIG), sc->sc_noslot); in xhci_start_controller()
376 XWRITE4(sc, oper, XHCI_CONFIG, sc->sc_noslot); in xhci_start_controller()
378 temp = XREAD4(sc, oper, XHCI_USBSTS); in xhci_start_controller()
381 XWRITE4(sc, oper, XHCI_USBSTS, temp); in xhci_start_controller()
383 XWRITE4(sc, oper, XHCI_DNCTRL, 0); in xhci_start_controller()
404 XWRITE4(sc, oper, XHCI_DCBAAP_LO, (uint32_t)addr); in xhci_start_controller()
405 XWRITE4(sc, oper, XHCI_DCBAAP_HI, (uint32_t)(addr >> 32)); in xhci_start_controller()
406 XWRITE4(sc, oper, XHCI_DCBAAP_LO, (uint32_t)addr); in xhci_start_controller()
407 XWRITE4(sc, oper, XHCI_DCBAAP_HI, (uint32_t)(addr >> 32)); in xhci_start_controller()
453 XWRITE4(sc, oper, XHCI_CRCR_LO, ((uint32_t)addr) | XHCI_CRCR_LO_RCS); in xhci_start_controller()
454 XWRITE4(sc, oper, XHCI_CRCR_HI, (uint32_t)(addr >> 32)); in xhci_start_controller()
461 XWRITE4(sc, oper, XHCI_USBCMD, XHCI_CMD_RS | in xhci_start_controller()
466 temp = XREAD4(sc, oper, XHCI_USBSTS) & XHCI_STS_HCH; in xhci_start_controller()
471 XWRITE4(sc, oper, XHCI_USBCMD, 0); in xhci_start_controller()
501 XWRITE4(sc, oper, XHCI_USBCMD, 0); in xhci_halt_controller()
505 temp = XREAD4(sc, oper, XHCI_USBSTS) & XHCI_STS_HCH; in xhci_halt_controller()
526 XWRITE4(sc, oper, XHCI_USBCMD, XHCI_CMD_HCRST); in xhci_reset_controller()
530 temp = (XREAD4(sc, oper, XHCI_USBCMD) & XHCI_CMD_HCRST) | in xhci_reset_controller()
531 (XREAD4(sc, oper, XHCI_USBSTS) & XHCI_STS_CNR); in xhci_reset_controller()
580 if (!(XREAD4(sc, oper, XHCI_PAGESIZE) & XHCI_PAGESIZE_4K)) { in xhci_init()
1645 status = XREAD4(sc, oper, XHCI_USBSTS); in xhci_interrupt()
1649 XWRITE4(sc, oper, XHCI_USBSTS, status); in xhci_interrupt()
3052 if (XREAD4(sc, oper, XHCI_PORTSC(i)) & ( in xhci_root_intr()
3451 v = XREAD4(sc, oper, port); in xhci_roothub_exec()
3457 XWRITE4(sc, oper, port, v | XHCI_PS_WRC); in xhci_roothub_exec()
3460 XWRITE4(sc, oper, port, v | XHCI_PS_CEC); in xhci_roothub_exec()
3464 XWRITE4(sc, oper, port, v | XHCI_PS_PLC); in xhci_roothub_exec()
3467 XWRITE4(sc, oper, port, v | XHCI_PS_CSC); in xhci_roothub_exec()
3470 XWRITE4(sc, oper, port, v | XHCI_PS_PEC); in xhci_roothub_exec()
3473 XWRITE4(sc, oper, port, v | XHCI_PS_OCC); in xhci_roothub_exec()
3476 XWRITE4(sc, oper, port, v | XHCI_PS_PRC); in xhci_roothub_exec()
3479 XWRITE4(sc, oper, port, v | XHCI_PS_PED); in xhci_roothub_exec()
3482 XWRITE4(sc, oper, port, v & ~XHCI_PS_PP); in xhci_roothub_exec()
3485 XWRITE4(sc, oper, port, v & ~XHCI_PS_PIC_SET(3)); in xhci_roothub_exec()
3491 XWRITE4(sc, oper, port, v | in xhci_roothub_exec()
3499 XWRITE4(sc, oper, port, v | in xhci_roothub_exec()
3537 v = XREAD4(sc, oper, XHCI_PORTSC(j)); in xhci_roothub_exec()
3560 v = XREAD4(sc, oper, XHCI_PORTSC(index)); in xhci_roothub_exec()
3637 v = XREAD4(sc, oper, port) & ~XHCI_PS_CLEAR; in xhci_roothub_exec()
3646 v = XREAD4(sc, oper, port); in xhci_roothub_exec()
3649 XWRITE4(sc, oper, port, v); in xhci_roothub_exec()
3657 v = XREAD4(sc, oper, port); in xhci_roothub_exec()
3660 XWRITE4(sc, oper, port, v); in xhci_roothub_exec()
3663 XWRITE4(sc, oper, port, v | XHCI_PS_WPR); in xhci_roothub_exec()
3666 XWRITE4(sc, oper, port, v | in xhci_roothub_exec()
3682 XWRITE4(sc, oper, port, v | in xhci_roothub_exec()
3687 XWRITE4(sc, oper, port, v | XHCI_PS_PR); in xhci_roothub_exec()
3691 XWRITE4(sc, oper, port, v | XHCI_PS_PP); in xhci_roothub_exec()
3702 XWRITE4(sc, oper, port, v); in xhci_roothub_exec()