| /rust/kernel/alloc/kvec/ |
| A D | errors.rs | 12 fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { in fmt() 13 write!(f, "Not enough capacity") in fmt() 29 fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { in fmt() 30 write!(f, "Index out of bounds") in fmt() 49 fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { in fmt() 51 InsertError::IndexOutOfBounds(_) => write!(f, "Index out of bounds"), in fmt() 52 InsertError::OutOfCapacity(_) => write!(f, "Not enough capacity"), in fmt()
|
| /rust/kernel/ |
| A D | str.rs | 100 f.write_char('"')?; in fmt() 115 f.write_char('"') in fmt() 507 f.write_str("\"")?; in fmt() 516 f.write_str("\"") in fmt() 611 ($($f:tt)*) => ({ 897 f.write_fmt(args)?; in try_from_fmt() 898 f.write_str("\0")?; in try_from_fmt() 899 let size = f.bytes_written(); in try_from_fmt() 905 f.write_fmt(args)?; in try_from_fmt() 906 f.write_str("\0")?; in try_from_fmt() [all …]
|
| A D | device.rs | 436 ($method:ident, $dev:expr, $($f:tt)*) => { 438 ($dev).$method(::core::format_args!($($f)*)); 466 ($($f:tt)*) => { $crate::dev_printk!(pr_emerg, $($f)*); } 492 ($($f:tt)*) => { $crate::dev_printk!(pr_alert, $($f)*); } 518 ($($f:tt)*) => { $crate::dev_printk!(pr_crit, $($f)*); } 544 ($($f:tt)*) => { $crate::dev_printk!(pr_err, $($f)*); } 570 ($($f:tt)*) => { $crate::dev_printk!(pr_warn, $($f)*); } 596 ($($f:tt)*) => { $crate::dev_printk!(pr_notice, $($f)*); } 622 ($($f:tt)*) => { $crate::dev_printk!(pr_info, $($f)*); } 648 ($($f:tt)*) => { $crate::dev_printk!(pr_dbg, $($f)*); }
|
| A D | page.rs | 104 fn with_page_mapped<T>(&self, f: impl FnOnce(*mut u8) -> T) -> T { in with_page_mapped() 108 let res = f(mapped_addr.cast()); in with_page_mapped() 149 f: impl FnOnce(*mut u8) -> Result<T>, in with_pointer_into_page() 157 f(unsafe { page_addr.add(off) }) in with_pointer_into_page()
|
| A D | error.rs | 185 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() 188 None => f.debug_tuple("Error").field(&-self.0).finish(), in fmt() 189 Some(name) => f in fmt() 455 pub fn from_result<T, F>(f: F) -> T in from_result() 460 match f() { in from_result()
|
| A D | revocable.rs | 140 pub fn try_access_with<R, F: FnOnce(&T) -> R>(&self, f: F) -> Option<R> { in try_access_with() 141 self.try_access().map(|t| f(&*t)) in try_access_with()
|
| A D | driver.rs | 105 (<$gen_type:ident>, $driver_ops:ty, { type: $type:ty, $($f:tt)* }) => { 129 $($f)*
|
| A D | devres.rs | 257 pub fn try_access_with<R, F: FnOnce(&T) -> R>(&self, f: F) -> Option<R> { in try_access_with() 258 self.data().try_access_with(f) in try_access_with()
|
| A D | xarray.rs | 181 fn load<F, U>(&self, index: usize, f: F) -> Option<U> in load() 188 Some(f(ptr)) in load()
|
| A D | platform.rs | 126 ($($f:tt)*) => { 127 $crate::module_driver!(<T>, $crate::platform::Adapter<T>, { $($f)* });
|
| A D | auxiliary.rs | 95 ($($f:tt)*) => { 96 $crate::module_driver!(<T>, $crate::auxiliary::Adapter<T>, { $($f)* });
|
| A D | pci.rs | 114 ($($f:tt)*) => { 115 $crate::module_driver!(<T>, $crate::pci::Adapter<T>, { $($f)* });
|
| /rust/helpers/ |
| A D | fs.c | 9 struct file *rust_helper_get_file(struct file *f) in rust_helper_get_file() argument 11 return get_file(f); in rust_helper_get_file()
|
| /rust/kernel/device/ |
| A D | property.rs | 90 write!(f, "{name}") in display_name() 355 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt() 356 write!(f, "{:?}", self.as_slice()) in fmt() 381 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt() 406 Node::Borrowed(f) => f, in fmt() 407 Node::Owned(f) => f, in fmt() 416 write!(f, "{prefix}")?; in fmt() 418 write!(f, "{}", fwnode.display_name())?; in fmt() 491 ($($int:ty: $f:ident),* $(,)?) => { $( 509 bindings::$f( [all …]
|
| /rust/macros/ |
| A D | vtable.rs | 63 for f in functions { in vtable() 64 let gen_const_name = format!("HAS_{}", f.to_uppercase()); in vtable() 82 for f in functions { in vtable() 83 let gen_const_name = format!("HAS_{}", f.to_uppercase()); in vtable()
|
| /rust/pin-init/src/ |
| A D | __internal.rs | 71 fn make_closure<F, O, E>(self, f: F) -> F in make_closure() 75 f in make_closure() 101 fn make_closure<F, O, E>(self, f: F) -> F in make_closure() 105 f in make_closure()
|
| A D | lib.rs | 1084 fn pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E> in pin_chain() 1088 ChainPinInit(self, f, PhantomData) in pin_chain() 1192 fn chain<F>(self, f: F) -> ChainInit<Self, F, T, E> in chain() 1196 ChainInit(self, f, PhantomData) in chain() 1247 f: impl FnOnce(*mut T) -> Result<(), E>, in pin_init_from_closure() 1249 __internal::InitClosure(f, PhantomData) in pin_init_from_closure() 1266 f: impl FnOnce(*mut T) -> Result<(), E>, in init_from_closure() 1268 __internal::InitClosure(f, PhantomData) in init_from_closure()
|
| /rust/kernel/sync/ |
| A D | arc.rs | 916 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() 917 fmt::Display::fmt(self.deref(), f) in fmt() 922 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() 923 fmt::Display::fmt(self.deref(), f) in fmt() 928 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() 929 fmt::Debug::fmt(self.deref(), f) in fmt() 934 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() 935 fmt::Debug::fmt(self.deref(), f) in fmt()
|
| /rust/ |
| A D | Makefile | 103 $(Q)find $(rustdoc_output) -name '*.html' -type f -print0 | xargs -0 sed -Ei \ 108 $(Q)for f in $(rustdoc_output)/static.files/rustdoc-*.css; do \ 109 echo ".logo-container > img { object-fit: contain; }" >> $$f; done
|
| /rust/pin-init/examples/ |
| A D | static_init.rs | 63 Some(f) => unsafe { f.__pinned_init(ptr).unwrap() }, in deref()
|
| /rust/kernel/alloc/ |
| A D | kbox.rs | 569 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() 570 <T as fmt::Display>::fmt(&**self, f) in fmt() 579 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() 580 <T as fmt::Debug>::fmt(&**self, f) in fmt()
|
| A D | kvec.rs | 710 pub fn retain(&mut self, mut f: impl FnMut(&mut T) -> bool) { in retain() 714 if f(to_check) { in retain() 863 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() 864 fmt::Debug::fmt(&**self, f) in fmt()
|
| /rust/kernel/fs/ |
| A D | file.rs | 464 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt() 465 f.pad("EBADF") in fmt()
|
| /rust/kernel/time/ |
| A D | hrtimer.rs | 249 fn start_scoped<T, F>(self, expires: <Self::TimerMode as HrTimerMode>::Expires, f: F) -> T in start_scoped() 266 f: F, in start_scoped() 273 let t = f(); in start_scoped()
|
| /rust/kernel/net/ |
| A D | phy.rs | 881 (drivers: [$($driver:ident),+ $(,)?], device_table: [$($dev:expr),+ $(,)?], $($f:tt)*) => { 888 $($f)*
|