Home
last modified time | relevance | path

Searched refs:clkctl (Results 1 – 12 of 12) sorted by relevance

/src/sys/dev/bhnd/
H A Dbhnd.c365 struct bhnd_core_clkctl *clkctl; in bhnd_generic_alloc_pmu() local
381 clkctl = bhnd_get_pmu_info(child); in bhnd_generic_alloc_pmu()
385 if (clkctl != NULL) { in bhnd_generic_alloc_pmu()
468 clkctl = bhnd_alloc_core_clkctl(child, pmu_dev, r, pmu_regs, in bhnd_generic_alloc_pmu()
470 if (clkctl == NULL) { in bhnd_generic_alloc_pmu()
476 bhnd_set_pmu_info(child, clkctl); in bhnd_generic_alloc_pmu()
486 struct bhnd_core_clkctl *clkctl; in bhnd_generic_release_pmu() local
495 clkctl = bhnd_get_pmu_info(child); in bhnd_generic_release_pmu()
496 if (clkctl == NULL) in bhnd_generic_release_pmu()
503 if (!bhnd_is_hw_suspended(clkctl->cc_dev)) { in bhnd_generic_release_pmu()
[all …]
H A Dbhnd_subr.c1078 struct bhnd_core_clkctl *clkctl; in bhnd_alloc_core_clkctl() local
1080 clkctl = malloc(sizeof(*clkctl), M_BHND, M_ZERO | M_NOWAIT); in bhnd_alloc_core_clkctl()
1081 if (clkctl == NULL) in bhnd_alloc_core_clkctl()
1084 clkctl->cc_dev = dev; in bhnd_alloc_core_clkctl()
1085 clkctl->cc_pmu_dev = pmu_dev; in bhnd_alloc_core_clkctl()
1086 clkctl->cc_res = r; in bhnd_alloc_core_clkctl()
1087 clkctl->cc_res_offset = offset; in bhnd_alloc_core_clkctl()
1088 clkctl->cc_max_latency = max_latency; in bhnd_alloc_core_clkctl()
1089 clkctl->cc_quirks = bhnd_device_quirks(dev, bhnd_clkctl_devices, in bhnd_alloc_core_clkctl()
1092 BHND_CLKCTL_LOCK_INIT(clkctl); in bhnd_alloc_core_clkctl()
[all …]
H A Dbhndvar.h59 struct bhnd_core_clkctl *clkctl);
61 struct bhnd_core_clkctl *clkctl,
/src/sys/dev/bhnd/cores/pmu/
H A Dbhnd_pmu.c154 sc->clkctl = bhnd_alloc_core_clkctl(core, dev, sc->res, BHND_CLK_CTL_ST, in bhnd_pmu_attach()
156 if (sc->clkctl == NULL) { in bhnd_pmu_attach()
206 if (sc->clkctl != NULL) in bhnd_pmu_attach()
207 bhnd_free_core_clkctl(sc->clkctl); in bhnd_pmu_attach()
233 bhnd_free_core_clkctl(sc->clkctl); in bhnd_pmu_detach()
H A Dbhnd_pmuvar.h108 struct bhnd_core_clkctl *clkctl; /**< pmu clkctl register */ member
H A Dbhnd_pmu_subr.c94 bhnd_core_clkctl_wait((_sc)->clkctl, (_val), (_mask))
/src/sys/dev/bhnd/cores/chipc/pwrctl/
H A Dbhnd_pwrctl_subr.c414 uint32_t clkctl; in bhnd_pwrctl_init() local
423 clkctl = (CHIPC_ILP_DIV_1MHZ << CHIPC_SYCC_CD_SHIFT); in bhnd_pwrctl_init()
424 clkctl &= CHIPC_SYCC_CD_MASK; in bhnd_pwrctl_init()
425 bhnd_bus_write_4(sc->res, CHIPC_SYS_CLK_CTL, clkctl); in bhnd_pwrctl_init()
/src/sys/contrib/device-tree/Bindings/clock/
H A Dbrcm,bcm63xx-clocks.txt20 clkctl: clock-controller@10000004 {
/src/sys/contrib/device-tree/Bindings/spi/
H A Dspi-bcm63xx.txt26 clocks = <&clkctl 9>;
H A Dspi-bcm63xx-hsspi.txt26 clocks = <&clkctl 9>, <&hsspi_pll>;
/src/sys/contrib/device-tree/src/mips/brcm/
H A Dbcm3368.dtsi57 clkctl: clock-controller@fff8c004 { label
/src/sys/contrib/dev/broadcom/brcm80211/brcmfmac/
H A Dsdio.c787 u8 clkctl, clkreq, devctl; in brcmf_sdio_htclk() local
792 clkctl = 0; in brcmf_sdio_htclk()
812 clkctl = brcmf_sdiod_readb(bus->sdiodev, in brcmf_sdio_htclk()
820 if (!SBSDIO_CLKAV(clkctl, bus->alp_only) && pendok) { in brcmf_sdio_htclk()
848 while (!SBSDIO_CLKAV(clkctl, bus->alp_only)) { in brcmf_sdio_htclk()
849 clkctl = brcmf_sdiod_readb(bus->sdiodev, in brcmf_sdio_htclk()
861 if (!SBSDIO_CLKAV(clkctl, bus->alp_only)) { in brcmf_sdio_htclk()
863 PMU_MAX_TRANSITION_DLY, clkctl); in brcmf_sdio_htclk()
873 if (SBSDIO_ALPONLY(clkctl)) in brcmf_sdio_htclk()
2599 u8 clkctl, devctl = 0; in brcmf_sdio_dpc() local
[all …]