Lines Matching refs:clkstate
491 uint clkstate; /* State of sd and backplane clock(s) */ member
794 bus->clkstate = (on ? CLK_AVAIL : CLK_SDONLY); in brcmf_sdio_htclk()
832 bus->clkstate = CLK_PENDING; in brcmf_sdio_htclk()
835 } else if (bus->clkstate == CLK_PENDING) { in brcmf_sdio_htclk()
867 bus->clkstate = CLK_AVAIL; in brcmf_sdio_htclk()
880 if (bus->clkstate == CLK_PENDING) { in brcmf_sdio_htclk()
889 bus->clkstate = CLK_SDONLY; in brcmf_sdio_htclk()
908 bus->clkstate = CLK_SDONLY; in brcmf_sdio_sdclk()
910 bus->clkstate = CLK_NONE; in brcmf_sdio_sdclk()
919 uint oldstate = bus->clkstate; in brcmf_sdio_clkctl()
925 if (bus->clkstate == target) in brcmf_sdio_clkctl()
931 if (bus->clkstate == CLK_NONE) in brcmf_sdio_clkctl()
939 if (bus->clkstate == CLK_NONE) in brcmf_sdio_clkctl()
941 else if (bus->clkstate == CLK_AVAIL) in brcmf_sdio_clkctl()
945 bus->clkstate, target); in brcmf_sdio_clkctl()
950 if (bus->clkstate == CLK_AVAIL) in brcmf_sdio_clkctl()
957 brcmf_dbg(SDIO, "%d -> %d\n", oldstate, bus->clkstate); in brcmf_sdio_clkctl()
2597 if (!bus->sr_enabled && bus->clkstate == CLK_PENDING) { in brcmf_sdio_dpc()
2619 bus->clkstate = CLK_AVAIL; in brcmf_sdio_dpc()
2686 if ((intstatus & I_HMB_FRAME_IND) && (bus->clkstate == CLK_AVAIL)) { in brcmf_sdio_dpc()
2698 if (bus->ctrl_frame_stat && (bus->clkstate == CLK_AVAIL) && in brcmf_sdio_dpc()
2715 if ((bus->clkstate == CLK_AVAIL) && !atomic_read(&bus->fcstate) && in brcmf_sdio_dpc()
3731 (bus->clkstate == CLK_AVAIL)) { in brcmf_sdio_bus_watchdog()
4243 if (bus->clkstate != CLK_AVAIL) in brcmf_sdio_firmware_callback()
4522 bus->clkstate = CLK_SDONLY; in brcmf_sdio_probe()