Home
last modified time | relevance | path

Searched defs:usize (Results 1 – 25 of 41) sorted by relevance

12

/linux-6.6.21/rust/alloc/
Draw_vec.rs131 pub fn with_capacity_in(capacity: usize, alloc: A) -> Self { in with_capacity_in()
138 pub fn try_with_capacity_in(capacity: usize, alloc: A) -> Result<Self, TryReserveError> { in try_with_capacity_in()
146 pub fn with_capacity_zeroed_in(capacity: usize, alloc: A) -> Self { in with_capacity_zeroed_in()
177 fn allocate_in(capacity: usize, init: AllocInit, alloc: A) -> Self { in allocate_in()
212 … fn try_allocate_in(capacity: usize, init: AllocInit, alloc: A) -> Result<Self, TryReserveError> { in try_allocate_in()
247 pub unsafe fn from_raw_parts_in(ptr: *mut T, capacity: usize, alloc: A) -> Self { in from_raw_parts_in()
263 pub fn capacity(&self) -> usize { in capacity()
311 pub fn reserve(&mut self, len: usize, additional: usize) { in reserve()
319 len: usize, in reserve()
320 additional: usize, in reserve()
[all …]
Dalloc.rs30 fn __rust_alloc(size: usize, align: usize) -> *mut u8; in __rust_alloc()
33 fn __rust_dealloc(ptr: *mut u8, size: usize, align: usize); in __rust_dealloc()
36 fn __rust_realloc(ptr: *mut u8, old_size: usize, align: usize, new_size: usize) -> *mut u8; in __rust_realloc()
39 fn __rust_alloc_zeroed(size: usize, align: usize) -> *mut u8; in __rust_alloc_zeroed()
330 unsafe fn exchange_malloc(size: usize, align: usize) -> *mut u8 { in exchange_malloc()
345 fn __rust_alloc_error_handler(size: usize, align: usize) -> !; in __rust_alloc_error_handler()
390 pub unsafe fn __rdl_oom(size: usize, _align: usize) -> ! { in __rdl_oom()
Dboxed.rs764 pub fn new_uninit_slice_in(len: usize, alloc: A) -> Box<[mem::MaybeUninit<T>], A> { in new_uninit_slice_in()
792 pub fn new_zeroed_slice_in(len: usize, alloc: A) -> Box<[mem::MaybeUninit<T>], A> { in new_zeroed_slice_in()
1413 fn write_usize(&mut self, i: usize) { in write_usize()
1434 fn write_length_prefix(&mut self, len: usize) { in write_length_prefix()
1947 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint()
1995 fn len(&self) -> usize { in len()
2159 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint()
/linux-6.6.21/rust/alloc/vec/
Dmod.rs643 pub unsafe fn from_raw_parts(ptr: *mut T, length: usize, capacity: usize) -> Self { in from_raw_parts()
727 pub fn with_capacity_in(capacity: usize, alloc: A) -> Self { in with_capacity_in()
787 pub fn try_with_capacity_in(capacity: usize, alloc: A) -> Result<Self, TryReserveError> { in try_with_capacity_in()
901 pub unsafe fn from_raw_parts_in(ptr: *mut T, length: usize, capacity: usize, alloc: A) -> Self { in from_raw_parts_in()
938 pub fn into_raw_parts(self) -> (*mut T, usize, usize) { in into_raw_parts() argument
982 pub fn into_raw_parts_with_alloc(self) -> (*mut T, usize, usize, A) { in into_raw_parts_with_alloc() argument
1003 pub fn capacity(&self) -> usize { in capacity()
1026 pub fn reserve(&mut self, additional: usize) { in reserve()
1056 pub fn reserve_exact(&mut self, additional: usize) { in reserve_exact()
1185 pub fn shrink_to(&mut self, min_capacity: usize) { in shrink_to()
[all …]
Dset_len_on_drop.rs20 pub(super) fn increment_len(&mut self, increment: usize) { in increment_len()
25 pub(super) fn current_len(&self) -> usize { in current_len()
Dextract_if.rs87 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint()
Dinto_iter.rs209 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint()
237 fn count(self) -> usize { in count()
Ddrain.rs162 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint()
/linux-6.6.21/arch/x86/kernel/cpu/mce/
Ddev-mcelog.c162 static int __mce_read_apei(char __user **ubuf, size_t usize) in __mce_read_apei()
203 size_t usize, loff_t *off) in mce_chrdev_read()
294 size_t usize, loff_t *off) in mce_chrdev_write()
/linux-6.6.21/lib/crypto/mpi/
Dmpi-add.c23 mpi_size_t usize, wsize; in mpi_add_ui() local
70 mpi_size_t usize, vsize, wsize; in mpi_add() local
Dmpih-mul.c347 mpi_ptr_t up, mpi_size_t usize, in mpihelp_mul_karatsuba_case()
452 mpihelp_mul(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t usize, in mpihelp_mul()
Dgeneric_mpih-rshift.c29 mpihelp_rshift(mpi_ptr_t wp, mpi_ptr_t up, mpi_size_t usize, unsigned cnt) in mpihelp_rshift()
Dgeneric_mpih-lshift.c28 mpihelp_lshift(mpi_ptr_t wp, mpi_ptr_t up, mpi_size_t usize, unsigned int cnt) in mpihelp_lshift()
Dmpi-cmp.c50 mpi_size_t usize; in do_mpi_cmp() local
Dmpi-mul.c18 mpi_size_t usize, vsize, wsize; in mpi_mul() local
Dmpiutil.c253 mpi_size_t usize = u->nlimbs; in mpi_set() local
/linux-6.6.21/drivers/acpi/apei/
Derst-dbg.c83 size_t usize, loff_t *off) in erst_dbg_read()
153 size_t usize, loff_t *off) in erst_dbg_write()
/linux-6.6.21/rust/kernel/
Dstr.rs68 pub const fn len(&self) -> usize { in len()
74 pub const fn len_with_nul(&self) -> usize { in len_with_nul()
315 impl CStrIndex for usize {} implementation
453 pub(crate) fn bytes_written(&self) -> usize { in bytes_written()
Dioctl.rs70 pub const fn _IOC_SIZE(nr: u32) -> usize { in _IOC_SIZE()
Dinit.rs1019 pub fn init_array_from_fn<I, const N: usize, T, E>( in init_array_from_fn()
1063 pub fn pin_init_array_from_fn<I, const N: usize, T, E>( in pin_init_array_from_fn()
/linux-6.6.21/arch/x86/kernel/fpu/
Dxstate.c1499 unsigned int usize, struct fpu_guest *guest_fpu) in fpstate_realloc()
1568 static int validate_sigaltstack(unsigned int usize) in validate_sigaltstack()
1596 unsigned int ksize, usize; in __xstate_request_perm() local
1679 unsigned int ksize, usize; in __xfd_enable_feature() local
/linux-6.6.21/tools/testing/selftests/bpf/progs/
Dtest_get_stack_rawtp.c62 long usize, ksize; in bpf_prog1() local
/linux-6.6.21/lib/
Dtest_user_copy.c110 size_t ksize, usize; in test_copy_struct_from_user() local
/linux-6.6.21/drivers/xen/
Dmcelog.c107 size_t usize, loff_t *off) in xen_mce_chrdev_read()
/linux-6.6.21/security/landlock/
Dsyscalls.c49 const size_t usize) in copy_min_struct_from_user()

12