Home
last modified time | relevance | path

Searched refs:bit_index (Results 1 – 2 of 2) sorted by relevance

/DragonOS/kernel/crates/bitmap/src/
H A Dbitmap_core.rs24 let bit_index = index % T::bit_size(); in get() localVariable
27 let bit = <T as BitOps>::get(element, bit_index); in get()
38 let bit_index = index % T::bit_size(); in set() localVariable
41 let bit = <T as BitOps>::set(element, bit_index, value); in set()
132 let bit_index = index % T::bit_size(); in next_index() localVariable
135 if let Some(bit) = <T as BitOps>::next_index(element, bit_index) { in next_index()
155 let bit_index = index % T::bit_size(); in next_false_index() localVariable
158 if let Some(bit) = <T as BitOps>::next_false_index(element, bit_index) { in next_false_index()
177 let bit_index = index % T::bit_size(); in prev_index() localVariable
180 if let Some(bit) = <T as BitOps>::prev_index(element, bit_index) { in prev_index()
[all …]
/DragonOS/kernel/src/include/bindings/
H A Dlinux_bpf.rs23 let bit_index = if cfg!(target_endian = "big") { in get_bit() localVariable
28 let mask = 1 << bit_index; in get_bit()
36 let bit_index = if cfg!(target_endian = "big") { in set_bit() localVariable
41 let mask = 1 << bit_index; in set_bit()