Lines Matching refs:reg

248 	uint32_t reg;  in xhci_root_hub_handle_port_clear_feature()  local
257 reg = xhci_get32(xhcip, XHCI_R_OPER, XHCI_PORTSC(port)); in xhci_root_hub_handle_port_clear_feature()
272 reg &= ~XHCI_PS_CLEAR; in xhci_root_hub_handle_port_clear_feature()
276 reg |= XHCI_PS_PED; in xhci_root_hub_handle_port_clear_feature()
279 reg &= ~XHCI_PS_PP; in xhci_root_hub_handle_port_clear_feature()
282 reg |= XHCI_PS_CSC; in xhci_root_hub_handle_port_clear_feature()
285 reg |= XHCI_PS_PRC; in xhci_root_hub_handle_port_clear_feature()
288 reg |= XHCI_PS_OCC; in xhci_root_hub_handle_port_clear_feature()
292 reg |= XHCI_PS_PLC; in xhci_root_hub_handle_port_clear_feature()
295 reg |= XHCI_PS_PEC; in xhci_root_hub_handle_port_clear_feature()
298 reg |= XHCI_PS_CEC; in xhci_root_hub_handle_port_clear_feature()
301 reg |= XHCI_PS_WRC; in xhci_root_hub_handle_port_clear_feature()
310 xhci_put32(xhcip, XHCI_R_OPER, XHCI_PORTSC(port), reg); in xhci_root_hub_handle_port_clear_feature()
328 uint32_t reg; in xhci_root_hub_handle_port_set_feature() local
339 reg = xhci_get32(xhcip, XHCI_R_OPER, index); in xhci_root_hub_handle_port_set_feature()
354 reg &= ~XHCI_PS_CLEAR; in xhci_root_hub_handle_port_set_feature()
359 reg = xhci_get32(xhcip, XHCI_R_OPER, index); in xhci_root_hub_handle_port_set_feature()
367 reg &= ~XHCI_PM3_U1TO_SET(0xff); in xhci_root_hub_handle_port_set_feature()
368 reg |= XHCI_PM3_U1TO_SET(val); in xhci_root_hub_handle_port_set_feature()
372 reg = xhci_get32(xhcip, XHCI_R_OPER, index); in xhci_root_hub_handle_port_set_feature()
380 reg &= ~XHCI_PM3_U1TO_SET(0xff); in xhci_root_hub_handle_port_set_feature()
381 reg |= XHCI_PM3_U1TO_SET(val); in xhci_root_hub_handle_port_set_feature()
384 reg |= XHCI_PS_PLS_SET(val); in xhci_root_hub_handle_port_set_feature()
385 reg |= XHCI_PS_LWS; in xhci_root_hub_handle_port_set_feature()
389 reg |= XHCI_PS_WCE; in xhci_root_hub_handle_port_set_feature()
391 reg &= ~XHCI_PS_WCE; in xhci_root_hub_handle_port_set_feature()
394 reg |= XHCI_PS_WDE; in xhci_root_hub_handle_port_set_feature()
396 reg &= ~XHCI_PS_WDE; in xhci_root_hub_handle_port_set_feature()
399 reg |= XHCI_PS_WOE; in xhci_root_hub_handle_port_set_feature()
401 reg &= ~XHCI_PS_WOE; in xhci_root_hub_handle_port_set_feature()
404 reg |= XHCI_PS_WPR; in xhci_root_hub_handle_port_set_feature()
407 reg |= XHCI_PS_PR; in xhci_root_hub_handle_port_set_feature()
410 reg |= XHCI_PS_PP; in xhci_root_hub_handle_port_set_feature()
425 xhci_put32(xhcip, XHCI_R_OPER, index, reg); in xhci_root_hub_handle_port_set_feature()
448 uint32_t reg; in xhci_root_hub_handle_port_get_status() local
464 reg = xhci_get32(xhcip, XHCI_R_OPER, XHCI_PORTSC(port)); in xhci_root_hub_handle_port_get_status()
474 if (reg & XHCI_PS_CCS) in xhci_root_hub_handle_port_get_status()
476 if (reg & XHCI_PS_PED) in xhci_root_hub_handle_port_get_status()
478 if (reg & XHCI_PS_OCA) in xhci_root_hub_handle_port_get_status()
480 if (reg & XHCI_PS_PR) in xhci_root_hub_handle_port_get_status()
483 ps |= XHCI_PS_PLS_SET(XHCI_PS_PLS_GET(reg)); in xhci_root_hub_handle_port_get_status()
485 if (reg & XHCI_PS_PP) in xhci_root_hub_handle_port_get_status()
494 switch (XHCI_PS_SPEED_GET(reg)) { in xhci_root_hub_handle_port_get_status()
516 if (reg & XHCI_PS_CSC) in xhci_root_hub_handle_port_get_status()
518 if (reg & XHCI_PS_PEC) in xhci_root_hub_handle_port_get_status()
520 if (reg & XHCI_PS_OCC) in xhci_root_hub_handle_port_get_status()
522 if (reg & XHCI_PS_PRC) in xhci_root_hub_handle_port_get_status()
524 if (reg & XHCI_PS_WRC) in xhci_root_hub_handle_port_get_status()
526 if (reg & XHCI_PS_PLC) in xhci_root_hub_handle_port_get_status()
528 if (reg & XHCI_PS_CEC) in xhci_root_hub_handle_port_get_status()
624 uint32_t reg; in xhci_root_hub_psc_callback() local
626 reg = xhci_get32(xhcip, XHCI_R_OPER, XHCI_PORTSC(i)); in xhci_root_hub_psc_callback()
627 if ((reg & XHCI_HUB_INTR_CHANGE_MASK) != 0) in xhci_root_hub_psc_callback()
780 uint32_t reg; in xhci_root_hub_fill_hub_desc() local
782 reg = xhci_get32(xhcip, XHCI_R_OPER, XHCI_PORTSC(i)); in xhci_root_hub_fill_hub_desc()
791 if (reg & XHCI_PS_DR) in xhci_root_hub_fill_hub_desc()