Lines Matching defs:as_raw
144 bindings::clk_get(dev.as_raw(), con_id)
150 pub fn as_raw(&self) -> *mut bindings::clk {
161 // SAFETY: By the type invariants, self.as_raw() is a valid argument for
163 to_result(unsafe { bindings::clk_enable(self.as_raw()) })
173 // SAFETY: By the type invariants, self.as_raw() is a valid argument for
175 unsafe { bindings::clk_disable(self.as_raw()) };
185 // SAFETY: By the type invariants, self.as_raw() is a valid argument for
187 to_result(unsafe { bindings::clk_prepare(self.as_raw()) })
197 // SAFETY: By the type invariants, self.as_raw() is a valid argument for
199 unsafe { bindings::clk_unprepare(self.as_raw()) };
207 // SAFETY: By the type invariants, self.as_raw() is a valid argument for
209 to_result(unsafe { bindings::clk_prepare_enable(self.as_raw()) })
217 // SAFETY: By the type invariants, self.as_raw() is a valid argument for
219 unsafe { bindings::clk_disable_unprepare(self.as_raw()) };
229 // SAFETY: By the type invariants, self.as_raw() is a valid argument for
231 Hertz(unsafe { bindings::clk_get_rate(self.as_raw()) })
241 // SAFETY: By the type invariants, self.as_raw() is a valid argument for
243 to_result(unsafe { bindings::clk_set_rate(self.as_raw(), rate.as_hz()) })
249 // SAFETY: By the type invariants, self.as_raw() is a valid argument for [`clk_put`].
250 unsafe { bindings::clk_put(self.as_raw()) };
312 bindings::clk_get_optional(dev.as_raw(), con_id)