Home
last modified time | relevance | path

Searched refs:usize (Results 1 – 25 of 47) sorted by relevance

12

/linux-6.3-rc2/lib/mpi/
A Dmpi-add.c26 usize = u->nlimbs; in mpi_add_ui()
31 wsize = usize + 1; in mpi_add_ui()
45 wp[usize] = cy; in mpi_add_ui()
57 wsize = usize - (wp[usize-1] == 0); in mpi_add_ui()
74 usize = v->nlimbs; in mpi_add()
78 wsize = usize + 1; in mpi_add()
99 wsize = usize; in mpi_add()
105 wsize = usize; in mpi_add()
110 wsize = usize; in mpi_add()
116 wsize = usize; in mpi_add()
[all …]
A Dmpi-cmp.c46 mpi_size_t usize; in do_mpi_cmp() local
55 usize = u->nlimbs; in do_mpi_cmp()
69 if (usize != vsize && !usign && !vsign) in do_mpi_cmp()
70 return usize - vsize; in do_mpi_cmp()
71 if (usize != vsize && usign && vsign) in do_mpi_cmp()
72 return vsize + usize; in do_mpi_cmp()
73 if (!usize) in do_mpi_cmp()
75 cmp = mpihelp_cmp(u->d, v->d, usize); in do_mpi_cmp()
A Dmpih-mul.c366 usize -= vsize; in mpihelp_mul_karatsuba_case()
367 if (usize >= vsize) { in mpihelp_mul_karatsuba_case()
388 usize -= vsize; in mpihelp_mul_karatsuba_case()
389 } while (usize >= vsize); in mpihelp_mul_karatsuba_case()
392 if (usize) { in mpihelp_mul_karatsuba_case()
406 up, usize, in mpihelp_mul_karatsuba_case()
473 MPN_COPY(prodp, up, usize); in mpihelp_mul()
475 MPN_ZERO(prodp, usize); in mpihelp_mul()
480 prodp[usize] = cy; in mpihelp_mul()
491 usize); in mpihelp_mul()
[all …]
A Dmpi-mul.c18 mpi_size_t usize, vsize, wsize; in mpi_mul() local
27 usize = v->nlimbs; in mpi_mul()
34 usize = u->nlimbs; in mpi_mul()
45 wsize = usize + vsize; in mpi_mul()
57 up = tmp_limb = mpi_alloc_limb_space(usize); in mpi_mul()
62 MPN_COPY(up, wp, usize); in mpi_mul()
74 mpihelp_mul(wp, up, usize, vp, vsize, &cy); in mpi_mul()
A Dgeneric_mpih-rshift.c29 mpihelp_rshift(mpi_ptr_t wp, mpi_ptr_t up, mpi_size_t usize, unsigned cnt) in mpihelp_rshift() argument
42 for (i = 1; i < usize; i++) { in mpihelp_rshift()
A Dgeneric_mpih-lshift.c28 mpihelp_lshift(mpi_ptr_t wp, mpi_ptr_t up, mpi_size_t usize, unsigned int cnt) in mpihelp_lshift() argument
38 i = usize - 1; in mpihelp_lshift()
A Dmpi-internal.h179 int mpihelp_mul(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t usize,
188 mpi_ptr_t up, mpi_size_t usize,
207 mpi_limb_t mpihelp_lshift(mpi_ptr_t wp, mpi_ptr_t up, mpi_size_t usize,
209 mpi_limb_t mpihelp_rshift(mpi_ptr_t wp, mpi_ptr_t up, mpi_size_t usize,
A Dmpiutil.c253 mpi_size_t usize = u->nlimbs; in mpi_set() local
258 RESIZE_IF_NEEDED(w, usize); in mpi_set()
261 MPN_COPY(wp, up, usize); in mpi_set()
262 w->nlimbs = usize; in mpi_set()
/linux-6.3-rc2/rust/alloc/
A Draw_vec.rs56 cap: usize,
307 pub fn reserve(&mut self, len: usize, additional: usize) { in reserve() argument
315 len: usize, in reserve() argument
316 additional: usize, in reserve() argument
367 pub fn reserve_exact(&mut self, len: usize, additional: usize) { in reserve_exact() argument
374 len: usize, in try_reserve_exact() argument
375 additional: usize, in try_reserve_exact() argument
399 fn needs_to_grow(&self, len: usize, additional: usize) -> bool { in needs_to_grow() argument
418 fn grow_amortized(&mut self, len: usize, additional: usize) -> Result<(), TryReserveError> { in grow_amortized() argument
447 fn grow_exact(&mut self, len: usize, additional: usize) -> Result<(), TryReserveError> { in grow_exact() argument
[all …]
A Dalloc.rs34 fn __rust_alloc(size: usize, align: usize) -> *mut u8; in __rust_alloc() argument
36 fn __rust_dealloc(ptr: *mut u8, size: usize, align: usize); in __rust_dealloc() argument
38 fn __rust_realloc(ptr: *mut u8, old_size: usize, align: usize, new_size: usize) -> *mut u8; in __rust_realloc() argument
40 fn __rust_alloc_zeroed(size: usize, align: usize) -> *mut u8; in __rust_alloc_zeroed() argument
127 pub unsafe fn realloc(ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 { in realloc()
320 unsafe fn exchange_malloc(size: usize, align: usize) -> *mut u8 { in exchange_malloc() argument
355 fn __rust_alloc_error_handler(size: usize, align: usize) -> !; in __rust_alloc_error_handler() argument
403 pub unsafe extern "C-unwind" fn __rdl_oom(size: usize, _align: usize) -> ! { in __rdl_oom() argument
409 pub unsafe extern "C-unwind" fn __rg_oom(size: usize, align: usize) -> ! { in __rg_oom() argument
A Dslice.rs194 num_init: usize, in to_vec()
435 while (index as usize) < i { in sort_by_cached_key()
439 $slice.swap(i, index as usize); in sort_by_cached_key()
447 let sz_usize = mem::size_of::<(K, usize)>(); in sort_by_cached_key()
462 sort_by_key!(usize, self, f) in sort_by_cached_key()
556 pub fn repeat(&self, n: usize) -> Vec<T> in repeat()
1086 const MAX_INSERTION: usize = 20; in merge_sort()
1088 const MIN_RUN: usize = 10; in merge_sort()
1185 fn collapse(runs: &[Run]) -> Option<usize> { in merge_sort() argument
1201 start: usize, in merge_sort()
[all …]
A Dboxed.rs616 pub fn new_uninit_slice(len: usize) -> Box<[mem::MaybeUninit<T>]> { in new_uninit_slice()
641 pub fn new_zeroed_slice(len: usize) -> Box<[mem::MaybeUninit<T>]> { in new_zeroed_slice()
1355 fn write_usize(&mut self, i: usize) { in write_usize() argument
1376 fn write_length_prefix(&mut self, len: usize) { in write_length_prefix() argument
1545 impl<T, const N: usize> From<[T; N]> for Box<[T]> {
1562 impl<T, const N: usize> TryFrom<Box<[T]>> for Box<[T; N]> {
1812 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint() argument
1815 fn nth(&mut self, n: usize) -> Option<I::Item> { in nth()
1854 fn nth_back(&mut self, n: usize) -> Option<I::Item> { in nth_back()
1860 fn len(&self) -> usize { in len() argument
[all …]
/linux-6.3-rc2/rust/kernel/
A Dallocator.rs35 fn __rust_alloc(size: usize, _align: usize) -> *mut u8 { in __rust_alloc() argument
40 fn __rust_dealloc(ptr: *mut u8, _size: usize, _align: usize) { in __rust_dealloc() argument
45 fn __rust_realloc(ptr: *mut u8, _old_size: usize, _align: usize, new_size: usize) -> *mut u8 { in __rust_realloc() argument
56 fn __rust_alloc_zeroed(size: usize, _align: usize) -> *mut u8 { in __rust_alloc_zeroed() argument
A Dstr.rs67 pub const fn len(&self) -> usize { in len() argument
73 pub const fn len_with_nul(&self) -> usize { in len_with_nul() argument
278 impl Index<ops::RangeFrom<usize>> for CStr {
306 impl CStrIndex for usize {} implementation
307 impl CStrIndex for ops::Range<usize> {}
308 impl CStrIndex for ops::RangeInclusive<usize> {}
388 beg: usize,
389 pos: usize,
390 end: usize,
426 let pos = buf as usize; in from_buffer()
[all …]
/linux-6.3-rc2/rust/alloc/vec/
A Dmod.rs406 len: usize,
589 pub unsafe fn from_raw_parts(ptr: *mut T, length: usize, capacity: usize) -> Self { in from_raw_parts() argument
820 pub fn into_raw_parts(self) -> (*mut T, usize, usize) { in into_raw_parts() argument
864 pub fn into_raw_parts_with_alloc(self) -> (*mut T, usize, usize, A) { in into_raw_parts_with_alloc() argument
1398 fn assert_failed(index: usize, len: usize) -> ! { in swap_remove() argument
1439 fn assert_failed(index: usize, len: usize) -> ! { in insert() argument
1498 fn assert_failed(index: usize, len: usize) -> ! { in remove() argument
1723 read: usize, in dedup_by()
1727 write: usize, in dedup_by()
1955 R: RangeBounds<usize>, in drain() argument
[all …]
A Dinto_iter.rs38 pub(super) cap: usize,
172 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint() argument
182 fn advance_by(&mut self, n: usize) -> Result<(), usize> { in advance_by() argument
205 fn count(self) -> usize { in count() argument
209 unsafe fn __iterator_get_unchecked(&mut self, i: usize) -> Self::Item in __iterator_get_unchecked()
247 fn advance_back_by(&mut self, n: usize) -> Result<(), usize> { in advance_back_by() argument
A Ddrain_filter.rs34 pub(super) idx: usize,
36 pub(super) del: usize,
38 pub(super) old_len: usize,
94 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint() argument
A Ddrain.rs30 pub(super) tail_start: usize,
32 pub(super) tail_len: usize,
93 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint() argument
/linux-6.3-rc2/drivers/acpi/apei/
A Derst-dbg.c83 size_t usize, loff_t *off) in erst_dbg_read() argument
140 if (len > usize) in erst_dbg_read()
153 size_t usize, loff_t *off) in erst_dbg_write() argument
161 if (usize > ERST_DBG_RECORD_LEN_MAX) { in erst_dbg_write()
168 if (usize > erst_dbg_buf_len) { in erst_dbg_write()
171 p = kmalloc(usize, GFP_KERNEL); in erst_dbg_write()
176 erst_dbg_buf_len = usize; in erst_dbg_write()
178 rc = copy_from_user(erst_dbg_buf, ubuf, usize); in erst_dbg_write()
185 if (rcd->record_length != usize) in erst_dbg_write()
192 return rc < 0 ? rc : usize; in erst_dbg_write()
/linux-6.3-rc2/lib/
A Dtest_user_copy.c110 size_t ksize, usize; in test_copy_struct_from_user() local
129 usize = size; in test_copy_struct_from_user()
134 ret |= test(copy_struct_from_user(kmem, ksize, umem, usize), in test_copy_struct_from_user()
141 usize = size / 2; in test_copy_struct_from_user()
143 memcpy(expected, umem_src, usize); in test_copy_struct_from_user()
144 memset(expected + usize, 0x0, ksize - usize); in test_copy_struct_from_user()
147 ret |= test(copy_struct_from_user(kmem, ksize, umem, usize), in test_copy_struct_from_user()
154 usize = size; in test_copy_struct_from_user()
162 usize = size; in test_copy_struct_from_user()
165 ret |= test(clear_user(umem + ksize, usize - ksize), in test_copy_struct_from_user()
[all …]
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/
A Dtest_get_stack_rawtp.c62 long usize, ksize; in bpf_prog1() local
87 usize = bpf_get_stack(ctx, raw_data, max_len, BPF_F_USER_STACK); in bpf_prog1()
88 if (usize < 0) in bpf_prog1()
91 ksize = bpf_get_stack(ctx, raw_data + usize, max_len - usize, 0); in bpf_prog1()
95 total_size = usize + ksize; in bpf_prog1()
/linux-6.3-rc2/arch/x86/kernel/cpu/mce/
A Ddev-mcelog.c162 static int __mce_read_apei(char __user **ubuf, size_t usize) in __mce_read_apei() argument
168 if (usize < sizeof(struct mce)) in __mce_read_apei()
203 size_t usize, loff_t *off) in mce_chrdev_read() argument
212 err = __mce_read_apei(&buf, usize); in mce_chrdev_read()
219 if (*off != 0 || usize < mcelog->len * sizeof(struct mce)) in mce_chrdev_read()
294 size_t usize, loff_t *off) in mce_chrdev_write() argument
307 if ((unsigned long)usize > sizeof(struct mce)) in mce_chrdev_write()
308 usize = sizeof(struct mce); in mce_chrdev_write()
309 if (copy_from_user(&m, ubuf, usize)) in mce_chrdev_write()
323 return usize; in mce_chrdev_write()
/linux-6.3-rc2/include/linux/
A Duaccess.h327 size_t usize) in copy_struct_from_user() argument
329 size_t size = min(ksize, usize); in copy_struct_from_user()
330 size_t rest = max(ksize, usize) - size; in copy_struct_from_user()
337 if (usize < ksize) { in copy_struct_from_user()
339 } else if (usize > ksize) { in copy_struct_from_user()
/linux-6.3-rc2/security/landlock/
A Dsyscalls.c49 const size_t usize) in copy_min_struct_from_user() argument
59 if (usize < ksize_min) in copy_min_struct_from_user()
61 if (usize > PAGE_SIZE) in copy_min_struct_from_user()
65 return copy_struct_from_user(dst, ksize, src, usize); in copy_min_struct_from_user()
/linux-6.3-rc2/arch/x86/kernel/fpu/
A Dxstate.c1495 unsigned int usize, struct fpu_guest *guest_fpu) in fpstate_realloc() argument
1508 newfps->user_size = usize; in fpstate_realloc()
1525 guest_fpu->uabi_size = usize; in fpstate_realloc()
1567 static int validate_sigaltstack(unsigned int usize) in validate_sigaltstack() argument
1576 framesize += usize; in validate_sigaltstack()
1595 unsigned int ksize, usize; in __xstate_request_perm() local
1612 usize = xstate_calculate_size(mask, false); in __xstate_request_perm()
1615 ret = validate_sigaltstack(usize); in __xstate_request_perm()
1625 perm->__user_state_size = usize; in __xstate_request_perm()
1678 unsigned int ksize, usize; in __xfd_enable_feature() local
[all …]

Completed in 41 milliseconds

12