Lines Matching refs:gate_def
63 struct clk_gate_def gate_def; member
115 err = clknode_gate_register(sc->clkdom, &sc->gate_def); in register_clk()
148 sc->gate_def.offset = value; in ti_gate_attach()
158 sc->gate_def.shift = value; in ti_gate_attach()
159 DPRINTF(sc->sc_dev, "ti,bit-shift => shift %x\n", sc->gate_def.shift); in ti_gate_attach()
162 sc->gate_def.on_value = 0; in ti_gate_attach()
163 sc->gate_def.off_value = 1; in ti_gate_attach()
167 sc->gate_def.on_value = 1; in ti_gate_attach()
168 sc->gate_def.off_value = 0; in ti_gate_attach()
172 sc->gate_def.gate_flags = 0x0; in ti_gate_attach()
176 create_clkdef(sc->sc_dev, &sc->clock_cell, &sc->gate_def.clkdef); in ti_gate_attach()
179 sc->gate_def.mask = (1 << fls(sc->clock_cell.num_real_clocks)) - 1; in ti_gate_attach()
181 sc->clock_cell.num_real_clocks, sc->gate_def.mask); in ti_gate_attach()
183 err = find_parent_clock_names(sc->sc_dev, &sc->clock_cell, &sc->gate_def.clkdef); in ti_gate_attach()
203 free_clkdef(&sc->gate_def.clkdef); in ti_gate_attach()
226 err = find_parent_clock_names(sc->sc_dev, &sc->clock_cell, &sc->gate_def.clkdef); in ti_gate_new_pass()
242 free_clkdef(&sc->gate_def.clkdef); in ti_gate_new_pass()