Lines Matching refs:index
106 let mut index = 0; in iter() variables
110 bindings::xa_find(self.xa.get(), &mut index, usize::MAX, bindings::XA_PRESENT) in iter()
115 bindings::xa_find_after(self.xa.get(), &mut index, usize::MAX, bindings::XA_PRESENT) in iter()
181 fn load<F, U>(&self, index: usize, f: F) -> Option<U> in load()
186 let ptr = unsafe { bindings::xa_load(self.xa.xa.get(), index) }; in load()
192 pub fn get(&self, index: usize) -> Option<T::Borrowed<'_>> { in get()
193 self.load(index, |ptr| { in get()
200 pub fn get_mut(&mut self, index: usize) -> Option<T::BorrowedMut<'_>> { in get_mut()
201 self.load(index, |ptr| { in get_mut()
208 pub fn remove(&mut self, index: usize) -> Option<T> { in remove()
212 let ptr = unsafe { bindings::__xa_erase(self.xa.xa.get(), index) }.cast(); in remove()
229 index: usize, in store()
246 unsafe { bindings::__xa_store(self.xa.xa.get(), index, new, gfp.as_raw()) } in store()