gate              235 arch/mips/include/asm/octeon/cvmx-rst-defs.h 		uint64_t gate:48;
gate              237 arch/mips/include/asm/octeon/cvmx-rst-defs.h 		uint64_t gate:48;
gate              244 arch/mips/include/asm/octeon/cvmx-rst-defs.h 		uint64_t gate:4;
gate              246 arch/mips/include/asm/octeon/cvmx-rst-defs.h 		uint64_t gate:4;
gate             2896 arch/powerpc/platforms/powernv/pci-ioda.c 	const resource_size_t gate = phb->ioda.m64_segsize >> 2;
gate             2937 arch/powerpc/platforms/powernv/pci-ioda.c 		if (total_vf_bar_sz > gate) {
gate             2941 arch/powerpc/platforms/powernv/pci-ioda.c 				total_vf_bar_sz, gate, mul);
gate               91 arch/um/os-Linux/drivers/ethertap_user.c static int etap_tramp(char *dev, char *gate, int control_me,
gate              107 arch/um/os-Linux/drivers/ethertap_user.c 	if (gate != NULL) {
gate              108 arch/um/os-Linux/drivers/ethertap_user.c 		strncpy(gate_buf, gate, 15);
gate               62 arch/um/os-Linux/drivers/tuntap_user.c static int tuntap_open_tramp(char *gate, int *fd_out, int me, int remote,
gate               67 arch/um/os-Linux/drivers/tuntap_user.c 	char *argv[] = { "uml_net", version_buf, "tuntap", "up", gate,
gate               84 arch/x86/include/asm/desc.h static inline void pack_gate(gate_desc *gate, unsigned type, unsigned long func,
gate               87 arch/x86/include/asm/desc.h 	gate->offset_low	= (u16) func;
gate               88 arch/x86/include/asm/desc.h 	gate->bits.p		= 1;
gate               89 arch/x86/include/asm/desc.h 	gate->bits.dpl		= dpl;
gate               90 arch/x86/include/asm/desc.h 	gate->bits.zero		= 0;
gate               91 arch/x86/include/asm/desc.h 	gate->bits.type		= type;
gate               92 arch/x86/include/asm/desc.h 	gate->offset_middle	= (u16) (func >> 16);
gate               94 arch/x86/include/asm/desc.h 	gate->segment		= __KERNEL_CS;
gate               95 arch/x86/include/asm/desc.h 	gate->bits.ist		= ist;
gate               96 arch/x86/include/asm/desc.h 	gate->reserved		= 0;
gate               97 arch/x86/include/asm/desc.h 	gate->offset_high	= (u32) (func >> 32);
gate               99 arch/x86/include/asm/desc.h 	gate->segment		= seg;
gate              100 arch/x86/include/asm/desc.h 	gate->bits.ist		= 0;
gate              141 arch/x86/include/asm/desc.h static inline void native_write_idt_entry(gate_desc *idt, int entry, const gate_desc *gate)
gate              143 arch/x86/include/asm/desc.h 	memcpy(&idt[entry], gate, sizeof(*gate));
gate              137 arch/x86/include/asm/paravirt_types.h 				int entrynum, const gate_desc *gate);
gate              247 arch/x86/include/uapi/asm/kvm.h 	__u8 gate;
gate              203 arch/x86/kernel/idt.c static inline void idt_init_desc(gate_desc *gate, const struct idt_data *d)
gate              207 arch/x86/kernel/idt.c 	gate->offset_low	= (u16) addr;
gate              208 arch/x86/kernel/idt.c 	gate->segment		= (u16) d->segment;
gate              209 arch/x86/kernel/idt.c 	gate->bits		= d->bits;
gate              210 arch/x86/kernel/idt.c 	gate->offset_middle	= (u16) (addr >> 16);
gate              212 arch/x86/kernel/idt.c 	gate->offset_high	= (u32) (addr >> 32);
gate              213 arch/x86/kernel/idt.c 	gate->reserved		= 0;
gate               69 arch/x86/kvm/i8254.c 		if (c->gate < val)
gate               74 arch/x86/kvm/i8254.c 	c->gate = val;
gate               79 arch/x86/kvm/i8254.c 	return pit->pit_state.channels[channel].gate;
gate              623 arch/x86/kvm/i8254.c 		c->gate = (i != 2);
gate               21 arch/x86/kvm/i8254.h 	u8 gate; /* timer start */
gate               36 drivers/clk/actions/owl-gate.c 	struct owl_gate *gate = hw_to_owl_gate(hw);
gate               37 drivers/clk/actions/owl-gate.c 	struct owl_clk_common *common = &gate->common;
gate               39 drivers/clk/actions/owl-gate.c 	owl_gate_set(common, &gate->gate_hw, false);
gate               44 drivers/clk/actions/owl-gate.c 	struct owl_gate *gate = hw_to_owl_gate(hw);
gate               45 drivers/clk/actions/owl-gate.c 	struct owl_clk_common *common = &gate->common;
gate               47 drivers/clk/actions/owl-gate.c 	owl_gate_set(common, &gate->gate_hw, true);
gate               67 drivers/clk/actions/owl-gate.c 	struct owl_gate *gate = hw_to_owl_gate(hw);
gate               68 drivers/clk/actions/owl-gate.c 	struct owl_clk_common *common = &gate->common;
gate               70 drivers/clk/actions/owl-gate.c 	return owl_gate_clk_is_enabled(common, &gate->gate_hw);
gate               24 drivers/clk/bcm/clk-bcm21664.c 	.gate		= HW_SW_GATE(0x214, 16, 0, 1),
gate               41 drivers/clk/bcm/clk-bcm21664.c 	.gate		= HW_SW_GATE(0x0414, 16, 0, 1),
gate               66 drivers/clk/bcm/clk-bcm21664.c 	.gate		= HW_SW_GATE(0x0358, 18, 2, 3),
gate               78 drivers/clk/bcm/clk-bcm21664.c 	.gate		= HW_SW_GATE(0x035c, 18, 2, 3),
gate               90 drivers/clk/bcm/clk-bcm21664.c 	.gate		= HW_SW_GATE(0x0364, 18, 2, 3),
gate              102 drivers/clk/bcm/clk-bcm21664.c 	.gate		= HW_SW_GATE(0x0360, 18, 2, 3),
gate              115 drivers/clk/bcm/clk-bcm21664.c 	.gate		= HW_SW_GATE(0x0358, 18, 2, 3),
gate              120 drivers/clk/bcm/clk-bcm21664.c 	.gate		= HW_SW_GATE(0x035c, 18, 2, 3),
gate              125 drivers/clk/bcm/clk-bcm21664.c 	.gate		= HW_SW_GATE(0x0364, 18, 2, 3),
gate              130 drivers/clk/bcm/clk-bcm21664.c 	.gate		= HW_SW_GATE(0x0360, 18, 2, 3),
gate              163 drivers/clk/bcm/clk-bcm21664.c 	.gate		= HW_SW_GATE(0x0400, 18, 2, 3),
gate              173 drivers/clk/bcm/clk-bcm21664.c 	.gate		= HW_SW_GATE(0x0404, 18, 2, 3),
gate              183 drivers/clk/bcm/clk-bcm21664.c 	.gate		= HW_SW_GATE(0x0408, 18, 2, 3),
gate              193 drivers/clk/bcm/clk-bcm21664.c 	.gate		= HW_SW_GATE(0x0458, 18, 2, 3),
gate              204 drivers/clk/bcm/clk-bcm21664.c 	.gate		= HW_SW_GATE(0x045c, 18, 2, 3),
gate              215 drivers/clk/bcm/clk-bcm21664.c 	.gate		= HW_SW_GATE(0x0470, 18, 2, 3),
gate              226 drivers/clk/bcm/clk-bcm21664.c 	.gate		= HW_SW_GATE(0x0474, 18, 2, 3),
gate               24 drivers/clk/bcm/clk-bcm281xx.c 	.gate		= HW_SW_GATE(0x214, 16, 0, 1),
gate               42 drivers/clk/bcm/clk-bcm281xx.c 	.gate		= HW_SW_GATE(0x0414, 16, 0, 1),
gate               51 drivers/clk/bcm/clk-bcm281xx.c 	.gate		= HW_SW_GATE(0x0418, 16, 0, 1),
gate               84 drivers/clk/bcm/clk-bcm281xx.c 	.gate		= HW_SW_GATE(0x04a4, 18, 2, 3),
gate              103 drivers/clk/bcm/clk-bcm281xx.c 	.gate		= HW_SW_GATE(0x0358, 18, 2, 3),
gate              115 drivers/clk/bcm/clk-bcm281xx.c 	.gate		= HW_SW_GATE(0x035c, 18, 2, 3),
gate              127 drivers/clk/bcm/clk-bcm281xx.c 	.gate		= HW_SW_GATE(0x0364, 18, 2, 3),
gate              139 drivers/clk/bcm/clk-bcm281xx.c 	.gate		= HW_SW_GATE(0x0360, 18, 2, 3),
gate              151 drivers/clk/bcm/clk-bcm281xx.c 	.gate		= HW_SW_GATE(0x0354, 18, 2, 3),
gate              162 drivers/clk/bcm/clk-bcm281xx.c 	.gate		= HW_SW_GATE(0x0370, 18, 2, 3),
gate              173 drivers/clk/bcm/clk-bcm281xx.c 	.gate		= HW_SW_GATE(0x0370, 20, 4, 5),
gate              207 drivers/clk/bcm/clk-bcm281xx.c 	.gate		= HW_SW_GATE(0x0400, 18, 2, 3),
gate              217 drivers/clk/bcm/clk-bcm281xx.c 	.gate		= HW_SW_GATE(0x0404, 18, 2, 3),
gate              227 drivers/clk/bcm/clk-bcm281xx.c 	.gate		= HW_SW_GATE(0x0408, 18, 2, 3),
gate              237 drivers/clk/bcm/clk-bcm281xx.c 	.gate		= HW_SW_GATE(0x0408, 18, 2, 3),
gate              247 drivers/clk/bcm/clk-bcm281xx.c 	.gate		= HW_SW_GATE(0x0410, 18, 2, 3),
gate              259 drivers/clk/bcm/clk-bcm281xx.c 	.gate		= HW_SW_GATE(0x0418, 18, 2, 3),
gate              271 drivers/clk/bcm/clk-bcm281xx.c 	.gate		= HW_SW_GATE(0x0458, 18, 2, 3),
gate              282 drivers/clk/bcm/clk-bcm281xx.c 	.gate		= HW_SW_GATE(0x045c, 18, 2, 3),
gate              293 drivers/clk/bcm/clk-bcm281xx.c 	.gate		= HW_SW_GATE(0x0484, 18, 2, 3),
gate              304 drivers/clk/bcm/clk-bcm281xx.c 	.gate		= HW_SW_GATE(0x0468, 18, 2, 3),
gate               23 drivers/clk/bcm/clk-bcm2835-aux.c 	void __iomem *reg, *gate;
gate               43 drivers/clk/bcm/clk-bcm2835-aux.c 	gate = reg + BCM2835_AUXENB;
gate               45 drivers/clk/bcm/clk-bcm2835-aux.c 		clk_hw_register_gate(dev, "aux_uart", parent, 0, gate, 0, 0, NULL);
gate               48 drivers/clk/bcm/clk-bcm2835-aux.c 		clk_hw_register_gate(dev, "aux_spi1", parent, 0, gate, 1, 0, NULL);
gate               51 drivers/clk/bcm/clk-bcm2835-aux.c 		clk_hw_register_gate(dev, "aux_spi2", parent, 0, gate, 2, 0, NULL);
gate               33 drivers/clk/bcm/clk-iproc-asiu.c 	struct iproc_asiu_gate gate;
gate               53 drivers/clk/bcm/clk-iproc-asiu.c 	if (clk->gate.offset == IPROC_CLK_INVALID_OFFSET)
gate               56 drivers/clk/bcm/clk-iproc-asiu.c 	val = readl(asiu->gate_base + clk->gate.offset);
gate               57 drivers/clk/bcm/clk-iproc-asiu.c 	val |= (1 << clk->gate.en_shift);
gate               58 drivers/clk/bcm/clk-iproc-asiu.c 	writel(val, asiu->gate_base + clk->gate.offset);
gate               70 drivers/clk/bcm/clk-iproc-asiu.c 	if (clk->gate.offset == IPROC_CLK_INVALID_OFFSET)
gate               73 drivers/clk/bcm/clk-iproc-asiu.c 	val = readl(asiu->gate_base + clk->gate.offset);
gate               74 drivers/clk/bcm/clk-iproc-asiu.c 	val &= ~(1 << clk->gate.en_shift);
gate               75 drivers/clk/bcm/clk-iproc-asiu.c 	writel(val, asiu->gate_base + clk->gate.offset);
gate              187 drivers/clk/bcm/clk-iproc-asiu.c 			     const struct iproc_asiu_gate *gate,
gate              193 drivers/clk/bcm/clk-iproc-asiu.c 	if (WARN_ON(!gate || !div))
gate              233 drivers/clk/bcm/clk-iproc-asiu.c 		asiu_clk->gate = gate[i];
gate              221 drivers/clk/bcm/clk-iproc.h 		      const struct iproc_asiu_gate *gate,
gate               81 drivers/clk/bcm/clk-kona-setup.c 	struct bcm_clk_gate *gate;
gate              107 drivers/clk/bcm/clk-kona-setup.c 	gate = &peri->gate;
gate              109 drivers/clk/bcm/clk-kona-setup.c 	if (gate_exists(gate)) {
gate              110 drivers/clk/bcm/clk-kona-setup.c 		if (gate->offset > limit) {
gate              112 drivers/clk/bcm/clk-kona-setup.c 				__func__, name, gate->offset, limit);
gate              253 drivers/clk/bcm/clk-kona-setup.c static bool gate_valid(struct bcm_clk_gate *gate, const char *field_name,
gate              256 drivers/clk/bcm/clk-kona-setup.c 	if (!bit_posn_valid(gate->status_bit, "gate status", clock_name))
gate              259 drivers/clk/bcm/clk-kona-setup.c 	if (gate_is_sw_controllable(gate)) {
gate              260 drivers/clk/bcm/clk-kona-setup.c 		if (!bit_posn_valid(gate->en_bit, "gate enable", clock_name))
gate              263 drivers/clk/bcm/clk-kona-setup.c 		if (gate_is_hw_controllable(gate)) {
gate              264 drivers/clk/bcm/clk-kona-setup.c 			if (!bit_posn_valid(gate->hw_sw_sel_bit,
gate              270 drivers/clk/bcm/clk-kona-setup.c 		BUG_ON(!gate_is_hw_controllable(gate));
gate              404 drivers/clk/bcm/clk-kona-setup.c 	struct bcm_clk_gate *gate;
gate              429 drivers/clk/bcm/clk-kona-setup.c 	gate = &peri->gate;
gate              430 drivers/clk/bcm/clk-kona-setup.c 	if (gate_exists(gate) && !gate_valid(gate, "gate", name))
gate              358 drivers/clk/bcm/clk-kona.c __is_clk_gate_enabled(struct ccu_data *ccu, struct bcm_clk_gate *gate)
gate              364 drivers/clk/bcm/clk-kona.c 	if (!gate_exists(gate))
gate              367 drivers/clk/bcm/clk-kona.c 	bit_mask = 1 << gate->status_bit;
gate              368 drivers/clk/bcm/clk-kona.c 	reg_val = __ccu_read(ccu, gate->offset);
gate              375 drivers/clk/bcm/clk-kona.c is_clk_gate_enabled(struct ccu_data *ccu, struct bcm_clk_gate *gate)
gate              381 drivers/clk/bcm/clk-kona.c 	if (!gate_exists(gate))
gate              385 drivers/clk/bcm/clk-kona.c 	ret = __is_clk_gate_enabled(ccu, gate);
gate              396 drivers/clk/bcm/clk-kona.c __gate_commit(struct ccu_data *ccu, struct bcm_clk_gate *gate)
gate              402 drivers/clk/bcm/clk-kona.c 	BUG_ON(!gate_exists(gate));
gate              403 drivers/clk/bcm/clk-kona.c 	if (!gate_is_sw_controllable(gate))
gate              406 drivers/clk/bcm/clk-kona.c 	reg_val = __ccu_read(ccu, gate->offset);
gate              409 drivers/clk/bcm/clk-kona.c 	if (gate_is_hw_controllable(gate)) {
gate              410 drivers/clk/bcm/clk-kona.c 		mask = (u32)1 << gate->hw_sw_sel_bit;
gate              411 drivers/clk/bcm/clk-kona.c 		if (gate_is_sw_managed(gate))
gate              424 drivers/clk/bcm/clk-kona.c 	mask = (u32)1 << gate->en_bit;
gate              425 drivers/clk/bcm/clk-kona.c 	if (gate_is_sw_managed(gate) && (enabled = gate_is_enabled(gate)) &&
gate              426 drivers/clk/bcm/clk-kona.c 			!gate_is_no_disable(gate))
gate              431 drivers/clk/bcm/clk-kona.c 	__ccu_write(ccu, gate->offset, reg_val);
gate              434 drivers/clk/bcm/clk-kona.c 	if (!gate_is_sw_managed(gate))
gate              438 drivers/clk/bcm/clk-kona.c 	return __ccu_wait_bit(ccu, gate->offset, gate->status_bit, enabled);
gate              447 drivers/clk/bcm/clk-kona.c static bool gate_init(struct ccu_data *ccu, struct bcm_clk_gate *gate)
gate              449 drivers/clk/bcm/clk-kona.c 	if (!gate_exists(gate))
gate              451 drivers/clk/bcm/clk-kona.c 	return __gate_commit(ccu, gate);
gate              461 drivers/clk/bcm/clk-kona.c __clk_gate(struct ccu_data *ccu, struct bcm_clk_gate *gate, bool enable)
gate              465 drivers/clk/bcm/clk-kona.c 	if (!gate_exists(gate) || !gate_is_sw_managed(gate))
gate              468 drivers/clk/bcm/clk-kona.c 	if (!enable && gate_is_no_disable(gate)) {
gate              474 drivers/clk/bcm/clk-kona.c 	if (enable == gate_is_enabled(gate))
gate              477 drivers/clk/bcm/clk-kona.c 	gate_flip_enabled(gate);
gate              478 drivers/clk/bcm/clk-kona.c 	ret = __gate_commit(ccu, gate);
gate              480 drivers/clk/bcm/clk-kona.c 		gate_flip_enabled(gate);	/* Revert the change */
gate              487 drivers/clk/bcm/clk-kona.c 			struct bcm_clk_gate *gate, bool enable)
gate              496 drivers/clk/bcm/clk-kona.c 	if (!gate_exists(gate) || !gate_is_sw_managed(gate))
gate              498 drivers/clk/bcm/clk-kona.c 	if (!enable && gate_is_no_disable(gate))
gate              504 drivers/clk/bcm/clk-kona.c 	success = __clk_gate(ccu, gate, enable);
gate              591 drivers/clk/bcm/clk-kona.c static int __div_commit(struct ccu_data *ccu, struct bcm_clk_gate *gate,
gate              619 drivers/clk/bcm/clk-kona.c 	enabled = __is_clk_gate_enabled(ccu, gate);
gate              620 drivers/clk/bcm/clk-kona.c 	if (!enabled && !__clk_gate(ccu, gate, true)) {
gate              636 drivers/clk/bcm/clk-kona.c 	if (!enabled && !__clk_gate(ccu, gate, false))
gate              647 drivers/clk/bcm/clk-kona.c static bool div_init(struct ccu_data *ccu, struct bcm_clk_gate *gate,
gate              652 drivers/clk/bcm/clk-kona.c 	return !__div_commit(ccu, gate, div, trig);
gate              655 drivers/clk/bcm/clk-kona.c static int divider_write(struct ccu_data *ccu, struct bcm_clk_gate *gate,
gate              674 drivers/clk/bcm/clk-kona.c 	ret = __div_commit(ccu, gate, div, trig);
gate              874 drivers/clk/bcm/clk-kona.c __sel_commit(struct ccu_data *ccu, struct bcm_clk_gate *gate,
gate              906 drivers/clk/bcm/clk-kona.c 	enabled = __is_clk_gate_enabled(ccu, gate);
gate              907 drivers/clk/bcm/clk-kona.c 	if (!enabled && !__clk_gate(ccu, gate, true))
gate              920 drivers/clk/bcm/clk-kona.c 	if (!enabled && !__clk_gate(ccu, gate, false))
gate              931 drivers/clk/bcm/clk-kona.c static bool sel_init(struct ccu_data *ccu, struct bcm_clk_gate *gate,
gate              936 drivers/clk/bcm/clk-kona.c 	return !__sel_commit(ccu, gate, sel, trig);
gate              944 drivers/clk/bcm/clk-kona.c static int selector_write(struct ccu_data *ccu, struct bcm_clk_gate *gate,
gate              961 drivers/clk/bcm/clk-kona.c 	ret = __sel_commit(ccu, gate, sel, trig);
gate              977 drivers/clk/bcm/clk-kona.c 	struct bcm_clk_gate *gate = &bcm_clk->u.peri->gate;
gate              979 drivers/clk/bcm/clk-kona.c 	return clk_gate(bcm_clk->ccu, bcm_clk->init_data.name, gate, true);
gate              985 drivers/clk/bcm/clk-kona.c 	struct bcm_clk_gate *gate = &bcm_clk->u.peri->gate;
gate              987 drivers/clk/bcm/clk-kona.c 	(void)clk_gate(bcm_clk->ccu, bcm_clk->init_data.name, gate, false);
gate              993 drivers/clk/bcm/clk-kona.c 	struct bcm_clk_gate *gate = &bcm_clk->u.peri->gate;
gate              995 drivers/clk/bcm/clk-kona.c 	return is_clk_gate_enabled(bcm_clk->ccu, gate) ? 1 : 0;
gate             1104 drivers/clk/bcm/clk-kona.c 	ret = selector_write(bcm_clk->ccu, &data->gate, sel, trig, index);
gate             1168 drivers/clk/bcm/clk-kona.c 	ret = divider_write(bcm_clk->ccu, &data->gate, &data->div,
gate             1208 drivers/clk/bcm/clk-kona.c 	if (!gate_init(ccu, &peri->gate)) {
gate             1216 drivers/clk/bcm/clk-kona.c 	if (!div_init(ccu, &peri->gate, &peri->div, &peri->trig)) {
gate             1229 drivers/clk/bcm/clk-kona.c 	if (!div_init(ccu, &peri->gate, &peri->pre_div, trig)) {
gate             1235 drivers/clk/bcm/clk-kona.c 	if (!sel_init(ccu, &peri->gate, &peri->sel, trig)) {
gate               54 drivers/clk/bcm/clk-kona.h #define gate_exists(gate)		FLAG_TEST(gate, GATE, EXISTS)
gate               55 drivers/clk/bcm/clk-kona.h #define gate_is_enabled(gate)		FLAG_TEST(gate, GATE, ENABLED)
gate               56 drivers/clk/bcm/clk-kona.h #define gate_is_hw_controllable(gate)	FLAG_TEST(gate, GATE, HW)
gate               57 drivers/clk/bcm/clk-kona.h #define gate_is_sw_controllable(gate)	FLAG_TEST(gate, GATE, SW)
gate               58 drivers/clk/bcm/clk-kona.h #define gate_is_sw_managed(gate)	FLAG_TEST(gate, GATE, SW_MANAGED)
gate               59 drivers/clk/bcm/clk-kona.h #define gate_is_no_disable(gate)	FLAG_TEST(gate, GATE, NO_DISABLE)
gate               61 drivers/clk/bcm/clk-kona.h #define gate_flip_enabled(gate)		FLAG_FLIP(gate, GATE, ENABLED)
gate              392 drivers/clk/bcm/clk-kona.h 	struct bcm_clk_gate gate;
gate              185 drivers/clk/clk-aspeed.c 	struct aspeed_clk_gate *gate = to_aspeed_clk_gate(hw);
gate              186 drivers/clk/clk-aspeed.c 	u32 clk = BIT(gate->clock_idx);
gate              187 drivers/clk/clk-aspeed.c 	u32 rst = BIT(gate->reset_idx);
gate              188 drivers/clk/clk-aspeed.c 	u32 enval = (gate->flags & CLK_GATE_SET_TO_DISABLE) ? 0 : clk;
gate              197 drivers/clk/clk-aspeed.c 	if (gate->reset_idx >= 0) {
gate              198 drivers/clk/clk-aspeed.c 		regmap_read(gate->map, ASPEED_RESET_CTRL, &reg);
gate              203 drivers/clk/clk-aspeed.c 	regmap_read(gate->map, ASPEED_CLK_STOP_CTRL, &reg);
gate              210 drivers/clk/clk-aspeed.c 	struct aspeed_clk_gate *gate = to_aspeed_clk_gate(hw);
gate              212 drivers/clk/clk-aspeed.c 	u32 clk = BIT(gate->clock_idx);
gate              213 drivers/clk/clk-aspeed.c 	u32 rst = BIT(gate->reset_idx);
gate              216 drivers/clk/clk-aspeed.c 	spin_lock_irqsave(gate->lock, flags);
gate              219 drivers/clk/clk-aspeed.c 		spin_unlock_irqrestore(gate->lock, flags);
gate              223 drivers/clk/clk-aspeed.c 	if (gate->reset_idx >= 0) {
gate              225 drivers/clk/clk-aspeed.c 		regmap_update_bits(gate->map, ASPEED_RESET_CTRL, rst, rst);
gate              232 drivers/clk/clk-aspeed.c 	enval = (gate->flags & CLK_GATE_SET_TO_DISABLE) ? 0 : clk;
gate              233 drivers/clk/clk-aspeed.c 	regmap_update_bits(gate->map, ASPEED_CLK_STOP_CTRL, clk, enval);
gate              235 drivers/clk/clk-aspeed.c 	if (gate->reset_idx >= 0) {
gate              240 drivers/clk/clk-aspeed.c 		regmap_update_bits(gate->map, ASPEED_RESET_CTRL, rst, 0);
gate              243 drivers/clk/clk-aspeed.c 	spin_unlock_irqrestore(gate->lock, flags);
gate              250 drivers/clk/clk-aspeed.c 	struct aspeed_clk_gate *gate = to_aspeed_clk_gate(hw);
gate              252 drivers/clk/clk-aspeed.c 	u32 clk = BIT(gate->clock_idx);
gate              255 drivers/clk/clk-aspeed.c 	spin_lock_irqsave(gate->lock, flags);
gate              257 drivers/clk/clk-aspeed.c 	enval = (gate->flags & CLK_GATE_SET_TO_DISABLE) ? clk : 0;
gate              258 drivers/clk/clk-aspeed.c 	regmap_update_bits(gate->map, ASPEED_CLK_STOP_CTRL, clk, enval);
gate              260 drivers/clk/clk-aspeed.c 	spin_unlock_irqrestore(gate->lock, flags);
gate              349 drivers/clk/clk-aspeed.c 	struct aspeed_clk_gate *gate;
gate              354 drivers/clk/clk-aspeed.c 	gate = kzalloc(sizeof(*gate), GFP_KERNEL);
gate              355 drivers/clk/clk-aspeed.c 	if (!gate)
gate              364 drivers/clk/clk-aspeed.c 	gate->map = map;
gate              365 drivers/clk/clk-aspeed.c 	gate->clock_idx = clock_idx;
gate              366 drivers/clk/clk-aspeed.c 	gate->reset_idx = reset_idx;
gate              367 drivers/clk/clk-aspeed.c 	gate->flags = clk_gate_flags;
gate              368 drivers/clk/clk-aspeed.c 	gate->lock = lock;
gate              369 drivers/clk/clk-aspeed.c 	gate->hw.init = &init;
gate              371 drivers/clk/clk-aspeed.c 	hw = &gate->hw;
gate              374 drivers/clk/clk-aspeed.c 		kfree(gate);
gate              202 drivers/clk/clk-ast2600.c static u32 get_reset_reg(struct aspeed_clk_gate *gate)
gate              204 drivers/clk/clk-ast2600.c 	if (gate->reset_idx < 32)
gate              210 drivers/clk/clk-ast2600.c static u32 get_clock_reg(struct aspeed_clk_gate *gate)
gate              212 drivers/clk/clk-ast2600.c 	if (gate->clock_idx < 32)
gate              220 drivers/clk/clk-ast2600.c 	struct aspeed_clk_gate *gate = to_aspeed_clk_gate(hw);
gate              221 drivers/clk/clk-ast2600.c 	u32 clk = get_bit(gate->clock_idx);
gate              222 drivers/clk/clk-ast2600.c 	u32 rst = get_bit(gate->reset_idx);
gate              232 drivers/clk/clk-ast2600.c 	if (gate->reset_idx >= 0) {
gate              233 drivers/clk/clk-ast2600.c 		regmap_read(gate->map, get_reset_reg(gate), &reg);
gate              239 drivers/clk/clk-ast2600.c 	regmap_read(gate->map, get_clock_reg(gate), &reg);
gate              241 drivers/clk/clk-ast2600.c 	enval = (gate->flags & CLK_GATE_SET_TO_DISABLE) ? 0 : clk;
gate              248 drivers/clk/clk-ast2600.c 	struct aspeed_clk_gate *gate = to_aspeed_clk_gate(hw);
gate              250 drivers/clk/clk-ast2600.c 	u32 clk = get_bit(gate->clock_idx);
gate              251 drivers/clk/clk-ast2600.c 	u32 rst = get_bit(gate->reset_idx);
gate              253 drivers/clk/clk-ast2600.c 	spin_lock_irqsave(gate->lock, flags);
gate              256 drivers/clk/clk-ast2600.c 		spin_unlock_irqrestore(gate->lock, flags);
gate              260 drivers/clk/clk-ast2600.c 	if (gate->reset_idx >= 0) {
gate              262 drivers/clk/clk-ast2600.c 		regmap_write(gate->map, get_reset_reg(gate), rst);
gate              268 drivers/clk/clk-ast2600.c 	if (gate->flags & CLK_GATE_SET_TO_DISABLE) {
gate              270 drivers/clk/clk-ast2600.c 		regmap_write(gate->map, get_clock_reg(gate) + 0x04, clk);
gate              273 drivers/clk/clk-ast2600.c 		regmap_write(gate->map, get_clock_reg(gate), clk);
gate              276 drivers/clk/clk-ast2600.c 	if (gate->reset_idx >= 0) {
gate              280 drivers/clk/clk-ast2600.c 		regmap_write(gate->map, get_reset_reg(gate) + 0x4, rst);
gate              283 drivers/clk/clk-ast2600.c 	spin_unlock_irqrestore(gate->lock, flags);
gate              290 drivers/clk/clk-ast2600.c 	struct aspeed_clk_gate *gate = to_aspeed_clk_gate(hw);
gate              292 drivers/clk/clk-ast2600.c 	u32 clk = get_bit(gate->clock_idx);
gate              294 drivers/clk/clk-ast2600.c 	spin_lock_irqsave(gate->lock, flags);
gate              296 drivers/clk/clk-ast2600.c 	if (gate->flags & CLK_GATE_SET_TO_DISABLE) {
gate              297 drivers/clk/clk-ast2600.c 		regmap_write(gate->map, get_clock_reg(gate), clk);
gate              300 drivers/clk/clk-ast2600.c 		regmap_write(gate->map, get_clock_reg(gate) + 0x4, clk);
gate              303 drivers/clk/clk-ast2600.c 	spin_unlock_irqrestore(gate->lock, flags);
gate              360 drivers/clk/clk-ast2600.c 	struct aspeed_clk_gate *gate;
gate              365 drivers/clk/clk-ast2600.c 	gate = kzalloc(sizeof(*gate), GFP_KERNEL);
gate              366 drivers/clk/clk-ast2600.c 	if (!gate)
gate              375 drivers/clk/clk-ast2600.c 	gate->map = map;
gate              376 drivers/clk/clk-ast2600.c 	gate->clock_idx = clock_idx;
gate              377 drivers/clk/clk-ast2600.c 	gate->reset_idx = reset_idx;
gate              378 drivers/clk/clk-ast2600.c 	gate->flags = clk_gate_flags;
gate              379 drivers/clk/clk-ast2600.c 	gate->lock = lock;
gate              380 drivers/clk/clk-ast2600.c 	gate->hw.init = &init;
gate              382 drivers/clk/clk-ast2600.c 	hw = &gate->hw;
gate              385 drivers/clk/clk-ast2600.c 		kfree(gate);
gate               26 drivers/clk/clk-gate.c static inline u32 clk_gate_readl(struct clk_gate *gate)
gate               28 drivers/clk/clk-gate.c 	if (gate->flags & CLK_GATE_BIG_ENDIAN)
gate               29 drivers/clk/clk-gate.c 		return ioread32be(gate->reg);
gate               31 drivers/clk/clk-gate.c 	return readl(gate->reg);
gate               34 drivers/clk/clk-gate.c static inline void clk_gate_writel(struct clk_gate *gate, u32 val)
gate               36 drivers/clk/clk-gate.c 	if (gate->flags & CLK_GATE_BIG_ENDIAN)
gate               37 drivers/clk/clk-gate.c 		iowrite32be(val, gate->reg);
gate               39 drivers/clk/clk-gate.c 		writel(val, gate->reg);
gate               57 drivers/clk/clk-gate.c 	struct clk_gate *gate = to_clk_gate(hw);
gate               58 drivers/clk/clk-gate.c 	int set = gate->flags & CLK_GATE_SET_TO_DISABLE ? 1 : 0;
gate               64 drivers/clk/clk-gate.c 	if (gate->lock)
gate               65 drivers/clk/clk-gate.c 		spin_lock_irqsave(gate->lock, flags);
gate               67 drivers/clk/clk-gate.c 		__acquire(gate->lock);
gate               69 drivers/clk/clk-gate.c 	if (gate->flags & CLK_GATE_HIWORD_MASK) {
gate               70 drivers/clk/clk-gate.c 		reg = BIT(gate->bit_idx + 16);
gate               72 drivers/clk/clk-gate.c 			reg |= BIT(gate->bit_idx);
gate               74 drivers/clk/clk-gate.c 		reg = clk_gate_readl(gate);
gate               77 drivers/clk/clk-gate.c 			reg |= BIT(gate->bit_idx);
gate               79 drivers/clk/clk-gate.c 			reg &= ~BIT(gate->bit_idx);
gate               82 drivers/clk/clk-gate.c 	clk_gate_writel(gate, reg);
gate               84 drivers/clk/clk-gate.c 	if (gate->lock)
gate               85 drivers/clk/clk-gate.c 		spin_unlock_irqrestore(gate->lock, flags);
gate               87 drivers/clk/clk-gate.c 		__release(gate->lock);
gate              105 drivers/clk/clk-gate.c 	struct clk_gate *gate = to_clk_gate(hw);
gate              107 drivers/clk/clk-gate.c 	reg = clk_gate_readl(gate);
gate              110 drivers/clk/clk-gate.c 	if (gate->flags & CLK_GATE_SET_TO_DISABLE)
gate              111 drivers/clk/clk-gate.c 		reg ^= BIT(gate->bit_idx);
gate              113 drivers/clk/clk-gate.c 	reg &= BIT(gate->bit_idx);
gate              142 drivers/clk/clk-gate.c 	struct clk_gate *gate;
gate              155 drivers/clk/clk-gate.c 	gate = kzalloc(sizeof(*gate), GFP_KERNEL);
gate              156 drivers/clk/clk-gate.c 	if (!gate)
gate              166 drivers/clk/clk-gate.c 	gate->reg = reg;
gate              167 drivers/clk/clk-gate.c 	gate->bit_idx = bit_idx;
gate              168 drivers/clk/clk-gate.c 	gate->flags = clk_gate_flags;
gate              169 drivers/clk/clk-gate.c 	gate->lock = lock;
gate              170 drivers/clk/clk-gate.c 	gate->hw.init = &init;
gate              172 drivers/clk/clk-gate.c 	hw = &gate->hw;
gate              175 drivers/clk/clk-gate.c 		kfree(gate);
gate              200 drivers/clk/clk-gate.c 	struct clk_gate *gate;
gate              207 drivers/clk/clk-gate.c 	gate = to_clk_gate(hw);
gate              210 drivers/clk/clk-gate.c 	kfree(gate);
gate              216 drivers/clk/clk-gate.c 	struct clk_gate *gate;
gate              218 drivers/clk/clk-gate.c 	gate = to_clk_gate(hw);
gate              221 drivers/clk/clk-gate.c 	kfree(gate);
gate              518 drivers/clk/clk-stm32f4.c 	struct	clk_gate gate;
gate              525 drivers/clk/clk-stm32f4.c #define to_stm32f4_pll(_gate) container_of(_gate, struct stm32f4_pll, gate)
gate              611 drivers/clk/clk-stm32f4.c 	struct clk_gate *gate = to_clk_gate(hw);
gate              612 drivers/clk/clk-stm32f4.c 	struct stm32f4_pll *pll = to_stm32f4_pll(gate);
gate              622 drivers/clk/clk-stm32f4.c 		bit_status = !(readl(gate->reg) & BIT(pll->bit_rdy_idx));
gate              637 drivers/clk/clk-stm32f4.c 	struct clk_gate *gate = to_clk_gate(hw);
gate              638 drivers/clk/clk-stm32f4.c 	struct stm32f4_pll *pll = to_stm32f4_pll(gate);
gate              649 drivers/clk/clk-stm32f4.c 	struct clk_gate *gate = to_clk_gate(hw);
gate              650 drivers/clk/clk-stm32f4.c 	struct stm32f4_pll *pll = to_stm32f4_pll(gate);
gate              666 drivers/clk/clk-stm32f4.c 	struct clk_gate *gate = to_clk_gate(hw);
gate              667 drivers/clk/clk-stm32f4.c 	struct stm32f4_pll *pll = to_stm32f4_pll(gate);
gate              813 drivers/clk/clk-stm32f4.c 	pll->gate.lock = lock;
gate              814 drivers/clk/clk-stm32f4.c 	pll->gate.reg = base + STM32F4_RCC_CR;
gate              815 drivers/clk/clk-stm32f4.c 	pll->gate.bit_idx = vco->bit_idx;
gate              816 drivers/clk/clk-stm32f4.c 	pll->gate.hw.init = &init;
gate              825 drivers/clk/clk-stm32f4.c 	pll_hw = &pll->gate.hw;
gate              889 drivers/clk/clk-stm32f4.c #define to_rgclk(_rgate) container_of(_rgate, struct stm32_rgate, gate)
gate              913 drivers/clk/clk-stm32f4.c 	struct	clk_gate gate;
gate              921 drivers/clk/clk-stm32f4.c 	struct clk_gate *gate = to_clk_gate(hw);
gate              922 drivers/clk/clk-stm32f4.c 	struct stm32_rgate *rgate = to_rgclk(gate);
gate              934 drivers/clk/clk-stm32f4.c 		bit_status = !(readl(gate->reg) & BIT(rgate->bit_rdy_idx));
gate              983 drivers/clk/clk-stm32f4.c 	rgate->gate.lock = lock;
gate              984 drivers/clk/clk-stm32f4.c 	rgate->gate.reg = reg;
gate              985 drivers/clk/clk-stm32f4.c 	rgate->gate.bit_idx = bit_idx;
gate              986 drivers/clk/clk-stm32f4.c 	rgate->gate.hw.init = &init;
gate              988 drivers/clk/clk-stm32f4.c 	hw = &rgate->gate.hw;
gate             1062 drivers/clk/clk-stm32f4.c 	struct clk_gate *gate;
gate             1065 drivers/clk/clk-stm32f4.c 	gate = kzalloc(sizeof(*gate), GFP_KERNEL);
gate             1066 drivers/clk/clk-stm32f4.c 	if (!gate) {
gate             1073 drivers/clk/clk-stm32f4.c 		kfree(gate);
gate             1078 drivers/clk/clk-stm32f4.c 	gate->reg = reg;
gate             1079 drivers/clk/clk-stm32f4.c 	gate->bit_idx = bit_idx;
gate             1080 drivers/clk/clk-stm32f4.c 	gate->flags = 0;
gate             1081 drivers/clk/clk-stm32f4.c 	gate->lock = lock;
gate             1091 drivers/clk/clk-stm32f4.c 			&gate->hw, &cclk_gate_ops,
gate             1095 drivers/clk/clk-stm32f4.c 		kfree(gate);
gate             1633 drivers/clk/clk-stm32f4.c 	struct clk_gate *gate = NULL;
gate             1639 drivers/clk/clk-stm32f4.c 		gate = kzalloc(sizeof(*gate), GFP_KERNEL);
gate             1640 drivers/clk/clk-stm32f4.c 		if (!gate) {
gate             1645 drivers/clk/clk-stm32f4.c 		gate->reg = base + offset_gate;
gate             1646 drivers/clk/clk-stm32f4.c 		gate->bit_idx = bit_idx;
gate             1647 drivers/clk/clk-stm32f4.c 		gate->flags = 0;
gate             1648 drivers/clk/clk-stm32f4.c 		gate->lock = lock;
gate             1649 drivers/clk/clk-stm32f4.c 		gate_hw = &gate->hw;
gate             1681 drivers/clk/clk-stm32f4.c 		kfree(gate);
gate              151 drivers/clk/clk-stm32h7.c 	struct	clk_gate gate;
gate              156 drivers/clk/clk-stm32h7.c 		gate)
gate              162 drivers/clk/clk-stm32h7.c 	struct clk_gate *gate = to_clk_gate(hw);
gate              163 drivers/clk/clk-stm32h7.c 	struct stm32_ready_gate *rgate = to_ready_gate_clk(gate);
gate              178 drivers/clk/clk-stm32h7.c 		bit_status = !(readl(gate->reg) & BIT(rgate->bit_rdy));
gate              190 drivers/clk/clk-stm32h7.c 	struct clk_gate *gate = to_clk_gate(hw);
gate              191 drivers/clk/clk-stm32h7.c 	struct stm32_ready_gate *rgate = to_ready_gate_clk(gate);
gate              201 drivers/clk/clk-stm32h7.c 		bit_status = !!(readl(gate->reg) & BIT(rgate->bit_rdy));
gate              236 drivers/clk/clk-stm32h7.c 	rgate->gate.lock = lock;
gate              237 drivers/clk/clk-stm32h7.c 	rgate->gate.reg = reg;
gate              238 drivers/clk/clk-stm32h7.c 	rgate->gate.bit_idx = bit_idx;
gate              239 drivers/clk/clk-stm32h7.c 	rgate->gate.hw.init = &init;
gate              241 drivers/clk/clk-stm32h7.c 	hw = &rgate->gate.hw;
gate              263 drivers/clk/clk-stm32h7.c 	struct gate_cfg *gate;
gate              283 drivers/clk/clk-stm32h7.c 	struct composite_clk_gcfg_t *gate;
gate              293 drivers/clk/clk-stm32h7.c 	.gate = &(struct composite_clk_gcfg_t) { _gate_flags, _gate_ops}
gate              335 drivers/clk/clk-stm32h7.c 	struct clk_gate *gate;
gate              337 drivers/clk/clk-stm32h7.c 	gate = kzalloc(sizeof(*gate), GFP_KERNEL);
gate              338 drivers/clk/clk-stm32h7.c 	if (!gate)
gate              341 drivers/clk/clk-stm32h7.c 	gate->reg	= reg;
gate              342 drivers/clk/clk-stm32h7.c 	gate->bit_idx	= bit_idx;
gate              343 drivers/clk/clk-stm32h7.c 	gate->flags	= flags;
gate              344 drivers/clk/clk-stm32h7.c 	gate->lock	= lock;
gate              346 drivers/clk/clk-stm32h7.c 	return gate;
gate              365 drivers/clk/clk-stm32h7.c 	struct clk_gate    *gate = NULL;
gate              400 drivers/clk/clk-stm32h7.c 	if (gcfg->gate && cfg->gate) {
gate              401 drivers/clk/clk-stm32h7.c 		gate = _get_cgate(base + cfg->gate->offset,
gate              402 drivers/clk/clk-stm32h7.c 				cfg->gate->bit_idx,
gate              403 drivers/clk/clk-stm32h7.c 				gcfg->gate->flags, lock);
gate              405 drivers/clk/clk-stm32h7.c 		if (!IS_ERR(gate)) {
gate              406 drivers/clk/clk-stm32h7.c 			gate_hw = &gate->hw;
gate              407 drivers/clk/clk-stm32h7.c 			gate_ops = gcfg->gate->ops ?
gate              408 drivers/clk/clk-stm32h7.c 				   gcfg->gate->ops : &clk_gate_ops;
gate              699 drivers/clk/clk-stm32h7.c 	struct clk_hw *_hw = &clk_elem->rgate.gate.hw;
gate              709 drivers/clk/clk-stm32h7.c 	struct clk_hw *_hw = &clk_elem->rgate.gate.hw;
gate              719 drivers/clk/clk-stm32h7.c 	struct clk_hw *_hw = &clk_elem->rgate.gate.hw;
gate              811 drivers/clk/clk-stm32h7.c 	rgate->gate.lock = lock;
gate              812 drivers/clk/clk-stm32h7.c 	rgate->gate.reg = base + RCC_CR;
gate              813 drivers/clk/clk-stm32h7.c 	rgate->gate.bit_idx = cfg->bit_idx;
gate              943 drivers/clk/clk-stm32h7.c 	.gate = &(struct gate_cfg) {_gate_offset, _bit_idx },\
gate             1069 drivers/clk/clk-stm32h7.c 	.gate = &(struct gate_cfg) {_gate_offset, _bit_idx},\
gate             1086 drivers/clk/clk-stm32h7.c 	.gate = &(struct gate_cfg) {_gate_offset, _bit_idx},\
gate             1184 drivers/clk/clk-stm32h7.c 	.gate = NULL,\
gate              307 drivers/clk/clk-stm32mp1.c 	struct clk_gate gate;
gate              356 drivers/clk/clk-stm32mp1.c 	struct gate_cfg		*gate;
gate              374 drivers/clk/clk-stm32mp1.c 	const struct stm32_gate_cfg	*gate;
gate              456 drivers/clk/clk-stm32mp1.c 	struct clk_gate *gate = to_clk_gate(hw);
gate              460 drivers/clk/clk-stm32mp1.c 		spin_lock_irqsave(gate->lock, flags);
gate              461 drivers/clk/clk-stm32mp1.c 		writel_relaxed(BIT(gate->bit_idx), gate->reg + RCC_CLR);
gate              462 drivers/clk/clk-stm32mp1.c 		spin_unlock_irqrestore(gate->lock, flags);
gate              538 drivers/clk/clk-stm32mp1.c 	struct clk_gate *gate;
gate              546 drivers/clk/clk-stm32mp1.c 		mgate->gate.reg = cfg->gate->reg_off + base;
gate              547 drivers/clk/clk-stm32mp1.c 		mgate->gate.bit_idx = cfg->gate->bit_idx;
gate              548 drivers/clk/clk-stm32mp1.c 		mgate->gate.flags = cfg->gate->gate_flags;
gate              549 drivers/clk/clk-stm32mp1.c 		mgate->gate.lock = lock;
gate              554 drivers/clk/clk-stm32mp1.c 		gate_hw = &mgate->gate.hw;
gate              557 drivers/clk/clk-stm32mp1.c 		gate = kzalloc(sizeof(*gate), GFP_KERNEL);
gate              558 drivers/clk/clk-stm32mp1.c 		if (!gate)
gate              561 drivers/clk/clk-stm32mp1.c 		gate->reg = cfg->gate->reg_off + base;
gate              562 drivers/clk/clk-stm32mp1.c 		gate->bit_idx = cfg->gate->bit_idx;
gate              563 drivers/clk/clk-stm32mp1.c 		gate->flags = cfg->gate->gate_flags;
gate              564 drivers/clk/clk-stm32mp1.c 		gate->lock = lock;
gate              566 drivers/clk/clk-stm32mp1.c 		gate_hw = &gate->hw;
gate              647 drivers/clk/clk-stm32mp1.c 	if (cfg->gate) {
gate              648 drivers/clk/clk-stm32mp1.c 		gate_hw = _get_stm32_gate(base, cfg->gate, lock);
gate              653 drivers/clk/clk-stm32mp1.c 			if (cfg->gate->ops)
gate              654 drivers/clk/clk-stm32mp1.c 				gate_ops = cfg->gate->ops;
gate              663 drivers/clk/clk-stm32mp1.c #define to_clk_mgate(_gate) container_of(_gate, struct stm32_clk_mgate, gate)
gate              667 drivers/clk/clk-stm32mp1.c 	struct clk_gate *gate = to_clk_gate(hw);
gate              668 drivers/clk/clk-stm32mp1.c 	struct stm32_clk_mgate *clk_mgate = to_clk_mgate(gate);
gate              679 drivers/clk/clk-stm32mp1.c 	struct clk_gate *gate = to_clk_gate(hw);
gate              680 drivers/clk/clk-stm32mp1.c 	struct stm32_clk_mgate *clk_mgate = to_clk_mgate(gate);
gate             1219 drivers/clk/clk-stm32mp1.c 	.gate = &per_gate_cfg[_mgate]
gate             1268 drivers/clk/clk-stm32mp1.c #define _NO_GATE .gate = NULL
gate               93 drivers/clk/davinci/da8xx-cfgchip.c 	struct da8xx_cfgchip_gate_clk *gate;
gate              103 drivers/clk/davinci/da8xx-cfgchip.c 	gate = devm_kzalloc(dev, sizeof(*gate), GFP_KERNEL);
gate              104 drivers/clk/davinci/da8xx-cfgchip.c 	if (!gate)
gate              116 drivers/clk/davinci/da8xx-cfgchip.c 	gate->hw.init = &init;
gate              117 drivers/clk/davinci/da8xx-cfgchip.c 	gate->regmap = regmap;
gate              118 drivers/clk/davinci/da8xx-cfgchip.c 	gate->reg = info->cfgchip;
gate              119 drivers/clk/davinci/da8xx-cfgchip.c 	gate->mask = info->bit;
gate              121 drivers/clk/davinci/da8xx-cfgchip.c 	ret = devm_clk_hw_register(dev, &gate->hw);
gate              125 drivers/clk/davinci/da8xx-cfgchip.c 	return gate;
gate              137 drivers/clk/davinci/da8xx-cfgchip.c 	struct da8xx_cfgchip_gate_clk *gate;
gate              139 drivers/clk/davinci/da8xx-cfgchip.c 	gate = da8xx_cfgchip_gate_clk_register(dev, &da8xx_tbclksync_info,
gate              141 drivers/clk/davinci/da8xx-cfgchip.c 	if (IS_ERR(gate))
gate              142 drivers/clk/davinci/da8xx-cfgchip.c 		return PTR_ERR(gate);
gate              144 drivers/clk/davinci/da8xx-cfgchip.c 	clk_hw_register_clkdev(&gate->hw, "tbclk", "ehrpwm.0");
gate              145 drivers/clk/davinci/da8xx-cfgchip.c 	clk_hw_register_clkdev(&gate->hw, "tbclk", "ehrpwm.1");
gate              160 drivers/clk/davinci/da8xx-cfgchip.c 	struct da8xx_cfgchip_gate_clk *gate;
gate              162 drivers/clk/davinci/da8xx-cfgchip.c 	gate = da8xx_cfgchip_gate_clk_register(dev, &da8xx_div4p5ena_info, regmap);
gate              164 drivers/clk/davinci/da8xx-cfgchip.c 	return PTR_ERR_OR_ZERO(gate);
gate              172 drivers/clk/davinci/da8xx-cfgchip.c 	struct da8xx_cfgchip_gate_clk *gate;
gate              174 drivers/clk/davinci/da8xx-cfgchip.c 	gate = da8xx_cfgchip_gate_clk_register(dev, info, regmap);
gate              175 drivers/clk/davinci/da8xx-cfgchip.c 	if (IS_ERR(gate))
gate              176 drivers/clk/davinci/da8xx-cfgchip.c 		return PTR_ERR(gate);
gate              178 drivers/clk/davinci/da8xx-cfgchip.c 	return devm_of_clk_add_hw_provider(dev, of_clk_hw_simple_get, gate);
gate              243 drivers/clk/davinci/pll.c 	struct clk_gate *gate;
gate              248 drivers/clk/davinci/pll.c 	gate = kzalloc(sizeof(*gate), GFP_KERNEL);
gate              249 drivers/clk/davinci/pll.c 	if (!gate)
gate              252 drivers/clk/davinci/pll.c 	gate->reg = reg;
gate              253 drivers/clk/davinci/pll.c 	gate->bit_idx = DIV_ENABLE_SHIFT;
gate              272 drivers/clk/davinci/pll.c 				     &gate->hw, &clk_gate_ops, flags);
gate              283 drivers/clk/davinci/pll.c 	kfree(gate);
gate              578 drivers/clk/davinci/pll.c 	struct clk_gate *gate;
gate              592 drivers/clk/davinci/pll.c 	gate = kzalloc(sizeof(*gate), GFP_KERNEL);
gate              593 drivers/clk/davinci/pll.c 	if (!gate) {
gate              598 drivers/clk/davinci/pll.c 	gate->reg = base + CKEN;
gate              599 drivers/clk/davinci/pll.c 	gate->bit_idx = CKEN_OBSCLK_SHIFT;
gate              620 drivers/clk/davinci/pll.c 				     &gate->hw, &clk_gate_ops, 0);
gate              632 drivers/clk/davinci/pll.c 	kfree(gate);
gate              682 drivers/clk/davinci/pll.c 	struct clk_gate *gate;
gate              695 drivers/clk/davinci/pll.c 	gate = kzalloc(sizeof(*gate), GFP_KERNEL);
gate              696 drivers/clk/davinci/pll.c 	if (!gate)
gate              699 drivers/clk/davinci/pll.c 	gate->reg = base + reg;
gate              700 drivers/clk/davinci/pll.c 	gate->bit_idx = DIV_ENABLE_SHIFT;
gate              727 drivers/clk/davinci/pll.c 				     &gate->hw, &clk_gate_ops, flags);
gate              740 drivers/clk/davinci/pll.c 	kfree(gate);
gate              155 drivers/clk/hisilicon/clk.h hisi_clk_unregister(gate)
gate               32 drivers/clk/imx/clk-composite-7ulp.c 	struct clk_gate *gate = NULL;
gate               64 drivers/clk/imx/clk-composite-7ulp.c 		gate = kzalloc(sizeof(*gate), GFP_KERNEL);
gate               65 drivers/clk/imx/clk-composite-7ulp.c 		if (!gate) {
gate               70 drivers/clk/imx/clk-composite-7ulp.c 		gate_hw = &gate->hw;
gate               71 drivers/clk/imx/clk-composite-7ulp.c 		gate->reg = reg;
gate               72 drivers/clk/imx/clk-composite-7ulp.c 		gate->bit_idx = PCG_CGC_SHIFT;
gate               83 drivers/clk/imx/clk-composite-7ulp.c 		kfree(gate);
gate              134 drivers/clk/imx/clk-composite-8m.c 	struct clk_gate *gate = NULL;
gate              158 drivers/clk/imx/clk-composite-8m.c 	gate = kzalloc(sizeof(*gate), GFP_KERNEL);
gate              159 drivers/clk/imx/clk-composite-8m.c 	if (!gate)
gate              162 drivers/clk/imx/clk-composite-8m.c 	gate_hw = &gate->hw;
gate              163 drivers/clk/imx/clk-composite-8m.c 	gate->reg = reg;
gate              164 drivers/clk/imx/clk-composite-8m.c 	gate->bit_idx = PCG_CGC_SHIFT;
gate              165 drivers/clk/imx/clk-composite-8m.c 	gate->lock = &imx_ccm_lock;
gate              177 drivers/clk/imx/clk-composite-8m.c 	kfree(gate);
gate               25 drivers/clk/imx/clk-gate-exclusive.c 	struct clk_gate gate;
gate               31 drivers/clk/imx/clk-gate-exclusive.c 	struct clk_gate *gate = to_clk_gate(hw);
gate               32 drivers/clk/imx/clk-gate-exclusive.c 	struct clk_gate_exclusive *exgate = container_of(gate,
gate               33 drivers/clk/imx/clk-gate-exclusive.c 					struct clk_gate_exclusive, gate);
gate               34 drivers/clk/imx/clk-gate-exclusive.c 	u32 val = readl(gate->reg);
gate               62 drivers/clk/imx/clk-gate-exclusive.c 	struct clk_gate *gate;
gate               73 drivers/clk/imx/clk-gate-exclusive.c 	gate = &exgate->gate;
gate               81 drivers/clk/imx/clk-gate-exclusive.c 	gate->reg = reg;
gate               82 drivers/clk/imx/clk-gate-exclusive.c 	gate->bit_idx = shift;
gate               83 drivers/clk/imx/clk-gate-exclusive.c 	gate->lock = &imx_ccm_lock;
gate               84 drivers/clk/imx/clk-gate-exclusive.c 	gate->hw.init = &init;
gate               87 drivers/clk/imx/clk-gate-exclusive.c 	hw = &gate->hw;
gate               91 drivers/clk/imx/clk-gate-exclusive.c 		kfree(gate);
gate               41 drivers/clk/imx/clk-gate2.c 	struct clk_gate2 *gate = to_clk_gate2(hw);
gate               45 drivers/clk/imx/clk-gate2.c 	spin_lock_irqsave(gate->lock, flags);
gate               47 drivers/clk/imx/clk-gate2.c 	if (gate->share_count && (*gate->share_count)++ > 0)
gate               50 drivers/clk/imx/clk-gate2.c 	reg = readl(gate->reg);
gate               51 drivers/clk/imx/clk-gate2.c 	reg &= ~(3 << gate->bit_idx);
gate               52 drivers/clk/imx/clk-gate2.c 	reg |= gate->cgr_val << gate->bit_idx;
gate               53 drivers/clk/imx/clk-gate2.c 	writel(reg, gate->reg);
gate               56 drivers/clk/imx/clk-gate2.c 	spin_unlock_irqrestore(gate->lock, flags);
gate               63 drivers/clk/imx/clk-gate2.c 	struct clk_gate2 *gate = to_clk_gate2(hw);
gate               67 drivers/clk/imx/clk-gate2.c 	spin_lock_irqsave(gate->lock, flags);
gate               69 drivers/clk/imx/clk-gate2.c 	if (gate->share_count) {
gate               70 drivers/clk/imx/clk-gate2.c 		if (WARN_ON(*gate->share_count == 0))
gate               72 drivers/clk/imx/clk-gate2.c 		else if (--(*gate->share_count) > 0)
gate               76 drivers/clk/imx/clk-gate2.c 	reg = readl(gate->reg);
gate               77 drivers/clk/imx/clk-gate2.c 	reg &= ~(3 << gate->bit_idx);
gate               78 drivers/clk/imx/clk-gate2.c 	writel(reg, gate->reg);
gate               81 drivers/clk/imx/clk-gate2.c 	spin_unlock_irqrestore(gate->lock, flags);
gate               96 drivers/clk/imx/clk-gate2.c 	struct clk_gate2 *gate = to_clk_gate2(hw);
gate               98 drivers/clk/imx/clk-gate2.c 	return clk_gate2_reg_is_enabled(gate->reg, gate->bit_idx);
gate              103 drivers/clk/imx/clk-gate2.c 	struct clk_gate2 *gate = to_clk_gate2(hw);
gate              107 drivers/clk/imx/clk-gate2.c 	spin_lock_irqsave(gate->lock, flags);
gate              109 drivers/clk/imx/clk-gate2.c 	if (!gate->share_count || *gate->share_count == 0) {
gate              110 drivers/clk/imx/clk-gate2.c 		reg = readl(gate->reg);
gate              111 drivers/clk/imx/clk-gate2.c 		reg &= ~(3 << gate->bit_idx);
gate              112 drivers/clk/imx/clk-gate2.c 		writel(reg, gate->reg);
gate              115 drivers/clk/imx/clk-gate2.c 	spin_unlock_irqrestore(gate->lock, flags);
gate              131 drivers/clk/imx/clk-gate2.c 	struct clk_gate2 *gate;
gate              136 drivers/clk/imx/clk-gate2.c 	gate = kzalloc(sizeof(struct clk_gate2), GFP_KERNEL);
gate              137 drivers/clk/imx/clk-gate2.c 	if (!gate)
gate              141 drivers/clk/imx/clk-gate2.c 	gate->reg = reg;
gate              142 drivers/clk/imx/clk-gate2.c 	gate->bit_idx = bit_idx;
gate              143 drivers/clk/imx/clk-gate2.c 	gate->cgr_val = cgr_val;
gate              144 drivers/clk/imx/clk-gate2.c 	gate->flags = clk_gate2_flags;
gate              145 drivers/clk/imx/clk-gate2.c 	gate->lock = lock;
gate              146 drivers/clk/imx/clk-gate2.c 	gate->share_count = share_count;
gate              154 drivers/clk/imx/clk-gate2.c 	gate->hw.init = &init;
gate              155 drivers/clk/imx/clk-gate2.c 	hw = &gate->hw;
gate              159 drivers/clk/imx/clk-gate2.c 		kfree(gate);
gate              533 drivers/clk/ingenic/cgu.c 		ingenic_cgu_gate_set(cgu, &clk_info->gate, false);
gate              536 drivers/clk/ingenic/cgu.c 		if (clk_info->gate.delay_us)
gate              537 drivers/clk/ingenic/cgu.c 			udelay(clk_info->gate.delay_us);
gate              555 drivers/clk/ingenic/cgu.c 		ingenic_cgu_gate_set(cgu, &clk_info->gate, true);
gate              572 drivers/clk/ingenic/cgu.c 		enabled = !ingenic_cgu_gate_get(cgu, &clk_info->gate);
gate              162 drivers/clk/ingenic/cgu.h 			struct ingenic_cgu_gate_info gate;
gate              127 drivers/clk/ingenic/jz4725b-cgu.c 		.gate = { CGU_REG_CLKGR, 13 },
gate              134 drivers/clk/ingenic/jz4725b-cgu.c 		.gate = { CGU_REG_CLKGR, 9 },
gate              142 drivers/clk/ingenic/jz4725b-cgu.c 		.gate = { CGU_REG_CLKGR, 6 },
gate              150 drivers/clk/ingenic/jz4725b-cgu.c 		.gate = { CGU_REG_CLKGR, 4 },
gate              171 drivers/clk/ingenic/jz4725b-cgu.c 		.gate = { CGU_REG_CLKGR, 0 },
gate              177 drivers/clk/ingenic/jz4725b-cgu.c 		.gate = { CGU_REG_CLKGR, 12 },
gate              183 drivers/clk/ingenic/jz4725b-cgu.c 		.gate = { CGU_REG_CLKGR, 7 },
gate              189 drivers/clk/ingenic/jz4725b-cgu.c 		.gate = { CGU_REG_CLKGR, 3 },
gate              195 drivers/clk/ingenic/jz4725b-cgu.c 		.gate = { CGU_REG_CLKGR, 5 },
gate              201 drivers/clk/ingenic/jz4725b-cgu.c 		.gate = { CGU_REG_CLKGR, 6 },
gate              207 drivers/clk/ingenic/jz4725b-cgu.c 		.gate = { CGU_REG_CLKGR, 16 },
gate              213 drivers/clk/ingenic/jz4725b-cgu.c 		.gate = { CGU_REG_CLKGR, 11 },
gate              219 drivers/clk/ingenic/jz4725b-cgu.c 		.gate = { CGU_REG_CLKGR, 1 },
gate              239 drivers/clk/ingenic/jz4725b-cgu.c 		.gate = { CGU_REG_OPCR, 6, true },
gate              142 drivers/clk/ingenic/jz4740-cgu.c 		.gate = { CGU_REG_CLKGR, 10 },
gate              156 drivers/clk/ingenic/jz4740-cgu.c 		.gate = { CGU_REG_CLKGR, 6 },
gate              164 drivers/clk/ingenic/jz4740-cgu.c 		.gate = { CGU_REG_CLKGR, 4 },
gate              171 drivers/clk/ingenic/jz4740-cgu.c 		.gate = { CGU_REG_CLKGR, 7 },
gate              178 drivers/clk/ingenic/jz4740-cgu.c 		.gate = { CGU_REG_CLKGR, 14 },
gate              186 drivers/clk/ingenic/jz4740-cgu.c 		.gate = { CGU_REG_SCR, 6, true },
gate              194 drivers/clk/ingenic/jz4740-cgu.c 		.gate = { CGU_REG_CLKGR, 0 },
gate              200 drivers/clk/ingenic/jz4740-cgu.c 		.gate = { CGU_REG_CLKGR, 15 },
gate              206 drivers/clk/ingenic/jz4740-cgu.c 		.gate = { CGU_REG_CLKGR, 12 },
gate              212 drivers/clk/ingenic/jz4740-cgu.c 		.gate = { CGU_REG_CLKGR, 13 },
gate              218 drivers/clk/ingenic/jz4740-cgu.c 		.gate = { CGU_REG_CLKGR, 8 },
gate              224 drivers/clk/ingenic/jz4740-cgu.c 		.gate = { CGU_REG_CLKGR, 3 },
gate              230 drivers/clk/ingenic/jz4740-cgu.c 		.gate = { CGU_REG_CLKGR, 5 },
gate              236 drivers/clk/ingenic/jz4740-cgu.c 		.gate = { CGU_REG_CLKGR, 1 },
gate              168 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_CLKGR1, 7 },
gate              185 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_OPCR, 31, true }, // disable CCLK stop on idle
gate              203 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_MSC0CDR, 31 },
gate              210 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_MSC1CDR, 31 },
gate              217 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_MSC2CDR, 31 },
gate              224 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_CLKGR0, 26 },
gate              231 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_CLKGR0, 24 },
gate              238 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_CLKGR1, 9 },
gate              245 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_CLKGR0, 1 },
gate              252 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_CLKGR0, 28 },
gate              259 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_CLKGR0, 22 },
gate              284 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_CLKGR1, 13 },
gate              292 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_CLKGR0, 2 },
gate              300 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_CLKGR0, 4 },
gate              305 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_CLKGR0, 19 },
gate              310 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_CLKGR0, 20 },
gate              315 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_CLKGR1, 8 },
gate              320 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_CLKGR1, 10 },
gate              325 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_CLKGR0, 21 },
gate              330 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_CLKGR0, 5 },
gate              335 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_CLKGR0, 6 },
gate              340 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_CLKGR1, 15 },
gate              345 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_CLKGR0, 15 },
gate              350 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_CLKGR0, 16 },
gate              355 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_CLKGR0, 17 },
gate              360 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_CLKGR0, 18 },
gate              365 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_CLKGR0, 29 },
gate              370 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_CLKGR0, 14 },
gate              375 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_CLKGR0, 8 },
gate              380 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_CLKGR1, 14 },
gate              385 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_LCR, 30, false, 150 },
gate              390 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_CLKGR0, 3 },
gate              395 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_CLKGR0, 11 },
gate              400 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_CLKGR0, 12 },
gate              405 drivers/clk/ingenic/jz4770-cgu.c 		.gate = { CGU_REG_OPCR, 7, true, 50 },
gate              341 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR1, 2 },
gate              383 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR0, 3 },
gate              390 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR0, 11 },
gate              397 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR0, 12 },
gate              406 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR0, 24 },
gate              441 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR1, 3 },
gate              450 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR1, 4 },
gate              459 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR1, 9 },
gate              468 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR0, 1 },
gate              476 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR0, 0 },
gate              482 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR0, 2 },
gate              488 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR0, 4 },
gate              494 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR0, 5 },
gate              500 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR0, 6 },
gate              506 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR0, 7 },
gate              512 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR0, 8 },
gate              518 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR0, 9 },
gate              524 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR0, 10 },
gate              530 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR0, 13 },
gate              536 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR0, 14 },
gate              542 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR0, 15 },
gate              548 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR0, 16 },
gate              554 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR0, 17 },
gate              560 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR0, 18 },
gate              566 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR0, 19 },
gate              572 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR0, 20 },
gate              578 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR0, 21 },
gate              584 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR0, 22 },
gate              590 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR0, 23 },
gate              596 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR0, 24 },
gate              602 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR0, 26 },
gate              608 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR0, 28 },
gate              614 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR0, 27 },
gate              620 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR0, 29 },
gate              626 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR0, 30 },
gate              632 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR0, 31 },
gate              638 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR1, 0 },
gate              644 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR1, 1 },
gate              650 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR1, 5 },
gate              656 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR1, 6 },
gate              662 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR1, 7 },
gate              668 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR1, 8 },
gate              674 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR1, 10 },
gate              680 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR1, 11 },
gate              686 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR1, 12 },
gate              692 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR1, 13 },
gate              698 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR1, 14 },
gate              704 drivers/clk/ingenic/jz4780-cgu.c 		.gate = { CGU_REG_CLKGR1, 15 },
gate              117 drivers/clk/mediatek/clk-mtk.c 		const struct mtk_gate *gate = &clks[i];
gate              119 drivers/clk/mediatek/clk-mtk.c 		if (!IS_ERR_OR_NULL(clk_data->clks[gate->id]))
gate              122 drivers/clk/mediatek/clk-mtk.c 		clk = mtk_clk_register_gate(gate->name, gate->parent_name,
gate              124 drivers/clk/mediatek/clk-mtk.c 				gate->regs->set_ofs,
gate              125 drivers/clk/mediatek/clk-mtk.c 				gate->regs->clr_ofs,
gate              126 drivers/clk/mediatek/clk-mtk.c 				gate->regs->sta_ofs,
gate              127 drivers/clk/mediatek/clk-mtk.c 				gate->shift, gate->ops, gate->flags, dev);
gate              131 drivers/clk/mediatek/clk-mtk.c 					gate->name, PTR_ERR(clk));
gate              135 drivers/clk/mediatek/clk-mtk.c 		clk_data->clks[gate->id] = clk;
gate              154 drivers/clk/mediatek/clk-mtk.c 	struct clk_gate *gate = NULL;
gate              185 drivers/clk/mediatek/clk-mtk.c 		gate = kzalloc(sizeof(*gate), GFP_KERNEL);
gate              186 drivers/clk/mediatek/clk-mtk.c 		if (!gate) {
gate              191 drivers/clk/mediatek/clk-mtk.c 		gate->reg = base + mc->gate_reg;
gate              192 drivers/clk/mediatek/clk-mtk.c 		gate->bit_idx = mc->gate_shift;
gate              193 drivers/clk/mediatek/clk-mtk.c 		gate->flags = CLK_GATE_SET_TO_DISABLE;
gate              194 drivers/clk/mediatek/clk-mtk.c 		gate->lock = lock;
gate              196 drivers/clk/mediatek/clk-mtk.c 		gate_hw = &gate->hw;
gate              230 drivers/clk/mediatek/clk-mtk.c 	kfree(gate);
gate               13 drivers/clk/meson/clk-regmap.c 	struct clk_regmap_gate_data *gate = clk_get_regmap_gate_data(clk);
gate               14 drivers/clk/meson/clk-regmap.c 	int set = gate->flags & CLK_GATE_SET_TO_DISABLE ? 1 : 0;
gate               18 drivers/clk/meson/clk-regmap.c 	return regmap_update_bits(clk->map, gate->offset, BIT(gate->bit_idx),
gate               19 drivers/clk/meson/clk-regmap.c 				  set ? BIT(gate->bit_idx) : 0);
gate               35 drivers/clk/meson/clk-regmap.c 	struct clk_regmap_gate_data *gate = clk_get_regmap_gate_data(clk);
gate               38 drivers/clk/meson/clk-regmap.c 	regmap_read(clk->map, gate->offset, &val);
gate               39 drivers/clk/meson/clk-regmap.c 	if (gate->flags & CLK_GATE_SET_TO_DISABLE)
gate               40 drivers/clk/meson/clk-regmap.c 		val ^= BIT(gate->bit_idx);
gate               42 drivers/clk/meson/clk-regmap.c 	val &= BIT(gate->bit_idx);
gate               29 drivers/clk/mmp/clk-gate.c 	struct mmp_clk_gate *gate = to_clk_mmp_gate(hw);
gate               34 drivers/clk/mmp/clk-gate.c 	if (gate->lock)
gate               35 drivers/clk/mmp/clk-gate.c 		spin_lock_irqsave(gate->lock, flags);
gate               37 drivers/clk/mmp/clk-gate.c 	tmp = readl(gate->reg);
gate               38 drivers/clk/mmp/clk-gate.c 	tmp &= ~gate->mask;
gate               39 drivers/clk/mmp/clk-gate.c 	tmp |= gate->val_enable;
gate               40 drivers/clk/mmp/clk-gate.c 	writel(tmp, gate->reg);
gate               42 drivers/clk/mmp/clk-gate.c 	if (gate->lock)
gate               43 drivers/clk/mmp/clk-gate.c 		spin_unlock_irqrestore(gate->lock, flags);
gate               45 drivers/clk/mmp/clk-gate.c 	if (gate->flags & MMP_CLK_GATE_NEED_DELAY) {
gate               56 drivers/clk/mmp/clk-gate.c 	struct mmp_clk_gate *gate = to_clk_mmp_gate(hw);
gate               60 drivers/clk/mmp/clk-gate.c 	if (gate->lock)
gate               61 drivers/clk/mmp/clk-gate.c 		spin_lock_irqsave(gate->lock, flags);
gate               63 drivers/clk/mmp/clk-gate.c 	tmp = readl(gate->reg);
gate               64 drivers/clk/mmp/clk-gate.c 	tmp &= ~gate->mask;
gate               65 drivers/clk/mmp/clk-gate.c 	tmp |= gate->val_disable;
gate               66 drivers/clk/mmp/clk-gate.c 	writel(tmp, gate->reg);
gate               68 drivers/clk/mmp/clk-gate.c 	if (gate->lock)
gate               69 drivers/clk/mmp/clk-gate.c 		spin_unlock_irqrestore(gate->lock, flags);
gate               74 drivers/clk/mmp/clk-gate.c 	struct mmp_clk_gate *gate = to_clk_mmp_gate(hw);
gate               78 drivers/clk/mmp/clk-gate.c 	if (gate->lock)
gate               79 drivers/clk/mmp/clk-gate.c 		spin_lock_irqsave(gate->lock, flags);
gate               81 drivers/clk/mmp/clk-gate.c 	tmp = readl(gate->reg);
gate               83 drivers/clk/mmp/clk-gate.c 	if (gate->lock)
gate               84 drivers/clk/mmp/clk-gate.c 		spin_unlock_irqrestore(gate->lock, flags);
gate               86 drivers/clk/mmp/clk-gate.c 	return (tmp & gate->mask) == gate->val_enable;
gate              100 drivers/clk/mmp/clk-gate.c 	struct mmp_clk_gate *gate;
gate              105 drivers/clk/mmp/clk-gate.c 	gate = kzalloc(sizeof(*gate), GFP_KERNEL);
gate              106 drivers/clk/mmp/clk-gate.c 	if (!gate)
gate              116 drivers/clk/mmp/clk-gate.c 	gate->reg = reg;
gate              117 drivers/clk/mmp/clk-gate.c 	gate->mask = mask;
gate              118 drivers/clk/mmp/clk-gate.c 	gate->val_enable = val_enable;
gate              119 drivers/clk/mmp/clk-gate.c 	gate->val_disable = val_disable;
gate              120 drivers/clk/mmp/clk-gate.c 	gate->flags = gate_flags;
gate              121 drivers/clk/mmp/clk-gate.c 	gate->lock = lock;
gate              122 drivers/clk/mmp/clk-gate.c 	gate->hw.init = &init;
gate              124 drivers/clk/mmp/clk-gate.c 	clk = clk_register(dev, &gate->hw);
gate              127 drivers/clk/mmp/clk-gate.c 		kfree(gate);
gate              626 drivers/clk/mvebu/armada-37xx-periph.c 		struct clk_gate *gate;
gate              629 drivers/clk/mvebu/armada-37xx-periph.c 		gate = to_clk_gate(gate_hw);
gate              630 drivers/clk/mvebu/armada-37xx-periph.c 		gate->lock = lock;
gate              632 drivers/clk/mvebu/armada-37xx-periph.c 		gate->reg = reg + (u64)gate->reg;
gate              633 drivers/clk/mvebu/armada-37xx-periph.c 		gate->flags = CLK_GATE_SET_TO_DISABLE;
gate              210 drivers/clk/mvebu/common.c 		struct clk_gate *gate =
gate              212 drivers/clk/mvebu/common.c 		if (clkspec->args[0] == gate->bit_idx)
gate              123 drivers/clk/mvebu/cp110-system-controller.c 	struct cp110_gate_clk *gate = to_cp110_gate_clk(hw);
gate              125 drivers/clk/mvebu/cp110-system-controller.c 	regmap_update_bits(gate->regmap, CP110_PM_CLOCK_GATING_REG,
gate              126 drivers/clk/mvebu/cp110-system-controller.c 			   BIT(gate->bit_idx), BIT(gate->bit_idx));
gate              133 drivers/clk/mvebu/cp110-system-controller.c 	struct cp110_gate_clk *gate = to_cp110_gate_clk(hw);
gate              135 drivers/clk/mvebu/cp110-system-controller.c 	regmap_update_bits(gate->regmap, CP110_PM_CLOCK_GATING_REG,
gate              136 drivers/clk/mvebu/cp110-system-controller.c 			   BIT(gate->bit_idx), 0);
gate              141 drivers/clk/mvebu/cp110-system-controller.c 	struct cp110_gate_clk *gate = to_cp110_gate_clk(hw);
gate              144 drivers/clk/mvebu/cp110-system-controller.c 	regmap_read(gate->regmap, CP110_PM_CLOCK_GATING_REG, &val);
gate              146 drivers/clk/mvebu/cp110-system-controller.c 	return val & BIT(gate->bit_idx);
gate              159 drivers/clk/mvebu/cp110-system-controller.c 	struct cp110_gate_clk *gate;
gate              164 drivers/clk/mvebu/cp110-system-controller.c 	gate = kzalloc(sizeof(*gate), GFP_KERNEL);
gate              165 drivers/clk/mvebu/cp110-system-controller.c 	if (!gate)
gate              175 drivers/clk/mvebu/cp110-system-controller.c 	gate->regmap = regmap;
gate              176 drivers/clk/mvebu/cp110-system-controller.c 	gate->bit_idx = bit_idx;
gate              177 drivers/clk/mvebu/cp110-system-controller.c 	gate->hw.init = &init;
gate              179 drivers/clk/mvebu/cp110-system-controller.c 	hw = &gate->hw;
gate              182 drivers/clk/mvebu/cp110-system-controller.c 		kfree(gate);
gate               43 drivers/clk/nxp/clk-lpc18xx-ccu.c 	struct clk_gate gate;
gate              139 drivers/clk/nxp/clk-lpc18xx-ccu.c 	struct clk_gate *gate = to_clk_gate(hw);
gate              146 drivers/clk/nxp/clk-lpc18xx-ccu.c 	val = readl(gate->reg);
gate              159 drivers/clk/nxp/clk-lpc18xx-ccu.c 		writel(val, gate->reg);
gate              164 drivers/clk/nxp/clk-lpc18xx-ccu.c 	writel(val, gate->reg);
gate              227 drivers/clk/nxp/clk-lpc18xx-ccu.c 	branch->gate.reg = branch->offset + reg_base;
gate              228 drivers/clk/nxp/clk-lpc18xx-ccu.c 	branch->gate.bit_idx = 0;
gate              233 drivers/clk/nxp/clk-lpc18xx-ccu.c 					     &branch->gate.hw, &lpc18xx_ccu_gate_ops, 0);
gate              169 drivers/clk/nxp/clk-lpc18xx-cgu.c 	struct clk_gate		gate;
gate              185 drivers/clk/nxp/clk-lpc18xx-cgu.c 	.gate = {					\
gate              203 drivers/clk/nxp/clk-lpc18xx-cgu.c 	struct clk_gate gate;
gate              216 drivers/clk/nxp/clk-lpc18xx-cgu.c 	.gate = {					\
gate              267 drivers/clk/nxp/clk-lpc18xx-cgu.c 	struct clk_gate gate;
gate              282 drivers/clk/nxp/clk-lpc18xx-cgu.c 	.gate = {					\
gate              543 drivers/clk/nxp/clk-lpc18xx-cgu.c 	clk->gate.reg = reg;
gate              550 drivers/clk/nxp/clk-lpc18xx-cgu.c 				      &clk->gate.hw, &lpc18xx_gate_ops, 0);
gate              565 drivers/clk/nxp/clk-lpc18xx-cgu.c 	clk->gate.reg = reg;
gate              578 drivers/clk/nxp/clk-lpc18xx-cgu.c 				      &clk->gate.hw, &lpc18xx_gate_ops, 0);
gate              590 drivers/clk/nxp/clk-lpc18xx-cgu.c 	clk->gate.reg = base + clk->reg_offset + LPC18XX_CGU_PLL_CTRL_OFFSET;
gate              597 drivers/clk/nxp/clk-lpc18xx-cgu.c 				      &clk->gate.hw, &lpc18xx_gate_ops, 0);
gate             1063 drivers/clk/nxp/clk-lpc32xx.c 		struct lpc32xx_clk_gate gate;
gate             1070 drivers/clk/nxp/clk-lpc32xx.c 	struct clk_hw_proto0 *gate;
gate             1156 drivers/clk/nxp/clk-lpc32xx.c 				.gate = {				\
gate             1215 drivers/clk/nxp/clk-lpc32xx.c 		.gate = (CLK_PREFIX(_gate) == LPC32XX_CLK__NULL ? NULL :\
gate             1424 drivers/clk/nxp/clk-lpc32xx.c 			hw = &clk_hw->hw0.gate.hw;
gate             1440 drivers/clk/nxp/clk-lpc32xx.c 		gate0 = clk_hw->hw1.gate;
gate             1475 drivers/clk/nxp/clk-lpc32xx.c static void __init lpc32xx_clk_div_quirk(u32 reg, u32 div_mask, u32 gate)
gate             1482 drivers/clk/nxp/clk-lpc32xx.c 		val &= ~gate;
gate             1486 drivers/clk/nxp/clk-lpc32xx.c 	regmap_update_bits(clk_regmap, reg, gate | div_mask, val);
gate               58 drivers/clk/pistachio/clk.c 				 struct pistachio_gate *gate,
gate               65 drivers/clk/pistachio/clk.c 		clk = clk_register_gate(NULL, gate[i].name, gate[i].parent,
gate               67 drivers/clk/pistachio/clk.c 					p->base + gate[i].reg, gate[i].shift,
gate               69 drivers/clk/pistachio/clk.c 		p->clk_data.clks[gate[i].id] = clk;
gate              152 drivers/clk/pistachio/clk.h 					struct pistachio_gate *gate,
gate               50 drivers/clk/pxa/clk-pxa.c 	struct clk_gate gate;
gate              108 drivers/clk/pxa/clk-pxa.c 		pxa_clk->gate = clks[i].gate;
gate              109 drivers/clk/pxa/clk-pxa.c 		pxa_clk->gate.lock = &pxa_clk_lock;
gate              114 drivers/clk/pxa/clk-pxa.c 					     &pxa_clk->gate.hw, &clk_gate_ops,
gate              114 drivers/clk/pxa/clk-pxa.h 	struct clk_gate gate;
gate              126 drivers/clk/pxa/clk-pxa.h 	  .gate = { .reg = (void __iomem *)_cken_reg, .bit_idx = _cken_bit }, \
gate              169 drivers/clk/renesas/clk-rcar-gen2.c 	struct clk_gate *gate;
gate              179 drivers/clk/renesas/clk-rcar-gen2.c 	gate = kzalloc(sizeof(*gate), GFP_KERNEL);
gate              180 drivers/clk/renesas/clk-rcar-gen2.c 	if (!gate) {
gate              185 drivers/clk/renesas/clk-rcar-gen2.c 	gate->reg = cpg->reg + CPG_RCANCKCR;
gate              186 drivers/clk/renesas/clk-rcar-gen2.c 	gate->bit_idx = 8;
gate              187 drivers/clk/renesas/clk-rcar-gen2.c 	gate->flags = CLK_GATE_SET_TO_DISABLE;
gate              188 drivers/clk/renesas/clk-rcar-gen2.c 	gate->lock = &cpg->lock;
gate              192 drivers/clk/renesas/clk-rcar-gen2.c 				     &gate->hw, &clk_gate_ops, 0);
gate              194 drivers/clk/renesas/clk-rcar-gen2.c 		kfree(gate);
gate              212 drivers/clk/renesas/clk-rcar-gen2.c 	struct clk_gate *gate;
gate              224 drivers/clk/renesas/clk-rcar-gen2.c 	gate = kzalloc(sizeof(*gate), GFP_KERNEL);
gate              225 drivers/clk/renesas/clk-rcar-gen2.c 	if (!gate) {
gate              230 drivers/clk/renesas/clk-rcar-gen2.c 	gate->reg = cpg->reg + CPG_ADSPCKCR;
gate              231 drivers/clk/renesas/clk-rcar-gen2.c 	gate->bit_idx = 8;
gate              232 drivers/clk/renesas/clk-rcar-gen2.c 	gate->flags = CLK_GATE_SET_TO_DISABLE;
gate              233 drivers/clk/renesas/clk-rcar-gen2.c 	gate->lock = &cpg->lock;
gate              237 drivers/clk/renesas/clk-rcar-gen2.c 				     &gate->hw, &clk_gate_ops, 0);
gate              239 drivers/clk/renesas/clk-rcar-gen2.c 		kfree(gate);
gate               27 drivers/clk/renesas/r9a06g032-clocks.c 	u16 gate, reset, ready, midle,
gate               40 drivers/clk/renesas/r9a06g032-clocks.c 		struct r9a06g032_gate gate;
gate               61 drivers/clk/renesas/r9a06g032-clocks.c 	{ .gate = _clk, .reset = _rst, \
gate               67 drivers/clk/renesas/r9a06g032-clocks.c 		.gate = I_GATE(__VA_ARGS__) }
gate               71 drivers/clk/renesas/r9a06g032-clocks.c 		.managed = 1, .gate = I_GATE(__VA_ARGS__) }
gate              350 drivers/clk/renesas/r9a06g032-clocks.c 	struct r9a06g032_gate gate;
gate              440 drivers/clk/renesas/r9a06g032-clocks.c 	WARN_ON(!g->gate);
gate              443 drivers/clk/renesas/r9a06g032-clocks.c 	clk_rdesc_set(clocks, g->gate, on);
gate              472 drivers/clk/renesas/r9a06g032-clocks.c 	r9a06g032_clk_gate_set(g->clocks, &g->gate, 1);
gate              480 drivers/clk/renesas/r9a06g032-clocks.c 	r9a06g032_clk_gate_set(g->clocks, &g->gate, 0);
gate              488 drivers/clk/renesas/r9a06g032-clocks.c 	if (g->gate.reset && !clk_rdesc_get(g->clocks, g->gate.reset))
gate              491 drivers/clk/renesas/r9a06g032-clocks.c 	return clk_rdesc_get(g->clocks, g->gate.gate);
gate              521 drivers/clk/renesas/r9a06g032-clocks.c 	g->gate = desc->gate;
gate              796 drivers/clk/renesas/r9a06g032-clocks.c 	struct r9a06g032_gate gate[2];
gate              808 drivers/clk/renesas/r9a06g032-clocks.c 	r9a06g032_clk_gate_set(g->clocks, &g->gate[!sel_bit], 0);
gate              809 drivers/clk/renesas/r9a06g032-clocks.c 	r9a06g032_clk_gate_set(g->clocks, &g->gate[sel_bit], enable);
gate              816 drivers/clk/renesas/r9a06g032-clocks.c 	struct r9a06g032_clk_dualgate *gate = to_clk_dualgate(hw);
gate              818 drivers/clk/renesas/r9a06g032-clocks.c 	r9a06g032_clk_dualgate_setenable(gate, 1);
gate              825 drivers/clk/renesas/r9a06g032-clocks.c 	struct r9a06g032_clk_dualgate *gate = to_clk_dualgate(hw);
gate              827 drivers/clk/renesas/r9a06g032-clocks.c 	r9a06g032_clk_dualgate_setenable(gate, 0);
gate              835 drivers/clk/renesas/r9a06g032-clocks.c 	return clk_rdesc_get(g->clocks, g->gate[sel_bit].gate);
gate              861 drivers/clk/renesas/r9a06g032-clocks.c 	g->gate[0].gate = desc->dual.g1;
gate              862 drivers/clk/renesas/r9a06g032-clocks.c 	g->gate[0].reset = desc->dual.r1;
gate              863 drivers/clk/renesas/r9a06g032-clocks.c 	g->gate[1].gate = desc->dual.g2;
gate              864 drivers/clk/renesas/r9a06g032-clocks.c 	g->gate[1].reset = desc->dual.r2;
gate              167 drivers/clk/renesas/rcar-gen2-cpg.c 	struct clk_gate *gate;
gate              177 drivers/clk/renesas/rcar-gen2-cpg.c 	gate = kzalloc(sizeof(*gate), GFP_KERNEL);
gate              178 drivers/clk/renesas/rcar-gen2-cpg.c 	if (!gate) {
gate              183 drivers/clk/renesas/rcar-gen2-cpg.c 	gate->reg = base + CPG_RCANCKCR;
gate              184 drivers/clk/renesas/rcar-gen2-cpg.c 	gate->bit_idx = 8;
gate              185 drivers/clk/renesas/rcar-gen2-cpg.c 	gate->flags = CLK_GATE_SET_TO_DISABLE;
gate              186 drivers/clk/renesas/rcar-gen2-cpg.c 	gate->lock = &cpg_lock;
gate              190 drivers/clk/renesas/rcar-gen2-cpg.c 				     &gate->hw, &clk_gate_ops, 0);
gate              192 drivers/clk/renesas/rcar-gen2-cpg.c 		kfree(gate);
gate              211 drivers/clk/renesas/rcar-gen2-cpg.c 	struct clk_gate *gate;
gate              223 drivers/clk/renesas/rcar-gen2-cpg.c 	gate = kzalloc(sizeof(*gate), GFP_KERNEL);
gate              224 drivers/clk/renesas/rcar-gen2-cpg.c 	if (!gate) {
gate              229 drivers/clk/renesas/rcar-gen2-cpg.c 	gate->reg = base + CPG_ADSPCKCR;
gate              230 drivers/clk/renesas/rcar-gen2-cpg.c 	gate->bit_idx = 8;
gate              231 drivers/clk/renesas/rcar-gen2-cpg.c 	gate->flags = CLK_GATE_SET_TO_DISABLE;
gate              232 drivers/clk/renesas/rcar-gen2-cpg.c 	gate->lock = &cpg_lock;
gate              236 drivers/clk/renesas/rcar-gen2-cpg.c 				     &gate->hw, &clk_gate_ops, 0);
gate              238 drivers/clk/renesas/rcar-gen2-cpg.c 		kfree(gate);
gate              426 drivers/clk/renesas/rcar-gen3-cpg.c 	struct clk_gate gate;
gate              458 drivers/clk/renesas/rcar-gen3-cpg.c 	rpc->gate.reg = base + CPG_RPCCKCR;
gate              459 drivers/clk/renesas/rcar-gen3-cpg.c 	rpc->gate.bit_idx = 8;
gate              460 drivers/clk/renesas/rcar-gen3-cpg.c 	rpc->gate.flags = CLK_GATE_SET_TO_DISABLE;
gate              461 drivers/clk/renesas/rcar-gen3-cpg.c 	rpc->gate.lock = &cpg_lock;
gate              467 drivers/clk/renesas/rcar-gen3-cpg.c 				     &rpc->gate.hw, &clk_gate_ops,
gate              480 drivers/clk/renesas/rcar-gen3-cpg.c 	struct clk_gate gate;
gate              497 drivers/clk/renesas/rcar-gen3-cpg.c 	rpcd2->gate.reg = base + CPG_RPCCKCR;
gate              498 drivers/clk/renesas/rcar-gen3-cpg.c 	rpcd2->gate.bit_idx = 9;
gate              499 drivers/clk/renesas/rcar-gen3-cpg.c 	rpcd2->gate.flags = CLK_GATE_SET_TO_DISABLE;
gate              500 drivers/clk/renesas/rcar-gen3-cpg.c 	rpcd2->gate.lock = &cpg_lock;
gate              504 drivers/clk/renesas/rcar-gen3-cpg.c 				     &rpcd2->gate.hw, &clk_gate_ops,
gate              172 drivers/clk/rockchip/clk-half-divider.c 	struct clk_gate *gate = NULL;
gate              192 drivers/clk/rockchip/clk-half-divider.c 		gate = kzalloc(sizeof(*gate), GFP_KERNEL);
gate              193 drivers/clk/rockchip/clk-half-divider.c 		if (!gate)
gate              196 drivers/clk/rockchip/clk-half-divider.c 		gate->flags = gate_flags;
gate              197 drivers/clk/rockchip/clk-half-divider.c 		gate->reg = base + gate_offset;
gate              198 drivers/clk/rockchip/clk-half-divider.c 		gate->bit_idx = gate_shift;
gate              199 drivers/clk/rockchip/clk-half-divider.c 		gate->lock = lock;
gate              219 drivers/clk/rockchip/clk-half-divider.c 				     gate ? &gate->hw : NULL, gate_ops,
gate              224 drivers/clk/rockchip/clk-half-divider.c 	kfree(gate);
gate               48 drivers/clk/rockchip/clk.c 	struct clk_gate *gate = NULL;
gate               69 drivers/clk/rockchip/clk.c 		gate = kzalloc(sizeof(*gate), GFP_KERNEL);
gate               70 drivers/clk/rockchip/clk.c 		if (!gate) {
gate               75 drivers/clk/rockchip/clk.c 		gate->flags = gate_flags;
gate               76 drivers/clk/rockchip/clk.c 		gate->reg = base + gate_offset;
gate               77 drivers/clk/rockchip/clk.c 		gate->bit_idx = gate_shift;
gate               78 drivers/clk/rockchip/clk.c 		gate->lock = lock;
gate              106 drivers/clk/rockchip/clk.c 				     gate ? &gate->hw : NULL, gate_ops,
gate              118 drivers/clk/rockchip/clk.c 	kfree(gate);
gate              127 drivers/clk/rockchip/clk.c 	struct clk_gate				gate;
gate              219 drivers/clk/rockchip/clk.c 	struct clk_gate *gate = NULL;
gate              237 drivers/clk/rockchip/clk.c 		gate = &frac->gate;
gate              238 drivers/clk/rockchip/clk.c 		gate->flags = gate_flags;
gate              239 drivers/clk/rockchip/clk.c 		gate->reg = base + gate_offset;
gate              240 drivers/clk/rockchip/clk.c 		gate->bit_idx = gate_shift;
gate              241 drivers/clk/rockchip/clk.c 		gate->lock = lock;
gate              261 drivers/clk/rockchip/clk.c 				     gate ? &gate->hw : NULL, gate_ops,
gate              324 drivers/clk/rockchip/clk.c 	struct clk_gate *gate = NULL;
gate              334 drivers/clk/rockchip/clk.c 	gate = kzalloc(sizeof(*gate), GFP_KERNEL);
gate              335 drivers/clk/rockchip/clk.c 	if (!gate)
gate              338 drivers/clk/rockchip/clk.c 	gate->flags = gate_flags;
gate              339 drivers/clk/rockchip/clk.c 	gate->reg = base + gate_offset;
gate              340 drivers/clk/rockchip/clk.c 	gate->bit_idx = gate_shift;
gate              341 drivers/clk/rockchip/clk.c 	gate->lock = lock;
gate              345 drivers/clk/rockchip/clk.c 		kfree(gate);
gate              355 drivers/clk/rockchip/clk.c 				     &gate->hw, &clk_gate_ops, flags);
gate              358 drivers/clk/rockchip/clk.c 		kfree(gate);
gate               27 drivers/clk/samsung/clk-exynos-clkout.c 	struct clk_gate gate;
gate               91 drivers/clk/samsung/clk-exynos-clkout.c 	clkout->gate.reg = clkout->reg + EXYNOS_PMU_DEBUG_REG;
gate               92 drivers/clk/samsung/clk-exynos-clkout.c 	clkout->gate.bit_idx = EXYNOS_CLKOUT_DISABLE_SHIFT;
gate               93 drivers/clk/samsung/clk-exynos-clkout.c 	clkout->gate.flags = CLK_GATE_SET_TO_DISABLE;
gate               94 drivers/clk/samsung/clk-exynos-clkout.c 	clkout->gate.lock = &clkout->slock;
gate              103 drivers/clk/samsung/clk-exynos-clkout.c 				&clk_mux_ops, NULL, NULL, &clkout->gate.hw,
gate              646 drivers/clk/st/clkgen-pll.c 	struct clk_gate *gate;
gate              651 drivers/clk/st/clkgen-pll.c 	gate = kzalloc(sizeof(*gate), GFP_KERNEL);
gate              652 drivers/clk/st/clkgen-pll.c 	if (!gate)
gate              655 drivers/clk/st/clkgen-pll.c 	gate->flags = CLK_GATE_SET_TO_DISABLE;
gate              656 drivers/clk/st/clkgen-pll.c 	gate->reg = reg + pll_data->odf_gate[odf].offset;
gate              657 drivers/clk/st/clkgen-pll.c 	gate->bit_idx = pll_data->odf_gate[odf].shift;
gate              658 drivers/clk/st/clkgen-pll.c 	gate->lock = odf_lock;
gate              662 drivers/clk/st/clkgen-pll.c 		kfree(gate);
gate              675 drivers/clk/st/clkgen-pll.c 				     &gate->hw, &clk_gate_ops,
gate               12 drivers/clk/sunxi-ng/ccu_gate.c void ccu_gate_helper_disable(struct ccu_common *common, u32 gate)
gate               17 drivers/clk/sunxi-ng/ccu_gate.c 	if (!gate)
gate               23 drivers/clk/sunxi-ng/ccu_gate.c 	writel(reg & ~gate, common->base + common->reg);
gate               35 drivers/clk/sunxi-ng/ccu_gate.c int ccu_gate_helper_enable(struct ccu_common *common, u32 gate)
gate               40 drivers/clk/sunxi-ng/ccu_gate.c 	if (!gate)
gate               46 drivers/clk/sunxi-ng/ccu_gate.c 	writel(reg | gate, common->base + common->reg);
gate               60 drivers/clk/sunxi-ng/ccu_gate.c int ccu_gate_helper_is_enabled(struct ccu_common *common, u32 gate)
gate               62 drivers/clk/sunxi-ng/ccu_gate.c 	if (!gate)
gate               65 drivers/clk/sunxi-ng/ccu_gate.c 	return readl(common->base + common->reg) & gate;
gate               91 drivers/clk/sunxi-ng/ccu_gate.h void ccu_gate_helper_disable(struct ccu_common *common, u32 gate);
gate               92 drivers/clk/sunxi-ng/ccu_gate.h int ccu_gate_helper_enable(struct ccu_common *common, u32 gate);
gate               93 drivers/clk/sunxi-ng/ccu_gate.h int ccu_gate_helper_is_enabled(struct ccu_common *common, u32 gate);
gate               21 drivers/clk/sunxi/clk-a10-hosc.c 	struct clk_gate *gate;
gate               32 drivers/clk/sunxi/clk-a10-hosc.c 	gate = kzalloc(sizeof(struct clk_gate), GFP_KERNEL);
gate               33 drivers/clk/sunxi/clk-a10-hosc.c 	if (!gate)
gate               39 drivers/clk/sunxi/clk-a10-hosc.c 	gate->reg = of_iomap(node, 0);
gate               40 drivers/clk/sunxi/clk-a10-hosc.c 	gate->bit_idx = SUNXI_OSC24M_GATE;
gate               41 drivers/clk/sunxi/clk-a10-hosc.c 	gate->lock = &hosc_lock;
gate               48 drivers/clk/sunxi/clk-a10-hosc.c 			&gate->hw, &clk_gate_ops, 0);
gate               58 drivers/clk/sunxi/clk-a10-hosc.c 	kfree(gate);
gate               25 drivers/clk/sunxi/clk-a10-mod1.c 	struct clk_gate *gate;
gate               39 drivers/clk/sunxi/clk-a10-mod1.c 	gate = kzalloc(sizeof(*gate), GFP_KERNEL);
gate               40 drivers/clk/sunxi/clk-a10-mod1.c 	if (!gate)
gate               46 drivers/clk/sunxi/clk-a10-mod1.c 	gate->reg = reg;
gate               47 drivers/clk/sunxi/clk-a10-mod1.c 	gate->bit_idx = SUN4I_MOD1_ENABLE;
gate               48 drivers/clk/sunxi/clk-a10-mod1.c 	gate->lock = &mod1_lock;
gate               57 drivers/clk/sunxi/clk-a10-mod1.c 				     &gate->hw, &clk_gate_ops, CLK_SET_RATE_PARENT);
gate               66 drivers/clk/sunxi/clk-a10-mod1.c 	kfree(gate);
gate               45 drivers/clk/sunxi/clk-a10-pll2.c 	struct clk_gate *gate;
gate               74 drivers/clk/sunxi/clk-a10-pll2.c 	gate = kzalloc(sizeof(struct clk_gate), GFP_KERNEL);
gate               75 drivers/clk/sunxi/clk-a10-pll2.c 	if (!gate)
gate               78 drivers/clk/sunxi/clk-a10-pll2.c 	gate->reg = reg;
gate               79 drivers/clk/sunxi/clk-a10-pll2.c 	gate->bit_idx = SUN4I_PLL2_ENABLE;
gate               80 drivers/clk/sunxi/clk-a10-pll2.c 	gate->lock = &sun4i_a10_pll2_lock;
gate               99 drivers/clk/sunxi/clk-a10-pll2.c 					  &gate->hw, &clk_gate_ops,
gate              170 drivers/clk/sunxi/clk-a10-pll2.c 	kfree(gate);
gate               89 drivers/clk/sunxi/clk-a10-ve.c 	struct clk_gate *gate;
gate              104 drivers/clk/sunxi/clk-a10-ve.c 	gate = kzalloc(sizeof(*gate), GFP_KERNEL);
gate              105 drivers/clk/sunxi/clk-a10-ve.c 	if (!gate)
gate              111 drivers/clk/sunxi/clk-a10-ve.c 	gate->reg = reg;
gate              112 drivers/clk/sunxi/clk-a10-ve.c 	gate->bit_idx = SUN4I_VE_ENABLE;
gate              113 drivers/clk/sunxi/clk-a10-ve.c 	gate->lock = &ve_lock;
gate              123 drivers/clk/sunxi/clk-a10-ve.c 				     &gate->hw, &clk_gate_ops,
gate              156 drivers/clk/sunxi/clk-a10-ve.c 	kfree(gate);
gate               56 drivers/clk/sunxi/clk-a20-gmac.c 	struct clk_gate *gate;
gate               69 drivers/clk/sunxi/clk-a20-gmac.c 	gate = kzalloc(sizeof(struct clk_gate), GFP_KERNEL);
gate               70 drivers/clk/sunxi/clk-a20-gmac.c 	if (!gate)
gate               82 drivers/clk/sunxi/clk-a20-gmac.c 	gate->reg = reg;
gate               83 drivers/clk/sunxi/clk-a20-gmac.c 	gate->bit_idx = SUN7I_A20_GMAC_GPIT;
gate               84 drivers/clk/sunxi/clk-a20-gmac.c 	gate->lock = &gmac_lock;
gate               94 drivers/clk/sunxi/clk-a20-gmac.c 			&gate->hw, &clk_gate_ops,
gate              107 drivers/clk/sunxi/clk-a20-gmac.c 	kfree(gate);
gate              183 drivers/clk/sunxi/clk-factors.c 	struct clk_gate *gate = NULL;
gate              216 drivers/clk/sunxi/clk-factors.c 		gate = kzalloc(sizeof(struct clk_gate), GFP_KERNEL);
gate              217 drivers/clk/sunxi/clk-factors.c 		if (!gate)
gate              220 drivers/clk/sunxi/clk-factors.c 		factors->gate = gate;
gate              223 drivers/clk/sunxi/clk-factors.c 		gate->reg = reg;
gate              224 drivers/clk/sunxi/clk-factors.c 		gate->bit_idx = data->enable;
gate              225 drivers/clk/sunxi/clk-factors.c 		gate->lock = factors->lock;
gate              226 drivers/clk/sunxi/clk-factors.c 		gate_hw = &gate->hw;
gate              265 drivers/clk/sunxi/clk-factors.c 	kfree(gate);
gate              302 drivers/clk/sunxi/clk-factors.c 	kfree(factors->gate);
gate               51 drivers/clk/sunxi/clk-factors.h 	struct clk_gate *gate;
gate              108 drivers/clk/sunxi/clk-sun4i-display.c 	struct clk_gate *gate;
gate              138 drivers/clk/sunxi/clk-sun4i-display.c 	gate = kzalloc(sizeof(*gate), GFP_KERNEL);
gate              139 drivers/clk/sunxi/clk-sun4i-display.c 	if (!gate)
gate              142 drivers/clk/sunxi/clk-sun4i-display.c 	gate->reg = reg;
gate              143 drivers/clk/sunxi/clk-sun4i-display.c 	gate->bit_idx = data->offset_en;
gate              144 drivers/clk/sunxi/clk-sun4i-display.c 	gate->lock = &sun4i_a10_display_lock;
gate              162 drivers/clk/sunxi/clk-sun4i-display.c 				     &gate->hw, &clk_gate_ops,
gate              213 drivers/clk/sunxi/clk-sun4i-display.c 	kfree(gate);
gate               25 drivers/clk/sunxi/clk-sun4i-pll3.c 	struct clk_gate *gate;
gate               40 drivers/clk/sunxi/clk-sun4i-pll3.c 	gate = kzalloc(sizeof(*gate), GFP_KERNEL);
gate               41 drivers/clk/sunxi/clk-sun4i-pll3.c 	if (!gate)
gate               44 drivers/clk/sunxi/clk-sun4i-pll3.c 	gate->reg = reg;
gate               45 drivers/clk/sunxi/clk-sun4i-pll3.c 	gate->bit_idx = SUN4I_A10_PLL3_GATE_BIT;
gate               46 drivers/clk/sunxi/clk-sun4i-pll3.c 	gate->lock = &sun4i_a10_pll3_lock;
gate               61 drivers/clk/sunxi/clk-sun4i-pll3.c 				     &gate->hw, &clk_gate_ops,
gate               82 drivers/clk/sunxi/clk-sun4i-pll3.c 	kfree(gate);
gate               31 drivers/clk/sunxi/clk-sun8i-mbus.c 	struct clk_gate *gate;
gate               55 drivers/clk/sunxi/clk-sun8i-mbus.c 	gate = kzalloc(sizeof(*gate), GFP_KERNEL);
gate               56 drivers/clk/sunxi/clk-sun8i-mbus.c 	if (!gate)
gate               62 drivers/clk/sunxi/clk-sun8i-mbus.c 	gate->reg = reg;
gate               63 drivers/clk/sunxi/clk-sun8i-mbus.c 	gate->bit_idx = SUN8I_MBUS_ENABLE;
gate               64 drivers/clk/sunxi/clk-sun8i-mbus.c 	gate->lock = &sun8i_a23_mbus_lock;
gate               80 drivers/clk/sunxi/clk-sun8i-mbus.c 				     &gate->hw, &clk_gate_ops,
gate               97 drivers/clk/sunxi/clk-sun8i-mbus.c 	kfree(gate);
gate              888 drivers/clk/sunxi/clk-sunxi.c 		u8 gate;  /* is it independently gateable? */
gate              916 drivers/clk/sunxi/clk-sunxi.c 		{ .shift = 0, .table = pll6_sata_tbl, .gate = 14 }, /* M, SATA */
gate              952 drivers/clk/sunxi/clk-sunxi.c 	struct clk_gate *gate = NULL;
gate             1035 drivers/clk/sunxi/clk-sunxi.c 		if (data->div[i].gate) {
gate             1036 drivers/clk/sunxi/clk-sunxi.c 			gate = kzalloc(sizeof(*gate), GFP_KERNEL);
gate             1037 drivers/clk/sunxi/clk-sunxi.c 			if (!gate)
gate             1040 drivers/clk/sunxi/clk-sunxi.c 			gate->reg = reg;
gate             1041 drivers/clk/sunxi/clk-sunxi.c 			gate->bit_idx = data->div[i].gate;
gate             1042 drivers/clk/sunxi/clk-sunxi.c 			gate->lock = &clk_lock;
gate             1044 drivers/clk/sunxi/clk-sunxi.c 			gate_hw = &gate->hw;
gate             1100 drivers/clk/sunxi/clk-sunxi.c 	kfree(gate);
gate               19 drivers/clk/tegra/clk-periph-gate.c #define read_enb(gate) \
gate               20 drivers/clk/tegra/clk-periph-gate.c 	readl_relaxed(gate->clk_base + (gate->regs->enb_reg))
gate               21 drivers/clk/tegra/clk-periph-gate.c #define write_enb_set(val, gate) \
gate               22 drivers/clk/tegra/clk-periph-gate.c 	writel_relaxed(val, gate->clk_base + (gate->regs->enb_set_reg))
gate               23 drivers/clk/tegra/clk-periph-gate.c #define write_enb_clr(val, gate) \
gate               24 drivers/clk/tegra/clk-periph-gate.c 	writel_relaxed(val, gate->clk_base + (gate->regs->enb_clr_reg))
gate               26 drivers/clk/tegra/clk-periph-gate.c #define read_rst(gate) \
gate               27 drivers/clk/tegra/clk-periph-gate.c 	readl_relaxed(gate->clk_base + (gate->regs->rst_reg))
gate               28 drivers/clk/tegra/clk-periph-gate.c #define write_rst_clr(val, gate) \
gate               29 drivers/clk/tegra/clk-periph-gate.c 	writel_relaxed(val, gate->clk_base + (gate->regs->rst_clr_reg))
gate               31 drivers/clk/tegra/clk-periph-gate.c #define periph_clk_to_bit(gate) (1 << (gate->clk_num % 32))
gate               38 drivers/clk/tegra/clk-periph-gate.c 	struct tegra_clk_periph_gate *gate = to_clk_periph_gate(hw);
gate               41 drivers/clk/tegra/clk-periph-gate.c 	if (!(read_enb(gate) & periph_clk_to_bit(gate)))
gate               44 drivers/clk/tegra/clk-periph-gate.c 	if (!(gate->flags & TEGRA_PERIPH_NO_RESET))
gate               45 drivers/clk/tegra/clk-periph-gate.c 		if (read_rst(gate) & periph_clk_to_bit(gate))
gate               53 drivers/clk/tegra/clk-periph-gate.c 	struct tegra_clk_periph_gate *gate = to_clk_periph_gate(hw);
gate               58 drivers/clk/tegra/clk-periph-gate.c 	gate->enable_refcnt[gate->clk_num]++;
gate               59 drivers/clk/tegra/clk-periph-gate.c 	if (gate->enable_refcnt[gate->clk_num] > 1) {
gate               64 drivers/clk/tegra/clk-periph-gate.c 	write_enb_set(periph_clk_to_bit(gate), gate);
gate               67 drivers/clk/tegra/clk-periph-gate.c 	if (!(gate->flags & TEGRA_PERIPH_NO_RESET) &&
gate               68 drivers/clk/tegra/clk-periph-gate.c 	    !(gate->flags & TEGRA_PERIPH_MANUAL_RESET)) {
gate               69 drivers/clk/tegra/clk-periph-gate.c 		if (read_rst(gate) & periph_clk_to_bit(gate)) {
gate               71 drivers/clk/tegra/clk-periph-gate.c 			write_rst_clr(periph_clk_to_bit(gate), gate);
gate               75 drivers/clk/tegra/clk-periph-gate.c 	if (gate->flags & TEGRA_PERIPH_WAR_1005168) {
gate               76 drivers/clk/tegra/clk-periph-gate.c 		writel_relaxed(0, gate->clk_base + LVL2_CLK_GATE_OVRE);
gate               77 drivers/clk/tegra/clk-periph-gate.c 		writel_relaxed(BIT(22), gate->clk_base + LVL2_CLK_GATE_OVRE);
gate               79 drivers/clk/tegra/clk-periph-gate.c 		writel_relaxed(0, gate->clk_base + LVL2_CLK_GATE_OVRE);
gate               89 drivers/clk/tegra/clk-periph-gate.c 	struct tegra_clk_periph_gate *gate = to_clk_periph_gate(hw);
gate               94 drivers/clk/tegra/clk-periph-gate.c 	gate->enable_refcnt[gate->clk_num]--;
gate               95 drivers/clk/tegra/clk-periph-gate.c 	if (gate->enable_refcnt[gate->clk_num] > 0) {
gate              105 drivers/clk/tegra/clk-periph-gate.c 	if (gate->flags & TEGRA_PERIPH_ON_APB)
gate              108 drivers/clk/tegra/clk-periph-gate.c 	write_enb_clr(periph_clk_to_bit(gate), gate);
gate              123 drivers/clk/tegra/clk-periph-gate.c 	struct tegra_clk_periph_gate *gate;
gate              132 drivers/clk/tegra/clk-periph-gate.c 	gate = kzalloc(sizeof(*gate), GFP_KERNEL);
gate              133 drivers/clk/tegra/clk-periph-gate.c 	if (!gate) {
gate              144 drivers/clk/tegra/clk-periph-gate.c 	gate->magic = TEGRA_CLK_PERIPH_GATE_MAGIC;
gate              145 drivers/clk/tegra/clk-periph-gate.c 	gate->clk_base = clk_base;
gate              146 drivers/clk/tegra/clk-periph-gate.c 	gate->clk_num = clk_num;
gate              147 drivers/clk/tegra/clk-periph-gate.c 	gate->flags = gate_flags;
gate              148 drivers/clk/tegra/clk-periph-gate.c 	gate->enable_refcnt = enable_refcnt;
gate              149 drivers/clk/tegra/clk-periph-gate.c 	gate->regs = pregs;
gate              151 drivers/clk/tegra/clk-periph-gate.c 	if (read_enb(gate) & periph_clk_to_bit(gate))
gate              155 drivers/clk/tegra/clk-periph-gate.c 	gate->hw.init = &init;
gate              157 drivers/clk/tegra/clk-periph-gate.c 	clk = clk_register(NULL, &gate->hw);
gate              159 drivers/clk/tegra/clk-periph-gate.c 		kfree(gate);
gate               75 drivers/clk/tegra/clk-periph.c 	struct clk_hw *gate_hw = &periph->gate.hw;
gate               86 drivers/clk/tegra/clk-periph.c 	struct clk_hw *gate_hw = &periph->gate.hw;
gate               97 drivers/clk/tegra/clk-periph.c 	struct clk_hw *gate_hw = &periph->gate.hw;
gate              138 drivers/clk/tegra/clk-periph.c 	bool div = !(periph->gate.flags & TEGRA_PERIPH_NO_DIV);
gate              140 drivers/clk/tegra/clk-periph.c 	if (periph->gate.flags & TEGRA_PERIPH_NO_DIV) {
gate              143 drivers/clk/tegra/clk-periph.c 	} else if (periph->gate.flags & TEGRA_PERIPH_NO_GATE)
gate              153 drivers/clk/tegra/clk-periph.c 	bank = get_reg_bank(periph->gate.clk_num);
gate              162 drivers/clk/tegra/clk-periph.c 	periph->gate.clk_base = clk_base;
gate              163 drivers/clk/tegra/clk-periph.c 	periph->gate.regs = bank;
gate              164 drivers/clk/tegra/clk-periph.c 	periph->gate.enable_refcnt = periph_clk_enb_refcnt;
gate              172 drivers/clk/tegra/clk-periph.c 	periph->gate.hw.clk = clk;
gate              191 drivers/clk/tegra/clk-periph.c 	periph->gate.flags |= TEGRA_PERIPH_NO_DIV;
gate              170 drivers/clk/tegra/clk-sdmmc-mux.c 	struct clk_hw *gate_hw = &sdmmc_mux->gate.hw;
gate              181 drivers/clk/tegra/clk-sdmmc-mux.c 	struct clk_hw *gate_hw = &sdmmc_mux->gate.hw;
gate              192 drivers/clk/tegra/clk-sdmmc-mux.c 	struct clk_hw *gate_hw = &sdmmc_mux->gate.hw;
gate              235 drivers/clk/tegra/clk-sdmmc-mux.c 	sdmmc_mux->gate.clk_base = clk_base;
gate              236 drivers/clk/tegra/clk-sdmmc-mux.c 	sdmmc_mux->gate.regs = bank;
gate              237 drivers/clk/tegra/clk-sdmmc-mux.c 	sdmmc_mux->gate.enable_refcnt = periph_clk_enb_refcnt;
gate              238 drivers/clk/tegra/clk-sdmmc-mux.c 	sdmmc_mux->gate.clk_num = clk_num;
gate              239 drivers/clk/tegra/clk-sdmmc-mux.c 	sdmmc_mux->gate.flags = TEGRA_PERIPH_ON_APB;
gate              249 drivers/clk/tegra/clk-sdmmc-mux.c 	sdmmc_mux->gate.hw.clk = clk;
gate              889 drivers/clk/tegra/clk-tegra-periph.c 		bank = get_reg_bank(data->periph.gate.clk_num);
gate              893 drivers/clk/tegra/clk-tegra-periph.c 		data->periph.gate.regs = bank;
gate              916 drivers/clk/tegra/clk-tegra-periph.c 				data->p.parent_name, data->periph.gate.flags,
gate              918 drivers/clk/tegra/clk-tegra-periph.c 				data->periph.gate.clk_num,
gate              560 drivers/clk/tegra/clk.h 	struct tegra_clk_periph_gate	gate;
gate              600 drivers/clk/tegra/clk.h 		.gate = {						\
gate              714 drivers/clk/tegra/clk.h 	struct tegra_clk_periph_gate	gate;
gate              163 drivers/clk/ti/adpll.c 	struct clk_gate gate;
gate              551 drivers/clk/ti/adpll.c 	struct clk_hw *gate_hw = &co->gate.hw;
gate              561 drivers/clk/ti/adpll.c 	struct clk_hw *gate_hw = &co->gate.hw;
gate              570 drivers/clk/ti/adpll.c 	struct clk_hw *gate_hw = &co->gate.hw;
gate              628 drivers/clk/ti/adpll.c 		co->gate.lock = &d->lock;
gate              629 drivers/clk/ti/adpll.c 		co->gate.reg = d->regs + ADPLL_CLKCTRL_OFFSET;
gate              630 drivers/clk/ti/adpll.c 		co->gate.bit_idx = gate_bit;
gate              178 drivers/clk/ti/gate.c 	struct clk_hw_omap *gate;
gate              181 drivers/clk/ti/gate.c 	gate = kzalloc(sizeof(*gate), GFP_KERNEL);
gate              182 drivers/clk/ti/gate.c 	if (!gate)
gate              185 drivers/clk/ti/gate.c 	if (ti_clk_get_reg_addr(node, 0, &gate->enable_reg))
gate              190 drivers/clk/ti/gate.c 	gate->enable_bit = val;
gate              191 drivers/clk/ti/gate.c 	gate->ops = hw_ops;
gate              193 drivers/clk/ti/gate.c 	if (!ti_clk_add_component(node, &gate->hw, CLK_COMPONENT_TYPE_GATE))
gate              197 drivers/clk/ti/gate.c 	kfree(gate);
gate               32 drivers/clk/uniphier/clk-uniphier-core.c 						  &data->data.gate);
gate               25 drivers/clk/uniphier/clk-uniphier-gate.c 	struct uniphier_clk_gate *gate = to_uniphier_clk_gate(hw);
gate               27 drivers/clk/uniphier/clk-uniphier-gate.c 	return regmap_write_bits(gate->regmap, gate->reg, BIT(gate->bit),
gate               28 drivers/clk/uniphier/clk-uniphier-gate.c 				 enable ? BIT(gate->bit) : 0);
gate               44 drivers/clk/uniphier/clk-uniphier-gate.c 	struct uniphier_clk_gate *gate = to_uniphier_clk_gate(hw);
gate               47 drivers/clk/uniphier/clk-uniphier-gate.c 	if (regmap_read(gate->regmap, gate->reg, &val) < 0)
gate               50 drivers/clk/uniphier/clk-uniphier-gate.c 	return !!(val & BIT(gate->bit));
gate               64 drivers/clk/uniphier/clk-uniphier-gate.c 	struct uniphier_clk_gate *gate;
gate               68 drivers/clk/uniphier/clk-uniphier-gate.c 	gate = devm_kzalloc(dev, sizeof(*gate), GFP_KERNEL);
gate               69 drivers/clk/uniphier/clk-uniphier-gate.c 	if (!gate)
gate               78 drivers/clk/uniphier/clk-uniphier-gate.c 	gate->regmap = regmap;
gate               79 drivers/clk/uniphier/clk-uniphier-gate.c 	gate->reg = data->reg;
gate               80 drivers/clk/uniphier/clk-uniphier-gate.c 	gate->bit = data->bit;
gate               81 drivers/clk/uniphier/clk-uniphier-gate.c 	gate->hw.init = &init;
gate               83 drivers/clk/uniphier/clk-uniphier-gate.c 	ret = devm_clk_hw_register(dev, &gate->hw);
gate               87 drivers/clk/uniphier/clk-uniphier-gate.c 	return &gate->hw;
gate               64 drivers/clk/uniphier/clk-uniphier.h 		struct uniphier_clk_gate_data gate;
gate              100 drivers/clk/uniphier/clk-uniphier.h 		.data.gate = {					\
gate              609 drivers/clk/zte/clk-zx296718.c 					&top_gate_clk[i].gate.hw;
gate              611 drivers/clk/zte/clk-zx296718.c 		top_gate_clk[i].gate.reg += (uintptr_t)reg_base;
gate              612 drivers/clk/zte/clk-zx296718.c 		name = top_gate_clk[i].gate.hw.init->name;
gate              613 drivers/clk/zte/clk-zx296718.c 		ret = clk_hw_register(NULL, &top_gate_clk[i].gate.hw);
gate              776 drivers/clk/zte/clk-zx296718.c 					&lsp0_gate_clk[i].gate.hw;
gate              778 drivers/clk/zte/clk-zx296718.c 		lsp0_gate_clk[i].gate.reg += (uintptr_t)reg_base;
gate              779 drivers/clk/zte/clk-zx296718.c 		name = lsp0_gate_clk[i].gate.hw.init->name;
gate              780 drivers/clk/zte/clk-zx296718.c 		ret = clk_hw_register(NULL, &lsp0_gate_clk[i].gate.hw);
gate              882 drivers/clk/zte/clk-zx296718.c 					&lsp1_gate_clk[i].gate.hw;
gate              884 drivers/clk/zte/clk-zx296718.c 		lsp1_gate_clk[i].gate.reg += (uintptr_t)reg_base;
gate              885 drivers/clk/zte/clk-zx296718.c 		name = lsp1_gate_clk[i].gate.hw.init->name;
gate              886 drivers/clk/zte/clk-zx296718.c 		ret = clk_hw_register(NULL, &lsp1_gate_clk[i].gate.hw);
gate             1021 drivers/clk/zte/clk-zx296718.c 					&audio_gate_clk[i].gate.hw;
gate             1023 drivers/clk/zte/clk-zx296718.c 		audio_gate_clk[i].gate.reg += (uintptr_t)reg_base;
gate             1024 drivers/clk/zte/clk-zx296718.c 		name = audio_gate_clk[i].gate.hw.init->name;
gate             1025 drivers/clk/zte/clk-zx296718.c 		ret = clk_hw_register(NULL, &audio_gate_clk[i].gate.hw);
gate               56 drivers/clk/zte/clk.h 	struct clk_gate gate;
gate               62 drivers/clk/zte/clk.h 	.gate = {							\
gate               36 drivers/clk/zynqmp/clk-gate-zynqmp.c 	struct zynqmp_clk_gate *gate = to_zynqmp_clk_gate(hw);
gate               38 drivers/clk/zynqmp/clk-gate-zynqmp.c 	u32 clk_id = gate->clk_id;
gate               57 drivers/clk/zynqmp/clk-gate-zynqmp.c 	struct zynqmp_clk_gate *gate = to_zynqmp_clk_gate(hw);
gate               59 drivers/clk/zynqmp/clk-gate-zynqmp.c 	u32 clk_id = gate->clk_id;
gate               78 drivers/clk/zynqmp/clk-gate-zynqmp.c 	struct zynqmp_clk_gate *gate = to_zynqmp_clk_gate(hw);
gate               80 drivers/clk/zynqmp/clk-gate-zynqmp.c 	u32 clk_id = gate->clk_id;
gate              115 drivers/clk/zynqmp/clk-gate-zynqmp.c 	struct zynqmp_clk_gate *gate;
gate              121 drivers/clk/zynqmp/clk-gate-zynqmp.c 	gate = kzalloc(sizeof(*gate), GFP_KERNEL);
gate              122 drivers/clk/zynqmp/clk-gate-zynqmp.c 	if (!gate)
gate              132 drivers/clk/zynqmp/clk-gate-zynqmp.c 	gate->flags = nodes->type_flag;
gate              133 drivers/clk/zynqmp/clk-gate-zynqmp.c 	gate->hw.init = &init;
gate              134 drivers/clk/zynqmp/clk-gate-zynqmp.c 	gate->clk_id = clk_id;
gate              136 drivers/clk/zynqmp/clk-gate-zynqmp.c 	hw = &gate->hw;
gate              139 drivers/clk/zynqmp/clk-gate-zynqmp.c 		kfree(gate);
gate              941 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c int amdgpu_dpm_set_powergating_by_smu(struct amdgpu_device *adev, uint32_t block_type, bool gate)
gate              953 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c 			ret = smu_dpm_set_power_gate(&adev->smu, block_type, gate);
gate              956 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c 				(adev)->powerplay.pp_handle, block_type, gate));
gate              961 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c 				(adev)->powerplay.pp_handle, block_type, gate));
gate              520 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h 				      uint32_t block_type, bool gate);
gate             1213 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	bool gate = false;
gate             1217 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		gate = true;
gate             1219 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	cik_enable_sdma_mgcg(adev, gate);
gate             1220 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	cik_enable_sdma_mgls(adev, gate);
gate             3426 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	bool gate = false;
gate             3430 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		gate = true;
gate             3433 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	if (gate) {
gate             3448 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	bool gate = false;
gate             3452 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		gate = true;
gate             3460 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		gfx_v6_0_update_gfx_pg(adev, gate);
gate             3462 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 			gfx_v6_0_enable_cp_pg(adev, gate);
gate             3463 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 			gfx_v6_0_enable_gds_pg(adev, gate);
gate             4936 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	bool gate = false;
gate             4940 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		gate = true;
gate             4944 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	if (gate) {
gate             4959 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	bool gate = false;
gate             4963 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		gate = true;
gate             4971 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		gfx_v7_0_update_gfx_pg(adev, gate);
gate             4973 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 			gfx_v7_0_enable_cp_pg(adev, gate);
gate             4974 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 			gfx_v7_0_enable_gds_pg(adev, gate);
gate             1301 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	bool gate = false;
gate             1305 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 		gate = true;
gate             1308 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 		gmc_v7_0_enable_mc_mgcg(adev, gate);
gate             1309 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 		gmc_v7_0_enable_mc_ls(adev, gate);
gate             1311 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	gmc_v7_0_enable_bif_mgls(adev, gate);
gate             1312 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	gmc_v7_0_enable_hdp_mgcg(adev, gate);
gate             1313 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	gmc_v7_0_enable_hdp_ls(adev, gate);
gate               67 drivers/gpu/drm/amd/amdgpu/kv_dpm.c static void kv_dpm_powergate_samu(struct amdgpu_device *adev, bool gate);
gate               68 drivers/gpu/drm/amd/amdgpu/kv_dpm.c static void kv_dpm_powergate_acp(struct amdgpu_device *adev, bool gate);
gate             1493 drivers/gpu/drm/amd/amdgpu/kv_dpm.c static int kv_update_uvd_dpm(struct amdgpu_device *adev, bool gate)
gate             1501 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 	if (!gate) {
gate             1526 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 	return kv_enable_uvd_dpm(adev, !gate);
gate             1579 drivers/gpu/drm/amd/amdgpu/kv_dpm.c static int kv_update_samu_dpm(struct amdgpu_device *adev, bool gate)
gate             1586 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 	if (!gate) {
gate             1607 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 	return kv_enable_samu_dpm(adev, !gate);
gate             1643 drivers/gpu/drm/amd/amdgpu/kv_dpm.c static int kv_update_acp_dpm(struct amdgpu_device *adev, bool gate)
gate             1650 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 	if (!gate) {
gate             1671 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 	return kv_enable_acp_dpm(adev, !gate);
gate             1674 drivers/gpu/drm/amd/amdgpu/kv_dpm.c static void kv_dpm_powergate_uvd(void *handle, bool gate)
gate             1680 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 	pi->uvd_power_gated = gate;
gate             1682 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 	if (gate) {
gate             1686 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 		kv_update_uvd_dpm(adev, gate);
gate             1695 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 		kv_update_uvd_dpm(adev, gate);
gate             1702 drivers/gpu/drm/amd/amdgpu/kv_dpm.c static void kv_dpm_powergate_vce(void *handle, bool gate)
gate             1708 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 	pi->vce_power_gated = gate;
gate             1710 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 	if (gate) {
gate             1728 drivers/gpu/drm/amd/amdgpu/kv_dpm.c static void kv_dpm_powergate_samu(struct amdgpu_device *adev, bool gate)
gate             1732 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 	if (pi->samu_power_gated == gate)
gate             1735 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 	pi->samu_power_gated = gate;
gate             1737 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 	if (gate) {
gate             1748 drivers/gpu/drm/amd/amdgpu/kv_dpm.c static void kv_dpm_powergate_acp(struct amdgpu_device *adev, bool gate)
gate             1752 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 	if (pi->acp_power_gated == gate)
gate             1758 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 	pi->acp_power_gated = gate;
gate             1760 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 	if (gate) {
gate             3315 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 				uint32_t block_type, bool gate)
gate             3319 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 		kv_dpm_powergate_uvd(handle, gate);
gate             3322 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 		kv_dpm_powergate_vce(handle, gate);
gate              553 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 	bool gate = false;
gate              559 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 		gate = true;
gate              563 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 	vce_v2_0_enable_mgcg(adev, gate, sw_cg);
gate              270 drivers/gpu/drm/amd/include/kgd_pp_interface.h 				uint32_t block_type, bool gate);
gate              417 drivers/gpu/drm/amd/powerplay/amd_powerplay.c static void pp_dpm_powergate_vce(void *handle, bool gate)
gate              429 drivers/gpu/drm/amd/powerplay/amd_powerplay.c 	hwmgr->hwmgr_func->powergate_vce(hwmgr, gate);
gate              433 drivers/gpu/drm/amd/powerplay/amd_powerplay.c static void pp_dpm_powergate_uvd(void *handle, bool gate)
gate              445 drivers/gpu/drm/amd/powerplay/amd_powerplay.c 	hwmgr->hwmgr_func->powergate_uvd(hwmgr, gate);
gate             1235 drivers/gpu/drm/amd/powerplay/amd_powerplay.c static int pp_dpm_powergate_gfx(void *handle, bool gate)
gate             1247 drivers/gpu/drm/amd/powerplay/amd_powerplay.c 	return hwmgr->hwmgr_func->powergate_gfx(hwmgr, gate);
gate             1250 drivers/gpu/drm/amd/powerplay/amd_powerplay.c static void pp_dpm_powergate_acp(void *handle, bool gate)
gate             1262 drivers/gpu/drm/amd/powerplay/amd_powerplay.c 	hwmgr->hwmgr_func->powergate_acp(hwmgr, gate);
gate             1265 drivers/gpu/drm/amd/powerplay/amd_powerplay.c static void pp_dpm_powergate_sdma(void *handle, bool gate)
gate             1277 drivers/gpu/drm/amd/powerplay/amd_powerplay.c 	hwmgr->hwmgr_func->powergate_sdma(hwmgr, gate);
gate             1281 drivers/gpu/drm/amd/powerplay/amd_powerplay.c 				uint32_t block_type, bool gate)
gate             1288 drivers/gpu/drm/amd/powerplay/amd_powerplay.c 		pp_dpm_powergate_uvd(handle, gate);
gate             1291 drivers/gpu/drm/amd/powerplay/amd_powerplay.c 		pp_dpm_powergate_vce(handle, gate);
gate             1297 drivers/gpu/drm/amd/powerplay/amd_powerplay.c 		ret = pp_dpm_powergate_gfx(handle, gate);
gate             1300 drivers/gpu/drm/amd/powerplay/amd_powerplay.c 		pp_dpm_powergate_acp(handle, gate);
gate             1303 drivers/gpu/drm/amd/powerplay/amd_powerplay.c 		pp_dpm_powergate_sdma(handle, gate);
gate              343 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c 			   bool gate)
gate              349 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c 		ret = smu_dpm_set_uvd_enable(smu, gate);
gate              352 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c 		ret = smu_dpm_set_vce_enable(smu, gate);
gate              355 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c 		ret = smu_gfx_off_control(smu, gate);
gate              358 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c 		ret = smu_powergate_sdma(smu, gate);
gate             1178 drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c static int smu10_powergate_sdma(struct pp_hwmgr *hwmgr, bool gate)
gate             1180 drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c 	if (gate)
gate              482 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h 	int (*powergate_sdma)(struct smu_context *smu, bool gate);
gate              483 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h 	int (*powergate_vcn)(struct smu_context *smu, bool gate);
gate              561 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h #define smu_powergate_sdma(smu, gate) \
gate              562 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h 	((smu)->funcs->powergate_sdma ? (smu)->funcs->powergate_sdma((smu), (gate)) : 0)
gate              563 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h #define smu_powergate_vcn(smu, gate) \
gate              564 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h 	((smu)->funcs->powergate_vcn ? (smu)->funcs->powergate_vcn((smu), (gate)) : 0)
gate              810 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h extern int smu_dpm_set_power_gate(struct smu_context *smu,uint32_t block_type, bool gate);
gate              184 drivers/gpu/drm/amd/powerplay/smu_v12_0.c static int smu_v12_0_powergate_sdma(struct smu_context *smu, bool gate)
gate              189 drivers/gpu/drm/amd/powerplay/smu_v12_0.c 	if (gate)
gate              195 drivers/gpu/drm/amd/powerplay/smu_v12_0.c static int smu_v12_0_powergate_vcn(struct smu_context *smu, bool gate)
gate              200 drivers/gpu/drm/amd/powerplay/smu_v12_0.c 	if (gate)
gate              151 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c void hibmc_set_current_gate(struct hibmc_drm_private *priv, unsigned int gate)
gate              174 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c 	writel(gate, mmio + gate_reg);
gate               55 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h 			    unsigned int gate);
gate              187 drivers/gpu/drm/radeon/ci_dpm.c static int ci_update_uvd_dpm(struct radeon_device *rdev, bool gate);
gate              764 drivers/gpu/drm/radeon/ci_dpm.c void ci_dpm_powergate_uvd(struct radeon_device *rdev, bool gate)
gate              768 drivers/gpu/drm/radeon/ci_dpm.c 	if (pi->uvd_power_gated == gate)
gate              771 drivers/gpu/drm/radeon/ci_dpm.c 	pi->uvd_power_gated = gate;
gate              773 drivers/gpu/drm/radeon/ci_dpm.c 	ci_update_uvd_dpm(rdev, gate);
gate             4077 drivers/gpu/drm/radeon/ci_dpm.c static int ci_update_uvd_dpm(struct radeon_device *rdev, bool gate)
gate             4082 drivers/gpu/drm/radeon/ci_dpm.c 	if (!gate) {
gate             4096 drivers/gpu/drm/radeon/ci_dpm.c 	return ci_enable_uvd_dpm(rdev, !gate);
gate             4145 drivers/gpu/drm/radeon/ci_dpm.c static int ci_update_samu_dpm(struct radeon_device *rdev, bool gate)
gate             4147 drivers/gpu/drm/radeon/ci_dpm.c 	return ci_enable_samu_dpm(rdev, gate);
gate             4150 drivers/gpu/drm/radeon/ci_dpm.c static int ci_update_acp_dpm(struct radeon_device *rdev, bool gate)
gate             4155 drivers/gpu/drm/radeon/ci_dpm.c 	if (!gate) {
gate             4164 drivers/gpu/drm/radeon/ci_dpm.c 	return ci_enable_acp_dpm(rdev, !gate);
gate               58 drivers/gpu/drm/radeon/kv_dpm.c void kv_dpm_powergate_uvd(struct radeon_device *rdev, bool gate);
gate               59 drivers/gpu/drm/radeon/kv_dpm.c static void kv_dpm_powergate_vce(struct radeon_device *rdev, bool gate);
gate               60 drivers/gpu/drm/radeon/kv_dpm.c static void kv_dpm_powergate_samu(struct radeon_device *rdev, bool gate);
gate               61 drivers/gpu/drm/radeon/kv_dpm.c static void kv_dpm_powergate_acp(struct radeon_device *rdev, bool gate);
gate             1425 drivers/gpu/drm/radeon/kv_dpm.c static int kv_update_uvd_dpm(struct radeon_device *rdev, bool gate)
gate             1433 drivers/gpu/drm/radeon/kv_dpm.c 	if (!gate) {
gate             1458 drivers/gpu/drm/radeon/kv_dpm.c 	return kv_enable_uvd_dpm(rdev, !gate);
gate             1518 drivers/gpu/drm/radeon/kv_dpm.c static int kv_update_samu_dpm(struct radeon_device *rdev, bool gate)
gate             1525 drivers/gpu/drm/radeon/kv_dpm.c 	if (!gate) {
gate             1546 drivers/gpu/drm/radeon/kv_dpm.c 	return kv_enable_samu_dpm(rdev, !gate);
gate             1582 drivers/gpu/drm/radeon/kv_dpm.c static int kv_update_acp_dpm(struct radeon_device *rdev, bool gate)
gate             1589 drivers/gpu/drm/radeon/kv_dpm.c 	if (!gate) {
gate             1610 drivers/gpu/drm/radeon/kv_dpm.c 	return kv_enable_acp_dpm(rdev, !gate);
gate             1613 drivers/gpu/drm/radeon/kv_dpm.c void kv_dpm_powergate_uvd(struct radeon_device *rdev, bool gate)
gate             1617 drivers/gpu/drm/radeon/kv_dpm.c 	if (pi->uvd_power_gated == gate)
gate             1620 drivers/gpu/drm/radeon/kv_dpm.c 	pi->uvd_power_gated = gate;
gate             1622 drivers/gpu/drm/radeon/kv_dpm.c 	if (gate) {
gate             1627 drivers/gpu/drm/radeon/kv_dpm.c 		kv_update_uvd_dpm(rdev, gate);
gate             1637 drivers/gpu/drm/radeon/kv_dpm.c 		kv_update_uvd_dpm(rdev, gate);
gate             1641 drivers/gpu/drm/radeon/kv_dpm.c static void kv_dpm_powergate_vce(struct radeon_device *rdev, bool gate)
gate             1645 drivers/gpu/drm/radeon/kv_dpm.c 	if (pi->vce_power_gated == gate)
gate             1648 drivers/gpu/drm/radeon/kv_dpm.c 	pi->vce_power_gated = gate;
gate             1650 drivers/gpu/drm/radeon/kv_dpm.c 	if (gate) {
gate             1664 drivers/gpu/drm/radeon/kv_dpm.c static void kv_dpm_powergate_samu(struct radeon_device *rdev, bool gate)
gate             1668 drivers/gpu/drm/radeon/kv_dpm.c 	if (pi->samu_power_gated == gate)
gate             1671 drivers/gpu/drm/radeon/kv_dpm.c 	pi->samu_power_gated = gate;
gate             1673 drivers/gpu/drm/radeon/kv_dpm.c 	if (gate) {
gate             1684 drivers/gpu/drm/radeon/kv_dpm.c static void kv_dpm_powergate_acp(struct radeon_device *rdev, bool gate)
gate             1688 drivers/gpu/drm/radeon/kv_dpm.c 	if (pi->acp_power_gated == gate)
gate             1694 drivers/gpu/drm/radeon/kv_dpm.c 	pi->acp_power_gated = gate;
gate             1696 drivers/gpu/drm/radeon/kv_dpm.c 	if (gate) {
gate             1982 drivers/gpu/drm/radeon/radeon.h 		void (*powergate_uvd)(struct radeon_device *rdev, bool gate);
gate              893 drivers/gpu/drm/radeon/radeon_asic.h void ci_dpm_powergate_uvd(struct radeon_device *rdev, bool gate);
gate              922 drivers/gpu/drm/radeon/radeon_asic.h void kv_dpm_powergate_uvd(struct radeon_device *rdev, bool gate);
gate             1717 drivers/gpu/drm/rockchip/rockchip_drm_vop.c 		VOP_WIN_SET(vop, win, gate, 1);
gate              133 drivers/gpu/drm/rockchip/rockchip_drm_vop.h 	struct vop_reg gate;
gate              261 drivers/gpu/drm/rockchip/rockchip_vop_reg.c 	.gate = VOP_REG(PX30_WIN2_CTRL0, 0x1, 4),
gate              564 drivers/gpu/drm/rockchip/rockchip_vop_reg.c 	.gate = VOP_REG(RK3288_WIN2_CTRL0, 0x1, 0),
gate              695 drivers/gpu/drm/rockchip/rockchip_vop_reg.c 	.gate = VOP_REG(RK3368_WIN2_CTRL0, 0x1, 0),
gate              261 drivers/i2c/i2c-mux.c 		muxc->gate = true;
gate              361 drivers/i2c/i2c-mux.c 		else if (muxc->gate)
gate              376 drivers/i2c/i2c-mux.c 		else if (muxc->arbitrator || muxc->gate)
gate               91 drivers/media/pci/cx18/cx18-dvb.c 	.gate    = TDA18271_GATE_DIGITAL,
gate              141 drivers/media/pci/cx23885/cx23885-dvb.c 	if (f->gate <= 1) /* undefined or fe0 */
gate              144 drivers/media/pci/cx23885/cx23885-dvb.c 		fe = vb2_dvb_get_frontend(f, f->gate);
gate              321 drivers/media/pci/cx23885/cx23885-dvb.c 	.gate    = TDA18271_GATE_ANALOG,
gate              327 drivers/media/pci/cx23885/cx23885-dvb.c 	.gate    = TDA18271_GATE_ANALOG,
gate              332 drivers/media/pci/cx23885/cx23885-dvb.c 	.gate    = TDA18271_GATE_DIGITAL,
gate              337 drivers/media/pci/cx23885/cx23885-dvb.c 	.gate    = TDA18271_GATE_DIGITAL,
gate             1218 drivers/media/pci/cx23885/cx23885-dvb.c 	port->frontends.gate = 0;
gate             1720 drivers/media/pci/cx23885/cx23885-dvb.c 		port->frontends.gate = 0;/* not clear for me yet */
gate              204 drivers/media/pci/cx88/cx88-dvb.c 	if (f->gate <= 1) /* undefined or fe0 */
gate              207 drivers/media/pci/cx88/cx88-dvb.c 		fe = vb2_dvb_get_frontend(f, f->gate);
gate             1005 drivers/media/pci/cx88/cx88-dvb.c 	dev->frontends.gate = 0;
gate             1065 drivers/media/pci/cx88/cx88-dvb.c 		dev->frontends.gate = 2;
gate             1440 drivers/media/pci/cx88/cx88-dvb.c 		dev->frontends.gate = 2;
gate              218 drivers/media/pci/saa7134/saa7134-dvb.c 	.gate    = TDA18271_GATE_DIGITAL,
gate             1095 drivers/media/pci/saa7134/saa7134-dvb.c 	.gate    = TDA18271_GATE_ANALOG,
gate             1117 drivers/media/pci/saa7134/saa7134-dvb.c 	.gate    = TDA18271_GATE_ANALOG,
gate             1143 drivers/media/pci/saa7134/saa7134-dvb.c 	.gate    = TDA18271_GATE_ANALOG,
gate             1162 drivers/media/pci/saa7134/saa7134-dvb.c 	.gate = TDA18271_GATE_ANALOG,
gate             1175 drivers/media/pci/saa7134/saa7134-dvb.c 	.gate    = TDA18271_GATE_ANALOG,
gate               52 drivers/media/pci/saa7164/saa7164-dvb.c 	.gate		= TDA18271_GATE_ANALOG,
gate               58 drivers/media/pci/saa7164/saa7164-dvb.c 	.gate		= TDA18271_GATE_ANALOG,
gate              511 drivers/media/platform/s5p-g2d/g2d.c 	clk_enable(dev->gate);
gate              546 drivers/media/platform/s5p-g2d/g2d.c 	clk_disable(dev->gate);
gate              653 drivers/media/platform/s5p-g2d/g2d.c 	dev->gate = clk_get(&pdev->dev, "fimg2d");
gate              654 drivers/media/platform/s5p-g2d/g2d.c 	if (IS_ERR(dev->gate)) {
gate              660 drivers/media/platform/s5p-g2d/g2d.c 	ret = clk_prepare(dev->gate);
gate              733 drivers/media/platform/s5p-g2d/g2d.c 	clk_unprepare(dev->gate);
gate              735 drivers/media/platform/s5p-g2d/g2d.c 	clk_put(dev->gate);
gate              753 drivers/media/platform/s5p-g2d/g2d.c 	clk_unprepare(dev->gate);
gate              754 drivers/media/platform/s5p-g2d/g2d.c 	clk_put(dev->gate);
gate               26 drivers/media/platform/s5p-g2d/g2d.h 	struct clk		*gate;
gate               14 drivers/media/tuners/tda18271-common.c 	enum tda18271_i2c_gate gate;
gate               17 drivers/media/tuners/tda18271-common.c 	switch (priv->gate) {
gate               20 drivers/media/tuners/tda18271-common.c 		gate = priv->gate;
gate               26 drivers/media/tuners/tda18271-common.c 			gate = TDA18271_GATE_DIGITAL;
gate               30 drivers/media/tuners/tda18271-common.c 			gate = TDA18271_GATE_ANALOG;
gate               35 drivers/media/tuners/tda18271-common.c 	switch (gate) {
gate             1191 drivers/media/tuners/tda18271-fe.c 	priv->gate = (cfg) ? cfg->gate : TDA18271_GATE_AUTO;
gate             1302 drivers/media/tuners/tda18271-fe.c 			if (cfg->gate != TDA18271_GATE_ANALOG)
gate             1303 drivers/media/tuners/tda18271-fe.c 				priv->gate = cfg->gate;
gate               99 drivers/media/tuners/tda18271-priv.h 	enum tda18271_i2c_gate gate;
gate               85 drivers/media/tuners/tda18271.h 	enum tda18271_i2c_gate gate;
gate              565 drivers/media/tuners/tda8290.c 	.gate    = TDA18271_GATE_ANALOG,
gate               93 drivers/media/usb/au0828/au0828-dvb.c 	.gate    = TDA18271_GATE_DIGITAL,
gate               94 drivers/media/usb/cx231xx/cx231xx-dvb.c 	.gate    = TDA18271_GATE_ANALOG,
gate              136 drivers/media/usb/cx231xx/cx231xx-dvb.c 	.gate    = TDA18271_GATE_DIGITAL,
gate              146 drivers/media/usb/cx231xx/cx231xx-dvb.c 	.gate    = TDA18271_GATE_DIGITAL,
gate              944 drivers/media/usb/dvb-usb-v2/af9015.c 	.gate = TDA18271_GATE_DIGITAL,
gate              489 drivers/media/usb/dvb-usb-v2/lmedm04.c 	u8 gate = st->i2c_gate;
gate              493 drivers/media/usb/dvb-usb-v2/lmedm04.c 	if (gate == 0)
gate              494 drivers/media/usb/dvb-usb-v2/lmedm04.c 		gate = 5;
gate              500 drivers/media/usb/dvb-usb-v2/lmedm04.c 		gate = (msg[i].addr == st->i2c_tuner_addr)
gate              504 drivers/media/usb/dvb-usb-v2/lmedm04.c 		obuf[0] = gate | (read << 7);
gate              506 drivers/media/usb/dvb-usb-v2/lmedm04.c 		if (gate == 5)
gate             1157 drivers/media/usb/dvb-usb/dw2102.c 	.gate = TDA18271_GATE_DIGITAL,
gate               99 drivers/media/usb/em28xx/em28xx-dvb.c 	int (*gate_ctrl)(struct dvb_frontend *fe, int gate);
gate              377 drivers/media/usb/em28xx/em28xx-dvb.c 	.gate		= TDA18271_GATE_DIGITAL,
gate              881 drivers/media/usb/em28xx/em28xx-dvb.c 	.gate = TDA18271_GATE_DIGITAL,
gate              911 drivers/media/usb/em28xx/em28xx-dvb.c 	.gate    = TDA18271_GATE_DIGITAL,
gate              924 drivers/media/usb/em28xx/em28xx-dvb.c 	.gate    = TDA18271_GATE_DIGITAL,
gate              325 drivers/media/usb/pvrusb2/pvrusb2-devattr.c 	.gate    = TDA18271_GATE_ANALOG,
gate              423 drivers/media/usb/pvrusb2/pvrusb2-devattr.c 	.gate    = TDA18271_GATE_ANALOG,
gate              319 drivers/mfd/sm501.c 	unsigned long gate;
gate              325 drivers/mfd/sm501.c 	gate = smc501_readl(sm->regs + SM501_CURRENT_GATE);
gate              347 drivers/mfd/sm501.c 		if (gate & (1 << unit))
gate              349 drivers/mfd/sm501.c 		gate |= (1 << unit);
gate              351 drivers/mfd/sm501.c 		if (!(gate & (1 << unit)))
gate              353 drivers/mfd/sm501.c 		gate &= ~(1 << unit);
gate              358 drivers/mfd/sm501.c 		smc501_writel(gate, sm->regs + SM501_POWER_MODE_0_GATE);
gate              364 drivers/mfd/sm501.c 		smc501_writel(gate, sm->regs + SM501_POWER_MODE_1_GATE);
gate              370 drivers/mfd/sm501.c 		gate = -1;
gate              378 drivers/mfd/sm501.c 		gate, clock, mode);
gate              384 drivers/mfd/sm501.c 	return gate;
gate              514 drivers/mfd/sm501.c 	unsigned long gate = smc501_readl(sm->regs + SM501_CURRENT_GATE);
gate              587 drivers/mfd/sm501.c 	gate = smc501_readl(sm->regs + SM501_CURRENT_GATE);
gate              597 drivers/mfd/sm501.c 		smc501_writel(gate, sm->regs + SM501_POWER_MODE_0_GATE);
gate              603 drivers/mfd/sm501.c 		smc501_writel(gate, sm->regs + SM501_POWER_MODE_1_GATE);
gate              622 drivers/mfd/sm501.c 		gate, clock, mode);
gate              136 drivers/net/ethernet/intel/e1000e/ich8lan.c static void e1000_gate_hw_phy_config_ich8lan(struct e1000_hw *hw, bool gate);
gate             2770 drivers/net/ethernet/intel/e1000e/ich8lan.c static void e1000_gate_hw_phy_config_ich8lan(struct e1000_hw *hw, bool gate)
gate             2779 drivers/net/ethernet/intel/e1000e/ich8lan.c 	if (gate)
gate             1053 drivers/net/ethernet/nvidia/forcedeth.c static void nv_txrx_gate(struct net_device *dev, bool gate)
gate             1062 drivers/net/ethernet/nvidia/forcedeth.c 		if (gate)
gate              335 drivers/nfc/microread/microread.c static int microread_target_from_gate(struct nfc_hci_dev *hdev, u8 gate,
gate              338 drivers/nfc/microread/microread.c 	switch (gate) {
gate              350 drivers/nfc/microread/microread.c 						u8 gate,
gate              470 drivers/nfc/microread/microread.c static void microread_target_discovered(struct nfc_hci_dev *hdev, u8 gate,
gate              476 drivers/nfc/microread/microread.c 	pr_info("target discovered to gate 0x%x\n", gate);
gate              484 drivers/nfc/microread/microread.c 	targets->hci_reader_gate = gate;
gate              486 drivers/nfc/microread/microread.c 	switch (gate) {
gate              533 drivers/nfc/microread/microread.c 		pr_info("discard target discovered to gate 0x%x\n", gate);
gate              553 drivers/nfc/microread/microread.c 	u8 gate = hdev->pipes[pipe].gate;
gate              556 drivers/nfc/microread/microread.c 	pr_info("Microread received event 0x%x to gate 0x%x\n", event, gate);
gate              560 drivers/nfc/microread/microread.c 		microread_target_discovered(hdev, gate, skb);
gate              617 drivers/nfc/microread/microread.c 		r = nfc_hci_send_event(hdev, gate,
gate              481 drivers/nfc/pn544/pn544.c static int pn544_hci_target_from_gate(struct nfc_hci_dev *hdev, u8 gate,
gate              484 drivers/nfc/pn544/pn544.c 	switch (gate) {
gate              503 drivers/nfc/pn544/pn544.c 						u8 gate,
gate              509 drivers/nfc/pn544/pn544.c 	if (gate == PN544_RF_READER_NFCIP1_INITIATOR_GATE)
gate              720 drivers/nfc/pn544/pn544.c 	u8 gate = hdev->pipes[pipe].gate;
gate              726 drivers/nfc/pn544/pn544.c 		if (gate == PN544_RF_READER_NFCIP1_INITIATOR_GATE) {
gate              727 drivers/nfc/pn544/pn544.c 			r = nfc_hci_target_discovered(hdev, gate);
gate              728 drivers/nfc/pn544/pn544.c 		} else if (gate == PN544_RF_READER_NFCIP1_TARGET_GATE) {
gate              729 drivers/nfc/pn544/pn544.c 			r = nfc_hci_get_param(hdev, gate, PN544_DEP_ATR_REQ,
gate              744 drivers/nfc/pn544/pn544.c 		r = nfc_hci_send_event(hdev, gate, NFC_HCI_EVT_END_OPERATION,
gate              220 drivers/nfc/st-nci/se.c 		     (st_nci_gates[j].gate != dm_pipe_info->dst_gate_id); j++)
gate              224 drivers/nfc/st-nci/se.c 		    st_nci_gates[j].gate == dm_pipe_info->dst_gate_id &&
gate              228 drivers/nfc/st-nci/se.c 			ndev->hci_dev->gate2pipe[st_nci_gates[j].gate] =
gate              230 drivers/nfc/st-nci/se.c 			ndev->hci_dev->pipes[pipe_info[2]].gate =
gate              231 drivers/nfc/st-nci/se.c 						st_nci_gates[j].gate;
gate              364 drivers/nfc/st-nci/se.c 	u8 gate = ndev->hci_dev->pipes[pipe].gate;
gate              367 drivers/nfc/st-nci/se.c 	switch (gate) {
gate              385 drivers/nfc/st-nci/se.c 	u8 gate = ndev->hci_dev->pipes[pipe].gate;
gate              391 drivers/nfc/st-nci/se.c 		if (gate != ST_NCI_APDU_READER_GATE &&
gate               35 drivers/nfc/st-nci/vendor_cmds.c 	u8 gate;
gate              217 drivers/nfc/st-nci/vendor_cmds.c 	r = nci_hci_get_param(ndev, param->gate, param->data, &skb);
gate              176 drivers/nfc/st21nfca/core.c 			(st21nfca_gates[j].gate != info->dst_gate_id) ; j++)
gate              180 drivers/nfc/st21nfca/core.c 			st21nfca_gates[j].gate == info->dst_gate_id &&
gate              184 drivers/nfc/st21nfca/core.c 			hdev->gate2pipe[st21nfca_gates[j].gate] =
gate              186 drivers/nfc/st21nfca/core.c 			hdev->pipes[pipe_info[2]].gate =
gate              187 drivers/nfc/st21nfca/core.c 						st21nfca_gates[j].gate;
gate              617 drivers/nfc/st21nfca/core.c static int st21nfca_hci_target_from_gate(struct nfc_hci_dev *hdev, u8 gate,
gate              625 drivers/nfc/st21nfca/core.c 	switch (gate) {
gate              672 drivers/nfc/st21nfca/core.c 						u8 gate,
gate              678 drivers/nfc/st21nfca/core.c 	if (gate == ST21NFCA_RF_READER_F_GATE) {
gate              838 drivers/nfc/st21nfca/core.c 	u8 gate = hdev->pipes[pipe].gate;
gate              844 drivers/nfc/st21nfca/core.c 		if (gate != ST21NFCA_APDU_READER_GATE &&
gate              894 drivers/nfc/st21nfca/core.c 	u8 gate = hdev->pipes[pipe].gate;
gate              897 drivers/nfc/st21nfca/core.c 	pr_debug("hci event: %d gate: %x\n", event, gate);
gate              899 drivers/nfc/st21nfca/core.c 	switch (gate) {
gate               31 drivers/nfc/st21nfca/vendor_cmds.c 	u8 gate;
gate              194 drivers/nfc/st21nfca/vendor_cmds.c 	r = nfc_hci_get_param(hdev, param->gate, param->data, &skb);
gate             1026 drivers/staging/comedi/drivers/ni_tio.c 			    unsigned int gate, unsigned int src)
gate             1030 drivers/staging/comedi/drivers/ni_tio.c 	switch (gate) {
gate             1058 drivers/staging/comedi/drivers/ni_tio.c 			unsigned int gate, unsigned int src)
gate             1069 drivers/staging/comedi/drivers/ni_tio.c 	switch (gate) {
gate             1189 drivers/staging/comedi/drivers/ni_tio.c static int ni_660x_gate_to_generic_gate(unsigned int gate, unsigned int *src)
gate             1194 drivers/staging/comedi/drivers/ni_tio.c 	switch (gate) {
gate             1212 drivers/staging/comedi/drivers/ni_tio.c 			if (gate == NI_660X_RTSI_GATE_SEL(i)) {
gate             1220 drivers/staging/comedi/drivers/ni_tio.c 			if (gate == NI_660X_PIN_GATE_SEL(i)) {
gate             1233 drivers/staging/comedi/drivers/ni_tio.c static int ni_m_gate_to_generic_gate(unsigned int gate, unsigned int *src)
gate             1238 drivers/staging/comedi/drivers/ni_tio.c 	switch (gate) {
gate             1265 drivers/staging/comedi/drivers/ni_tio.c 			if (gate == NI_M_RTSI_GATE_SEL(i)) {
gate             1273 drivers/staging/comedi/drivers/ni_tio.c 			if (gate == NI_M_PFI_GATE_SEL(i)) {
gate             1286 drivers/staging/comedi/drivers/ni_tio.c static int ni_660x_gate2_to_generic_gate(unsigned int gate, unsigned int *src)
gate             1291 drivers/staging/comedi/drivers/ni_tio.c 	switch (gate) {
gate             1312 drivers/staging/comedi/drivers/ni_tio.c 			if (gate == NI_660X_RTSI_GATE2_SEL(i)) {
gate             1320 drivers/staging/comedi/drivers/ni_tio.c 			if (gate == NI_660X_UD_PIN_GATE2_SEL(i)) {
gate             1333 drivers/staging/comedi/drivers/ni_tio.c static int ni_m_gate2_to_generic_gate(unsigned int gate, unsigned int *src)
gate             1339 drivers/staging/comedi/drivers/ni_tio.c 	*src = gate;
gate             1388 drivers/staging/comedi/drivers/ni_tio.c 	unsigned int gate;
gate             1393 drivers/staging/comedi/drivers/ni_tio.c 		gate = ni_tio_get_gate_val(counter);
gate             1398 drivers/staging/comedi/drivers/ni_tio.c 			ret = ni_m_gate_to_generic_gate(gate, gate_source);
gate             1401 drivers/staging/comedi/drivers/ni_tio.c 			ret = ni_660x_gate_to_generic_gate(gate, gate_source);
gate             1409 drivers/staging/comedi/drivers/ni_tio.c 		gate = ni_tio_get_gate2_val(counter);
gate             1414 drivers/staging/comedi/drivers/ni_tio.c 			ret = ni_m_gate2_to_generic_gate(gate, gate_source);
gate             1417 drivers/staging/comedi/drivers/ni_tio.c 			ret = ni_660x_gate2_to_generic_gate(gate, gate_source);
gate              171 drivers/staging/comedi/drivers/ni_tio_internal.h int ni_tio_set_gate_src(struct ni_gpct *counter, unsigned int gate,
gate              173 drivers/staging/comedi/drivers/ni_tio_internal.h int ni_tio_set_gate_src_raw(struct ni_gpct *counter, unsigned int gate,
gate               75 drivers/staging/sm750fb/ddk750_power.c void sm750_set_current_gate(unsigned int gate)
gate               78 drivers/staging/sm750fb/ddk750_power.c 		poke32(MODE1_GATE, gate);
gate               80 drivers/staging/sm750fb/ddk750_power.c 		poke32(MODE0_GATE, gate);
gate               88 drivers/staging/sm750fb/ddk750_power.c 	u32 gate;
gate               90 drivers/staging/sm750fb/ddk750_power.c 	gate = peek32(CURRENT_GATE);
gate               92 drivers/staging/sm750fb/ddk750_power.c 		gate |= (CURRENT_GATE_DE | CURRENT_GATE_CSC);
gate               94 drivers/staging/sm750fb/ddk750_power.c 		gate &= ~(CURRENT_GATE_DE | CURRENT_GATE_CSC);
gate               96 drivers/staging/sm750fb/ddk750_power.c 	sm750_set_current_gate(gate);
gate              101 drivers/staging/sm750fb/ddk750_power.c 	u32 gate;
gate              104 drivers/staging/sm750fb/ddk750_power.c 	gate = peek32(CURRENT_GATE);
gate              106 drivers/staging/sm750fb/ddk750_power.c 		gate |= CURRENT_GATE_DMA;
gate              108 drivers/staging/sm750fb/ddk750_power.c 		gate &= ~CURRENT_GATE_DMA;
gate              110 drivers/staging/sm750fb/ddk750_power.c 	sm750_set_current_gate(gate);
gate              118 drivers/staging/sm750fb/ddk750_power.c 	u32 gate;
gate              121 drivers/staging/sm750fb/ddk750_power.c 	gate = peek32(CURRENT_GATE);
gate              123 drivers/staging/sm750fb/ddk750_power.c 		gate |= CURRENT_GATE_GPIO;
gate              125 drivers/staging/sm750fb/ddk750_power.c 		gate &= ~CURRENT_GATE_GPIO;
gate              127 drivers/staging/sm750fb/ddk750_power.c 	sm750_set_current_gate(gate);
gate              135 drivers/staging/sm750fb/ddk750_power.c 	u32 gate;
gate              138 drivers/staging/sm750fb/ddk750_power.c 	gate = peek32(CURRENT_GATE);
gate              140 drivers/staging/sm750fb/ddk750_power.c 		gate |= CURRENT_GATE_I2C;
gate              142 drivers/staging/sm750fb/ddk750_power.c 		gate &= ~CURRENT_GATE_I2C;
gate              144 drivers/staging/sm750fb/ddk750_power.c 	sm750_set_current_gate(gate);
gate               19 drivers/staging/sm750fb/ddk750_power.h void sm750_set_current_gate(unsigned int gate);
gate               23 include/linux/i2c-mux.h 	unsigned int gate:1;
gate               50 include/media/videobuf2-dvb.h 	int gate; /* Frontend with gate control 0=!MFE,1=fe0,2=fe1 etc */
gate               32 include/net/nfc/hci.h 	int (*target_from_gate) (struct nfc_hci_dev *hdev, u8 gate,
gate               34 include/net/nfc/hci.h 	int (*complete_target_discovered) (struct nfc_hci_dev *hdev, u8 gate,
gate               64 include/net/nfc/hci.h 	u8 gate;
gate               69 include/net/nfc/hci.h 	u8 gate;
gate              259 include/net/nfc/hci.h int nfc_hci_disconnect_gate(struct nfc_hci_dev *hdev, u8 gate);
gate              261 include/net/nfc/hci.h int nfc_hci_get_param(struct nfc_hci_dev *hdev, u8 gate, u8 idx,
gate              263 include/net/nfc/hci.h int nfc_hci_set_param(struct nfc_hci_dev *hdev, u8 gate, u8 idx,
gate              265 include/net/nfc/hci.h int nfc_hci_send_cmd(struct nfc_hci_dev *hdev, u8 gate, u8 cmd,
gate              267 include/net/nfc/hci.h int nfc_hci_send_cmd_async(struct nfc_hci_dev *hdev, u8 gate, u8 cmd,
gate              270 include/net/nfc/hci.h int nfc_hci_send_event(struct nfc_hci_dev *hdev, u8 gate, u8 event,
gate              272 include/net/nfc/hci.h int nfc_hci_target_discovered(struct nfc_hci_dev *hdev, u8 gate);
gate              160 include/net/nfc/nci_core.h 	u8 gate;
gate              166 include/net/nfc/nci_core.h 	u8 gate;
gate              301 include/net/nfc/nci_core.h int nci_hci_send_event(struct nci_dev *ndev, u8 gate, u8 event,
gate              303 include/net/nfc/nci_core.h int nci_hci_send_cmd(struct nci_dev *ndev, u8 gate,
gate              309 include/net/nfc/nci_core.h int nci_hci_set_param(struct nci_dev *ndev, u8 gate, u8 idx,
gate              311 include/net/nfc/nci_core.h int nci_hci_get_param(struct nci_dev *ndev, u8 gate, u8 idx,
gate              679 net/mac80211/mesh_pathtbl.c 	struct mesh_path *gate;
gate              685 net/mac80211/mesh_pathtbl.c 	hlist_for_each_entry_rcu(gate, &tbl->known_gates, gate_list) {
gate              686 net/mac80211/mesh_pathtbl.c 		if (gate->flags & MESH_PATH_ACTIVE) {
gate              687 net/mac80211/mesh_pathtbl.c 			mpath_dbg(sdata, "Forwarding to %pM\n", gate->dst);
gate              688 net/mac80211/mesh_pathtbl.c 			mesh_path_move_to_queue(gate, from_mpath, copy);
gate              689 net/mac80211/mesh_pathtbl.c 			from_mpath = gate;
gate              694 net/mac80211/mesh_pathtbl.c 				  gate->dst, gate->flags);
gate              698 net/mac80211/mesh_pathtbl.c 	hlist_for_each_entry_rcu(gate, &tbl->known_gates, gate_list) {
gate              699 net/mac80211/mesh_pathtbl.c 		mpath_dbg(sdata, "Sending to %pM\n", gate->dst);
gate              700 net/mac80211/mesh_pathtbl.c 		mesh_path_tx_pending(gate);
gate               91 net/nfc/hci/command.c int nfc_hci_send_event(struct nfc_hci_dev *hdev, u8 gate, u8 event,
gate               96 net/nfc/hci/command.c 	pr_debug("%d to gate %d\n", event, gate);
gate               98 net/nfc/hci/command.c 	pipe = hdev->gate2pipe[gate];
gate              112 net/nfc/hci/command.c int nfc_hci_send_cmd(struct nfc_hci_dev *hdev, u8 gate, u8 cmd,
gate              119 net/nfc/hci/command.c 	pipe = hdev->gate2pipe[gate];
gate              127 net/nfc/hci/command.c int nfc_hci_send_cmd_async(struct nfc_hci_dev *hdev, u8 gate, u8 cmd,
gate              135 net/nfc/hci/command.c 	pipe = hdev->gate2pipe[gate];
gate              144 net/nfc/hci/command.c int nfc_hci_set_param(struct nfc_hci_dev *hdev, u8 gate, u8 idx,
gate              158 net/nfc/hci/command.c 	pr_debug("idx=%d to gate %d\n", idx, gate);
gate              167 net/nfc/hci/command.c 	r = nfc_hci_send_cmd(hdev, gate, NFC_HCI_ANY_SET_PARAMETER,
gate              176 net/nfc/hci/command.c int nfc_hci_get_param(struct nfc_hci_dev *hdev, u8 gate, u8 idx,
gate              179 net/nfc/hci/command.c 	pr_debug("gate=%d regidx=%d\n", gate, idx);
gate              181 net/nfc/hci/command.c 	return nfc_hci_send_cmd(hdev, gate, NFC_HCI_ANY_GET_PARAMETER,
gate              269 net/nfc/hci/command.c int nfc_hci_disconnect_gate(struct nfc_hci_dev *hdev, u8 gate)
gate              272 net/nfc/hci/command.c 	u8 pipe = hdev->gate2pipe[gate];
gate              289 net/nfc/hci/command.c 	hdev->gate2pipe[gate] = NFC_HCI_INVALID_PIPE;
gate              354 net/nfc/hci/command.c 	hdev->pipes[pipe].gate = dest_gate;
gate               42 net/nfc/hci/core.c 		hdev->pipes[i].gate = NFC_HCI_INVALID_GATE;
gate               57 net/nfc/hci/core.c 		hdev->pipes[i].gate = NFC_HCI_INVALID_GATE;
gate              188 net/nfc/hci/core.c 	u8 gate;
gate              197 net/nfc/hci/core.c 	gate = hdev->pipes[pipe].gate;
gate              218 net/nfc/hci/core.c 		hdev->pipes[create_info->pipe].gate = create_info->dest_gate;
gate              223 net/nfc/hci/core.c 		if (gate == NFC_HCI_INVALID_GATE) {
gate              240 net/nfc/hci/core.c 		hdev->pipes[delete_info->pipe].gate = NFC_HCI_INVALID_GATE;
gate              253 net/nfc/hci/core.c 		pr_info("Discarded unknown cmd %x to gate %x\n", cmd, gate);
gate              284 net/nfc/hci/core.c int nfc_hci_target_discovered(struct nfc_hci_dev *hdev, u8 gate)
gate              292 net/nfc/hci/core.c 	pr_debug("from gate %d\n", gate);
gate              298 net/nfc/hci/core.c 	switch (gate) {
gate              339 net/nfc/hci/core.c 			r = hdev->ops->complete_target_discovered(hdev, gate,
gate              350 net/nfc/hci/core.c 			r = hdev->ops->target_from_gate(hdev, gate, targets);
gate              357 net/nfc/hci/core.c 			r = hdev->ops->complete_target_discovered(hdev, gate,
gate              367 net/nfc/hci/core.c 		targets->hci_reader_gate = gate;
gate              385 net/nfc/hci/core.c 	u8 gate;
gate              392 net/nfc/hci/core.c 	gate = hdev->pipes[pipe].gate;
gate              393 net/nfc/hci/core.c 	if (gate == NFC_HCI_INVALID_GATE) {
gate              426 net/nfc/hci/core.c 		r = nfc_hci_target_discovered(hdev, gate);
gate              429 net/nfc/hci/core.c 		pr_info("Discarded unknown event %x to gate %x\n", event, gate);
gate              455 net/nfc/hci/core.c 					 gates->gate, gates->pipe);
gate              469 net/nfc/hci/core.c 	if (hdev->init_data.gates[0].gate != NFC_HCI_ADMIN_GATE)
gate              473 net/nfc/hci/core.c 				 hdev->init_data.gates[0].gate,
gate               12 net/nfc/hci/hci.h 	u8 gate;
gate              115 net/nfc/nci/hci.c 		hdev->pipes[i].gate = NCI_HCI_INVALID_GATE;
gate              127 net/nfc/nci/hci.c 			ndev->hci_dev->pipes[i].gate = NCI_HCI_INVALID_GATE;
gate              208 net/nfc/nci/hci.c int nci_hci_send_event(struct nci_dev *ndev, u8 gate, u8 event,
gate              211 net/nfc/nci/hci.c 	u8 pipe = ndev->hci_dev->gate2pipe[gate];
gate              222 net/nfc/nci/hci.c int nci_hci_send_cmd(struct nci_dev *ndev, u8 gate, u8 cmd,
gate              230 net/nfc/nci/hci.c 	u8 pipe = ndev->hci_dev->gate2pipe[gate];
gate              285 net/nfc/nci/hci.c 	u8 gate = ndev->hci_dev->pipes[pipe].gate;
gate              292 net/nfc/nci/hci.c 	pr_debug("from gate %x pipe %x cmd %x\n", gate, pipe, cmd);
gate              314 net/nfc/nci/hci.c 		ndev->hci_dev->pipes[new_pipe].gate = dest_gate;
gate              320 net/nfc/nci/hci.c 		if (gate == NCI_HCI_INVALID_GATE) {
gate              336 net/nfc/nci/hci.c 		ndev->hci_dev->pipes[delete_info->pipe].gate =
gate              352 net/nfc/nci/hci.c 		pr_debug("Discarded unknown cmd %x to gate %x\n", cmd, gate);
gate              562 net/nfc/nci/hci.c int nci_hci_set_param(struct nci_dev *ndev, u8 gate, u8 idx,
gate              570 net/nfc/nci/hci.c 	u8 pipe = ndev->hci_dev->gate2pipe[gate];
gate              572 net/nfc/nci/hci.c 	pr_debug("idx=%d to gate %d\n", idx, gate);
gate              610 net/nfc/nci/hci.c int nci_hci_get_param(struct nci_dev *ndev, u8 gate, u8 idx,
gate              617 net/nfc/nci/hci.c 	u8 pipe = ndev->hci_dev->gate2pipe[gate];
gate              619 net/nfc/nci/hci.c 	pr_debug("idx=%d to gate %d\n", idx, gate);
gate              695 net/nfc/nci/hci.c 	ndev->hci_dev->pipes[pipe].gate = dest_gate;
gate              711 net/nfc/nci/hci.c 					 gates->gate, gates->pipe);
gate              738 net/nfc/nci/hci.c 	if (ndev->hci_dev->init_data.gates[0].gate != NCI_HCI_ADMIN_GATE)
gate              743 net/nfc/nci/hci.c 				 ndev->hci_dev->init_data.gates[0].gate,
gate               93 scripts/gcc-plugins/gcc-generate-gimple-pass.h 		.gate			= _GATE,
gate              117 scripts/gcc-plugins/gcc-generate-gimple-pass.h 	virtual bool gate(function *) { return _GATE(); }
gate              119 scripts/gcc-plugins/gcc-generate-gimple-pass.h 	virtual bool gate(void) { return _GATE(); }
gate              161 scripts/gcc-plugins/gcc-generate-ipa-pass.h 		.gate			= _GATE,
gate              206 scripts/gcc-plugins/gcc-generate-ipa-pass.h 	virtual bool gate(function *) { return _GATE(); }
gate              208 scripts/gcc-plugins/gcc-generate-ipa-pass.h 	virtual bool gate(void) { return _GATE(); }
gate               93 scripts/gcc-plugins/gcc-generate-rtl-pass.h 		.gate			= _GATE,
gate              117 scripts/gcc-plugins/gcc-generate-rtl-pass.h 	virtual bool gate(function *) { return _GATE(); }
gate              119 scripts/gcc-plugins/gcc-generate-rtl-pass.h 	virtual bool gate(void) { return _GATE(); }
gate               93 scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h 		.gate			= _GATE,
gate              117 scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h 	virtual bool gate(function *) { return _GATE(); }
gate              119 scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h 	virtual bool gate(void) { return _GATE(); }
gate              247 tools/arch/x86/include/uapi/asm/kvm.h 	__u8 gate;