Home
last modified time | relevance | path

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

/freebsd-12.1/sys/dev/bhnd/
H A Dbhnd.c387 if (clkctl != NULL) { in bhnd_generic_alloc_pmu()
472 if (clkctl == NULL) { in bhnd_generic_alloc_pmu()
501 if (clkctl == NULL) in bhnd_generic_release_pmu()
509 BHND_CLKCTL_LOCK(clkctl); in bhnd_generic_release_pmu()
523 r = clkctl->cc_res; in bhnd_generic_release_pmu()
619 BHND_CLKCTL_LOCK(clkctl); in bhnd_generic_request_clock()
627 BHND_CLKCTL_UNLOCK(clkctl); in bhnd_generic_request_clock()
685 BHND_CLKCTL_LOCK(clkctl); in bhnd_generic_enable_clocks()
693 BHND_CLKCTL_UNLOCK(clkctl); in bhnd_generic_enable_clocks()
728 BHND_CLKCTL_LOCK(clkctl); in bhnd_generic_request_ext_rsrc()
[all …]
H A Dbhnd_subr.c1085 struct bhnd_core_clkctl *clkctl; in bhnd_alloc_core_clkctl() local
1087 clkctl = malloc(sizeof(*clkctl), M_BHND, M_ZERO | M_NOWAIT); in bhnd_alloc_core_clkctl()
1088 if (clkctl == NULL) in bhnd_alloc_core_clkctl()
1091 clkctl->cc_dev = dev; in bhnd_alloc_core_clkctl()
1092 clkctl->cc_pmu_dev = pmu_dev; in bhnd_alloc_core_clkctl()
1093 clkctl->cc_res = r; in bhnd_alloc_core_clkctl()
1094 clkctl->cc_res_offset = offset; in bhnd_alloc_core_clkctl()
1099 BHND_CLKCTL_LOCK_INIT(clkctl); in bhnd_alloc_core_clkctl()
1101 return (clkctl); in bhnd_alloc_core_clkctl()
1114 free(clkctl, M_BHND); in bhnd_free_core_clkctl()
[all …]
H A Dbhndvar.h60 struct bhnd_core_clkctl *clkctl);
62 struct bhnd_core_clkctl *clkctl,
/freebsd-12.1/sys/dev/bhnd/cores/pmu/
H A Dbhnd_pmu.c159 sc->clkctl = bhnd_alloc_core_clkctl(core, dev, sc->res, BHND_CLK_CTL_ST, in bhnd_pmu_attach()
161 if (sc->clkctl == NULL) { in bhnd_pmu_attach()
211 if (sc->clkctl != NULL) in bhnd_pmu_attach()
212 bhnd_free_core_clkctl(sc->clkctl); in bhnd_pmu_attach()
238 bhnd_free_core_clkctl(sc->clkctl); in bhnd_pmu_detach()
H A Dbhnd_pmuvar.h111 struct bhnd_core_clkctl *clkctl; /**< pmu clkctl register */ member
H A Dbhnd_pmu_subr.c97 bhnd_core_clkctl_wait((_sc)->clkctl, (_val), (_mask))
/freebsd-12.1/sys/dev/bhnd/cores/chipc/pwrctl/
H A Dbhnd_pwrctl_subr.c417 uint32_t clkctl; in bhnd_pwrctl_init() local
426 clkctl = (CHIPC_ILP_DIV_1MHZ << CHIPC_SYCC_CD_SHIFT); in bhnd_pwrctl_init()
427 clkctl &= CHIPC_SYCC_CD_MASK; in bhnd_pwrctl_init()
428 bhnd_bus_write_4(sc->res, CHIPC_SYS_CLK_CTL, clkctl); in bhnd_pwrctl_init()