Home
last modified time | relevance | path

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

/linux/rust/kernel/alloc/
H A Dkvec.rs817 let target_cap = core::cmp::max(self.len(), min_capacity); in shrink_to()
819 if self.capacity() <= target_cap { in shrink_to()
832 let new_layout = ArrayLayout::<T>::new(target_cap).map_err(|_| AllocError)?; in shrink_to()
854 let target_size = target_cap * core::mem::size_of::<T>(); in extend_with()
862 if target_cap == 0 { in extend_with()
874 // SAFETY: `target_cap <= self.capacity()` and original capacity was valid. in extend_with()
875 let new_layout = unsafe { ArrayLayout::<T>::new_unchecked(target_cap) };
881 // - `new_ptr` is valid for writes of at least `target_cap >= self.len()` elements.
767 let target_cap = core::cmp::max(self.len(), min_capacity); shrink_to() localVariable
/linux/fs/ceph/
H A Dcaps.c4292 struct ceph_cap **target_cap, int *old_issued) in handle_cap_import() argument
4362 *target_cap = cap; in handle_cap_import()