Lines Matching refs:uspc

180 static void handle_link_state_change(struct bdc *bdc, u32 uspc)  in handle_link_state_change()  argument
185 link_state = BDC_PST(uspc); in handle_link_state_change()
234 u32 uspc; in bdc_sr_uspc() local
238 uspc = bdc_readl(bdc->regs, BDC_USPC); in bdc_sr_uspc()
239 dev_dbg(bdc->dev, "%s uspc=0x%08x\n", __func__, uspc); in bdc_sr_uspc()
242 if (uspc & BDC_PCC) { in bdc_sr_uspc()
244 if ((uspc & BDC_VBC) && !(uspc & BDC_VBS) && !(uspc & BDC_PCS)) in bdc_sr_uspc()
246 else if ((uspc & BDC_PCS) && !BDC_PST(uspc)) in bdc_sr_uspc()
252 if ((uspc & BDC_VBC) && (uspc & BDC_VBS)) { in bdc_sr_uspc()
260 } else if ((uspc & BDC_PRS) || (uspc & BDC_PRC) || disconn) { in bdc_sr_uspc()
265 } else if ((uspc & BDC_PSC) && (uspc & BDC_PCS)) { in bdc_sr_uspc()
267 handle_link_state_change(bdc, uspc); in bdc_sr_uspc()
282 uspc = bdc_readl(bdc->regs, BDC_USPC); in bdc_sr_uspc()
283 uspc &= (~BDC_USPSC_RW); in bdc_sr_uspc()
284 dev_dbg(bdc->dev, "uspc=%x\n", uspc); in bdc_sr_uspc()
416 u32 uspc; in bdc_udc_pullup() local
438 uspc = bdc_readl(bdc->regs, BDC_USPC); in bdc_udc_pullup()
439 if (uspc & BDC_VBS) in bdc_udc_pullup()
471 u32 uspc; in bdc_udc_wakeup() local
482 uspc = bdc_readl(bdc->regs, BDC_USPC); in bdc_udc_wakeup()
483 link_state = BDC_PST(uspc); in bdc_udc_wakeup()
484 dev_dbg(bdc->dev, "link_state =%d portsc=%x", link_state, uspc); in bdc_udc_wakeup()
495 uspc &= ~BDC_PST_MASK; in bdc_udc_wakeup()
496 uspc &= (~BDC_USPSC_RW); in bdc_udc_wakeup()
497 uspc |= BDC_PST(BDC_LINK_STATE_U0); in bdc_udc_wakeup()
498 uspc |= BDC_SWS; in bdc_udc_wakeup()
499 bdc_writel(bdc->regs, BDC_USPC, uspc); in bdc_udc_wakeup()
500 uspc = bdc_readl(bdc->regs, BDC_USPC); in bdc_udc_wakeup()
501 link_state = BDC_PST(uspc); in bdc_udc_wakeup()
502 dev_dbg(bdc->dev, "link_state =%d portsc=%x", link_state, uspc); in bdc_udc_wakeup()