Searched refs:first_false_index (Results 1 – 10 of 10) sorted by relevance
/DragonOS/kernel/crates/bitmap/tests/ |
H A D | static-bitmap.rs | 17 assert_eq!(bitmap.first_false_index(), Some(0)); in test_empty_bitmap_32() 30 assert_eq!(bitmap.first_false_index(), None); in test_empty_bitmap_32() 47 assert_eq!(bitmap.first_false_index(), Some(0)); in test_empty_bitmap_64() 60 assert_eq!(bitmap.first_false_index(), None); in test_empty_bitmap_64() 79 assert_eq!(bitmap.first_false_index(), Some(1)); in test_static_bitmap_32_first_1() 98 assert_eq!(bitmap.first_false_index(), Some(0)); in test_static_bitmap_32_first_1() 120 assert_eq!(bitmap.first_false_index(), Some(0)); in test_static_bitmap_32_middle_1() 140 assert_eq!(bitmap.first_false_index(), Some(15)); in test_static_bitmap_32_middle_1() 162 assert_eq!(bitmap.first_false_index(), Some(0)); in test_static_bitmap_32_last_1() 182 assert_eq!(bitmap.first_false_index(), Some(31)); in test_static_bitmap_32_last_1() [all …]
|
H A D | alloc-bitmap.rs | 17 assert_eq!(bitmap.first_false_index(), Some(0)); in test_empty_bitmap_32() 30 assert_eq!(bitmap.first_false_index(), None); in test_empty_bitmap_32() 47 assert_eq!(bitmap.first_false_index(), Some(0)); in test_empty_bitmap_64() 60 assert_eq!(bitmap.first_false_index(), None); in test_empty_bitmap_64() 79 assert_eq!(bitmap.first_false_index(), Some(1)); in test_alloc_bitmap_32_first_1() 98 assert_eq!(bitmap.first_false_index(), Some(0)); in test_alloc_bitmap_32_first_1() 120 assert_eq!(bitmap.first_false_index(), Some(0)); in test_alloc_bitmap_32_middle_1() 140 assert_eq!(bitmap.first_false_index(), Some(15)); in test_alloc_bitmap_32_middle_1() 162 assert_eq!(bitmap.first_false_index(), Some(0)); in test_alloc_bitmap_32_last_1() 182 assert_eq!(bitmap.first_false_index(), Some(31)); in test_alloc_bitmap_32_last_1() [all …]
|
/DragonOS/kernel/crates/bitmap/src/ |
H A D | alloc_bitmap.rs | 58 fn first_false_index(&self) -> Option<usize> { in first_false_index() method 59 self.core.first_false_index(self.elements, &self.data) in first_false_index()
|
H A D | static_bitmap.rs | 69 fn first_false_index(&self) -> Option<usize> { in first_false_index() function 70 self.core.first_false_index(N, &self.data) in first_false_index()
|
H A D | traits.rs | 12 fn first_false_index(bits: &Self) -> Option<usize>; in first_false_index() method 69 fn first_false_index(bits: &Self) -> Option<usize> { 268 fn first_false_index(&self) -> Option<usize>; in first_false_index() method
|
H A D | bitmap_core.rs | 73 pub(crate) fn first_false_index(&self, n: usize, data: &[T]) -> Option<usize> { in first_false_index() method 75 if let Some(bit) = <T as BitOps>::first_false_index(element) { in first_false_index() 163 if let Some(bit) = <T as BitOps>::first_false_index(element) { in next_false_index()
|
/DragonOS/kernel/src/driver/scsi/ |
H A D | mod.rs | 54 let idx = inner.id_bmp.first_false_index()?; in alloc_id()
|
/DragonOS/kernel/src/libs/ |
H A D | cpumask.rs | 44 .first_false_index() in first_zero()
|
/DragonOS/kernel/src/mm/ |
H A D | no_init.rs | 69 if let Some(index) = self.bmp.first_false_index() { in allocate_page()
|
/DragonOS/kernel/src/driver/block/ |
H A D | virtio_blk.rs | 127 let idx = inner.id_bmp.first_false_index()?; in alloc_id()
|