Home
last modified time | relevance | path

Searched refs:c_ulong (Results 1 – 12 of 12) 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},
105 /// Represents voltage in microvolts, wrapping a [`c_ulong`] value.
119 pub struct MicroVolt(pub c_ulong);
121 impl From<MicroVolt> for c_ulong { implementation
130 /// Represents power in microwatts, wrapping a [`c_ulong`] value.
144 pub struct MicroWatt(pub c_ulong);
146 impl From<MicroWatt> for c_ulong { implementation
H A Dcpufreq.rs18 ffi::{c_char, c_ulong},
1277 min_perf: c_ulong,
1278 target_perf: c_ulong,
1279 max_perf: c_ulong, in get_intermediate_callback()
1280 capacity: c_ulong, in get_intermediate_callback()
1263 adjust_perf_callback( ptr: *mut bindings::cpufreq_policy, min_perf: c_ulong, target_perf: c_ulong, capacity: c_ulong, ) adjust_perf_callback() argument
1264 adjust_perf_callback( ptr: *mut bindings::cpufreq_policy, min_perf: c_ulong, target_perf: c_ulong, capacity: c_ulong, ) adjust_perf_callback() argument
1265 adjust_perf_callback( ptr: *mut bindings::cpufreq_policy, min_perf: c_ulong, target_perf: c_ulong, capacity: c_ulong, ) adjust_perf_callback() argument
H A Dprelude.rs35 c_ulong,
H A Ddma.rs236 pub(crate) fn as_raw(self) -> crate::ffi::c_ulong {
237 self.0 as crate::ffi::c_ulong
228 as_raw(self) -> crate::ffi::c_ulong as_raw() argument
H A Dtime.rs43 pub type Jiffies = crate::ffi::c_ulong;
/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/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 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/bindings/
H A Dlib.rs75 unsafe extern "C" fn(*mut file, ffi::c_uint, ffi::c_ulong) -> ffi::c_long,
/linux/rust/kernel/alloc/
H A Dallocator.rs69 crate::ffi::c_ulong,