Searched refs:next_index (Results 1 – 10 of 10) sorted by relevance
/DragonOS/kernel/crates/bitmap/tests/ |
H A D | static-bitmap.rs | 20 assert_eq!(bitmap.next_index(0), None); in test_empty_bitmap_32() 33 assert_eq!(bitmap.next_index(0), Some(1)); in test_empty_bitmap_32() 50 assert_eq!(bitmap.next_index(0), None); in test_empty_bitmap_64() 63 assert_eq!(bitmap.next_index(0), Some(1)); in test_empty_bitmap_64() 82 assert_eq!(bitmap.next_index(0), None); in test_static_bitmap_32_first_1() 90 assert_eq!(bitmap.next_index(2), None); in test_static_bitmap_32_first_1() 101 assert_eq!(bitmap.next_index(0), Some(1)); in test_static_bitmap_32_first_1() 109 assert_eq!(bitmap.next_index(2), Some(3)); in test_static_bitmap_32_first_1() 123 assert_eq!(bitmap.next_index(0), Some(15)); in test_static_bitmap_32_middle_1() 124 assert_eq!(bitmap.next_index(15), None); in test_static_bitmap_32_middle_1() [all …]
|
H A D | alloc-bitmap.rs | 20 assert_eq!(bitmap.next_index(0), None); in test_empty_bitmap_32() 33 assert_eq!(bitmap.next_index(0), Some(1)); in test_empty_bitmap_32() 50 assert_eq!(bitmap.next_index(0), None); in test_empty_bitmap_64() 63 assert_eq!(bitmap.next_index(0), Some(1)); in test_empty_bitmap_64() 82 assert_eq!(bitmap.next_index(0), None); in test_alloc_bitmap_32_first_1() 90 assert_eq!(bitmap.next_index(2), None); in test_alloc_bitmap_32_first_1() 101 assert_eq!(bitmap.next_index(0), Some(1)); in test_alloc_bitmap_32_first_1() 109 assert_eq!(bitmap.next_index(2), Some(3)); in test_alloc_bitmap_32_first_1() 123 assert_eq!(bitmap.next_index(0), Some(15)); in test_alloc_bitmap_32_middle_1() 124 assert_eq!(bitmap.next_index(15), None); in test_alloc_bitmap_32_middle_1() [all …]
|
/DragonOS/kernel/src/libs/ |
H A D | cpumask.rs | 56 pub fn next_index(&self, cpu: ProcessorId) -> Option<ProcessorId> { in next_index() method 58 .next_index(cpu.data() as usize) in next_index() 147 self.index = self.mask.next_index(self.index?); in next()
|
/DragonOS/kernel/crates/bitmap/src/ |
H A D | static_bitmap.rs | 84 fn next_index(&self, index: usize) -> Option<usize> { in next_index() function 85 self.core.next_index(N, &self.data, index) in next_index()
|
H A D | alloc_bitmap.rs | 73 fn next_index(&self, index: usize) -> Option<usize> { in next_index() method 74 self.core.next_index(self.elements, &self.data, index) in next_index()
|
H A D | traits.rs | 15 fn next_index(bits: &Self, index: usize) -> Option<usize>; in next_index() method 96 fn next_index(bits: &Self, index: usize) -> Option<usize> { 287 fn next_index(&self, index: usize) -> Option<usize>; in next_index() method
|
H A D | bitmap_core.rs | 126 pub(crate) fn next_index(&self, n: usize, data: &[T], index: usize) -> Option<usize> { in next_index() method 135 if let Some(bit) = <T as BitOps>::next_index(element, bit_index) { in next_index()
|
/DragonOS/kernel/src/bpf/map/ |
H A D | array_map.rs | 144 let next_index = index + 1; in get_next_key() localVariable 145 next_key.copy_from_slice(&next_index.to_ne_bytes()); in get_next_key()
|
/DragonOS/kernel/src/driver/tty/virtual_terminal/ |
H A D | virtual_console.rs | 1289 .next_index(self.state.x + 1) in do_control()
|
/DragonOS/kernel/src/driver/tty/tty_ldisc/ |
H A D | ntty.rs | 1020 let tmp = self.read_flags.next_index(tail); in canon_copy_from_read_buf()
|