Searched refs:c_ulong (Results 1 – 13 of 13) sorted by relevance
| /linux/rust/kernel/ |
| H A D | clk.rs | 9 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 D | opp.rs | 16 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 D | cpufreq.rs | 18 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 D | prelude.rs | 34 c_ulong,
|
| H A D | dma.rs | 228 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 D | flags.rs | 27 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 D | trace.rs | 9 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 D | page_range.rs | 27 ffi::{c_ulong, c_void}, 664 ) -> c_ulong { in rust_shrink_count() argument 677 ) -> c_ulong { in rust_shrink_scan() argument
|
| H A D | rust_binder_main.rs | 415 arg: kernel::ffi::c_ulong, in rust_binder_ioctl() argument
|
| /linux/rust/kernel/time/ |
| H A D | delay.rs | 47 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 D | resource.rs | 186 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 D | ffi.rs | 42 c_ulong = usize;
|
| /linux/rust/kernel/alloc/ |
| H A D | allocator.rs | 58 crate::ffi::c_ulong,
|