Home
last modified time | relevance | path

Searched refs:chipc_dev (Results 1 – 6 of 6) sorted by relevance

/freebsd/sys/dev/bhnd/cores/chipc/pwrctl/
H A Dbhnd_pwrctl_subr.c309 cid = bhnd_get_chipid(sc->chipc_dev); in bhnd_pwrctl_getclk_speed()
310 ccaps = BHND_CHIPC_GET_CAPS(sc->chipc_dev); in bhnd_pwrctl_getclk_speed()
333 return (bhnd_pwrctl_hostb_get_clksrc(sc->chipc_dev, in bhnd_pwrctl_slowclk_src()
501 if (bhnd_get_hwrev(sc->chipc_dev) == 10) in bhnd_pwrctl_setclk()
517 bhnd_pwrctl_hostb_ungate_clock(sc->chipc_dev, in bhnd_pwrctl_setclk()
545 bhnd_pwrctl_hostb_gate_clock(sc->chipc_dev, in bhnd_pwrctl_setclk()
H A Dbhnd_pwrctl.c126 sc->chipc_dev = device_get_parent(dev); in bhnd_pwrctl_attach()
127 sc->quirks = bhnd_device_quirks(sc->chipc_dev, pwrctl_devices, in bhnd_pwrctl_attach()
133 hostb_dev = bhnd_bus_find_hostb_device(device_get_parent(sc->chipc_dev)); in bhnd_pwrctl_attach()
137 cid = bhnd_get_chipid(sc->chipc_dev); in bhnd_pwrctl_attach()
157 chipc_sc = device_get_softc(sc->chipc_dev); in bhnd_pwrctl_attach()
H A Dbhnd_pwrctlvar.h108 device_t chipc_dev; /**< core device */ member
/freebsd/sys/dev/bhnd/cores/pmu/
H A Dbhnd_pmu.c164 sc->chipc_dev = bhnd_retain_provider(dev, BHND_SERVICE_CHIPC); in bhnd_pmu_attach()
165 if (sc->chipc_dev == NULL) { in bhnd_pmu_attach()
209 if (sc->chipc_dev != NULL) { in bhnd_pmu_attach()
210 bhnd_release_provider(sc->dev, sc->chipc_dev, in bhnd_pmu_attach()
234 bhnd_release_provider(sc->dev, sc->chipc_dev, BHND_SERVICE_CHIPC); in bhnd_pmu_detach()
596 return (BHND_CHIPC_READ_CHIPST(sc->chipc_dev)); in bhnd_pmu_read_chipst()
H A Dbhnd_pmu_subr.c259 chipst = BHND_CHIPC_READ_CHIPST(sc->chipc_dev); in bhnd_pmu_set_ldo_voltage()
268 chipst = BHND_CHIPC_READ_CHIPST(sc->chipc_dev); in bhnd_pmu_set_ldo_voltage()
725 chipst = BHND_CHIPC_READ_CHIPST(sc->chipc_dev); in bhnd_pmu_res_masks()
771 if (bhnd_get_attach_type(sc->chipc_dev) == BHND_ATTACH_NATIVE) { in bhnd_pmu_res_masks()
828 chipst = BHND_CHIPC_READ_CHIPST(sc->chipc_dev); in bhnd_pmu_res_masks()
880 error = bhnd_nvram_getvar_uint32(sc->chipc_dev, BHND_NVAR_RMIN, &nval); in bhnd_pmu_res_masks()
891 error = bhnd_nvram_getvar_uint32(sc->chipc_dev, BHND_NVAR_RMAX, &nval); in bhnd_pmu_res_masks()
1026 error = bhnd_nvram_getvar_uint32(sc->chipc_dev, name, &val); in bhnd_pmu_res_init()
1102 error = bhnd_nvram_getvar_uint32(sc->chipc_dev, name, &val); in bhnd_pmu_res_init()
2685 error = bhnd_nvram_getvar_uint32(sc->chipc_dev, BHND_NVAR_XTALFREQ, in bhnd_pmu_init()
[all …]
H A Dbhnd_pmuvar.h105 device_t chipc_dev; /**< chipcommon device */ member