Lines Matching defs:gate
73 struct bcm_clk_gate *gate;
99 gate = &peri->gate;
101 if (gate_exists(gate)) {
102 if (gate->offset > limit) {
103 pr_err("%s: bad gate offset for %s (%u > %u)\n",
104 __func__, name, gate->offset, limit);
117 pr_err("%s: hysteresis but no gate for %s\n", __func__, name);
242 * have an enable bit. And a gate that can be hardware or software
245 static bool gate_valid(struct bcm_clk_gate *gate, const char *field_name,
248 if (!bit_posn_valid(gate->status_bit, "gate status", clock_name))
251 if (gate_is_sw_controllable(gate)) {
252 if (!bit_posn_valid(gate->en_bit, "gate enable", clock_name))
255 if (gate_is_hw_controllable(gate)) {
256 if (!bit_posn_valid(gate->hw_sw_sel_bit,
257 "gate hw/sw select",
262 BUG_ON(!gate_is_hw_controllable(gate));
396 struct bcm_clk_gate *gate;
421 gate = &peri->gate;
422 if (gate_exists(gate) && !gate_valid(gate, "gate", name))