| /linux/rust/kernel/alloc/ |
| H A D | kvec.rs | 504 pub fn with_capacity(capacity: usize, flags: Flags) -> Result<Self, AllocError> { in with_capacity() function 908 let mut v = Self::with_capacity(n, flags)?; in from_elem() 1476 let mut vec1: KVec<usize> = KVec::with_capacity(c.len(), GFP_KERNEL).unwrap(); in test_kvec_retain() 1477 let mut vec2: KVec<usize> = KVec::with_capacity(c.len(), GFP_KERNEL).unwrap(); in test_kvec_retain() 1504 let mut func = KVec::with_capacity(10, GFP_KERNEL).unwrap(); in test_kvec_retain() 1519 let mut v = KVVec::<u8>::with_capacity(PAGE_SIZE * 4, GFP_KERNEL).unwrap(); in test_kvvec_shrink_to() 1560 let mut v = KVVec::<u8>::with_capacity(PAGE_SIZE * 4, GFP_KERNEL).unwrap(); in test_kvvec_shrink_to_empty() 1577 let mut v = KVVec::<u8>::with_capacity(PAGE_SIZE, GFP_KERNEL).unwrap(); in test_kvvec_shrink_to_no_op() 1595 let mut v = KVVec::<u8>::with_capacity(PAGE_SIZE * 4, GFP_KERNEL).unwrap(); in test_kvvec_shrink_to_respects_min_capacity()
|
| H A D | kbox.rs | 321 let mut buffer = super::Vec::<T, A>::with_capacity(len, flags)?; 332 // `with_capacity()` above.
|
| /linux/rust/proc-macro2/ |
| H A D | rcvec.rs | 71 pub(crate) fn with_capacity(cap: usize) -> Self { in with_capacity() method 73 inner: Vec::with_capacity(cap), in with_capacity()
|
| H A D | fallback.rs | 173 pub(crate) fn with_capacity(cap: usize) -> Self { in with_capacity() method 175 inner: RcVecBuilder::with_capacity(cap), in with_capacity() 1035 let mut repr = String::with_capacity(string.len() + 2); in string()
|
| H A D | parse.rs | 950 let mut bracketed = TokenStreamBuilder::with_capacity(3); in doc_comment()
|
| /linux/drivers/android/binder/ |
| H A D | context.rs | 30 let mut ctxs = KVVec::with_capacity(lock.contexts.len(), GFP_KERNEL)?; in get_all_contexts() 158 let mut procs = KVVec::with_capacity(lock.all_procs.len(), GFP_KERNEL)?; in get_all_procs()
|
| H A D | freeze.rs | 331 KVVec::with_capacity(8, GFP_KERNEL).unwrap_or_else(|_err| KVVec::new()); in find_freeze_recipients() 372 let mut batch = KVVec::with_capacity(recipients.len(), GFP_KERNEL)?; in prepare_freeze_messages()
|
| H A D | allocation.rs | 201 let mut close_on_free = KVec::with_capacity(num_close_on_free, GFP_KERNEL)?; in translate_fds() 203 let mut reservations = KVec::with_capacity(files.len(), GFP_KERNEL)?; in translate_fds()
|
| H A D | page_range.rs | 311 let mut pages = KVVec::<PageInfo>::with_capacity(num_pages, GFP_KERNEL)?; in register_with_vma()
|
| H A D | process.rs | 1544 let mut procs = KVec::with_capacity(3, GFP_KERNEL)?; in ioctl_freeze()
|
| /linux/rust/syn/ |
| H A D | bigint.rs | 16 let mut repr = String::with_capacity(self.digits.len()); in to_string()
|
| H A D | punctuated.rs | 523 let mut elements = Vec::with_capacity(self.len()); in into_iter()
|
| /linux/rust/macros/ |
| H A D | zeroable.rs | |
| /linux/rust/pin-init/internal/src/ |
| H A D | zeroable.rs | |
| /linux/rust/kernel/ |
| H A D | id_pool.rs | 114 pub fn with_capacity(num_ids: usize, flags: Flags) -> Result<Self, AllocError> { in with_capacity() method
|
| H A D | scatterlist.rs | 347 KVec::with_capacity(page_iter.page_count(), flags)?; in new() 420 /// let pages = VVec::<u8>::with_capacity(size, GFP_KERNEL)?;
|
| H A D | str.rs | 840 let mut buf = KVec::with_capacity(size, GFP_KERNEL)?; in try_from_fmt()
|
| H A D | opp.rs | 93 let mut list = KVec::with_capacity(names.len() + 1, GFP_KERNEL)?; in to_c_str_array()
|
| /linux/samples/rust/ |
| H A D | rust_dma.rs | 80 let pages = VVec::with_capacity(size, GFP_KERNEL)?; in probe()
|
| /linux/drivers/android/binder/range_alloc/ |
| H A D | tree.rs | 476 let mut tree = KVec::with_capacity(num_descriptors, GFP_KERNEL)?; in try_new() 481 let mut free_tree = KVec::with_capacity(num_descriptors, GFP_KERNEL)?; in try_new()
|
| H A D | array.rs | 278 ranges: KVec::with_capacity(capacity, GFP_KERNEL)?, in try_new()
|