Lines Matching refs:index
55 fn index(&self, index: u32) -> &Self::Output { in index() method
56 let start = index * self.elem_size; in index()
62 fn index_mut(&mut self, index: u32) -> &mut Self::Output { in index_mut()
63 let start = index * self.elem_size; in index_mut()
87 let index = u32::from_ne_bytes(key.try_into().map_err(|_| SystemError::EINVAL)?); in lookup_elem() localVariable
88 if index >= self.max_entries { in lookup_elem()
91 let val = self.data.index(index); in lookup_elem()
98 let index = u32::from_ne_bytes(key.try_into().map_err(|_| SystemError::EINVAL)?); in update_elem() localVariable
99 if index >= self.max_entries { in update_elem()
105 let old_value = self.data.index_mut(index); in update_elem()
120 let value = self.data.index(i); in for_each_elem()
140 let index = u32::from_ne_bytes(key.try_into().map_err(|_| SystemError::EINVAL)?); in get_next_key() localVariable
141 if index == self.max_entries - 1 { in get_next_key()
144 let next_index = index + 1; in get_next_key()
248 let value = self.fds.index(cpu_id); in lookup_elem()
268 let value = self.fds.index(i); in for_each_elem()