Home
last modified time | relevance | path

Searched refs:c_ulong (Results 1 – 13 of 13) sorted by relevance

/linux/rust/kernel/
H A Dclk.rs9 use crate::ffi::c_ulong;
13 /// Represents a frequency in hertz, wrapping a [`c_ulong`] value.
30 pub struct Hertz(pub c_ulong);
33 const KHZ_TO_HZ: c_ulong = 1_000;
34 const MHZ_TO_HZ: c_ulong = 1_000_000;
35 const GHZ_TO_HZ: c_ulong = 1_000_000_000;
38 pub const fn from_khz(khz: c_ulong) -> Self { in from_khz()
43 pub const fn from_mhz(mhz: c_ulong) -> Self { in from_mhz()
48 pub const fn from_ghz(ghz: c_ulong) -> Self { in from_ghz()
53 pub const fn as_hz(&self) -> c_ulong { in as_hz() argument
58 as_khz(&self) -> c_ulong as_khz() argument
63 as_mhz(&self) -> c_ulong as_mhz() argument
68 as_ghz(&self) -> c_ulong as_ghz() argument
73 impl From<Hertz> for c_ulong { global() implementation
[all...]
H A Dopp.rs16 ffi::{c_char, c_ulong},
119 pub struct MicroVolt(pub c_ulong);
121 impl From<MicroVolt> for c_ulong { implementation
144 pub struct MicroWatt(pub c_ulong);
146 impl From<MicroWatt> for c_ulong { implementation
H A Dcpufreq.rs18 ffi::{c_char, c_ulong},
380 self.add(Hertz(c_ulong::MAX), 0, 0)?; in to_table()
1263 min_perf: c_ulong, in adjust_perf_callback() argument
1264 target_perf: c_ulong, in adjust_perf_callback() argument
1265 capacity: c_ulong, in adjust_perf_callback() argument
H A Dprelude.rs34 c_ulong,
H A Ddma.rs228 pub(crate) fn as_raw(self) -> crate::ffi::c_ulong { in as_raw() argument
229 self.0 as crate::ffi::c_ulong in as_raw()
/linux/rust/kernel/irq/
H A Dflags.rs27 pub struct Flags(c_ulong);
95 pub(crate) fn into_inner(self) -> c_ulong { in into_inner() argument
102 build_assert!(value as u64 <= c_ulong::MAX as u64); in new()
103 Self(value as c_ulong) in new()
/linux/drivers/android/binder/
H A Dtrace.rs9 use kernel::ffi::{c_int, c_uint, c_ulong};
14 unsafe fn binder_ioctl(cmd: c_uint, arg: c_ulong);
43 unsafe { binder_ioctl(cmd, arg as c_ulong) } in trace_ioctl()
H A Dpage_range.rs27 ffi::{c_ulong, c_void},
664 ) -> c_ulong { in rust_shrink_count() argument
677 ) -> c_ulong { in rust_shrink_scan() argument
H A Drust_binder_main.rs415 arg: kernel::ffi::c_ulong, in rust_binder_ioctl() argument
/linux/rust/kernel/time/
H A Ddelay.rs47 bindings::fsleep(delta.as_micros_ceil() as c_ulong) in fsleep()
84 bindings::udelay(delta.as_micros_ceil() as c_ulong) in udelay()
/linux/rust/kernel/io/
H A Dresource.rs186 pub struct Flags(c_ulong);
232 crate::build_assert!(value as u64 <= c_ulong::MAX as u64); in new()
233 Flags(value as c_ulong) in new()
/linux/rust/
H A Dffi.rs42 c_ulong = usize;
/linux/rust/kernel/alloc/
H A Dallocator.rs58 crate::ffi::c_ulong,