/netbsd-src/sys/dev/clk/ |
H A D | clk.c | 91 struct clk *clk; in clk_sysctl_rate_helper() local 107 struct clk *clk, *clk_parent; in clk_sysctl_parent_helper() local 125 struct clk *clk, *clk_parent; in clk_sysctl_parent_domain_helper() local 150 clk_attach(struct clk *clk) in clk_attach() 217 clk_put(struct clk *clk) in clk_put() 224 clk_get_rate(struct clk *clk) in clk_get_rate() 230 clk_set_rate(struct clk *clk, u_int rate) in clk_set_rate() 248 clk_round_rate(struct clk *clk, u_int rate) in clk_round_rate() 258 clk_enable(struct clk *clk) in clk_enable() 267 clk_disable(struct clk *clk) in clk_disable() [all …]
|
H A D | clk_backend.h | 43 struct clk { struct 44 struct clk_domain *domain; argument 51 struct clk *(*get)(void *, const char *); argument
|
/netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/clk/ |
H A D | nouveau_nvkm_subdev_clk_gk104.c | 55 read_vco(struct gk104_clk *clk, u32 dsrc) in read_vco() 65 read_pll(struct gk104_clk *clk, u32 pll) in read_pll() 111 read_div(struct gk104_clk *clk, int doff, u32 dsrc, u32 dctl) in read_div() 138 read_mem(struct gk104_clk *clk) in read_mem() 150 read_clk(struct gk104_clk *clk, int idx) in read_clk() 196 struct gk104_clk *clk = gk104_clk(base); in gk104_clk_read() local 228 calc_div(struct gk104_clk *clk, int idx, u32 ref, u32 freq, u32 *ddiv) in calc_div() 239 calc_src(struct gk104_clk *clk, int idx, u32 freq, u32 *dsrc, u32 *ddiv) in calc_src() 268 calc_pll(struct gk104_clk *clk, int idx, u32 freq, u32 *coef) in calc_pll() 292 calc_clk(struct gk104_clk *clk, in calc_clk() [all …]
|
H A D | nouveau_nvkm_subdev_clk_gk20a.c | 70 gk20a_pllg_read_mnp(struct gk20a_clk *clk, struct gk20a_pll *pll) in gk20a_pllg_read_mnp() 82 gk20a_pllg_write_mnp(struct gk20a_clk *clk, const struct gk20a_pll *pll) in gk20a_pllg_write_mnp() 94 gk20a_pllg_calc_rate(struct gk20a_clk *clk, struct gk20a_pll *pll) in gk20a_pllg_calc_rate() 106 gk20a_pllg_calc_mnp(struct gk20a_clk *clk, unsigned long rate, in gk20a_pllg_calc_mnp() 216 gk20a_pllg_slide(struct gk20a_clk *clk, u32 n) in gk20a_pllg_slide() 261 gk20a_pllg_enable(struct gk20a_clk *clk) in gk20a_pllg_enable() 289 gk20a_pllg_disable(struct gk20a_clk *clk) in gk20a_pllg_disable() 301 gk20a_pllg_program_mnp(struct gk20a_clk *clk, const struct gk20a_pll *pll) in gk20a_pllg_program_mnp() 340 gk20a_pllg_program_mnp_slide(struct gk20a_clk *clk, const struct gk20a_pll *pll) in gk20a_pllg_program_mnp_slide() 467 struct gk20a_clk *clk = gk20a_clk(base); in gk20a_clk_read() local [all …]
|
H A D | nouveau_nvkm_subdev_clk_gt215.c | 48 read_vco(struct gt215_clk *clk, int idx) in read_vco() 66 read_clk(struct gt215_clk *clk, int idx, bool ignore_en) in read_clk() 113 read_pll(struct gt215_clk *clk, int idx, u32 pll) in read_pll() 150 struct gt215_clk *clk = gt215_clk(base); in gt215_clk_read() local 195 struct gt215_clk *clk = gt215_clk(base); in gt215_clk_info() local 243 struct gt215_clk *clk = gt215_clk(base); in gt215_pll_info() local 279 calc_clk(struct gt215_clk *clk, struct nvkm_cstate *cstate, in calc_clk() 290 calc_host(struct gt215_clk *clk, struct nvkm_cstate *cstate) in calc_host() 312 gt215_clk_pre(struct nvkm_clk *clk, unsigned long *flags) in gt215_clk_pre() 347 gt215_clk_post(struct nvkm_clk *clk, unsigned long *flags) in gt215_clk_post() [all …]
|
H A D | nouveau_nvkm_subdev_clk_base.c | 46 nvkm_clk_adjust(struct nvkm_clk *clk, bool adjust, in nvkm_clk_adjust() 84 nvkm_cstate_valid(struct nvkm_clk *clk, struct nvkm_cstate *cstate, in nvkm_cstate_valid() 117 nvkm_cstate_find_best(struct nvkm_clk *clk, struct nvkm_pstate *pstate, in nvkm_cstate_find_best() 150 nvkm_cstate_get(struct nvkm_clk *clk, struct nvkm_pstate *pstate, int cstatei) in nvkm_cstate_get() 165 nvkm_cstate_prog(struct nvkm_clk *clk, struct nvkm_pstate *pstate, int cstatei) in nvkm_cstate_prog() 228 nvkm_cstate_new(struct nvkm_clk *clk, int idx, struct nvkm_pstate *pstate) in nvkm_cstate_new() 270 nvkm_pstate_prog(struct nvkm_clk *clk, int pstatei) in nvkm_pstate_prog() 305 struct nvkm_clk *clk = container_of(work, typeof(*clk), work); in nvkm_pstate_work() local 349 nvkm_pstate_calc(struct nvkm_clk *clk, bool wait) in nvkm_pstate_calc() 378 nvkm_pstate_info(struct nvkm_clk *clk, struct nvkm_pstate *pstate) in nvkm_pstate_info() [all …]
|
H A D | nouveau_nvkm_subdev_clk_gf100.c | 54 read_vco(struct gf100_clk *clk, u32 dsrc) in read_vco() 64 read_pll(struct gf100_clk *clk, u32 pll) in read_pll() 103 read_div(struct gf100_clk *clk, int doff, u32 dsrc, u32 dctl) in read_div() 138 read_clk(struct gf100_clk *clk, int idx) in read_clk() 165 struct gf100_clk *clk = gf100_clk(base); in gf100_clk_read() local 215 calc_div(struct gf100_clk *clk, int idx, u32 ref, u32 freq, u32 *ddiv) in calc_div() 226 calc_src(struct gf100_clk *clk, int idx, u32 freq, u32 *dsrc, u32 *ddiv) in calc_src() 255 calc_pll(struct gf100_clk *clk, int idx, u32 freq, u32 *coef) in calc_pll() 279 calc_clk(struct gf100_clk *clk, struct nvkm_cstate *cstate, int idx, int dom) in calc_clk() 332 struct gf100_clk *clk = gf100_clk(base); in gf100_clk_calc() local [all …]
|
H A D | nouveau_nvkm_subdev_clk_gm20b.c | 165 gm20b_pllg_read_mnp(struct gm20b_clk *clk, struct gm20b_pll *pll) in gm20b_pllg_read_mnp() 178 gm20b_pllg_write_mnp(struct gm20b_clk *clk, const struct gm20b_pll *pll) in gm20b_pllg_write_mnp() 194 gm20b_dvfs_calc_det_coeff(struct gm20b_clk *clk, s32 uv, in gm20b_dvfs_calc_det_coeff() 230 gm20b_dvfs_calc_ndiv(struct gm20b_clk *clk, u32 n_eff, u32 *n_int, u32 *sdm_din) in gm20b_dvfs_calc_ndiv() 271 gm20b_pllg_slide(struct gm20b_clk *clk, u32 n) in gm20b_pllg_slide() 327 gm20b_pllg_enable(struct gm20b_clk *clk) in gm20b_pllg_enable() 350 gm20b_pllg_disable(struct gm20b_clk *clk) in gm20b_pllg_disable() 365 gm20b_pllg_program_mnp(struct gm20b_clk *clk, const struct gk20a_pll *pll) in gm20b_pllg_program_mnp() 438 gm20b_pllg_program_mnp_slide(struct gm20b_clk *clk, const struct gk20a_pll *pll) in gm20b_pllg_program_mnp_slide() 471 struct gm20b_clk *clk = gm20b_clk(base); in gm20b_clk_calc() local [all …]
|
H A D | nouveau_nvkm_subdev_clk_nv50.c | 37 read_div(struct nv50_clk *clk) in read_div() 57 read_pll_src(struct nv50_clk *clk, u32 base) in read_pll_src() 130 read_pll_ref(struct nv50_clk *clk, u32 base) in read_pll_ref() 163 read_pll(struct nv50_clk *clk, u32 base) in read_pll() 199 struct nv50_clk *clk = nv50_clk(base); in nv50_clk_read() local 330 calc_pll(struct nv50_clk *clk, u32 reg, u32 idx, int *N, int *M, int *P) in calc_pll() 375 struct nv50_clk *clk = nv50_clk(base); in nv50_clk_calc() local 502 struct nv50_clk *clk = nv50_clk(base); in nv50_clk_prog() local 509 struct nv50_clk *clk = nv50_clk(base); in nv50_clk_tidy() local 517 struct nv50_clk *clk; in nv50_clk_new_() local
|
H A D | nouveau_nvkm_subdev_clk_nv40.c | 45 read_pll_1(struct nv40_clk *clk, u32 reg) in read_pll_1() 61 read_pll_2(struct nv40_clk *clk, u32 reg) in read_pll_2() 87 read_clk(struct nv40_clk *clk, u32 src) in read_clk() 104 struct nv40_clk *clk = nv40_clk(base); in nv40_clk_read() local 129 nv40_clk_calc_pll(struct nv40_clk *clk, u32 reg, u32 khz, in nv40_clk_calc_pll() 153 struct nv40_clk *clk = nv40_clk(base); in nv40_clk_calc() local 193 struct nv40_clk *clk = nv40_clk(base); in nv40_clk_prog() local 228 struct nv40_clk *clk; in nv40_clk_new() local
|
/netbsd-src/sys/arch/arm/nxp/ |
H A D | imx_ccm.c | 47 struct imx_ccm_clk *clk; in imx_ccm_clock_decode() local 71 struct imx_ccm_clk *clk; in imx_ccm_clock_get() local 81 imx_ccm_clock_put(void *priv, struct clk *clk) in imx_ccm_clock_put() 89 struct imx_ccm_clk *clk = (struct imx_ccm_clk *)clkp; in imx_ccm_clock_get_rate() local 108 struct imx_ccm_clk *clk = (struct imx_ccm_clk *)clkp; in imx_ccm_clock_set_rate() local 130 struct imx_ccm_clk *clk = (struct imx_ccm_clk *)clkp; in imx_ccm_clock_round_rate() local 152 struct imx_ccm_clk *clk = (struct imx_ccm_clk *)clkp; in imx_ccm_clock_enable() local 173 struct imx_ccm_clk *clk = (struct imx_ccm_clk *)clkp; in imx_ccm_clock_disable() local 187 struct imx_ccm_clk *clk = (struct imx_ccm_clk *)clkp; in imx_ccm_clock_set_parent() local 199 struct imx_ccm_clk *clk = (struct imx_ccm_clk *)clkp; in imx_ccm_clock_get_parent() local [all …]
|
H A D | imx_ccm_extclk.c | 42 imx_ccm_extclk_enable(struct imx_ccm_softc *sc, struct imx_ccm_clk *clk, in imx_ccm_extclk_enable() 57 struct imx_ccm_clk *clk) in imx_ccm_extclk_get_rate() 71 struct imx_ccm_clk *clk, u_int rate) in imx_ccm_extclk_set_rate() 85 struct imx_ccm_clk *clk) in imx_ccm_extclk_get_parent()
|
H A D | imx_ccm_composite.c | 48 imx_ccm_composite_enable(struct imx_ccm_softc *sc, struct imx_ccm_clk *clk, in imx_ccm_composite_enable() 68 struct imx_ccm_clk *clk) in imx_ccm_composite_get_rate() 93 struct imx_ccm_clk *clk, u_int rate) in imx_ccm_composite_set_rate() 166 struct imx_ccm_clk *clk) in imx_ccm_composite_get_parent() 183 struct imx_ccm_clk *clk, const char *parent) in imx_ccm_composite_set_parent()
|
/netbsd-src/sys/arch/arm/ti/ |
H A D | ti_prcm.c | 50 struct ti_prcm_clk *clk; in ti_prcm_clock_get() local 60 ti_prcm_clock_put(void *priv, struct clk *clk) in ti_prcm_clock_put() 68 struct ti_prcm_clk *clk = (struct ti_prcm_clk *)clkp; in ti_prcm_clock_get_rate() local 87 struct ti_prcm_clk *clk = (struct ti_prcm_clk *)clkp; in ti_prcm_clock_set_rate() local 109 struct ti_prcm_clk *clk = (struct ti_prcm_clk *)clkp; in ti_prcm_clock_enable() local 130 struct ti_prcm_clk *clk = (struct ti_prcm_clk *)clkp; in ti_prcm_clock_disable() local 144 struct ti_prcm_clk *clk = (struct ti_prcm_clk *)clkp; in ti_prcm_clock_set_parent() local 156 struct ti_prcm_clk *clk = (struct ti_prcm_clk *)clkp; in ti_prcm_clock_get_parent() local 266 struct clk *clk; in ti_prcm_enable_hwmod() local
|
/netbsd-src/sys/arch/arm/rockchip/ |
H A D | rk_cru.c | 97 struct rk_cru_clk *clk; in rk_cru_clock_decode() local 121 struct rk_cru_clk *clk; in rk_cru_clock_get() local 131 rk_cru_clock_put(void *priv, struct clk *clk) in rk_cru_clock_put() 139 struct rk_cru_clk *clk = (struct rk_cru_clk *)clkp; in rk_cru_clock_get_rate() local 159 struct rk_cru_clk *clk = (struct rk_cru_clk *)clkp; in rk_cru_clock_set_rate() local 182 struct rk_cru_clk *clk = (struct rk_cru_clk *)clkp; in rk_cru_clock_round_rate() local 205 struct rk_cru_clk *clk = (struct rk_cru_clk *)clkp; in rk_cru_clock_enable() local 226 struct rk_cru_clk *clk = (struct rk_cru_clk *)clkp; in rk_cru_clock_disable() local 239 struct rk_cru_clk *clk = (struct rk_cru_clk *)clkp; in rk_cru_clock_set_parent() local 251 struct rk_cru_clk *clk = (struct rk_cru_clk *)clkp; in rk_cru_clock_get_parent() local [all …]
|
H A D | rk_cru_arm.c | 41 struct rk_cru_clk *clk) in rk_cru_arm_get_rate() 65 struct rk_cru_clk *clk, u_int rate) in rk_cru_arm_set_rate_rates() 119 struct rk_cru_clk *clk, u_int rate) in rk_cru_arm_set_rate_cpurates() 186 struct rk_cru_clk *clk, u_int rate) in rk_cru_arm_set_rate() 200 struct rk_cru_clk *clk) in rk_cru_arm_get_parent() 214 struct rk_cru_clk *clk, const char *parent) in rk_cru_arm_set_parent()
|
H A D | rk_cru_composite.c | 42 rk_cru_composite_enable(struct rk_cru_softc *sc, struct rk_cru_clk *clk, in rk_cru_composite_enable() 62 struct rk_cru_clk *clk) in rk_cru_composite_get_rate() 117 struct rk_cru_clk *clk, u_int rate) in rk_cru_composite_set_rate_frac() 140 struct rk_cru_clk *clk, u_int rate) in rk_cru_composite_set_rate() 218 struct rk_cru_clk *clk) in rk_cru_composite_get_parent() 238 struct rk_cru_clk *clk, const char *parent) in rk_cru_composite_set_parent()
|
/netbsd-src/sys/arch/arm/sunxi/ |
H A D | sunxi_ccu.c | 109 struct sunxi_ccu_clk *clk; in sunxi_ccu_clock_decode() local 133 struct sunxi_ccu_clk *clk; in sunxi_ccu_clock_get() local 143 sunxi_ccu_clock_put(void *priv, struct clk *clk) in sunxi_ccu_clock_put() 151 struct sunxi_ccu_clk *clk = (struct sunxi_ccu_clk *)clkp; in sunxi_ccu_clock_get_rate() local 170 struct sunxi_ccu_clk *clk = (struct sunxi_ccu_clk *)clkp; in sunxi_ccu_clock_set_rate() local 192 struct sunxi_ccu_clk *clk = (struct sunxi_ccu_clk *)clkp; in sunxi_ccu_clock_round_rate() local 214 struct sunxi_ccu_clk *clk = (struct sunxi_ccu_clk *)clkp; in sunxi_ccu_clock_enable() local 235 struct sunxi_ccu_clk *clk = (struct sunxi_ccu_clk *)clkp; in sunxi_ccu_clock_disable() local 249 struct sunxi_ccu_clk *clk = (struct sunxi_ccu_clk *)clkp; in sunxi_ccu_clock_set_parent() local 261 struct sunxi_ccu_clk *clk = (struct sunxi_ccu_clk *)clkp; in sunxi_ccu_clock_get_parent() local [all …]
|
H A D | sunxi_ccu_div.c | 40 sunxi_ccu_div_enable(struct sunxi_ccu_softc *sc, struct sunxi_ccu_clk *clk, in sunxi_ccu_div_enable() 63 struct sunxi_ccu_clk *clk) in sunxi_ccu_div_get_rate() 103 struct sunxi_ccu_clk *clk, u_int new_rate) in sunxi_ccu_div_select_parent() 135 struct sunxi_ccu_clk *clk, u_int new_rate) in sunxi_ccu_div_set_rate() 185 struct sunxi_ccu_clk *clk, const char *name) in sunxi_ccu_div_set_parent() 214 struct sunxi_ccu_clk *clk) in sunxi_ccu_div_get_parent()
|
H A D | sunxi_ccu_prediv.c | 41 struct sunxi_ccu_clk *clk) in sunxi_ccu_prediv_get_rate() 91 struct sunxi_ccu_clk *clk, u_int new_rate) in sunxi_ccu_prediv_set_rate() 98 struct sunxi_ccu_clk *clk, const char *name) in sunxi_ccu_prediv_set_parent() 127 struct sunxi_ccu_clk *clk) in sunxi_ccu_prediv_get_parent()
|
H A D | sunxi_ccu_nkmp.c | 40 sunxi_ccu_nkmp_enable(struct sunxi_ccu_softc *sc, struct sunxi_ccu_clk *clk, in sunxi_ccu_nkmp_enable() 75 struct sunxi_ccu_clk *clk) in sunxi_ccu_nkmp_get_rate() 138 struct sunxi_ccu_clk *clk, u_int rate) in sunxi_ccu_nkmp_set_rate() 217 struct sunxi_ccu_clk *clk) in sunxi_ccu_nkmp_get_parent()
|
H A D | sunxi_ccu_nm.c | 40 sunxi_ccu_nm_enable(struct sunxi_ccu_softc *sc, struct sunxi_ccu_clk *clk, in sunxi_ccu_nm_enable() 63 struct sunxi_ccu_clk *clk) in sunxi_ccu_nm_get_rate() 103 struct sunxi_ccu_clk *clk, u_int new_rate) in sunxi_ccu_nm_set_rate() 191 struct sunxi_ccu_clk *clk, const char *name) in sunxi_ccu_nm_set_parent() 220 struct sunxi_ccu_clk *clk) in sunxi_ccu_nm_get_parent()
|
H A D | sunxi_ccu_fractional.c | 41 struct sunxi_ccu_clk *clk, int enable) in sunxi_ccu_fractional_enable() 63 struct sunxi_ccu_clk *clk) in sunxi_ccu_fractional_get_rate() 106 struct sunxi_ccu_clk *clk, u_int new_rate) in sunxi_ccu_fractional_set_rate() 185 struct sunxi_ccu_clk *clk, u_int try_rate) in sunxi_ccu_fractional_round_rate() 238 struct sunxi_ccu_clk *clk) in sunxi_ccu_fractional_get_parent()
|
/netbsd-src/sys/arch/arm/amlogic/ |
H A D | meson_clk.c | 110 struct meson_clk_clk *clk; in meson_clk_clock_decode() local 134 struct meson_clk_clk *clk; in meson_clk_clock_get() local 144 meson_clk_clock_put(void *priv, struct clk *clk) in meson_clk_clock_put() 152 struct meson_clk_clk *clk = (struct meson_clk_clk *)clkp; in meson_clk_clock_get_rate() local 171 struct meson_clk_clk *clk = (struct meson_clk_clk *)clkp; in meson_clk_clock_set_rate() local 193 struct meson_clk_clk *clk = (struct meson_clk_clk *)clkp; in meson_clk_clock_round_rate() local 215 struct meson_clk_clk *clk = (struct meson_clk_clk *)clkp; in meson_clk_clock_enable() local 236 struct meson_clk_clk *clk = (struct meson_clk_clk *)clkp; in meson_clk_clock_disable() local 250 struct meson_clk_clk *clk = (struct meson_clk_clk *)clkp; in meson_clk_clock_set_parent() local 262 struct meson_clk_clk *clk = (struct meson_clk_clk *)clkp; in meson_clk_clock_get_parent() local [all …]
|
/netbsd-src/sys/arch/hp300/hp300/ |
H A D | clock.c | 110 volatile struct clkreg *clk; in hp300_calibrate_delay() local 189 volatile struct clkreg *clk; in cpu_initclocks() local 283 volatile struct clkreg *clk; in statintr() local 311 volatile struct clkreg *clk; in mc6840_counter() local
|