Lines Matching refs:Flags
39 pub struct Flags(u32); struct
41 impl Flags { implementation
48 pub fn contains(self, flags: Flags) -> bool { in contains()
53 impl core::ops::BitOr for Flags { implementation
60 impl core::ops::BitAnd for Flags { implementation
67 impl core::ops::Not for Flags { implementation
78 use super::Flags;
83 pub const __GFP_ZERO: Flags = Flags(bindings::__GFP_ZERO);
91 pub const __GFP_HIGHMEM: Flags = Flags(bindings::__GFP_HIGHMEM);
98 pub const GFP_ATOMIC: Flags = Flags(bindings::GFP_ATOMIC);
102 pub const GFP_KERNEL: Flags = Flags(bindings::GFP_KERNEL);
105 pub const GFP_KERNEL_ACCOUNT: Flags = Flags(bindings::GFP_KERNEL_ACCOUNT);
110 pub const GFP_NOWAIT: Flags = Flags(bindings::GFP_NOWAIT);
115 pub const __GFP_NOWARN: Flags = Flags(bindings::__GFP_NOWARN);
156 fn alloc(layout: Layout, flags: Flags) -> Result<NonNull<[u8]>, AllocError> { in alloc()
198 flags: Flags, in realloc() argument
214 let _ = unsafe { Self::realloc(Some(ptr), Layout::new::<()>(), layout, Flags(0)) }; in free()