Home
last modified time | relevance | path

Searched refs:clk_gate (Results 1 – 28 of 28) sorted by relevance

/linux-4.4.14/drivers/clk/socfpga/
Dclk-gate-a10.c108 u32 clk_gate[2]; in __socfpga_gate_init() local
124 rc = of_property_read_u32_array(node, "clk-gate", clk_gate, 2); in __socfpga_gate_init()
126 clk_gate[0] = 0; in __socfpga_gate_init()
128 if (clk_gate[0]) { in __socfpga_gate_init()
129 socfpga_clk->hw.reg = clk_mgr_a10_base_addr + clk_gate[0]; in __socfpga_gate_init()
130 socfpga_clk->hw.bit_idx = clk_gate[1]; in __socfpga_gate_init()
Dclk.h46 struct clk_gate hw;
50 struct clk_gate hw;
61 struct clk_gate hw;
Dclk-gate.c182 u32 clk_gate[2]; in __socfpga_gate_init() local
197 rc = of_property_read_u32_array(node, "clk-gate", clk_gate, 2); in __socfpga_gate_init()
199 clk_gate[0] = 0; in __socfpga_gate_init()
201 if (clk_gate[0]) { in __socfpga_gate_init()
202 socfpga_clk->hw.reg = clk_mgr_base_addr + clk_gate[0]; in __socfpga_gate_init()
203 socfpga_clk->hw.bit_idx = clk_gate[1]; in __socfpga_gate_init()
/linux-4.4.14/drivers/clk/imx/
Dclk-gate-exclusive.c28 struct clk_gate gate;
34 struct clk_gate *gate = container_of(hw, struct clk_gate, hw); in clk_gate_exclusive_enable()
65 struct clk_gate *gate; in imx_clk_gate_exclusive()
/linux-4.4.14/drivers/clk/
Dclk-gate.c29 #define to_clk_gate(_hw) container_of(_hw, struct clk_gate, hw)
46 struct clk_gate *gate = to_clk_gate(hw); in clk_gate_endisable()
94 struct clk_gate *gate = to_clk_gate(hw); in clk_gate_is_enabled()
130 struct clk_gate *gate; in clk_register_gate()
170 struct clk_gate *gate; in clk_unregister_gate()
/linux-4.4.14/drivers/clk/sunxi/
Dclk-a10-hosc.c30 struct clk_gate *gate; in sun4i_osc_clk_setup()
41 gate = kzalloc(sizeof(struct clk_gate), GFP_KERNEL); in sun4i_osc_clk_setup()
Dclk-a20-gmac.c65 struct clk_gate *gate; in sun7i_a20_gmac_clk_setup()
78 gate = kzalloc(sizeof(struct clk_gate), GFP_KERNEL); in sun7i_a20_gmac_clk_setup()
Dclk-a10-pll2.c53 struct clk_gate *gate; in sun4i_pll2_setup()
82 gate = kzalloc(sizeof(struct clk_gate), GFP_KERNEL); in sun4i_pll2_setup()
Dclk-a10-mod1.c33 struct clk_gate *gate; in sun4i_mod1_clk_setup()
Dclk-factors.c169 struct clk_gate *gate = NULL; in sunxi_factors_register()
201 gate = kzalloc(sizeof(struct clk_gate), GFP_KERNEL); in sunxi_factors_register()
Dclk-sunxi.c983 struct clk_gate *gate = NULL; in sunxi_divs_clk_setup()
/linux-4.4.14/drivers/pwm/
Dpwm-sun4i.c103 u32 prd, dty, val, clk_gate; in sun4i_pwm_config() local
163 clk_gate = val & BIT_CH(PWM_CLK_GATING, pwm->hwpwm); in sun4i_pwm_config()
164 if (clk_gate) { in sun4i_pwm_config()
177 if (clk_gate) { in sun4i_pwm_config()
179 val |= clk_gate; in sun4i_pwm_config()
/linux-4.4.14/drivers/clk/nxp/
Dclk-lpc18xx-ccu.c31 #define to_clk_gate(_hw) container_of(_hw, struct clk_gate, hw)
44 struct clk_gate gate;
140 struct clk_gate *gate = to_clk_gate(hw); in lpc18xx_ccu_gate_endisable()
Dclk-lpc18xx-cgu.c168 struct clk_gate gate;
202 struct clk_gate gate;
266 struct clk_gate gate;
/linux-4.4.14/drivers/clk/mvebu/
Dcommon.c202 #define to_clk_gate(_hw) container_of(_hw, struct clk_gate, hw)
215 struct clk_gate *gate = in clk_gating_get_src()
/linux-4.4.14/drivers/clk/pxa/
Dclk-pxa.h78 struct clk_gate gate;
Dclk-pxa.c33 struct clk_gate gate;
/linux-4.4.14/drivers/clk/shmobile/
Dclk-rcar-gen2.c171 struct clk_gate *gate; in cpg_rcan_clk_register()
214 struct clk_gate *gate; in cpg_adsp_clk_register()
/linux-4.4.14/drivers/clk/st/
Dclk-flexgen.c24 struct clk_gate pgate;
28 struct clk_gate fgate;
Dclkgen-mux.c745 struct clk_gate *gate; in st_of_clkgen_vcc_setup()
827 kfree(container_of(composite->gate_hw, struct clk_gate, hw)); in st_of_clkgen_vcc_setup()
Dclkgen-pll.c1004 struct clk_gate *gate; in clkgen_odf_register()
/linux-4.4.14/Documentation/
Dclk.txt99 struct clk_gate {
106 struct clk_gate contains struct clk_hw hw as well as hardware-specific
131 static void clk_gate_set_bit(struct clk_gate *gate)
142 #define to_clk_gate(_hw) container_of(_hw, struct clk_gate, clk)
/linux-4.4.14/drivers/clk/samsung/
Dclk-exynos-clkout.c29 struct clk_gate gate;
/linux-4.4.14/drivers/clk/rockchip/
Dclk.c51 struct clk_gate *gate = NULL; in rockchip_clk_register_branch()
119 struct clk_gate *gate = NULL; in rockchip_clk_register_frac_branch()
/linux-4.4.14/drivers/clk/mediatek/
Dclk-mtk.c143 struct clk_gate *gate = NULL; in mtk_clk_register_composite()
/linux-4.4.14/drivers/clk/meson/
Dclkc.c56 struct clk_gate *gate = NULL; in meson_clk_register_composite()
/linux-4.4.14/drivers/clk/bcm/
Dclk-kona.c485 static int clk_gate(struct ccu_data *ccu, const char *name, in clk_gate() function
978 return clk_gate(bcm_clk->ccu, bcm_clk->init_data.name, gate, true); in kona_peri_clk_enable()
986 (void)clk_gate(bcm_clk->ccu, bcm_clk->init_data.name, gate, false); in kona_peri_clk_disable()
/linux-4.4.14/include/linux/
Dclk-provider.h308 struct clk_gate { struct