| /rust/kernel/ |
| A D | error.rs | 25 pub const $err: super::Error = 99 pub struct Error(NonZeroI32); struct 101 impl Error { implementation 184 impl fmt::Debug for Error { implementation 199 impl From<AllocError> for Error { implementation 211 impl From<Utf8Error> for Error { implementation 212 fn from(_: Utf8Error) -> Error { in from() argument 217 impl From<LayoutError> for Error { implementation 223 impl From<fmt::Error> for Error { implementation 224 fn from(_: fmt::Error) -> Error { in from() argument [all …]
|
| A D | init.rs | 131 error::{self, Error}, 157 Error: From<E>, in pin_init() 161 pin_init_from_closure(|slot| init.__pinned_init(slot).map_err(|e| Error::from(e))) in pin_init() 174 Error: From<E>, in init() 178 init_from_closure(|slot| init.__pinned_init(slot).map_err(|e| Error::from(e))) in init() 228 }? $crate::error::Error) 288 }? $crate::error::Error)
|
| A D | regulator.rs | 78 pub struct Error<State: RegulatorState> { struct 80 pub error: kernel::error::Error, argument 271 Err(kernel::error::Error::from_errno(voltage)) in get_voltage() 310 pub fn try_into_enabled(self) -> Result<Regulator<Enabled>, Error<Disabled>> { in try_into_enabled() 321 .map_err(|error| Error { in try_into_enabled() 339 pub fn try_into_disabled(self) -> Result<Regulator<Disabled>, Error<Enabled>> { in try_into_disabled() 350 .map_err(|error| Error { in try_into_disabled()
|
| A D | fmt.rs | 7 pub use core::fmt::{Arguments, Debug, Display, Error, Formatter, Result, Write};
|
| A D | devres.rs | 12 error::{to_result, Error, Result}, 132 ) -> impl PinInit<Self, Error> + 'a in new() 135 Error: From<E>, in new() 355 Error: From<E>, in register()
|
| A D | xarray.rs | 9 error::{Error, Result}, 169 pub error: Error, 174 impl<T> From<StoreError<T>> for Error { implementation 258 error: Error::from_errno(errno), in store()
|
| A D | driver.rs | 8 use crate::error::{Error, Result}; 73 pub fn new(name: &'static CStr, module: &'static ThisModule) -> impl PinInit<Self, Error> { in new() argument 117 ) -> impl ::pin_init::PinInit<Self, $crate::error::Error> {
|
| A D | pci.rs | 422 ) -> impl PinInit<Devres<Bar<SIZE>>, Error> + 'a { in iomap_region_sized() 431 ) -> impl PinInit<Devres<Bar>, Error> + 'a { in iomap_region() 482 type Error = kernel::error::Error; typedef 484 fn try_from(dev: &device::Device<Ctx>) -> Result<Self, Self::Error> { in try_from() argument
|
| A D | firmware.rs | 7 use crate::{bindings, device::Device, error::Error, error::Result, ffi, str::CStr}; 71 return Err(Error::from_errno(ret)); in request_internal()
|
| A D | prelude.rs | 42 pub use super::error::{code::*, Error, Result};
|
| A D | platform.rs | 319 type Error = kernel::error::Error; typedef 321 fn try_from(dev: &device::Device<Ctx>) -> Result<Self, Self::Error> { in try_from() argument
|
| A D | str.rs | 197 impl From<CStrConvertError> for Error { implementation 199 fn from(_: CStrConvertError) -> Error { in from() argument 856 Err(fmt::Error) in write_str() 894 pub fn try_from_fmt(args: fmt::Arguments<'_>) -> Result<Self, Error> { in try_from_fmt() argument 946 type Error = AllocError; typedef
|
| A D | lib.rs | 159 fn init(module: &'static ThisModule) -> impl pin_init::PinInit<Self, error::Error>; in init() argument 163 fn init(module: &'static ThisModule) -> impl pin_init::PinInit<Self, error::Error> { in init() argument
|
| A D | dma.rs | 594 (|| -> ::core::result::Result<_, $crate::error::Error> { 644 (|| -> ::core::result::Result<_, $crate::error::Error> { 652 (|| -> ::core::result::Result<_, $crate::error::Error> {
|
| A D | configfs.rs | 151 data: impl PinInit<Data, Error>, in new() argument 152 ) -> impl PinInit<Self, Error> { in new() 261 data: impl PinInit<Data, Error>, in new() argument 262 ) -> impl PinInit<Self, Error> { in new() 502 fn make_group(&self, name: &CStr) -> Result<impl PinInit<Group<Self::Child>, Error>>; in make_group() argument
|
| A D | miscdevice.rs | 14 error::{to_result, Error, Result, VTABLE_DEFAULT_ERROR}, 71 pub fn register(opts: MiscDeviceOptions) -> impl PinInit<Self, Error> { in register() argument
|
| /rust/kernel/alloc/kvec/ |
| A D | errors.rs | 17 impl<T> From<PushError<T>> for Error { implementation 18 fn from(_: PushError<T>) -> Error { in from() argument 34 impl From<RemoveError> for Error { implementation 35 fn from(_: RemoveError) -> Error { in from() argument 57 impl<T> From<InsertError<T>> for Error { implementation 58 fn from(_: InsertError<T>) -> Error { in from() argument
|
| /rust/pin-init/examples/ |
| A D | pthread_mutex.rs | 44 pub enum Error { enum 46 IO(std::io::Error), 51 impl From<Infallible> for Error { implementation 58 impl From<AllocError> for Error { implementation 66 pub fn new(data: T) -> impl PinInit<Self, Error> { in new() argument 67 fn init_raw() -> impl PinInit<UnsafeCell<libc::pthread_mutex_t>, Error> { in new() 76 return Err(Error::IO(std::io::Error::from_raw_os_error(ret))); in new() 85 return Err(Error::IO(std::io::Error::from_raw_os_error(ret))); in new() 94 return Err(Error::IO(std::io::Error::from_raw_os_error(ret))); in new() 105 }? Error) in new()
|
| A D | error.rs | 11 pub struct Error; struct 13 impl From<Infallible> for Error { implementation 20 impl From<AllocError> for Error { implementation
|
| A D | linked_list.rs | 20 use error::Error; 150 fn main() -> Result<(), Error> { in main()
|
| /rust/kernel/io/ |
| A D | mem.rs | 77 pub fn iomap_sized<const SIZE: usize>(self) -> impl PinInit<Devres<IoMem<SIZE>>, Error> + 'a { in iomap_sized() 89 ) -> impl PinInit<Devres<ExclusiveIoMem<SIZE>>, Error> + 'a { in iomap_exclusive_sized() 135 pub fn iomap(self) -> impl PinInit<Devres<IoMem<0>>, Error> + 'a { in iomap() 141 pub fn iomap_exclusive(self) -> impl PinInit<Devres<ExclusiveIoMem<0>>, Error> + 'a { in iomap_exclusive() 189 pub fn new<'a>(io_request: IoRequest<'a>) -> impl PinInit<Devres<Self>, Error> + 'a { in new() 257 pub fn new<'a>(io_request: IoRequest<'a>) -> impl PinInit<Devres<Self>, Error> + 'a { in new()
|
| /rust/kernel/fs/ |
| A D | file.rs | 13 error::{code::*, Error, Result}, 402 return Err(Error::from_errno(fd)); in get_unused_fd_flags() 456 impl From<BadFdError> for Error { implementation 458 fn from(_: BadFdError) -> Error { in from() argument
|
| /rust/kernel/block/mq/ |
| A D | raw_writer.rs | 45 return Err(fmt::Error); in write_str()
|
| A D | tag_set.rs | 40 ) -> impl PinInit<Self, error::Error> { in new() argument
|
| /rust/kernel/net/ |
| A D | phy.rs | 30 Error, enumerator 114 bindings::phy_state_PHY_ERROR => DeviceState::Error, in state() 119 _ => DeviceState::Error, in state() 200 Err(Error::from_errno(ret)) in read_paged()
|