Home
last modified time | relevance | path

Searched refs:uspc (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/drivers/usb/gadget/udc/bdc/
Dbdc_udc.c180 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()
[all …]
Dbdc_core.c133 u32 uspc; in bdc_softconn() local
135 uspc = bdc_readl(bdc->regs, BDC_USPC); in bdc_softconn()
136 uspc &= ~BDC_PST_MASK; in bdc_softconn()
137 uspc |= BDC_LINK_STATE_RX_DET; in bdc_softconn()
138 uspc |= BDC_SWS; in bdc_softconn()
139 dev_dbg(bdc->dev, "%s () uspc=%08x\n", __func__, uspc); in bdc_softconn()
140 bdc_writel(bdc->regs, BDC_USPC, uspc); in bdc_softconn()
146 u32 uspc; in bdc_softdisconn() local
148 uspc = bdc_readl(bdc->regs, BDC_USPC); in bdc_softdisconn()
149 uspc |= BDC_SDC; in bdc_softdisconn()
[all …]