Home
last modified time | relevance | path

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

/freebsd-14.2/sys/dev/bhnd/
H A Dbhnd.c385 if (clkctl != NULL) { in bhnd_generic_alloc_pmu()
470 if (clkctl == NULL) { in bhnd_generic_alloc_pmu()
496 if (clkctl == NULL) in bhnd_generic_release_pmu()
504 BHND_CLKCTL_LOCK(clkctl); in bhnd_generic_release_pmu()
518 r = clkctl->cc_res; in bhnd_generic_release_pmu()
611 BHND_CLKCTL_LOCK(clkctl); in bhnd_generic_request_clock()
619 BHND_CLKCTL_UNLOCK(clkctl); in bhnd_generic_request_clock()
672 BHND_CLKCTL_LOCK(clkctl); in bhnd_generic_enable_clocks()
680 BHND_CLKCTL_UNLOCK(clkctl); in bhnd_generic_enable_clocks()
710 BHND_CLKCTL_LOCK(clkctl); in bhnd_generic_request_ext_rsrc()
[all …]
H A Dbhnd_subr.c1079 struct bhnd_core_clkctl *clkctl; in bhnd_alloc_core_clkctl() local
1081 clkctl = malloc(sizeof(*clkctl), M_BHND, M_ZERO | M_NOWAIT); in bhnd_alloc_core_clkctl()
1082 if (clkctl == NULL) in bhnd_alloc_core_clkctl()
1085 clkctl->cc_dev = dev; in bhnd_alloc_core_clkctl()
1086 clkctl->cc_pmu_dev = pmu_dev; in bhnd_alloc_core_clkctl()
1087 clkctl->cc_res = r; in bhnd_alloc_core_clkctl()
1088 clkctl->cc_res_offset = offset; in bhnd_alloc_core_clkctl()
1093 BHND_CLKCTL_LOCK_INIT(clkctl); in bhnd_alloc_core_clkctl()
1095 return (clkctl); in bhnd_alloc_core_clkctl()
1108 free(clkctl, M_BHND); in bhnd_free_core_clkctl()
[all …]
H A Dbhndvar.h59 struct bhnd_core_clkctl *clkctl);
61 struct bhnd_core_clkctl *clkctl,
/freebsd-14.2/sys/dev/bhnd/cores/pmu/
H A Dbhnd_pmu.c155 sc->clkctl = bhnd_alloc_core_clkctl(core, dev, sc->res, BHND_CLK_CTL_ST, in bhnd_pmu_attach()
157 if (sc->clkctl == NULL) { in bhnd_pmu_attach()
207 if (sc->clkctl != NULL) in bhnd_pmu_attach()
208 bhnd_free_core_clkctl(sc->clkctl); in bhnd_pmu_attach()
234 bhnd_free_core_clkctl(sc->clkctl); in bhnd_pmu_detach()
H A Dbhnd_pmuvar.h109 struct bhnd_core_clkctl *clkctl; /**< pmu clkctl register */ member
H A Dbhnd_pmu_subr.c95 bhnd_core_clkctl_wait((_sc)->clkctl, (_val), (_mask))
/freebsd-14.2/sys/dev/bhnd/cores/chipc/pwrctl/
H A Dbhnd_pwrctl_subr.c415 uint32_t clkctl; in bhnd_pwrctl_init() local
424 clkctl = (CHIPC_ILP_DIV_1MHZ << CHIPC_SYCC_CD_SHIFT); in bhnd_pwrctl_init()
425 clkctl &= CHIPC_SYCC_CD_MASK; in bhnd_pwrctl_init()
426 bhnd_bus_write_4(sc->res, CHIPC_SYS_CLK_CTL, clkctl); in bhnd_pwrctl_init()
/freebsd-14.2/sys/contrib/device-tree/Bindings/clock/
H A Dbrcm,bcm63xx-clocks.txt20 clkctl: clock-controller@10000004 {
/freebsd-14.2/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>;
/freebsd-14.2/sys/contrib/device-tree/src/mips/brcm/
H A Dbcm3368.dtsi57 clkctl: clock-controller@fff8c004 { label