Searched refs:BitmapVec (Results 1 – 3 of 3) sorted by relevance
| /linux/rust/kernel/ |
| H A D | bitmap.rs | 154 pub struct BitmapVec { struct 161 impl core::ops::Deref for BitmapVec { argument 165 let ptr = if self.nbits <= BitmapVec::MAX_INLINE_LEN { in deref() 182 impl core::ops::DerefMut for BitmapVec { implementation 184 let ptr = if self.nbits <= BitmapVec::MAX_INLINE_LEN { in deref_mut() 204 unsafe impl Send for BitmapVec {} implementation 210 unsafe impl Sync for BitmapVec {} implementation 212 impl Drop for BitmapVec { implementation 214 if self.nbits <= BitmapVec::MAX_INLINE_LEN { in drop() 226 impl BitmapVec { impl [all …]
|
| H A D | id_pool.rs | 8 use crate::bitmap::BitmapVec; 69 map: BitmapVec, 79 new: BitmapVec, 90 let new = BitmapVec::new(self.num_ids, flags)?; in realloc() 104 map: BitmapVec::new_inline(), in new() 115 let num_ids = usize::max(num_ids, BitmapVec::MAX_INLINE_LEN); in with_capacity() 116 let map = BitmapVec::new(num_ids, flags)?; in with_capacity() 155 if cap <= BitmapVec::MAX_INLINE_LEN { in shrink_request() 164 num_ids: BitmapVec::MAX_INLINE_LEN, in shrink_request() 170 let num_ids = usize::max(BitmapVec::MAX_INLINE_LEN, cap / 2); in shrink_request() [all …]
|
| /linux/lib/ |
| H A D | find_bit_benchmark_rust.rs | 6 use kernel::bitmap::BitmapVec; 20 fn test_next_bit(bitmap: &BitmapVec) { in test_next_bit() argument 42 fn test_next_zero_bit(bitmap: &BitmapVec) { in test_next_zero_bit() argument 68 let mut bitmap = BitmapVec::new(BITMAP_LEN, GFP_KERNEL).expect("alloc bitmap failed"); in find_bit_test() 76 let mut bitmap = BitmapVec::new(BITMAP_LEN, GFP_KERNEL).expect("alloc sparse bitmap failed"); in find_bit_test()
|