Home
last modified time | relevance | path

Searched refs:com_gate (Results 1 – 2 of 2) sorted by relevance

/bsp/allwinner/libraries/sunxi-hal/hal/source/ccmu/sunxi/
A Dclk_periph.h67 .com_gate = _com_gate, \
184 #define IS_SHARE_BUS_GATE(x) (x->com_gate?((x->com_gate->share & BUS_GATE_SHARE)?1:0):0)
185 #define IS_SHARE_RST_GATE(x) (x->com_gate?((x->com_gate->share & RST_GATE_SHARE)?1:0):0)
186 #define IS_SHARE_MBUS_GATE(x) (x->com_gate?((x->com_gate->share & MBUS_GATE_SHARE)?1:0):0)
187 #define IS_SHARE_MOD_GATE(x) (x->com_gate?((x->com_gate->share & MOD_GATE_SHARE)?1:0):0)
212 struct sunxi_clk_comgate *com_gate; member
A Dclk_periph.c94 if (!periph->com_gate->val) in __sunxi_clk_periph_enable_shared()
127 periph->com_gate->val |= 1 << periph->com_gate_off; in __sunxi_clk_periph_enable_shared()
189 if (periph->com_gate) in sunxi_clk_periph_enable()
256 if (!periph->com_gate->val) in __sunxi_clk_periph_disable_shared()
261 periph->com_gate->val &= ~(1 << periph->com_gate_off); in __sunxi_clk_periph_disable_shared()
263 if (!periph->com_gate->val) in __sunxi_clk_periph_disable_shared()
357 if (periph->com_gate) in sunxi_clk_periph_disable()

Completed in 8 milliseconds