Home
last modified time | relevance | path

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

/linux/rust/zerocopy/src/
H A Dbyte_slice.rs416 let borrow = cell.borrow(); in test_ref_split_at_unchecked() localVariable
417 let slice_ref: cell::Ref<'_, [u8]> = cell::Ref::map(borrow, |a| &a[..]); in test_ref_split_at_unchecked()
/linux/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()
/linux/rust/kernel/
H A Dtypes.rs36 /// Type used to immutably borrow a value that is currently foreign-owned.
41 /// Type used to mutably borrow a value that is currently foreign-owned.
51 /// [`try_from_foreign`], [`borrow`], or [`borrow_mut`] can result in undefined behavior.
60 /// [`borrow`]: Self::borrow
107 unsafe fn borrow<'a>(ptr: *mut c_void) -> Self::Borrowed<'a>;
128 /// The lifetime `'a` must not overlap with the lifetime of any other call to [`borrow`] or
133 /// [`borrow`]: Self::borrow
151 unsafe fn borrow<'
98 unsafe fn borrow<'a>(ptr: *mut c_void) -> Self::Borrowed<'a>; borrow() method
142 unsafe fn borrow<'a>(_: *mut c_void) -> Self::Borrowed<'a> {} borrow() method
[all...]
H A Dxarray.rs202 unsafe { T::borrow(ptr.as_ptr()) } in get_mut()
H A Ddevice.rs259 unsafe { Pin::<KBox<T>>::borrow(ptr.cast()) } in drvdata_borrow()
H A Dcpufreq.rs645 Some(unsafe { T::borrow(self.as_ref().driver_data.cast()) })
/linux/rust/kernel/alloc/
H A Dkbox.rs29 borrow::{
536 unsafe fn borrow<'a>(ptr: *mut c_void) -> &'a T { in from_foreign()
577 unsafe fn borrow<'a>(ptr: *mut c_void) -> Pin<&'a T> {
630 /// # use core::borrow::Borrow;
649 fn borrow(&self) -> &T {
657 /// # use core::borrow::BorrowMut;
506 unsafe fn borrow<'a>(ptr: *mut c_void) -> &'a T { borrow() function
541 unsafe fn borrow<'a>(ptr: *mut c_void) -> Pin<&'a T> { borrow() function
614 fn borrow(&self) -> &T { borrow() function
H A Dkvec.rs30 borrow::{
1091 /// # use core::borrow::Borrow; in index_mut()
1109 fn borrow(&self) -> &[T] {
1117 /// # use core::borrow::BorrowMut;
1041 fn borrow(&self) -> &[T] { borrow() function
/linux/rust/quote/
H A Dident_fragment.rs3 use alloc::borrow::Cow;
H A Dto_tokens.rs4 use alloc::borrow::Cow;
/linux/Documentation/admin-guide/blockdev/
H A Dnbd.rst13 to borrow disk space from another computer.
/linux/rust/pin-init/src/
H A D__internal.rs197 use ::std::{borrow::ToOwned, println, string::String}; in init()
/linux/rust/proc-macro2/
H A Dfallback.rs559 let sm = sm.borrow(); in start()
572 let sm = sm.borrow(); in end()
585 let sm = sm.borrow(); in file()
610 let sm = sm.borrow(); in join()
/linux/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
/linux/Documentation/arch/parisc/
H A Dregisters.rst78 C/B (carry/borrow bits) used by C code
/linux/Documentation/bpf/
H A Dmap_hash.rst240 The number of nodes to borrow from the global list in a batch, ``target_free``,
/linux/arch/arm/nwfpe/
H A 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/Documentation/driver-api/
H A Dparport-lowlevel.rst646 driver to temporarily ``borrow`` it. ``parport_yield`` does not block;
/linux/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