Lines Matching defs:gate
81 struct bcm_clk_gate *gate;
107 gate = &peri->gate;
109 if (gate_exists(gate)) {
110 if (gate->offset > limit) {
111 pr_err("%s: bad gate offset for %s (%u > %u)\n",
112 __func__, name, gate->offset, limit);
125 pr_err("%s: hysteresis but no gate for %s\n", __func__, name);
250 * have an enable bit. And a gate that can be hardware or software
253 static bool gate_valid(struct bcm_clk_gate *gate, const char *field_name,
256 if (!bit_posn_valid(gate->status_bit, "gate status", clock_name))
259 if (gate_is_sw_controllable(gate)) {
260 if (!bit_posn_valid(gate->en_bit, "gate enable", clock_name))
263 if (gate_is_hw_controllable(gate)) {
264 if (!bit_posn_valid(gate->hw_sw_sel_bit,
265 "gate hw/sw select",
270 BUG_ON(!gate_is_hw_controllable(gate));
404 struct bcm_clk_gate *gate;
429 gate = &peri->gate;
430 if (gate_exists(gate) && !gate_valid(gate, "gate", name))