Lines Matching refs:uspc

184 static void handle_link_state_change(struct bdc *bdc, u32 uspc)  in handle_link_state_change()  argument
189 link_state = BDC_PST(uspc); in handle_link_state_change()
238 u32 uspc; in bdc_sr_uspc() local
242 uspc = bdc_readl(bdc->regs, BDC_USPC); in bdc_sr_uspc()
243 dev_dbg(bdc->dev, "%s uspc=0x%08x\n", __func__, uspc); in bdc_sr_uspc()
246 if (uspc & BDC_PCC) { in bdc_sr_uspc()
248 if ((uspc & BDC_VBC) && !(uspc & BDC_VBS) && !(uspc & BDC_PCS)) in bdc_sr_uspc()
250 else if ((uspc & BDC_PCS) && !BDC_PST(uspc)) in bdc_sr_uspc()
255 if ((uspc & BDC_VBC) && (uspc & BDC_VBS)) { in bdc_sr_uspc()
263 } else if ((uspc & BDC_PRS) || (uspc & BDC_PRC) || disconn) { in bdc_sr_uspc()
268 } else if ((uspc & BDC_PSC) && (uspc & BDC_PCS)) { in bdc_sr_uspc()
270 handle_link_state_change(bdc, uspc); in bdc_sr_uspc()
285 uspc = bdc_readl(bdc->regs, BDC_USPC); in bdc_sr_uspc()
286 uspc &= (~BDC_USPSC_RW); in bdc_sr_uspc()
287 dev_dbg(bdc->dev, "uspc=%x\n", uspc); in bdc_sr_uspc()
419 u32 uspc; in bdc_udc_pullup() local
441 uspc = bdc_readl(bdc->regs, BDC_USPC); in bdc_udc_pullup()
442 if (uspc & BDC_VBS) in bdc_udc_pullup()
474 u32 uspc; in bdc_udc_wakeup() local
485 uspc = bdc_readl(bdc->regs, BDC_USPC); in bdc_udc_wakeup()
486 link_state = BDC_PST(uspc); in bdc_udc_wakeup()
487 dev_dbg(bdc->dev, "link_state =%d portsc=%x", link_state, uspc); in bdc_udc_wakeup()
498 uspc &= ~BDC_PST_MASK; in bdc_udc_wakeup()
499 uspc &= (~BDC_USPSC_RW); in bdc_udc_wakeup()
500 uspc |= BDC_PST(BDC_LINK_STATE_U0); in bdc_udc_wakeup()
501 uspc |= BDC_SWS; in bdc_udc_wakeup()
502 bdc_writel(bdc->regs, BDC_USPC, uspc); in bdc_udc_wakeup()
503 uspc = bdc_readl(bdc->regs, BDC_USPC); in bdc_udc_wakeup()
504 link_state = BDC_PST(uspc); in bdc_udc_wakeup()
505 dev_dbg(bdc->dev, "link_state =%d portsc=%x", link_state, uspc); in bdc_udc_wakeup()