Lines Matching refs:bits
88 & clk->bits) != test)); in sysctl_wait()
91 clk->module, clk->bits, test, in sysctl_wait()
92 sysctl_r32(clk->module, reg) & clk->bits); in sysctl_wait()
97 sysctl_w32(clk->module, clk->bits, SYSCTL_CLKEN); in sysctl_activate()
98 sysctl_w32(clk->module, clk->bits, SYSCTL_ACT); in sysctl_activate()
99 sysctl_wait(clk, clk->bits, SYSCTL_ACTS); in sysctl_activate()
105 sysctl_w32(clk->module, clk->bits, SYSCTL_CLKCLR); in sysctl_deactivate()
106 sysctl_w32(clk->module, clk->bits, SYSCTL_DEACT); in sysctl_deactivate()
112 sysctl_w32(clk->module, clk->bits, SYSCTL_CLKEN); in sysctl_clken()
113 sysctl_w32(clk->module, clk->bits, SYSCTL_ACT); in sysctl_clken()
114 sysctl_wait(clk, clk->bits, SYSCTL_CLKS); in sysctl_clken()
120 sysctl_w32(clk->module, clk->bits, SYSCTL_CLKCLR); in sysctl_clkdis()
127 unsigned int bits; in sysctl_reboot() local
130 bits = ~act & clk->bits; in sysctl_reboot()
131 if (bits != 0) { in sysctl_reboot()
132 sysctl_w32(clk->module, bits, SYSCTL_CLKEN); in sysctl_reboot()
133 sysctl_w32(clk->module, bits, SYSCTL_ACT); in sysctl_reboot()
134 sysctl_wait(clk, bits, SYSCTL_ACTS); in sysctl_reboot()
136 sysctl_w32(clk->module, act & clk->bits, SYSCTL_RBT); in sysctl_reboot()
137 sysctl_wait(clk, clk->bits, SYSCTL_ACTS); in sysctl_reboot()
168 unsigned int bits) in clkdev_add_sys() argument
176 clk->bits = bits; in clkdev_add_sys()