Home
last modified time | relevance | path

Searched refs:last_index (Results 1 – 8 of 8) sorted by relevance

/DragonOS/kernel/crates/bitmap/tests/
H A Dstatic-bitmap.rs18 assert_eq!(bitmap.last_index(), None); in test_empty_bitmap_32()
31 assert_eq!(bitmap.last_index(), Some(31)); in test_empty_bitmap_32()
48 assert_eq!(bitmap.last_index(), None); in test_empty_bitmap_64()
61 assert_eq!(bitmap.last_index(), Some(63)); in test_empty_bitmap_64()
80 assert_eq!(bitmap.last_index(), Some(0)); in test_static_bitmap_32_first_1()
99 assert_eq!(bitmap.last_index(), Some(31)); in test_static_bitmap_32_first_1()
121 assert_eq!(bitmap.last_index(), Some(15)); in test_static_bitmap_32_middle_1()
141 assert_eq!(bitmap.last_index(), Some(31)); in test_static_bitmap_32_middle_1()
163 assert_eq!(bitmap.last_index(), Some(31)); in test_static_bitmap_32_last_1()
183 assert_eq!(bitmap.last_index(), Some(30)); in test_static_bitmap_32_last_1()
[all …]
H A Dalloc-bitmap.rs18 assert_eq!(bitmap.last_index(), None); in test_empty_bitmap_32()
31 assert_eq!(bitmap.last_index(), Some(31)); in test_empty_bitmap_32()
48 assert_eq!(bitmap.last_index(), None); in test_empty_bitmap_64()
61 assert_eq!(bitmap.last_index(), Some(63)); in test_empty_bitmap_64()
80 assert_eq!(bitmap.last_index(), Some(0)); in test_alloc_bitmap_32_first_1()
99 assert_eq!(bitmap.last_index(), Some(31)); in test_alloc_bitmap_32_first_1()
121 assert_eq!(bitmap.last_index(), Some(15)); in test_alloc_bitmap_32_middle_1()
141 assert_eq!(bitmap.last_index(), Some(31)); in test_alloc_bitmap_32_middle_1()
163 assert_eq!(bitmap.last_index(), Some(31)); in test_alloc_bitmap_32_last_1()
183 assert_eq!(bitmap.last_index(), Some(30)); in test_alloc_bitmap_32_last_1()
[all …]
/DragonOS/kernel/crates/bitmap/src/
H A Dstatic_bitmap.rs74 fn last_index(&self) -> Option<usize> { in last_index() function
75 self.core.last_index(N, &self.data) in last_index()
H A Dalloc_bitmap.rs63 fn last_index(&self) -> Option<usize> { in last_index() method
64 self.core.last_index(self.elements, &self.data) in last_index()
H A Dtraits.rs13 fn last_index(bits: &Self) -> Option<usize>; in last_index() method
78 fn last_index(bits: &Self) -> Option<usize> {
276 fn last_index(&self) -> Option<usize>; in last_index() method
H A Dbitmap_core.rs84 pub(crate) fn last_index(&self, n: usize, data: &[T]) -> Option<usize> { in last_index() method
86 if let Some(bit) = <T as BitOps>::last_index(element) { in last_index()
185 if let Some(bit) = <T as BitOps>::last_index(element) { in prev_index()
/DragonOS/kernel/src/libs/
H A Dcpumask.rs51 .last_index() in last()
/DragonOS/kernel/src/filesystem/fat/
H A Dentry.rs2232 last_index: u8, field
2259 last_index: start_index, in new()
2265 return self.last_index + 1; in num_entries()
2278 n if n == self.last_index => { in next()