Home
last modified time | relevance | path

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

/DragonOS/kernel/crates/bitmap/tests/
H A Dstatic-bitmap.rs20 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 Dalloc-bitmap.rs20 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 Dcpumask.rs56 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 Dstatic_bitmap.rs84 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 Dalloc_bitmap.rs73 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 Dtraits.rs15 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 Dbitmap_core.rs126 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 Darray_map.rs144 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 Dvirtual_console.rs1289 .next_index(self.state.x + 1) in do_control()
/DragonOS/kernel/src/driver/tty/tty_ldisc/
H A Dntty.rs1020 let tmp = self.read_flags.next_index(tail); in canon_copy_from_read_buf()