Home
last modified time | relevance | path

Searched refs:first_false_index (Results 1 – 10 of 10) sorted by relevance

/DragonOS/kernel/crates/bitmap/tests/
H A Dstatic-bitmap.rs17 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 Dalloc-bitmap.rs17 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 Dalloc_bitmap.rs58 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 Dstatic_bitmap.rs69 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 Dtraits.rs12 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 Dbitmap_core.rs73 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 Dmod.rs54 let idx = inner.id_bmp.first_false_index()?; in alloc_id()
/DragonOS/kernel/src/libs/
H A Dcpumask.rs44 .first_false_index() in first_zero()
/DragonOS/kernel/src/mm/
H A Dno_init.rs69 if let Some(index) = self.bmp.first_false_index() { in allocate_page()
/DragonOS/kernel/src/driver/block/
H A Dvirtio_blk.rs127 let idx = inner.id_bmp.first_false_index()?; in alloc_id()