Home
last modified time | relevance | path

Searched refs:gate (Results 51 - 75 of 371) sorted by relevance

12345678910>>...15

/kernel/linux/linux-6.6/drivers/clk/rockchip/
H A Dclk.c50 struct clk_gate *gate = NULL; in rockchip_clk_register_branch() local
72 gate = kzalloc(sizeof(*gate), GFP_KERNEL); in rockchip_clk_register_branch()
73 if (!gate) { in rockchip_clk_register_branch()
78 gate->flags = gate_flags; in rockchip_clk_register_branch()
79 gate->reg = base + gate_offset; in rockchip_clk_register_branch()
80 gate->bit_idx = gate_shift; in rockchip_clk_register_branch()
81 gate->lock = lock; in rockchip_clk_register_branch()
109 gate ? &gate in rockchip_clk_register_branch()
128 struct clk_gate gate; global() member
216 struct clk_gate *gate = NULL; rockchip_clk_register_frac_branch() local
321 struct clk_gate *gate = NULL; rockchip_clk_register_factor_branch() local
[all...]
/kernel/linux/linux-5.10/drivers/clk/mvebu/
H A Dcp110-system-controller.c123 struct cp110_gate_clk *gate = to_cp110_gate_clk(hw); in cp110_gate_enable() local
125 regmap_update_bits(gate->regmap, CP110_PM_CLOCK_GATING_REG, in cp110_gate_enable()
126 BIT(gate->bit_idx), BIT(gate->bit_idx)); in cp110_gate_enable()
133 struct cp110_gate_clk *gate = to_cp110_gate_clk(hw); in cp110_gate_disable() local
135 regmap_update_bits(gate->regmap, CP110_PM_CLOCK_GATING_REG, in cp110_gate_disable()
136 BIT(gate->bit_idx), 0); in cp110_gate_disable()
141 struct cp110_gate_clk *gate = to_cp110_gate_clk(hw); in cp110_gate_is_enabled() local
144 regmap_read(gate->regmap, CP110_PM_CLOCK_GATING_REG, &val); in cp110_gate_is_enabled()
146 return val & BIT(gate in cp110_gate_is_enabled()
159 struct cp110_gate_clk *gate; cp110_register_gate() local
[all...]
/kernel/linux/linux-6.6/drivers/clk/mvebu/
H A Dcp110-system-controller.c123 struct cp110_gate_clk *gate = to_cp110_gate_clk(hw); in cp110_gate_enable() local
125 regmap_update_bits(gate->regmap, CP110_PM_CLOCK_GATING_REG, in cp110_gate_enable()
126 BIT(gate->bit_idx), BIT(gate->bit_idx)); in cp110_gate_enable()
133 struct cp110_gate_clk *gate = to_cp110_gate_clk(hw); in cp110_gate_disable() local
135 regmap_update_bits(gate->regmap, CP110_PM_CLOCK_GATING_REG, in cp110_gate_disable()
136 BIT(gate->bit_idx), 0); in cp110_gate_disable()
141 struct cp110_gate_clk *gate = to_cp110_gate_clk(hw); in cp110_gate_is_enabled() local
144 regmap_read(gate->regmap, CP110_PM_CLOCK_GATING_REG, &val); in cp110_gate_is_enabled()
146 return val & BIT(gate in cp110_gate_is_enabled()
159 struct cp110_gate_clk *gate; cp110_register_gate() local
[all...]
/kernel/linux/linux-5.10/drivers/clk/sunxi/
H A Dclk-a10-hosc.c21 struct clk_gate *gate; in sun4i_osc_clk_setup() local
28 /* allocate fixed-rate and gate clock structs */ in sun4i_osc_clk_setup()
32 gate = kzalloc(sizeof(struct clk_gate), GFP_KERNEL); in sun4i_osc_clk_setup()
33 if (!gate) in sun4i_osc_clk_setup()
38 /* set up gate and fixed rate properties */ in sun4i_osc_clk_setup()
39 gate->reg = of_iomap(node, 0); in sun4i_osc_clk_setup()
40 gate->bit_idx = SUNXI_OSC24M_GATE; in sun4i_osc_clk_setup()
41 gate->lock = &hosc_lock; in sun4i_osc_clk_setup()
48 &gate->hw, &clk_gate_ops, 0); in sun4i_osc_clk_setup()
58 kfree(gate); in sun4i_osc_clk_setup()
[all...]
H A Dclk-sun4i-pll3.c25 struct clk_gate *gate; in sun4i_a10_pll3_setup() local
40 gate = kzalloc(sizeof(*gate), GFP_KERNEL); in sun4i_a10_pll3_setup()
41 if (!gate) in sun4i_a10_pll3_setup()
44 gate->reg = reg; in sun4i_a10_pll3_setup()
45 gate->bit_idx = SUN4I_A10_PLL3_GATE_BIT; in sun4i_a10_pll3_setup()
46 gate->lock = &sun4i_a10_pll3_lock; in sun4i_a10_pll3_setup()
61 &gate->hw, &clk_gate_ops, in sun4i_a10_pll3_setup()
82 kfree(gate); in sun4i_a10_pll3_setup()
H A Dclk-a10-mod1.c25 struct clk_gate *gate; in sun4i_mod1_clk_setup() local
39 gate = kzalloc(sizeof(*gate), GFP_KERNEL); in sun4i_mod1_clk_setup()
40 if (!gate) in sun4i_mod1_clk_setup()
46 gate->reg = reg; in sun4i_mod1_clk_setup()
47 gate->bit_idx = SUN4I_MOD1_ENABLE; in sun4i_mod1_clk_setup()
48 gate->lock = &mod1_lock; in sun4i_mod1_clk_setup()
57 &gate->hw, &clk_gate_ops, CLK_SET_RATE_PARENT); in sun4i_mod1_clk_setup()
66 kfree(gate); in sun4i_mod1_clk_setup()
H A Dclk-a20-gmac.c34 * select the appropriate source and gate/ungate the output to the PHY.
56 struct clk_gate *gate; in sun7i_a20_gmac_clk_setup() local
64 /* allocate mux and gate clock structs */ in sun7i_a20_gmac_clk_setup()
69 gate = kzalloc(sizeof(struct clk_gate), GFP_KERNEL); in sun7i_a20_gmac_clk_setup()
70 if (!gate) in sun7i_a20_gmac_clk_setup()
81 /* set up gate and fixed rate properties */ in sun7i_a20_gmac_clk_setup()
82 gate->reg = reg; in sun7i_a20_gmac_clk_setup()
83 gate->bit_idx = SUN7I_A20_GMAC_GPIT; in sun7i_a20_gmac_clk_setup()
84 gate->lock = &gmac_lock; in sun7i_a20_gmac_clk_setup()
94 &gate in sun7i_a20_gmac_clk_setup()
[all...]
H A Dclk-sun8i-mbus.c31 struct clk_gate *gate; in sun8i_a23_mbus_setup() local
55 gate = kzalloc(sizeof(*gate), GFP_KERNEL); in sun8i_a23_mbus_setup()
56 if (!gate) in sun8i_a23_mbus_setup()
62 gate->reg = reg; in sun8i_a23_mbus_setup()
63 gate->bit_idx = SUN8I_MBUS_ENABLE; in sun8i_a23_mbus_setup()
64 gate->lock = &sun8i_a23_mbus_lock; in sun8i_a23_mbus_setup()
80 &gate->hw, &clk_gate_ops, in sun8i_a23_mbus_setup()
97 kfree(gate); in sun8i_a23_mbus_setup()
/kernel/linux/linux-6.6/drivers/clk/sunxi/
H A Dclk-a10-hosc.c21 struct clk_gate *gate; in sun4i_osc_clk_setup() local
28 /* allocate fixed-rate and gate clock structs */ in sun4i_osc_clk_setup()
32 gate = kzalloc(sizeof(struct clk_gate), GFP_KERNEL); in sun4i_osc_clk_setup()
33 if (!gate) in sun4i_osc_clk_setup()
38 /* set up gate and fixed rate properties */ in sun4i_osc_clk_setup()
39 gate->reg = of_iomap(node, 0); in sun4i_osc_clk_setup()
40 gate->bit_idx = SUNXI_OSC24M_GATE; in sun4i_osc_clk_setup()
41 gate->lock = &hosc_lock; in sun4i_osc_clk_setup()
48 &gate->hw, &clk_gate_ops, 0); in sun4i_osc_clk_setup()
58 kfree(gate); in sun4i_osc_clk_setup()
[all...]
H A Dclk-sun4i-pll3.c25 struct clk_gate *gate; in sun4i_a10_pll3_setup() local
40 gate = kzalloc(sizeof(*gate), GFP_KERNEL); in sun4i_a10_pll3_setup()
41 if (!gate) in sun4i_a10_pll3_setup()
44 gate->reg = reg; in sun4i_a10_pll3_setup()
45 gate->bit_idx = SUN4I_A10_PLL3_GATE_BIT; in sun4i_a10_pll3_setup()
46 gate->lock = &sun4i_a10_pll3_lock; in sun4i_a10_pll3_setup()
61 &gate->hw, &clk_gate_ops, in sun4i_a10_pll3_setup()
82 kfree(gate); in sun4i_a10_pll3_setup()
H A Dclk-a10-mod1.c25 struct clk_gate *gate; in sun4i_mod1_clk_setup() local
39 gate = kzalloc(sizeof(*gate), GFP_KERNEL); in sun4i_mod1_clk_setup()
40 if (!gate) in sun4i_mod1_clk_setup()
46 gate->reg = reg; in sun4i_mod1_clk_setup()
47 gate->bit_idx = SUN4I_MOD1_ENABLE; in sun4i_mod1_clk_setup()
48 gate->lock = &mod1_lock; in sun4i_mod1_clk_setup()
57 &gate->hw, &clk_gate_ops, CLK_SET_RATE_PARENT); in sun4i_mod1_clk_setup()
66 kfree(gate); in sun4i_mod1_clk_setup()
H A Dclk-a20-gmac.c34 * select the appropriate source and gate/ungate the output to the PHY.
56 struct clk_gate *gate; in sun7i_a20_gmac_clk_setup() local
64 /* allocate mux and gate clock structs */ in sun7i_a20_gmac_clk_setup()
69 gate = kzalloc(sizeof(struct clk_gate), GFP_KERNEL); in sun7i_a20_gmac_clk_setup()
70 if (!gate) in sun7i_a20_gmac_clk_setup()
81 /* set up gate and fixed rate properties */ in sun7i_a20_gmac_clk_setup()
82 gate->reg = reg; in sun7i_a20_gmac_clk_setup()
83 gate->bit_idx = SUN7I_A20_GMAC_GPIT; in sun7i_a20_gmac_clk_setup()
84 gate->lock = &gmac_lock; in sun7i_a20_gmac_clk_setup()
94 &gate in sun7i_a20_gmac_clk_setup()
[all...]
H A Dclk-sun8i-mbus.c31 struct clk_gate *gate; in sun8i_a23_mbus_setup() local
55 gate = kzalloc(sizeof(*gate), GFP_KERNEL); in sun8i_a23_mbus_setup()
56 if (!gate) in sun8i_a23_mbus_setup()
62 gate->reg = reg; in sun8i_a23_mbus_setup()
63 gate->bit_idx = SUN8I_MBUS_ENABLE; in sun8i_a23_mbus_setup()
64 gate->lock = &sun8i_a23_mbus_lock; in sun8i_a23_mbus_setup()
80 &gate->hw, &clk_gate_ops, in sun8i_a23_mbus_setup()
97 kfree(gate); in sun8i_a23_mbus_setup()
/kernel/linux/linux-5.10/drivers/clk/actions/
H A Dowl-gate.c3 // OWL gate clock driver
14 #include "owl-gate.h"
36 struct owl_gate *gate = hw_to_owl_gate(hw); in owl_gate_disable() local
37 struct owl_clk_common *common = &gate->common; in owl_gate_disable()
39 owl_gate_set(common, &gate->gate_hw, false); in owl_gate_disable()
44 struct owl_gate *gate = hw_to_owl_gate(hw); in owl_gate_enable() local
45 struct owl_clk_common *common = &gate->common; in owl_gate_enable()
47 owl_gate_set(common, &gate->gate_hw, true); in owl_gate_enable()
67 struct owl_gate *gate = hw_to_owl_gate(hw); in owl_gate_is_enabled() local
68 struct owl_clk_common *common = &gate in owl_gate_is_enabled()
[all...]
/kernel/linux/linux-6.6/drivers/clk/actions/
H A Dowl-gate.c3 // OWL gate clock driver
14 #include "owl-gate.h"
36 struct owl_gate *gate = hw_to_owl_gate(hw); in owl_gate_disable() local
37 struct owl_clk_common *common = &gate->common; in owl_gate_disable()
39 owl_gate_set(common, &gate->gate_hw, false); in owl_gate_disable()
44 struct owl_gate *gate = hw_to_owl_gate(hw); in owl_gate_enable() local
45 struct owl_clk_common *common = &gate->common; in owl_gate_enable()
47 owl_gate_set(common, &gate->gate_hw, true); in owl_gate_enable()
67 struct owl_gate *gate = hw_to_owl_gate(hw); in owl_gate_is_enabled() local
68 struct owl_clk_common *common = &gate in owl_gate_is_enabled()
[all...]
/kernel/linux/linux-6.6/drivers/clk/renesas/
H A Drcar-cpg-lib.c128 struct clk_gate gate; member
156 rpc->gate.reg = rpcckcr; in cpg_rpc_clk_register()
157 rpc->gate.bit_idx = 8; in cpg_rpc_clk_register()
158 rpc->gate.flags = CLK_GATE_SET_TO_DISABLE; in cpg_rpc_clk_register()
159 rpc->gate.lock = &cpg_lock; in cpg_rpc_clk_register()
165 &rpc->gate.hw, &clk_gate_ops, in cpg_rpc_clk_register()
178 struct clk_gate gate; member
195 rpcd2->gate.reg = rpcckcr; in cpg_rpcd2_clk_register()
196 rpcd2->gate.bit_idx = 9; in cpg_rpcd2_clk_register()
197 rpcd2->gate in cpg_rpcd2_clk_register()
[all...]
/kernel/linux/linux-5.10/net/nfc/hci/
H A Dcommand.c91 int nfc_hci_send_event(struct nfc_hci_dev *hdev, u8 gate, u8 event, in nfc_hci_send_event() argument
96 pr_debug("%d to gate %d\n", event, gate); in nfc_hci_send_event()
98 pipe = hdev->gate2pipe[gate]; in nfc_hci_send_event()
108 * Execute an hci command sent to gate.
112 int nfc_hci_send_cmd(struct nfc_hci_dev *hdev, u8 gate, u8 cmd, in nfc_hci_send_cmd() argument
119 pipe = hdev->gate2pipe[gate]; in nfc_hci_send_cmd()
127 int nfc_hci_send_cmd_async(struct nfc_hci_dev *hdev, u8 gate, u8 cmd, in nfc_hci_send_cmd_async() argument
135 pipe = hdev->gate2pipe[gate]; in nfc_hci_send_cmd_async()
144 int nfc_hci_set_param(struct nfc_hci_dev *hdev, u8 gate, u argument
176 nfc_hci_get_param(struct nfc_hci_dev *hdev, u8 gate, u8 idx, struct sk_buff **skb) nfc_hci_get_param() argument
269 nfc_hci_disconnect_gate(struct nfc_hci_dev *hdev, u8 gate) nfc_hci_disconnect_gate() argument
[all...]
/kernel/linux/linux-6.6/net/nfc/hci/
H A Dcommand.c91 int nfc_hci_send_event(struct nfc_hci_dev *hdev, u8 gate, u8 event, in nfc_hci_send_event() argument
96 pr_debug("%d to gate %d\n", event, gate); in nfc_hci_send_event()
98 pipe = hdev->gate2pipe[gate]; in nfc_hci_send_event()
108 * Execute an hci command sent to gate.
112 int nfc_hci_send_cmd(struct nfc_hci_dev *hdev, u8 gate, u8 cmd, in nfc_hci_send_cmd() argument
117 pipe = hdev->gate2pipe[gate]; in nfc_hci_send_cmd()
125 int nfc_hci_send_cmd_async(struct nfc_hci_dev *hdev, u8 gate, u8 cmd, in nfc_hci_send_cmd_async() argument
131 pipe = hdev->gate2pipe[gate]; in nfc_hci_send_cmd_async()
140 int nfc_hci_set_param(struct nfc_hci_dev *hdev, u8 gate, u argument
172 nfc_hci_get_param(struct nfc_hci_dev *hdev, u8 gate, u8 idx, struct sk_buff **skb) nfc_hci_get_param() argument
259 nfc_hci_disconnect_gate(struct nfc_hci_dev *hdev, u8 gate) nfc_hci_disconnect_gate() argument
[all...]
/kernel/linux/linux-5.10/drivers/clk/imx/
H A Dclk-composite-7ulp.c33 struct clk_gate *gate = NULL; in imx7ulp_clk_hw_composite() local
65 gate = kzalloc(sizeof(*gate), GFP_KERNEL); in imx7ulp_clk_hw_composite()
66 if (!gate) { in imx7ulp_clk_hw_composite()
71 gate_hw = &gate->hw; in imx7ulp_clk_hw_composite()
72 gate->reg = reg; in imx7ulp_clk_hw_composite()
73 gate->bit_idx = PCG_CGC_SHIFT; in imx7ulp_clk_hw_composite()
84 kfree(gate); in imx7ulp_clk_hw_composite()
/kernel/linux/linux-6.6/drivers/clk/ingenic/
H A Dx1000-cgu.c294 .gate = { CGU_REG_CLKGR, 30 },
331 .gate = { CGU_REG_CLKGR, 28 },
344 .gate = { CGU_REG_CLKGR, 31 },
352 .gate = { CGU_REG_CLKGR, 25 },
391 .gate = { CGU_REG_CLKGR, 23 },
404 .gate = { CGU_REG_CLKGR, 4 },
411 .gate = { CGU_REG_CLKGR, 5 },
419 .gate = { CGU_REG_CLKGR, 3 },
451 .gate = { CGU_REG_CLKGR, 27 },
459 .gate
[all...]
/kernel/linux/linux-6.6/arch/x86/include/asm/
H A Ddesc.h80 static inline void pack_gate(gate_desc *gate, unsigned type, unsigned long func, in pack_gate() argument
83 gate->offset_low = (u16) func; in pack_gate()
84 gate->bits.p = 1; in pack_gate()
85 gate->bits.dpl = dpl; in pack_gate()
86 gate->bits.zero = 0; in pack_gate()
87 gate->bits.type = type; in pack_gate()
88 gate->offset_middle = (u16) (func >> 16); in pack_gate()
90 gate->segment = __KERNEL_CS; in pack_gate()
91 gate->bits.ist = ist; in pack_gate()
92 gate in pack_gate()
137 native_write_idt_entry(gate_desc *idt, int entry, const gate_desc *gate) native_write_idt_entry() argument
420 idt_init_desc(gate_desc *gate, const struct idt_data *d) idt_init_desc() argument
[all...]
/kernel/linux/linux-5.10/drivers/clk/sunxi-ng/
H A Dccu_gate.c12 void ccu_gate_helper_disable(struct ccu_common *common, u32 gate) in ccu_gate_helper_disable() argument
17 if (!gate) in ccu_gate_helper_disable()
23 writel(reg & ~gate, common->base + common->reg); in ccu_gate_helper_disable()
35 int ccu_gate_helper_enable(struct ccu_common *common, u32 gate) in ccu_gate_helper_enable() argument
40 if (!gate) in ccu_gate_helper_enable()
46 writel(reg | gate, common->base + common->reg); in ccu_gate_helper_enable()
60 int ccu_gate_helper_is_enabled(struct ccu_common *common, u32 gate) in ccu_gate_helper_is_enabled() argument
62 if (!gate) in ccu_gate_helper_is_enabled()
65 return readl(common->base + common->reg) & gate; in ccu_gate_helper_is_enabled()
/kernel/linux/linux-6.6/drivers/clk/sunxi-ng/
H A Dccu_gate.c12 void ccu_gate_helper_disable(struct ccu_common *common, u32 gate) in ccu_gate_helper_disable() argument
17 if (!gate) in ccu_gate_helper_disable()
23 writel(reg & ~gate, common->base + common->reg); in ccu_gate_helper_disable()
36 int ccu_gate_helper_enable(struct ccu_common *common, u32 gate) in ccu_gate_helper_enable() argument
41 if (!gate) in ccu_gate_helper_enable()
47 writel(reg | gate, common->base + common->reg); in ccu_gate_helper_enable()
62 int ccu_gate_helper_is_enabled(struct ccu_common *common, u32 gate) in ccu_gate_helper_is_enabled() argument
64 if (!gate) in ccu_gate_helper_is_enabled()
67 return readl(common->base + common->reg) & gate; in ccu_gate_helper_is_enabled()
/kernel/linux/linux-5.10/drivers/clk/
H A Dclk-stm32f4.c369 * have gate bits associated with them. Its combined hweight is 71.
514 struct clk_gate gate; member
521 #define to_stm32f4_pll(_gate) container_of(_gate, struct stm32f4_pll, gate)
607 struct clk_gate *gate = to_clk_gate(hw); in stm32f4_pll_enable() local
608 struct stm32f4_pll *pll = to_stm32f4_pll(gate); in stm32f4_pll_enable()
618 bit_status = !(readl(gate->reg) & BIT(pll->bit_rdy_idx)); in stm32f4_pll_enable()
633 struct clk_gate *gate = to_clk_gate(hw); in stm32f4_pll_recalc() local
634 struct stm32f4_pll *pll = to_stm32f4_pll(gate); in stm32f4_pll_recalc()
645 struct clk_gate *gate = to_clk_gate(hw); in stm32f4_pll_round_rate() local
646 struct stm32f4_pll *pll = to_stm32f4_pll(gate); in stm32f4_pll_round_rate()
662 struct clk_gate *gate = to_clk_gate(hw); stm32f4_pll_set_rate() local
909 struct clk_gate gate; global() member
917 struct clk_gate *gate = to_clk_gate(hw); rgclk_enable() local
1058 struct clk_gate *gate; stm32_register_cclk() local
1629 struct clk_gate *gate = NULL; stm32_register_aux_clk() local
[all...]
/kernel/linux/linux-6.6/drivers/clk/
H A Dclk-stm32f4.c369 * have gate bits associated with them. Its combined hweight is 71.
514 struct clk_gate gate; member
521 #define to_stm32f4_pll(_gate) container_of(_gate, struct stm32f4_pll, gate)
607 struct clk_gate *gate = to_clk_gate(hw); in stm32f4_pll_enable() local
608 struct stm32f4_pll *pll = to_stm32f4_pll(gate); in stm32f4_pll_enable()
618 bit_status = !(readl(gate->reg) & BIT(pll->bit_rdy_idx)); in stm32f4_pll_enable()
633 struct clk_gate *gate = to_clk_gate(hw); in stm32f4_pll_recalc() local
634 struct stm32f4_pll *pll = to_stm32f4_pll(gate); in stm32f4_pll_recalc()
645 struct clk_gate *gate = to_clk_gate(hw); in stm32f4_pll_round_rate() local
646 struct stm32f4_pll *pll = to_stm32f4_pll(gate); in stm32f4_pll_round_rate()
662 struct clk_gate *gate = to_clk_gate(hw); stm32f4_pll_set_rate() local
909 struct clk_gate gate; global() member
917 struct clk_gate *gate = to_clk_gate(hw); rgclk_enable() local
1059 struct clk_gate *gate; stm32_register_cclk() local
1630 struct clk_gate *gate = NULL; stm32_register_aux_clk() local
[all...]

Completed in 12 milliseconds

12345678910>>...15