Home
last modified time | relevance | path

Searched refs:borrow (Results 1 – 16 of 16) sorted by relevance

/linux-6.6.21/rust/alloc/
Dslice.rs17 use core::borrow::{Borrow, BorrowMut};
31 use crate::borrow::ToOwned;
713 let size = slice.iter().map(|slice| slice.borrow().len()).sum(); in concat()
716 result.extend_from_slice(v.borrow()) in concat()
733 let size = slice.iter().map(|v| v.borrow().len()).sum::<usize>() + slice.len() - 1; in join()
735 result.extend_from_slice(first.borrow()); in join()
739 result.extend_from_slice(v.borrow()) in join()
757 slice.iter().map(|v| v.borrow().len()).sum::<usize>() + sep.len() * (slice.len() - 1); in join()
759 result.extend_from_slice(first.borrow()); in join()
763 result.extend_from_slice(v.borrow()) in join()
[all …]
Dboxed.rs153 use core::borrow;
174 use crate::borrow::Cow;
2061 impl<T: ?Sized, A: Allocator> borrow::Borrow<T> for Box<T, A> {
2062 fn borrow(&self) -> &T { in borrow() method
2068 impl<T: ?Sized, A: Allocator> borrow::BorrowMut<T> for Box<T, A> {
Dlib.rs245 pub mod borrow; module
/linux-6.6.21/rust/kernel/
Dtypes.rs38 unsafe fn borrow<'a>(ptr: *const core::ffi::c_void) -> Self::Borrowed<'a>; in borrow() method
58 unsafe fn borrow<'a>(ptr: *const core::ffi::c_void) -> &'a T { in borrow() method
80 unsafe fn borrow<'a>(_: *const core::ffi::c_void) -> Self::Borrowed<'a> {} in borrow() method
/linux-6.6.21/arch/powerpc/boot/
Ddevtree.c159 int i, borrow = 0; in sub_reg() local
162 int prev_borrow = borrow; in sub_reg()
163 borrow = reg[i] < sub[i] + prev_borrow; in sub_reg()
167 return !borrow; in sub_reg()
/linux-6.6.21/crypto/
Decc.c313 u64 borrow = 0; in vli_sub() local
319 diff = left[i] - right[i] - borrow; in vli_sub()
321 borrow = (diff > left[i]); in vli_sub()
326 return borrow; in vli_sub()
334 u64 borrow = right; in vli_usub() local
340 diff = left[i] - borrow; in vli_usub()
342 borrow = (diff > left[i]); in vli_usub()
347 return borrow; in vli_usub()
511 u64 borrow = vli_sub(result, left, right, ndigits); in vli_mod_sub() local
517 if (borrow) in vli_mod_sub()
[all …]
/linux-6.6.21/Documentation/admin-guide/blockdev/
Dnbd.rst13 to borrow disk space from another computer.
/linux-6.6.21/lib/crypto/mpi/
Dec.c204 mpi_limb_t borrow; in ec_addm_25519() local
215 borrow = mpihelp_sub_n(wp, wp, ctx->p->d, wsize); in ec_addm_25519()
216 mpih_set_cond(n, ctx->p->d, wsize, (borrow != 0UL)); in ec_addm_25519()
226 mpi_limb_t borrow; in ec_subm_25519() local
236 borrow = mpihelp_sub_n(wp, up, vp, wsize); in ec_subm_25519()
237 mpih_set_cond(n, ctx->p->d, wsize, (borrow != 0UL)); in ec_subm_25519()
331 mpi_limb_t borrow; in ec_subm_448() local
341 borrow = mpihelp_sub_n(wp, up, vp, wsize); in ec_subm_448()
342 mpih_set_cond(n, ctx->p->d, wsize, (borrow != 0UL)); in ec_subm_448()
/linux-6.6.21/rust/alloc/vec/
Dpartial_eq.rs5 use crate::borrow::Cow;
Dmod.rs72 use crate::borrow::{Cow, ToOwned};
/linux-6.6.21/arch/m68k/fpsp040/
Dsrem_mod.S236 |..use the borrow of the previous compare
237 bcss R_LT_Y | ...borrow is set iff R < Y
/linux-6.6.21/rust/kernel/sync/
Darc.rs243 unsafe fn borrow<'a>(ptr: *const core::ffi::c_void) -> ArcBorrow<'a, T> { in borrow() method
/linux-6.6.21/Documentation/arch/parisc/
Dregisters.rst78 C/B (carry/borrow bits) used by C code
/linux-6.6.21/arch/arm/nwfpe/
Dsoftfloat-macros399 2^128, so any borrow out (carry out) is lost. The result is broken into two
418 Subtraction is modulo 2^192, so any borrow out (carry out) is lost. The
/linux-6.6.21/Documentation/driver-api/
Dparport-lowlevel.rst641 driver to temporarily ``borrow`` it. ``parport_yield`` does not block;
/linux-6.6.21/arch/m68k/ifpsp060/src/
Dfplsp.S9559 #..use the borrow of the previous compare
9560 bcs.b R_LT_Y # borrow is set iff R < Y