| /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/rust/kernel/alloc/ |
| H A D | kvec.rs | 55 $crate::alloc::KVec::new() 58 $crate::alloc::KVec::from_elem($elem, $n, GFP_KERNEL) 62 Ok(b) => Ok($crate::alloc::KVec::from($crate::alloc::KBox::write(b, [$($x),+]))), 126 pub type KVec<T> = Vec<T, Kmalloc>; typedef 1364 let mut vec1: KVec<usize> = KVec::with_capacity(c.len(), GFP_KERNEL).unwrap(); in test_kvec_retain() 1365 let mut vec2: KVec<usize> = KVec::with_capacity(c.len(), GFP_KERNEL).unwrap(); in test_kvec_retain() 1392 let mut func = KVec::with_capacity(10, GFP_KERNEL).unwrap(); in test_kvec_retain()
|
| /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}, 811 buf: KVec<u8>, 824 let mut buf = KVec::with_capacity(size, GFP_KERNEL)?; in try_from_fmt() 871 let mut buf = KVec::new(); in try_from()
|
| 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 | prelude.rs | 25 pub use crate::alloc::{flags::*, Box, KBox, KVBox, KVVec, KVec, VBox, VVec, Vec};
|
| 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/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>>, 273 ranges: KVec<Range<T>>, 279 ranges: KVec::with_capacity(capacity, GFP_KERNEL)?, in try_new()
|
| /linux/drivers/android/binder/ |
| H A D | thread.rs | 49 sg_entries: KVec<ScatterGatherEntry>, 52 ancestors: KVec<usize>, 69 pointer_fixups: KVec<PointerFixupEntry>, 734 pointer_fixups: KVec::new(), in translate_object() 838 let mut fda_bytes = KVec::new(); in translate_object() 1031 sg_entries: KVec::new(), in copy_transaction_data() 1032 ancestors: KVec::new(), in copy_transaction_data()
|
| H A D | process.rs | 584 let mut all_threads = KVec::new(); in debug_print() 585 let mut all_nodes = KVec::new(); in debug_print() 1542 let mut procs = KVec::with_capacity(3, GFP_KERNEL)?; in ioctl_freeze()
|