Lines Matching refs:value
42 let value = self.data.get(key).map(|v| v.as_slice()); in lookup_elem() localVariable
43 Ok(value) in lookup_elem()
45 fn update_elem(&mut self, key: &[u8], value: &[u8], flags: u64) -> Result<()> { in update_elem()
47 self.data.insert(key.to_vec(), value.to_vec()); in update_elem()
59 for (key, value) in self.data.iter() { in for_each_elem()
60 let res = cb(key, value, ctx); in for_each_elem()
69 fn lookup_and_delete_elem(&mut self, key: &[u8], value: &mut [u8]) -> Result<()> { in lookup_and_delete_elem()
75 value.copy_from_slice(v); in lookup_and_delete_elem()
129 fn update_elem(&mut self, key: &[u8], value: &[u8], flags: u64) -> Result<()> { in update_elem()
130 self.per_cpu_maps.get_mut().update_elem(key, value, flags) in update_elem()
138 fn lookup_and_delete_elem(&mut self, key: &[u8], value: &mut [u8]) -> Result<()> { in lookup_and_delete_elem()
141 .lookup_and_delete_elem(key, value) in lookup_and_delete_elem()