Lines Matching refs:regdata

241 	u32 regdata;  in brcmf_chip_sb_corerev()  local
243 regdata = ci->ops->read32(ci->ctx, CORE_SB(core->base, sbidhigh)); in brcmf_chip_sb_corerev()
244 core->rev = SBCOREREV(regdata); in brcmf_chip_sb_corerev()
250 u32 regdata; in brcmf_chip_sb_iscoreup() local
255 regdata = ci->ops->read32(ci->ctx, address); in brcmf_chip_sb_iscoreup()
256 regdata &= (SSB_TMSLOW_RESET | SSB_TMSLOW_REJECT | in brcmf_chip_sb_iscoreup()
258 return SSB_TMSLOW_CLOCK == regdata; in brcmf_chip_sb_iscoreup()
264 u32 regdata; in brcmf_chip_ai_iscoreup() local
268 regdata = ci->ops->read32(ci->ctx, core->wrapbase + BCMA_IOCTL); in brcmf_chip_ai_iscoreup()
269 ret = (regdata & (BCMA_IOCTL_FGC | BCMA_IOCTL_CLK)) == BCMA_IOCTL_CLK; in brcmf_chip_ai_iscoreup()
271 regdata = ci->ops->read32(ci->ctx, core->wrapbase + BCMA_RESET_CTL); in brcmf_chip_ai_iscoreup()
272 ret = ret && ((regdata & BCMA_RESET_CTL_RESET) == 0); in brcmf_chip_ai_iscoreup()
351 u32 regdata; in brcmf_chip_ai_coredisable() local
356 regdata = ci->ops->read32(ci->ctx, core->wrapbase + BCMA_RESET_CTL); in brcmf_chip_ai_coredisable()
357 if ((regdata & BCMA_RESET_CTL_RESET) != 0) in brcmf_chip_ai_coredisable()
385 u32 regdata; in brcmf_chip_sb_resetcore() local
404 regdata = ci->ops->read32(ci->ctx, CORE_SB(base, sbtmstatelow)); in brcmf_chip_sb_resetcore()
408 regdata = ci->ops->read32(ci->ctx, CORE_SB(base, sbtmstatehigh)); in brcmf_chip_sb_resetcore()
409 if (regdata & SSB_TMSHIGH_SERR) in brcmf_chip_sb_resetcore()
412 regdata = ci->ops->read32(ci->ctx, CORE_SB(base, sbimstate)); in brcmf_chip_sb_resetcore()
413 if (regdata & (SSB_IMSTATE_IBE | SSB_IMSTATE_TO)) { in brcmf_chip_sb_resetcore()
414 regdata &= ~(SSB_IMSTATE_IBE | SSB_IMSTATE_TO); in brcmf_chip_sb_resetcore()
415 ci->ops->write32(ci->ctx, CORE_SB(base, sbimstate), regdata); in brcmf_chip_sb_resetcore()
421 regdata = ci->ops->read32(ci->ctx, CORE_SB(base, sbtmstatelow)); in brcmf_chip_sb_resetcore()
427 regdata = ci->ops->read32(ci->ctx, CORE_SB(base, sbtmstatelow)); in brcmf_chip_sb_resetcore()
914 u32 regdata; in brcmf_chip_recognition() local
923 regdata = ci->ops->read32(ci->ctx, CORE_CC_REG(SI_ENUM_BASE, chipid)); in brcmf_chip_recognition()
924 ci->pub.chip = regdata & CID_ID_MASK; in brcmf_chip_recognition()
925 ci->pub.chiprev = (regdata & CID_REV_MASK) >> CID_REV_SHIFT; in brcmf_chip_recognition()
926 socitype = (regdata & CID_TYPE_MASK) >> CID_TYPE_SHIFT; in brcmf_chip_recognition()