Lines Matching full:let

38         let data: *const [()] = core::ptr::slice_from_raw_parts(ptr.cast(), nbits);  in from_raw()
63 let data: *mut [()] = core::ptr::slice_from_raw_parts_mut(ptr.cast(), nbits); in from_raw_mut()
134 /// let mut b = BitmapVec::new(16, GFP_KERNEL)?;
167 let ptr = if self.nbits <= BITS_PER_LONG { in deref()
186 let ptr = if self.nbits <= BITS_PER_LONG { in deref_mut()
244 let nbits_u32 = u32::try_from(nbits).unwrap(); in new()
246 let ptr = unsafe { bindings::bitmap_zalloc(nbits_u32, flags.as_raw()) }; in new()
247 let ptr = NonNull::new(ptr).ok_or(AllocError)?; in new()
389 /// let mut long_bitmap = BitmapVec::new(256, GFP_KERNEL)?;
393 /// let mut short_bitmap = BitmapVec::new(16, GFP_KERNEL)?;
403 let len = core::cmp::min(src.len(), self.len()); in copy_and_extend()
423 /// let bitmap = BitmapVec::new(64, GFP_KERNEL)?;
438 let index = unsafe { bindings::_find_last_bit(self.as_ptr(), self.len()) }; in last_bit()
459 let index = unsafe { bindings::_find_next_bit(self.as_ptr(), self.len(), start) }; in next_bit()
479 let index = unsafe { bindings::_find_next_zero_bit(self.as_ptr(), self.len(), start) }; in next_zero_bit()
497 let fake_bitmap: [usize; 2] = [0, 0]; in bitmap_borrow()
499 let b = unsafe { Bitmap::from_raw(fake_bitmap.as_ptr(), 2 * BITS_PER_LONG) }; in bitmap_borrow()
506 let fake_bitmap: usize = 0xFF; in bitmap_copy()
508 let b = unsafe { Bitmap::from_raw(core::ptr::addr_of!(fake_bitmap), 8) }; in bitmap_copy()
515 let b = BitmapVec::new(0, GFP_KERNEL)?; in bitmap_vec_new()
518 let b = BitmapVec::new(3, GFP_KERNEL)?; in bitmap_vec_new()
521 let b = BitmapVec::new(1024, GFP_KERNEL)?; in bitmap_vec_new()
525 let res = BitmapVec::new(1 << 31, GFP_KERNEL); in bitmap_vec_new()
532 let mut b = BitmapVec::new(128, GFP_KERNEL)?; in bitmap_set_clear_find()
566 let mut b = BitmapVec::new(128, GFP_KERNEL)?; in owned_bitmap_out_of_bounds()
583 // let mut b = BitmapVec::new(128, GFP_KERNEL)?;
590 let mut long_bitmap = BitmapVec::new(256, GFP_KERNEL)?; in bitmap_copy_and_extend()
595 let mut short_bitmap = BitmapVec::new(32, GFP_KERNEL)?; in bitmap_copy_and_extend()