| /rust/kernel/ |
| A D | alloc.rs | 39 pub struct Flags(u32); struct 41 impl 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); [all …]
|
| A D | init.rs | 130 alloc::{AllocError, Flags}, 147 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self::PinnedSelf, E> in try_pin_init() 155 fn pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> error::Result<Self::PinnedSelf> in pin_init() 167 fn try_init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> in try_init() 172 fn init<E>(init: impl Init<T, E>, flags: Flags) -> error::Result<Self> in init()
|
| A D | cpumask.rs | 8 alloc::{AllocError, Flags}, 224 pub fn new_zero(_flags: Flags) -> Result<Self, AllocError> { in new_zero() 249 pub unsafe fn new(_flags: Flags) -> Result<Self, AllocError> { in new()
|
| A D | page.rs | 6 alloc::{AllocError, Flags}, 73 pub fn alloc_page(flags: Flags) -> Result<Self, AllocError> { in alloc_page()
|
| A D | uaccess.rs | 8 alloc::{Allocator, Flags}, 171 pub fn read_all<A: Allocator>(self, buf: &mut Vec<u8, A>, flags: Flags) -> Result { in read_all() 325 pub fn read_all<A: Allocator>(mut self, buf: &mut Vec<u8, A>, flags: Flags) -> Result { in read_all()
|
| A D | devres.rs | 9 alloc::Flags, 352 pub fn register<T, E>(dev: &Device<Bound>, data: impl PinInit<T, E>, flags: Flags) -> Result in register()
|
| A D | dma.rs | 301 gfp_flags: kernel::alloc::Flags, in alloc_attrs() argument 346 gfp_flags: kernel::alloc::Flags, in alloc_coherent() argument
|
| A D | rbtree.rs | 9 use crate::{alloc::Flags, bindings, container_of, error::Result, prelude::*}; 290 flags: Flags, in try_create_and_insert() argument 1043 pub fn new(flags: Flags) -> Result<RBTreeNodeReservation<K, V>> { in new() 1085 pub fn new(key: K, value: V, flags: Flags) -> Result<RBTreeNode<K, V>> { in new()
|
| A D | xarray.rs | 231 gfp: alloc::Flags, in store() argument
|
| A D | workqueue.rs | 189 alloc::{AllocError, Flags}, 336 flags: Flags, in try_spawn() argument
|
| /rust/kernel/io/ |
| A D | resource.rs | 103 flags: Flags, in request_region() argument 164 Flags(flags) in flags() 183 pub struct Flags(c_ulong); struct 185 impl Flags { implementation 206 impl core::ops::Not for Flags { implementation 213 impl Flags { impls 215 pub const IORESOURCE_IO: Flags = Flags::new(bindings::IORESOURCE_IO); 218 pub const IORESOURCE_MUXED: Flags = Flags::new(bindings::IORESOURCE_MUXED); 221 pub const IORESOURCE_MEM: Flags = Flags::new(bindings::IORESOURCE_MEM); 224 pub const IORESOURCE_MEM_NONPOSTED: Flags = Flags::new(bindings::IORESOURCE_MEM_NONPOSTED); [all …]
|
| A D | mem.rs | 174 io::resource::Flags::IORESOURCE_MEM, in ioremap() 233 .contains(io::resource::Flags::IORESOURCE_MEM_NONPOSTED) in ioremap()
|
| /rust/kernel/alloc/ |
| A D | allocator.rs | 11 use super::Flags; 89 flags: Flags, in call() argument 136 flags: Flags, in realloc() argument 153 flags: Flags, in realloc() argument 177 flags: Flags, in realloc() argument
|
| A D | allocator_test.rs | 12 use super::{flags::*, AllocError, Allocator, Flags}; 42 flags: Flags, in realloc() argument
|
| A D | kbox.rs | 7 use super::{AllocError, Allocator, Flags}; 255 pub fn new(x: T, flags: Flags) -> Result<Self, AllocError> { in new() 274 pub fn new_uninit(flags: Flags) -> Result<Box<MaybeUninit<T>, A>, AllocError> { in new_uninit() 286 pub fn pin(x: T, flags: Flags) -> Result<Pin<Box<T, A>>, AllocError> in pin() 387 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Pin<Self>, E> in try_pin_init() 395 fn try_init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> in try_init()
|
| A D | kvec.rs | 8 AllocError, Allocator, Box, Flags, 312 pub fn push(&mut self, v: T, flags: Flags) -> Result<(), AllocError> { in push() 488 pub fn with_capacity(capacity: usize, flags: Flags) -> Result<Self, AllocError> { in with_capacity() 609 pub fn reserve(&mut self, additional: usize, flags: Flags) -> Result<(), AllocError> { in reserve() 726 pub fn extend_with(&mut self, n: usize, value: T, flags: Flags) -> Result<(), AllocError> { in extend_with() 765 pub fn extend_from_slice(&mut self, other: &[T], flags: Flags) -> Result<(), AllocError> { in extend_from_slice() 781 pub fn from_elem(value: T, n: usize, flags: Flags) -> Result<Self, AllocError> { in from_elem() 806 pub fn resize(&mut self, new_len: usize, value: T, flags: Flags) -> Result<(), AllocError> { in resize() 1089 pub fn collect(self, flags: Flags) -> Vec<T, A> { in collect()
|
| /rust/kernel/sync/ |
| A D | arc.rs | 20 alloc::{AllocError, Flags, KBox}, 211 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self::PinnedSelf, E> in try_pin_init() 219 fn try_init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> in try_init() 229 pub fn new(contents: T, flags: Flags) -> Result<Self, AllocError> { in new() 726 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self::PinnedSelf, E> in try_pin_init() 734 fn try_init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> in try_init() 766 pub fn new(value: T, flags: Flags) -> Result<Self, AllocError> { in new() 774 pub fn new_uninit(flags: Flags) -> Result<UniqueArc<MaybeUninit<T>>, AllocError> { in new_uninit()
|
| /rust/kernel/list/ |
| A D | arc.rs | 7 use crate::alloc::{AllocError, Flags}; 173 pub fn new(contents: T, flags: Flags) -> Result<Self, AllocError> { in new() 183 pub fn pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self, E> in pin_init() 194 pub fn init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> in init()
|