Home
last modified time | relevance | path

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

/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/drivers/android/binder/
H A Drust_binder_main.rs375 let ctx = unsafe { Arc::<Context>::borrow((*device).ctx) }; in rust_binder_open()
418 let f = unsafe { Arc::<Process>::borrow((*file).private_data) }; in rust_binder_ioctl()
433 let f = unsafe { Arc::<Process>::borrow((*file).private_data) }; in rust_binder_mmap()
450 let f = unsafe { Arc::<Process>::borrow((*file).private_data) }; in rust_binder_poll()
467 let f = unsafe { Arc::<Process>::borrow((*file).private_data) }; in rust_binder_flush()
/linux/rust/kernel/alloc/
H A Dkbox.rs9 use core::borrow::{Borrow, BorrowMut};
481 unsafe fn borrow<'a>(ptr: *mut c_void) -> &'a T {
516 unsafe fn borrow<'a>(ptr: *mut c_void) -> Pin<&'a T> { in borrow_mut()
569 /// # use core::borrow::Borrow;
589 fn borrow(&self) -> &T {
597 /// # 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.rs18 borrow::{Borrow, BorrowMut},
1041 fn borrow(&self) -> &[T] { in borrow() function
/linux/rust/kernel/
H A Dtypes.rs29 /// Type used to immutably borrow a value that is currently foreign-owned.
32 /// Type used to mutably borrow a value that is currently foreign-owned.
40 /// [`try_from_foreign`], [`borrow`], or [`borrow_mut`] can result in undefined behavior.
49 /// [`borrow`]: Self::borrow
96 unsafe fn borrow<'a>(ptr: *mut c_void) -> Self::Borrowed<'a>;
117 /// The lifetime `'a` must not overlap with the lifetime of any other call to [`borrow`] or
122 /// [`borrow`]: Self::borrow
140 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.rs196 unsafe { T::borrow(ptr.as_ptr()) } in get()
H A Ddevice.rs293 unsafe { Pin::<KBox<T>>::borrow(ptr.cast()) } in drvdata_unchecked()
H A Dcpufreq.rs640 Some(unsafe { T::borrow(self.as_ref().driver_data.cast()) }) in data()
/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.rs213 use ::std::{borrow::ToOwned, println, string::String}; in stack_init_reuse()
/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/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/bpf/
H A Dmap_hash.rst240 The number of nodes to borrow from the global list in a batch, ``target_free``,
/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