Home
last modified time | relevance | path

Searched refs:f (Results 1 – 25 of 26) sorted by relevance

12

/rust/kernel/alloc/kvec/
A Derrors.rs12 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 Dstr.rs100 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 Ddevice.rs436 ($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 Dpage.rs104 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 Derror.rs185 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 Drevocable.rs140 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 Ddriver.rs105 (<$gen_type:ident>, $driver_ops:ty, { type: $type:ty, $($f:tt)* }) => {
129 $($f)*
A Ddevres.rs257 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 Dxarray.rs181 fn load<F, U>(&self, index: usize, f: F) -> Option<U> in load()
188 Some(f(ptr)) in load()
A Dplatform.rs126 ($($f:tt)*) => {
127 $crate::module_driver!(<T>, $crate::platform::Adapter<T>, { $($f)* });
A Dauxiliary.rs95 ($($f:tt)*) => {
96 $crate::module_driver!(<T>, $crate::auxiliary::Adapter<T>, { $($f)* });
A Dpci.rs114 ($($f:tt)*) => {
115 $crate::module_driver!(<T>, $crate::pci::Adapter<T>, { $($f)* });
/rust/helpers/
A Dfs.c9 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 Dproperty.rs90 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 Dvtable.rs63 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.rs71 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 Dlib.rs1084 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 Darc.rs916 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 DMakefile103 $(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 Dstatic_init.rs63 Some(f) => unsafe { f.__pinned_init(ptr).unwrap() }, in deref()
/rust/kernel/alloc/
A Dkbox.rs569 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 Dkvec.rs710 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 Dfile.rs464 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt()
465 f.pad("EBADF") in fmt()
/rust/kernel/time/
A Dhrtimer.rs249 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 Dphy.rs881 (drivers: [$($driver:ident),+ $(,)?], device_table: [$($dev:expr),+ $(,)?], $($f:tt)*) => {
888 $($f)*

Completed in 50 milliseconds

12