Lines Matching refs:oper

305 	temp = XREAD4(sc, oper, XHCI_CRCR_LO);  in xhci_reset_command_queue_locked()
317 XWRITE4(sc, oper, XHCI_CRCR_LO, temp | XHCI_CRCR_LO_CS); in xhci_reset_command_queue_locked()
318 XWRITE4(sc, oper, XHCI_CRCR_HI, 0); in xhci_reset_command_queue_locked()
320 XWRITE4(sc, oper, XHCI_CRCR_LO, temp | XHCI_CRCR_LO_CA); in xhci_reset_command_queue_locked()
321 XWRITE4(sc, oper, XHCI_CRCR_HI, 0); in xhci_reset_command_queue_locked()
327 temp = XREAD4(sc, oper, XHCI_CRCR_LO); in xhci_reset_command_queue_locked()
352 XWRITE4(sc, oper, XHCI_CRCR_LO, ((uint32_t)addr) | XHCI_CRCR_LO_RCS); in xhci_reset_command_queue_locked()
353 XWRITE4(sc, oper, XHCI_CRCR_HI, (uint32_t)(addr >> 32)); in xhci_reset_command_queue_locked()
382 XREAD4(sc, oper, XHCI_CONFIG), sc->sc_noslot); in xhci_start_controller()
384 XWRITE4(sc, oper, XHCI_CONFIG, sc->sc_noslot); in xhci_start_controller()
386 temp = XREAD4(sc, oper, XHCI_USBSTS); in xhci_start_controller()
389 XWRITE4(sc, oper, XHCI_USBSTS, temp); in xhci_start_controller()
391 XWRITE4(sc, oper, XHCI_DNCTRL, 0); in xhci_start_controller()
412 XWRITE4(sc, oper, XHCI_DCBAAP_LO, (uint32_t)addr); in xhci_start_controller()
413 XWRITE4(sc, oper, XHCI_DCBAAP_HI, (uint32_t)(addr >> 32)); in xhci_start_controller()
414 XWRITE4(sc, oper, XHCI_DCBAAP_LO, (uint32_t)addr); in xhci_start_controller()
415 XWRITE4(sc, oper, XHCI_DCBAAP_HI, (uint32_t)(addr >> 32)); in xhci_start_controller()
474 XWRITE4(sc, oper, XHCI_CRCR_LO, ((uint32_t)addr) | XHCI_CRCR_LO_RCS); in xhci_start_controller()
475 XWRITE4(sc, oper, XHCI_CRCR_HI, (uint32_t)(addr >> 32)); in xhci_start_controller()
482 XWRITE4(sc, oper, XHCI_USBCMD, XHCI_CMD_RS | in xhci_start_controller()
487 temp = XREAD4(sc, oper, XHCI_USBSTS) & XHCI_STS_HCH; in xhci_start_controller()
492 XWRITE4(sc, oper, XHCI_USBCMD, 0); in xhci_start_controller()
522 XWRITE4(sc, oper, XHCI_USBCMD, 0); in xhci_halt_controller()
526 temp = XREAD4(sc, oper, XHCI_USBSTS) & XHCI_STS_HCH; in xhci_halt_controller()
547 XWRITE4(sc, oper, XHCI_USBCMD, XHCI_CMD_HCRST); in xhci_reset_controller()
551 temp = (XREAD4(sc, oper, XHCI_USBCMD) & XHCI_CMD_HCRST) | in xhci_reset_controller()
552 (XREAD4(sc, oper, XHCI_USBSTS) & XHCI_STS_CNR); in xhci_reset_controller()
601 if (!(XREAD4(sc, oper, XHCI_PAGESIZE) & XHCI_PAGESIZE_4K)) { in xhci_init()
1664 status = XREAD4(sc, oper, XHCI_USBSTS); in xhci_interrupt()
1668 XWRITE4(sc, oper, XHCI_USBSTS, status); in xhci_interrupt()
3038 if (XREAD4(sc, oper, XHCI_PORTSC(i)) & ( in xhci_root_intr()
3418 v = XREAD4(sc, oper, port); in xhci_roothub_exec()
3424 XWRITE4(sc, oper, port, v | XHCI_PS_WRC); in xhci_roothub_exec()
3427 XWRITE4(sc, oper, port, v | XHCI_PS_CEC); in xhci_roothub_exec()
3431 XWRITE4(sc, oper, port, v | XHCI_PS_PLC); in xhci_roothub_exec()
3434 XWRITE4(sc, oper, port, v | XHCI_PS_CSC); in xhci_roothub_exec()
3437 XWRITE4(sc, oper, port, v | XHCI_PS_PEC); in xhci_roothub_exec()
3440 XWRITE4(sc, oper, port, v | XHCI_PS_OCC); in xhci_roothub_exec()
3443 XWRITE4(sc, oper, port, v | XHCI_PS_PRC); in xhci_roothub_exec()
3446 XWRITE4(sc, oper, port, v | XHCI_PS_PED); in xhci_roothub_exec()
3449 XWRITE4(sc, oper, port, v & ~XHCI_PS_PP); in xhci_roothub_exec()
3452 XWRITE4(sc, oper, port, v & ~XHCI_PS_PIC_SET(3)); in xhci_roothub_exec()
3458 XWRITE4(sc, oper, port, v | in xhci_roothub_exec()
3466 XWRITE4(sc, oper, port, v | in xhci_roothub_exec()
3503 v = XREAD4(sc, oper, XHCI_PORTSC(j)); in xhci_roothub_exec()
3526 v = XREAD4(sc, oper, XHCI_PORTSC(index)); in xhci_roothub_exec()
3600 v = XREAD4(sc, oper, port) & ~XHCI_PS_CLEAR; in xhci_roothub_exec()
3609 v = XREAD4(sc, oper, port); in xhci_roothub_exec()
3612 XWRITE4(sc, oper, port, v); in xhci_roothub_exec()
3620 v = XREAD4(sc, oper, port); in xhci_roothub_exec()
3623 XWRITE4(sc, oper, port, v); in xhci_roothub_exec()
3626 XWRITE4(sc, oper, port, v | XHCI_PS_WPR); in xhci_roothub_exec()
3629 XWRITE4(sc, oper, port, v | in xhci_roothub_exec()
3645 XWRITE4(sc, oper, port, v | in xhci_roothub_exec()
3650 XWRITE4(sc, oper, port, v | XHCI_PS_PR); in xhci_roothub_exec()
3654 XWRITE4(sc, oper, port, v | XHCI_PS_PP); in xhci_roothub_exec()
3665 XWRITE4(sc, oper, port, v); in xhci_roothub_exec()