Lines Matching refs:value
41 let value = self.data.get(key).map(|v| v.as_slice()); in lookup_elem() localVariable
42 Ok(value) in lookup_elem()
44 fn update_elem(&mut self, key: &[u8], value: &[u8], _flags: u64) -> Result<()> { in update_elem()
45 self.data.put(key.to_vec(), value.to_vec()); in update_elem()
57 for (key, value) in self.data.iter() { in for_each_elem()
58 let res = cb(key, value, ctx); in for_each_elem()
67 fn lookup_and_delete_elem(&mut self, key: &[u8], value: &mut [u8]) -> Result<()> { in lookup_and_delete_elem()
73 value.copy_from_slice(v); in lookup_and_delete_elem()
127 fn update_elem(&mut self, key: &[u8], value: &[u8], flags: u64) -> Result<()> { in update_elem()
128 self.per_cpu_maps.get_mut().update_elem(key, value, flags) in update_elem()
136 fn lookup_and_delete_elem(&mut self, key: &[u8], value: &mut [u8]) -> Result<()> { in lookup_and_delete_elem()
139 .lookup_and_delete_elem(key, value) in lookup_and_delete_elem()