| /linux/samples/rust/ |
| H A D | rust_debugfs_scoped.rs | 65 let mut nums = KVec::new(); in create_file_write() 109 devices: Mutex<KVec<Pin<KBox<Scope<DeviceData>>>>>, in init() 117 devices <- new_mutex!(KVec::new()) 125 nums: KVec<Atomic<usize>>, in init_control()
|
| H A D | rust_minimal.rs | 22 numbers: KVec<i32>, 34 let mut numbers = KVec::new(); in init()
|
| H A D | rust_driver_platform.rs | 167 let prop: KVec<i16> = fwnode.property_read_array_vec(name, 4)?.required_by(dev)?; in properties_parse() 168 dev_info!(dev, "'{name}'='{prop:?}' (KVec)\n"); in properties_parse()
|
| H A D | rust_debugfs.rs | 81 vector_blob: File<Mutex<KVec<u8>>>, in from_str()
|
| /linux/drivers/android/binder/ |
| 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() 561 files_to_translate: KVec<FileEntry>, 562 close_on_free: KVec<u32>, 575 reservations: KVec<Reservation>, 589 reservations: KVec::new(), in new() 590 close_on_free: FdsCloseOnFree(KVec::new()), in new() 603 pub(crate) struct FdsCloseOnFree(KVec<u32>);
|
| H A D | thread.rs | 49 sg_entries: KVec<ScatterGatherEntry>, 52 ancestors: KVec<usize>, 69 pointer_fixups: KVec<PointerFixupEntry>, 741 pointer_fixups: KVec::new(), in translate_object() 845 let mut fda_bytes = KVec::new(); in translate_object() 1029 sg_entries: KVec::new(), in copy_transaction_data() 1030 ancestors: KVec::new(), in copy_transaction_data()
|
| H A D | process.rs | 585 let mut all_threads = KVec::new(); in debug_print() 586 let mut all_nodes = KVec::new(); in debug_print() 1544 let mut procs = KVec::with_capacity(3, GFP_KERNEL)?; in ioctl_freeze()
|
| /linux/rust/kernel/ |
| H A D | opp.rs | 91 fn to_c_str_array(names: &[CString]) -> Result<KVec<*const c_char>> { in to_c_str_array() 93 let mut list = KVec::with_capacity(names.len() + 1, GFP_KERNEL)?; in to_c_str_array() 362 clk_names: Option<KVec<CString>>, 364 regulator_names: Option<KVec<CString>>, 365 supported_hw: Option<KVec<u32>>, 380 pub fn set_clk_names(mut self, names: KVec<CString>) -> Result<Self> { in set_clk_names() 404 pub fn set_regulator_names(mut self, names: KVec<CString>) -> Result<Self> { in set_regulator_names() 429 pub fn set_supported_hw(mut self, hw: KVec<u32>) -> Result<Self> { in set_supported_hw()
|
| H A D | str.rs | 6 alloc::{flags::*, AllocError, KVec}, 827 buf: KVec<u8>, 840 let mut buf = KVec::with_capacity(size, GFP_KERNEL)?; in try_from_fmt() 890 let mut buf = KVec::new(); in try_from()
|
| H A D | prelude.rs | 68 KVec,
|
| H A D | scatterlist.rs | 346 let mut page_vec: KVec<*mut bindings::page> = in new() 347 KVec::with_capacity(page_iter.page_count(), flags)?; in new() 364 // - `page_vec` is a `KVec` of valid `struct page *` obtained from `pages`. in new()
|
| H A D | cpufreq.rs | 278 entries: Pin<KVec<bindings::cpufreq_frequency_table>>, 288 fn new(entries: KVec<bindings::cpufreq_frequency_table>) -> Result<Self> { in new() 352 entries: KVec<bindings::cpufreq_frequency_table>, 360 entries: KVec::new(), in new()
|
| H A D | alloc.rs | 17 pub use self::kvec::KVec;
|
| /linux/rust/kernel/alloc/ |
| H A D | kvec.rs | 58 $crate::alloc::KVec::new() 61 $crate::alloc::KVec::from_elem($elem, $n, GFP_KERNEL) 65 Ok(b) => Ok($crate::alloc::KVec::from($crate::alloc::KBox::write(b, [$($x),+]))), 129 pub type KVec<T> = Vec<T, Kmalloc>; typedef 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()
|
| /linux/drivers/android/binder/range_alloc/ |
| H A D | tree.rs | 36 ranges: &mut KVec<Range<T>>, in from_array() 468 tree: KVec<RBTreeNodeReservation<usize, Descriptor<T>>>, 469 free_tree: KVec<RBTreeNodeReservation<FreeKey, ()>>, 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 | 25 pub(super) ranges: KVec<Range<T>>, 272 ranges: KVec<Range<T>>, 278 ranges: KVec::with_capacity(capacity, GFP_KERNEL)?, in try_new()
|