Lines Matching defs:state
217 /* Waiting till H_IDLE state.*/
218 readl_poll_timeout_atomic(&cdns->otg_regs->state, val,
276 /* Waiting till DEV_IDLE state.*/
277 readl_poll_timeout_atomic(&cdns->otg_regs->state, val,
392 u32 state;
426 state = readl(&cdns->otg_cdnsp_regs->did);
428 if (OTG_CDNSP_CHECK_DID(state)) {
432 } else if (OTG_CDNS3_CHECK_DID(state)) {
438 dev_err(cdns->dev, "not supporte DID=0x%08x\n", state);
447 state = OTGSTS_STRAP(readl(&cdns->otg_regs->sts));
453 state == OTGSTS_CDNSP_STRAP_HOST) ||
455 state == OTGSTS_STRAP_HOST)) {
459 state == OTGSTS_CDNSP_STRAP_GADGET) ||
461 state == OTGSTS_STRAP_GADGET)) {
476 state = readl(&cdns->otg_regs->sts);
477 if (OTGSTS_OTG_NRDY(state)) {