Home
last modified time | relevance | path

Searched refs:BitmapVec (Results 1 – 2 of 2) sorted by relevance

/linux/rust/kernel/
H A Dbitmap.rs154 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 Did_pool.rs8 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 …]