/linux-master/arch/sh/kernel/cpu/sh3/ |
H A D | clock-sh3.c | 26 static void master_clk_init(struct clk *clk) argument 31 clk->rate *= pfc_divisors[idx]; 38 static unsigned long module_clk_recalc(struct clk *clk) argument 43 return clk->parent->rate / pfc_divisors[idx]; 50 static unsigned long bus_clk_recalc(struct clk *clk) argument 55 return clk->parent->rate / stc_multipliers[idx]; 62 static unsigned long cpu_clk_recalc(struct clk *cl argument [all...] |
/linux-master/arch/sh/kernel/cpu/sh2a/ |
H A D | clock-sh7201.c | 24 static void master_clk_init(struct clk *clk) argument 26 clk->rate = 10000000 * pll2_mult * 34 static unsigned long module_clk_recalc(struct clk *clk) argument 37 return clk->parent->rate / pfc_divisors[idx]; 44 static unsigned long bus_clk_recalc(struct clk *clk) argument 47 return clk->parent->rate / pfc_divisors[idx]; 54 static unsigned long cpu_clk_recalc(struct clk *cl argument [all...] |
H A D | clock-sh7206.c | 24 static void master_clk_init(struct clk *clk) argument 26 clk->rate *= pll2_mult * pll1rate[(__raw_readw(FREQCR) >> 8) & 0x0007]; 33 static unsigned long module_clk_recalc(struct clk *clk) argument 36 return clk->parent->rate / pfc_divisors[idx]; 43 static unsigned long bus_clk_recalc(struct clk *clk) argument 45 return clk->parent->rate / pll1rate[(__raw_readw(FREQCR) >> 8) & 0x0007]; 52 static unsigned long cpu_clk_recalc(struct clk *cl argument [all...] |
/linux-master/arch/sh/kernel/cpu/sh4a/ |
H A D | clock-sh7770.c | 19 static void master_clk_init(struct clk *clk) argument 21 clk->rate *= pfc_divisors[(__raw_readl(FRQCR) >> 28) & 0x000f]; 28 static unsigned long module_clk_recalc(struct clk *clk) argument 31 return clk->parent->rate / pfc_divisors[idx]; 38 static unsigned long bus_clk_recalc(struct clk *clk) argument 41 return clk->parent->rate / bfc_divisors[idx]; 48 static unsigned long cpu_clk_recalc(struct clk *cl argument [all...] |
/linux-master/drivers/rtc/ |
H A D | rtc-sa1100.h | 7 struct clk; 19 struct clk *clk; member in struct:sa1100_rtc
|
/linux-master/include/linux/platform_data/ |
H A D | asoc-ti-mcbsp.h | 12 #include <linux/clk.h> 29 int (*force_ick_on)(struct clk *clk, bool force_on);
|
/linux-master/include/clocksource/ |
H A D | timer-davinci.h | 12 #include <linux/clk.h> 41 int __init davinci_timer_register(struct clk *clk,
|
/linux-master/arch/s390/kernel/vdso64/ |
H A D | getcpu.c | 11 union tod_clock clk; local 14 store_tod_clock_ext(&clk); 16 *cpu = clk.pf;
|
/linux-master/drivers/cpufreq/ |
H A D | mvebu-cpufreq.c | 14 #include <linux/clk.h> 61 struct clk *clk; local 70 clk = clk_get(cpu_dev, NULL); 71 if (IS_ERR(clk)) { 73 return PTR_ERR(clk); 76 ret = dev_pm_opp_add(cpu_dev, clk_get_rate(clk), 0); 78 clk_put(clk); 82 ret = dev_pm_opp_add(cpu_dev, clk_get_rate(clk) / 2, 0); 84 dev_pm_opp_remove(cpu_dev, clk_get_rate(clk)); [all...] |
/linux-master/drivers/clk/meson/ |
H A D | clk-cpu-dyndiv.c | 7 #include <linux/clk-provider.h> 10 #include "clk-regmap.h" 11 #include "clk-cpu-dyndiv.h" 14 meson_clk_cpu_dyndiv_data(struct clk_regmap *clk) argument 16 return (struct meson_clk_cpu_dyndiv_data *)clk->data; 22 struct clk_regmap *clk = to_clk_regmap(hw); local 23 struct meson_clk_cpu_dyndiv_data *data = meson_clk_cpu_dyndiv_data(clk); 26 meson_parm_read(clk->map, &data->div), 33 struct clk_regmap *clk = to_clk_regmap(hw); local 34 struct meson_clk_cpu_dyndiv_data *data = meson_clk_cpu_dyndiv_data(clk); 42 struct clk_regmap *clk = to_clk_regmap(hw); local [all...] |
/linux-master/scripts/gdb/linux/ |
H A D | clk.py | 19 """Print clk tree summary 21 Output is a subset of /sys/kernel/debug/clk/clk_summary 27 super(LxClkSummary, self).__init__("lx-clk-summary", gdb.COMMAND_DATA) 29 def show_subtree(self, clk, level): 33 clk['name'].string(), 34 clk['enable_count'], 35 clk['prepare_count'], 36 clk['protect_count'], 37 clk['rate'], 38 '(c)' if clk['flag [all...] |
/linux-master/arch/mips/bcm63xx/ |
H A D | clk.c | 13 #include <linux/clk.h> 21 struct clk { struct 22 void (*set)(struct clk *, int); 31 static void clk_enable_unlocked(struct clk *clk) argument 33 if (clk->set && (clk->usage++) == 0) 34 clk->set(clk, 1); 37 static void clk_disable_unlocked(struct clk *cl argument 58 enet_misc_set(struct clk *clk, int enable) argument 82 enetx_set(struct clk *clk, int enable) argument 113 ephy_set(struct clk *clk, int enable) argument 127 swpkt_sar_set(struct clk *clk, int enable) argument 142 swpkt_usb_set(struct clk *clk, int enable) argument 157 enetsw_set(struct clk *clk, int enable) argument 192 pcm_set(struct clk *clk, int enable) argument 207 usbh_set(struct clk *clk, int enable) argument 226 usbd_set(struct clk *clk, int enable) argument 243 spi_set(struct clk *clk, int enable) argument 268 hsspi_set(struct clk *clk, int enable) argument 294 xtm_set(struct clk *clk, int enable) argument 323 ipsec_set(struct clk *clk, int enable) argument 339 pcie_set(struct clk *clk, int enable) argument 362 clk_enable(struct clk *clk) argument 374 clk_disable(struct clk *clk) argument 386 clk_get_parent(struct clk *clk) argument 392 clk_set_parent(struct clk *clk, struct clk *parent) argument 398 clk_get_rate(struct clk *clk) argument 408 clk_set_rate(struct clk *clk, unsigned long rate) argument 414 clk_round_rate(struct clk *clk, unsigned long rate) argument [all...] |
/linux-master/arch/arm/mach-omap1/ |
H A D | clock.h | 13 #include <linux/clk.h> 15 #include <linux/clk-provider.h> 49 int (*enable)(struct omap1_clk *clk); 50 void (*disable)(struct omap1_clk *clk); 54 * struct clk.flags possibilities 63 * struct omap1_clk - OMAP1 struct clk 74 * @flags: see "struct clk.flags possibilities" above 82 unsigned long (*recalc)(struct omap1_clk *clk, unsigned long rate); 83 int (*set_rate)(struct omap1_clk *clk, unsigned long rate, 85 long (*round_rate)(struct omap1_clk *clk, unsigne 123 struct omap1_clk clk; member in struct:uart_clk 129 struct omap1_clk clk; member in struct:arm_idlect1_clk [all...] |
/linux-master/arch/sh/kernel/cpu/ |
H A D | clock-cpg.c | 2 #include <linux/clk.h> 9 static struct clk master_clk = { 14 static struct clk peripheral_clk = { 19 static struct clk bus_clk = { 24 static struct clk cpu_clk = { 32 static struct clk *onchip_clocks[] = { 52 struct clk *clk = onchip_clocks[i]; local 53 arch_init_clk_ops(&clk->ops, i); 54 if (clk [all...] |
/linux-master/drivers/clocksource/ |
H A D | armv7m_systick.c | 13 #include <linux/clk.h> 27 struct clk *clk = NULL; local 40 clk = of_clk_get(np, 0); 41 if (IS_ERR(clk)) { 42 ret = PTR_ERR(clk); 46 ret = clk_prepare_enable(clk); 50 rate = clk_get_rate(clk); 64 if (clk) 75 clk_disable_unprepare(clk); [all...] |
/linux-master/drivers/clk/ti/ |
H A D | clkt_iclk.c | 11 #include <linux/clk-provider.h> 13 #include <linux/clk/ti.h> 28 void omap2_clkt_iclk_allow_idle(struct clk_hw_omap *clk) argument 33 memcpy(&r, &clk->enable_reg, sizeof(r)); 37 v |= (1 << clk->enable_bit); 42 void omap2_clkt_iclk_deny_idle(struct clk_hw_omap *clk) argument 47 memcpy(&r, &clk->enable_reg, sizeof(r)); 52 v &= ~(1 << clk->enable_bit); 58 * @clk: struct clk * bein 68 omap2430_clk_i2chs_find_idlest(struct clk_hw_omap *clk, struct clk_omap_reg *idlest_reg, u8 *idlest_bit, u8 *idlest_val) argument [all...] |
/linux-master/arch/mips/lantiq/ |
H A D | clk.h | 58 struct clk { struct 65 int (*enable) (struct clk *clk); 66 void (*disable) (struct clk *clk); 67 int (*activate) (struct clk *clk); 68 void (*deactivate) (struct clk *clk); 69 void (*reboot) (struct clk *cl [all...] |
/linux-master/drivers/clk/bcm/ |
H A D | clk-iproc-asiu.c | 6 #include <linux/clk-provider.h> 13 #include "clk-iproc.h" 38 struct iproc_asiu_clk *clk = to_asiu_clk(hw); local 39 struct iproc_asiu *asiu = clk->asiu; 43 if (clk->gate.offset == IPROC_CLK_INVALID_OFFSET) 46 val = readl(asiu->gate_base + clk->gate.offset); 47 val |= (1 << clk->gate.en_shift); 48 writel(val, asiu->gate_base + clk->gate.offset); 55 struct iproc_asiu_clk *clk = to_asiu_clk(hw); local 56 struct iproc_asiu *asiu = clk 71 struct iproc_asiu_clk *clk = to_asiu_clk(hw); local 122 struct iproc_asiu_clk *clk = to_asiu_clk(hw); local [all...] |
/linux-master/drivers/media/platform/mediatek/mdp/ |
H A D | mtk_mdp_comp.c | 7 #include <linux/clk.h> 18 for (i = 0; i < ARRAY_SIZE(comp->clk); i++) { 19 if (IS_ERR(comp->clk[i])) 21 err = clk_prepare_enable(comp->clk[i]); 33 for (i = 0; i < ARRAY_SIZE(comp->clk); i++) { 34 if (IS_ERR(comp->clk[i])) 36 clk_disable_unprepare(comp->clk[i]); 50 for (i = 0; i < ARRAY_SIZE(comp->clk); i++) { 51 comp->clk[i] = of_clk_get(node, i); 52 if (IS_ERR(comp->clk[ [all...] |
/linux-master/include/linux/ |
H A D | clkdev.h | 7 * Helper for the clk API to assist looking up a struct clk. 14 struct clk; 22 struct clk *clk; member in struct:clk_lookup 30 .clk = c, \ 36 struct clk_lookup *clkdev_create(struct clk *clk, const char *con_id, 44 int clk_register_clkdev(struct clk *, const char *, const char *);
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
H A D | base.c | 41 nvkm_clk_adjust(struct nvkm_clk *clk, bool adjust, argument 44 struct nvkm_bios *bios = clk->subdev.device->bios; 79 nvkm_cstate_valid(struct nvkm_clk *clk, struct nvkm_cstate *cstate, argument 82 const struct nvkm_domain *domain = clk->domains; 83 struct nvkm_volt *volt = clk->subdev.device->volt; 89 switch (clk->boost_mode) { 91 if (clk->base_khz && freq > clk->base_khz) 95 if (clk->boost_khz && freq > clk 112 nvkm_cstate_find_best(struct nvkm_clk *clk, struct nvkm_pstate *pstate, struct nvkm_cstate *cstate) argument 145 nvkm_cstate_get(struct nvkm_clk *clk, struct nvkm_pstate *pstate, int cstatei) argument 160 nvkm_cstate_prog(struct nvkm_clk *clk, struct nvkm_pstate *pstate, int cstatei) argument 225 nvkm_cstate_new(struct nvkm_clk *clk, int idx, struct nvkm_pstate *pstate) argument 267 nvkm_pstate_prog(struct nvkm_clk *clk, int pstatei) argument 302 struct nvkm_clk *clk = container_of(work, typeof(*clk), work); local 336 nvkm_pstate_calc(struct nvkm_clk *clk, bool wait) argument 346 nvkm_pstate_info(struct nvkm_clk *clk, struct nvkm_pstate *pstate) argument 402 nvkm_pstate_new(struct nvkm_clk *clk, int idx) argument 473 nvkm_clk_ustate_update(struct nvkm_clk *clk, int req) argument 497 nvkm_clk_nstate(struct nvkm_clk *clk, const char *mode, int arglen) argument 521 nvkm_clk_ustate(struct nvkm_clk *clk, int req, int pwr) argument 533 nvkm_clk_astate(struct nvkm_clk *clk, int req, int rel, bool wait) argument 543 nvkm_clk_tstate(struct nvkm_clk *clk, u8 temp) argument 552 nvkm_clk_dstate(struct nvkm_clk *clk, int req, int rel) argument 574 nvkm_clk_read(struct nvkm_clk *clk, enum nv_clk_src src) argument 582 struct nvkm_clk *clk = nvkm_clk(subdev); local 592 struct nvkm_clk *clk = nvkm_clk(subdev); local 626 struct nvkm_clk *clk = nvkm_clk(subdev); local 648 nvkm_clk_ctor(const struct nvkm_clk_func *func, struct nvkm_device *device, enum nvkm_subdev_type type, int inst, bool allow_reclock, struct nvkm_clk *clk) argument [all...] |
/linux-master/drivers/clk/zynq/ |
H A D | pll.c | 9 #include <linux/clk/zynq.h> 10 #include <linux/clk-provider.h> 74 struct zynq_pll *clk = to_zynq_pll(hw); local 81 fbdiv = (readl(clk->pll_ctrl) & PLLCTRL_FBDIV_MASK) >> 99 struct zynq_pll *clk = to_zynq_pll(hw); local 101 spin_lock_irqsave(clk->lock, flags); 103 reg = readl(clk->pll_ctrl); 105 spin_unlock_irqrestore(clk->lock, flags); 119 struct zynq_pll *clk = to_zynq_pll(hw); local 127 spin_lock_irqsave(clk 149 struct zynq_pll *clk = to_zynq_pll(hw); local 189 struct clk *clk; local [all...] |
/linux-master/sound/soc/sof/mediatek/mt8195/ |
H A D | mt8195-clk.c | 9 #include <linux/clk.h> 12 #include "mt8195-clk.h" 31 priv->clk = devm_kcalloc(dev, ADSP_CLK_MAX, sizeof(*priv->clk), GFP_KERNEL); 33 if (!priv->clk) 37 priv->clk[i] = devm_clk_get(dev, adsp_clks[i]); 38 if (IS_ERR(priv->clk[i])) 39 return PTR_ERR(priv->clk[i]); 51 ret = clk_prepare_enable(priv->clk[CLK_TOP_MAINPLL_D7_D2]); 58 ret = clk_prepare_enable(priv->clk[CLK_TOP_ADS [all...] |
/linux-master/arch/mips/lantiq/xway/ |
H A D | sysctrl.c | 17 #include "../clk.h" 189 static int cgu_enable(struct clk *clk) argument 191 ltq_cgu_w32(ltq_cgu_r32(ifccr) | clk->bits, ifccr); 196 static void cgu_disable(struct clk *clk) argument 198 ltq_cgu_w32(ltq_cgu_r32(ifccr) & ~clk->bits, ifccr); 202 static int pmu_enable(struct clk *clk) argument 208 pmu_w32(clk 228 pmu_disable(struct clk *clk) argument 251 pci_enable(struct clk *clk) argument 275 pci_ext_enable(struct clk *clk) argument 283 pci_ext_disable(struct clk *clk) argument 290 clkout_enable(struct clk *clk) argument 315 struct clk *clk = kzalloc(sizeof(struct clk), GFP_KERNEL); local 340 struct clk *clk = kzalloc(sizeof(struct clk), GFP_KERNEL); local 358 struct clk *clk = kzalloc(sizeof(struct clk), GFP_KERNEL); local 399 struct clk *clk; local [all...] |
/linux-master/drivers/clk/ |
H A D | clk-devres.c | 2 #include <linux/clk.h> 8 struct clk *clk; member in struct:devm_clk_state 9 void (*exit)(struct clk *clk); 17 state->exit(state->clk); 19 clk_put(state->clk); 22 static struct clk *__devm_clk_get(struct device *dev, const char *id, argument 23 struct clk *(*get)(struct device *dev, const char *id), 24 int (*init)(struct clk *cl 28 struct clk *clk; local 235 devm_clk_put(struct device *dev, struct clk *clk) argument 249 struct clk *clk; local [all...] |