Lines Matching defs:fn
38 pub const fn from_khz(khz: c_ulong) -> Self {
43 pub const fn from_mhz(mhz: c_ulong) -> Self {
48 pub const fn from_ghz(ghz: c_ulong) -> Self {
53 pub const fn as_hz(&self) -> c_ulong {
58 pub const fn as_khz(&self) -> c_ulong {
63 pub const fn as_mhz(&self) -> c_ulong {
68 pub const fn as_ghz(&self) -> c_ulong {
74 fn from(freq: Hertz) -> Self {
111 /// fn configure_clk(dev: &Device) -> Result {
137 pub fn get(dev: &Device, name: Option<&CStr>) -> Result<Self> {
150 pub fn as_raw(&self) -> *mut bindings::clk {
160 pub fn enable(&self) -> Result {
172 pub fn disable(&self) {
184 pub fn prepare(&self) -> Result {
196 pub fn unprepare(&self) {
206 pub fn prepare_enable(&self) -> Result {
216 pub fn disable_unprepare(&self) {
228 pub fn rate(&self) -> Hertz {
240 pub fn set_rate(&self, rate: Hertz) -> Result {
248 fn drop(&mut self) {
278 /// fn configure_clk(dev: &Device) -> Result {
304 pub fn get(dev: &Device, name: Option<&CStr>) -> Result<Self> {
321 fn deref(&self) -> &Clk {