| /rust/kernel/ |
| A D | ioctl.rs | 13 const fn _IOC(dir: u32, ty: u32, nr: u32, size: usize) -> u32 { in _IOC() argument 22 | ((size as u32) << uapi::_IOC_SIZESHIFT) in _IOC() 27 pub const fn _IO(ty: u32, nr: u32) -> u32 { in _IO() argument 33 pub const fn _IOR<T>(ty: u32, nr: u32) -> u32 { in _IOR() argument 39 pub const fn _IOW<T>(ty: u32, nr: u32) -> u32 { in _IOW() argument 45 pub const fn _IOWR<T>(ty: u32, nr: u32) -> u32 { in _IOWR() argument 55 pub const fn _IOC_DIR(nr: u32) -> u32 { in _IOC_DIR() argument 60 pub const fn _IOC_TYPE(nr: u32) -> u32 { in _IOC_TYPE() argument 65 pub const fn _IOC_NR(nr: u32) -> u32 { in _IOC_NR() argument 70 pub const fn _IOC_SIZE(nr: u32) -> usize { in _IOC_SIZE()
|
| A D | cpu.rs | 11 pub fn nr_cpu_ids() -> u32 { in nr_cpu_ids() 47 pub struct CpuId(u32); 58 debug_assert!((id as u32) < nr_cpu_ids()); in from_i32_unchecked() 61 Self(id as u32) in from_i32_unchecked() 66 if id < 0 || id as u32 >= nr_cpu_ids() { in from_i32() 70 Some(Self(id as u32)) in from_i32() 80 pub unsafe fn from_u32_unchecked(id: u32) -> Self { in from_u32_unchecked() 84 debug_assert!(id <= i32::MAX as u32); in from_u32_unchecked() 91 pub fn from_u32(id: u32) -> Option<Self> { in from_u32() 102 pub fn as_u32(&self) -> u32 { in as_u32() argument [all …]
|
| A D | bits.rs | 21 pub fn [<checked_bit_ $ty>](n: u32) -> Option<$ty> { 31 pub const fn [<bit_ $ty>](n: u32) -> $ty { 40 impl_bit_fn!(u32); 59 pub fn [<genmask_checked_ $ty>](range: RangeInclusive<u32>) -> Option<$ty> { 79 pub const fn [<genmask_ $ty>](range: RangeInclusive<u32>) -> $ty { 122 u32,
|
| A D | cpufreq.rs | 42 pub const ETERNAL_LATENCY_NS: u32 = bindings::CPUFREQ_ETERNAL as u32; 69 const CPUFREQ_RELATION_L: u32 = 0; 70 const CPUFREQ_RELATION_H: u32 = 1; 71 const CPUFREQ_RELATION_C: u32 = 2; 74 const CPUFREQ_RELATION_E: u32 = 1 << 2; 91 fn new(val: u32) -> Result<Self> { in new() 103 impl From<Relation> for u32 { implementation 366 pub fn add(&mut self, freq: Hertz, flags: u32, driver_data: u32) -> Result { in add() argument 372 frequency: freq.as_khz() as u32, in add() 528 pub fn generic_get(&self) -> Result<u32> { in generic_get() argument [all …]
|
| A D | bug.rs | 15 const FLAGS: u32 = $crate::bindings::BUGFLAG_WARNING | $flags; 54 const FLAGS: u32 = $crate::bindings::BUGFLAG_WARNING | $flags; 110 pub const fn bugflag_taint(value: u32) -> u32 { in bugflag_taint() argument 120 const WARN_ON_FLAGS: u32 = $crate::bug::bugflag_taint($crate::bindings::TAINT_WARN);
|
| A D | transmute.rs | 26 u8, u16, u32, u64, usize, 61 u8, u16, u32, u64, usize,
|
| A D | pci.rs | 127 const PCI_ANY_ID: u32 = !0; 132 pub const fn from_id(vendor: u32, device: u32) -> Self { in from_id() argument 148 pub const fn from_class(class: u32, class_mask: u32) -> Self { in from_class() argument 291 fn new(pdev: &Device, num: u32, name: &CStr) -> Result<Self> { in new() argument 362 fn index_is_valid(index: u32) -> bool { in index_is_valid() 403 pub fn resource_len(&self, bar: u32) -> Result<bindings::resource_size_t> { in resource_len() 420 bar: u32, in iomap_region_sized() argument 429 bar: u32, in iomap_region() argument
|
| A D | opp.rs | 306 _count: u32, in config_regulators() argument 364 supported_hw: Option<KVec<u32>>, 367 required_dev: Option<(ARef<Device>, u32)>, 428 pub fn set_supported_hw(mut self, hw: KVec<u32>) -> Result<Self> { in set_supported_hw() 471 .map_or((ptr::null(), 0), |hw| (hw.as_ptr(), hw.len() as u32)); in set() 712 pub fn opp_count(&self) -> Result<u32> { in opp_count() argument 719 Ok(ret as u32) in opp_count() 848 index: Option<u32>, in opp_from_freq() argument 1099 pub fn freq(&self, index: Option<u32>) -> Hertz { in freq() 1117 pub fn level(&self) -> u32 { in level() argument [all …]
|
| A D | io.rs | 228 define_read!(read32, try_read32, readl -> u32); 238 define_read!(read32_relaxed, try_read32_relaxed, readl_relaxed -> u32); 248 define_write!(write32, try_write32, writel <- u32); 258 define_write!(write32_relaxed, try_write32_relaxed, writel_relaxed <- u32);
|
| A D | alloc.rs | 39 pub struct Flags(u32); 43 pub(crate) fn as_raw(self) -> u32 { in as_raw() argument
|
| A D | security.rs | 27 pub fn from_secid(secid: u32) -> Result<Self> { in from_secid()
|
| A D | cred.rs | 59 pub fn get_secid(&self) -> u32 { in get_secid() argument
|
| A D | cpumask.rs | 94 unsafe { bindings::__cpumask_set_cpu(u32::from(cpu), self.as_raw()) }; in set() 149 pub fn weight(&self) -> u32 { in weight() argument
|
| A D | dma.rs | 111 pub const fn new<const N: u32>() -> Self { in new() 143 pub const fn try_new(n: u32) -> Result<Self> { in try_new() 178 pub struct Attrs(u32);
|
| A D | platform.rs | 232 pub fn resource_by_index(&self, index: u32) -> Option<&Resource> { in resource_by_index() 271 pub fn io_request_by_index(&self, index: u32) -> Option<IoRequest<'_>> { in io_request_by_index()
|
| /rust/kernel/fs/ |
| A D | file.rs | 21 pub const O_APPEND: u32 = bindings::O_APPEND; 24 pub const O_ASYNC: u32 = bindings::FASYNC; 30 pub const O_CREAT: u32 = bindings::O_CREAT; 39 pub const O_DSYNC: u32 = bindings::O_DSYNC; 42 pub const O_EXCL: u32 = bindings::O_EXCL; 66 pub const O_PATH: u32 = bindings::O_PATH; 69 pub const O_SYNC: u32 = bindings::O_SYNC; 330 pub fn flags(&self) -> u32 { in flags() argument 385 fd: u32, 405 fd: fd as u32, in get_unused_fd_flags() [all …]
|
| /rust/kernel/drm/ |
| A D | ioctl.rs | 9 const BASE: u32 = uapi::DRM_IOCTL_BASE as u32; 14 pub const fn IO(nr: u32) -> u32 { in IO() argument 21 pub const fn IOR<T>(nr: u32) -> u32 { in IOR() argument 28 pub const fn IOW<T>(nr: u32) -> u32 { in IOW() argument 35 pub const fn IOWR<T>(nr: u32) -> u32 { in IOWR() argument 44 pub const AUTH: u32 = bindings::drm_ioctl_flags_DRM_AUTH; 51 pub const MASTER: u32 = bindings::drm_ioctl_flags_DRM_MASTER; 59 pub const ROOT_ONLY: u32 = bindings::drm_ioctl_flags_DRM_ROOT_ONLY; 65 pub const RENDER_ALLOW: u32 = bindings::drm_ioctl_flags_DRM_RENDER_ALLOW; 106 let i: u32 = $crate::uapi::DRM_COMMAND_BASE; [all …]
|
| A D | driver.rs | 16 pub(crate) const FEAT_GEM: u32 = bindings::drm_driver_feature_DRIVER_GEM; 44 handle: u32, 45 flags: u32, 54 handle: *mut u32, 81 handle: u32,
|
| /rust/kernel/block/mq/ |
| A D | gen_disk.rs | 18 logical_block_size: u32, 19 physical_block_size: u32, 27 logical_block_size: bindings::PAGE_SIZE as u32, in default() 28 physical_block_size: bindings::PAGE_SIZE as u32, in default() 48 fn validate_block_size(size: u32) -> Result { in validate_block_size() 49 if !(512..=bindings::PAGE_SIZE as u32).contains(&size) || !size.is_power_of_two() { in validate_block_size() 63 pub fn logical_block_size(mut self, block_size: u32) -> Result<Self> { in logical_block_size() 78 pub fn physical_block_size(mut self, block_size: u32) -> Result<Self> { in physical_block_size()
|
| A D | tag_set.rs | 37 nr_hw_queues: u32, in new() argument 38 num_tags: u32, in new() argument 39 num_maps: u32, in new() argument
|
| /rust/helpers/ |
| A D | security.c | 6 void rust_helper_security_cred_getsecid(const struct cred *c, u32 *secid) in rust_helper_security_cred_getsecid() 11 int rust_helper_security_secid_to_secctx(u32 secid, struct lsm_context *cp) in rust_helper_security_secid_to_secctx()
|
| A D | io.c | 31 u32 rust_helper_readl(const void __iomem *addr) in rust_helper_readl() 53 void rust_helper_writel(u32 value, void __iomem *addr) in rust_helper_writel() 75 u32 rust_helper_readl_relaxed(const void __iomem *addr) in rust_helper_readl_relaxed() 97 void rust_helper_writel_relaxed(u32 value, void __iomem *addr) in rust_helper_writel_relaxed()
|
| /rust/kernel/net/ |
| A D | phy.rs | 95 pub fn phy_id(&self) -> u32 { in phy_id() argument 162 pub fn set_speed(&mut self, speed: u32) { in set_speed() argument 572 const FLAGS: u32 = 0; 716 pub const fn new_with_custom_mask(id: u32, mask: u32) -> Self { in new_with_custom_mask() argument 729 pub const fn id(&self) -> u32 { in id() argument 734 pub const fn mask_as_int(&self) -> u32 { in mask_as_int() argument 755 Custom(u32), 759 const MASK_EXACT: u32 = !0; 760 const MASK_MODEL: u32 = !0 << 4; 761 const MASK_VENDOR: u32 = !0 << 10; [all …]
|
| /rust/ |
| A D | ffi.rs | 37 c_uint = u32;
|
| /rust/kernel/drm/gem/ |
| A D | mod.rs | 147 ) -> Result<u32> { in create_handle() argument 148 let mut handle: u32 = 0; in create_handle() 159 handle: u32, in lookup_handle() argument
|