Home
last modified time | relevance | path

Searched refs:borrow (Results 1 - 18 of 18) sorted by relevance

/kernel/linux/linux-6.6/rust/alloc/
H A Dslice.rs17 use core::borrow::{Borrow, BorrowMut};
31 use crate::borrow::ToOwned;
676 /// impl std::borrow::Borrow<[u32]> for Foo {
677 /// fn borrow(&self) -> &[u32] { &self.0 }
680 /// impl std::borrow::Borrow<[String]> for Foo {
681 /// fn borrow(&self) -> &[String] { &self.1 }
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()
775 fn borrow(&self) -> &[T] { borrow() functions
[all...]
H A Dboxed.rs153 use core::borrow;
174 use crate::borrow::Cow;
1584 /// use std::borrow::Cow;
1592 /// # use std::borrow::Cow;
2061 impl<T: ?Sized, A: Allocator> borrow::Borrow<T> for Box<T, A> {
2062 fn borrow(&self) -> &T { in borrow() functions
2068 impl<T: ?Sized, A: Allocator> borrow::BorrowMut<T> for Box<T, A> {
2403 /// use std::borrow::Cow;
2425 /// use std::borrow::Cow;
H A Dlib.rs245 pub mod borrow; modules
/kernel/linux/linux-5.10/arch/powerpc/boot/
H A 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()
/kernel/linux/linux-6.6/arch/powerpc/boot/
H A 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()
/kernel/linux/linux-5.10/net/sched/
H A Dsch_cbq.c98 struct cbq_class *borrow; /* NULL if class is bandwidth limited; member
354 } while ((cl = cl->borrow) != NULL && toplevel > cl->level); in cbq_mark_toplevel()
431 for (b = cl->borrow; b; b = b->borrow) { in cbq_overlimit()
539 } while ((borrowed = borrowed->borrow) != NULL); in cbq_update_toplevel()
664 cl = cl->borrow; in cbq_under_limit()
694 struct cbq_class *borrow = cl; in cbq_dequeue_prio() local
697 (borrow = cbq_under_limit(cl)) == NULL) in cbq_dequeue_prio()
720 q->tx_borrowed = borrow; in cbq_dequeue_prio()
721 if (borrow ! in cbq_dequeue_prio()
[all...]
/kernel/linux/linux-6.6/rust/kernel/
H A Dtypes.rs38 unsafe fn borrow<'a>(ptr: *const core::ffi::c_void) -> Self::Borrowed<'a>; in borrow() functions
46 /// Additionally, all instances (if any) of values returned by [`ForeignOwnable::borrow`] for
58 unsafe fn borrow<'a>(ptr: *const core::ffi::c_void) -> &'a T { in borrow() functions
80 unsafe fn borrow<'a>(_: *const core::ffi::c_void) -> Self::Borrowed<'a> {} in borrow() functions
/kernel/linux/linux-5.10/crypto/
H A Decc.c298 /* Computes result = left - right, returning borrow. Can modify in place. */
302 u64 borrow = 0; in vli_sub() local
308 diff = left[i] - right[i] - borrow; in vli_sub()
310 borrow = (diff > left[i]); in vli_sub()
315 return borrow; in vli_sub()
319 /* Computes result = left - right, returning borrow. Can modify in place. */
323 u64 borrow = right; in vli_usub() local
329 diff = left[i] - borrow; in vli_usub()
331 borrow = (diff > left[i]); in vli_usub()
336 return borrow; in vli_usub()
500 u64 borrow = vli_sub(result, left, right, ndigits); vli_mod_sub() local
625 u64 borrow = 0; vli_mmod_slow() local
[all...]
/kernel/linux/linux-6.6/crypto/
H A Decc.c309 /* Computes result = left - right, returning borrow. Can modify in place. */
313 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()
330 /* Computes result = left - right, returning borrow. Can modify in place. */
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); vli_mod_sub() local
636 u64 borrow = 0; vli_mmod_slow() local
[all...]
/kernel/linux/linux-6.6/rust/alloc/vec/
H A Dpartial_eq.rs5 use crate::borrow::Cow;
H A Dmod.rs72 use crate::borrow::{Cow, ToOwned};
2103 /// The returned iterator keeps a mutable borrow on the vector to optimize
2892 /// as required by the `core::borrow::Borrow` implementation.
3442 /// # use std::borrow::Cow;
/kernel/linux/linux-5.10/lib/mpi/
H A 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()
/kernel/linux/linux-6.6/lib/crypto/mpi/
H A 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()
/kernel/linux/linux-6.6/rust/kernel/sync/
H A Darc.rs243 unsafe fn borrow<'a>(ptr: *const core::ffi::c_void) -> ArcBorrow<'a, T> { in borrow() functions
/kernel/linux/linux-5.10/arch/m68k/fpsp040/
H A Dsrem_mod.S236 |..use the borrow of the previous compare
237 bcss R_LT_Y | ...borrow is set iff R < Y
/kernel/linux/linux-6.6/arch/m68k/fpsp040/
H A Dsrem_mod.S236 |..use the borrow of the previous compare
237 bcss R_LT_Y | ...borrow is set iff R < Y
/kernel/linux/linux-5.10/arch/m68k/ifpsp060/src/
H A Dfplsp.S9559 #..use the borrow of the previous compare
9560 bcs.b R_LT_Y # borrow is set iff R < Y
/kernel/linux/linux-6.6/arch/m68k/ifpsp060/src/
H A Dfplsp.S9559 #..use the borrow of the previous compare
9560 bcs.b R_LT_Y # borrow is set iff R < Y

Completed in 41 milliseconds