| /linux/rust/syn/ |
| H A D | error.rs | 16 pub type Result<T> = std::result::Result<T, Error>; 102 pub struct Error { struct 127 Error: Send + Sync; 129 impl Error { implementation 163 fn new(span: Span, message: String) -> Error { in new() argument 164 Error { in new() 194 fn new_spanned(tokens: TokenStream, message: String) -> Error { in new_spanned() argument 198 Error { in new_spanned() 272 pub fn combine(&mut self, another: Error) { in combine() argument 329 pub(crate) fn new_at<T: Display>(scope: Span, cursor: Cursor, message: T) -> Error { in new_at() argument [all …]
|
| H A D | lookahead.rs | 4 use crate::error::{self, Error}; 114 pub fn error(self) -> Error { in error() argument 130 Error::new(self.scope, "unexpected end of input") in error() 132 Error::new(self.cursor.span(), "unexpected token") in error()
|
| /linux/rust/kernel/ |
| H A D | error.rs | 27 pub const $err: super::Error = 28 super::Error::try_from_errno(-(crate::bindings::$err as i32)) 202 pub struct Error(NonZeroI32); 204 impl Error { in fmt() 205 /// Creates an [`Error`] from a kernel error code. in fmt() 214 /// assert_eq!(Error::from_errno(-1), EPERM); in fmt() 215 /// assert_eq!(Error::from_errno(-2), ENOENT); in fmt() 221 /// assert_eq!(Error::from_errno(0), EINVAL); in from() 222 /// assert_eq!(Error::from_errno(-1000000), EINVAL); 224 pub fn from_errno(errno: crate::ffi::c_int) -> Error { implementation 101 pub struct Error(NonZeroI32); global() struct 103 impl Error { global() implementation 123 from_errno(errno: crate::ffi::c_int) -> Error from_errno() argument 139 try_from_errno(errno: crate::ffi::c_int) -> Option<Error> try_from_errno() argument 153 from_errno_unchecked(errno: crate::ffi::c_int) -> Error from_errno_unchecked() argument 203 impl fmt::Debug for Error { global() implementation 218 impl From<AllocError> for Error { global() implementation 219 from(_: AllocError) -> Error from() argument 225 from(_: TryFromIntError) -> Error from() argument 230 impl From<Utf8Error> for Error { global() implementation 231 from(_: Utf8Error) -> Error from() argument 236 impl From<LayoutError> for Error { global() implementation 237 from(_: LayoutError) -> Error from() argument 242 impl From<fmt::Error> for Error { global() implementation 243 from(_: fmt::Error) -> Error from() argument 248 impl From<core::convert::Infallible> for Error { global() implementation 249 from(e: core::convert::Infallible) -> Error from() argument [all...] |
| H A D | init.rs | 91 //! pub fn new(flags: u32) -> impl PinInit<Self, Error> { 109 //! return Err(Error::from_errno(err)); 130 error::{self, Error}, 157 Error: From<E>, in pin_init() 162 pin_init::raw_try_init(slot, init).map_err(|e| Error::from(e)) in pin_init() 177 Error: From<E>, in init() 181 init_from_closure(|slot| pin_init::raw_try_init(slot, init).map_err(|e| Error::from(e))) 189 /// This macro defaults the error to [`Error`]. If you need [`Infallible`], then use 203 /// use kernel::error::Error; 211 /// fn new() -> impl Init<Self, Error> { [all...] |
| H A D | platform.rs | 233 ) -> impl PinInit<Self::Data<'bound>, Error> + 'bound; in probe() 352 handler: impl PinInit<T, Error> + 'a, 353 ) -> impl PinInit<irq::$reg_type<'a, T>, Error> + 'a { 389 handler: impl PinInit<T, Error> + 'a, 390 ) -> impl PinInit<irq::$reg_type<'a, T>, Error> + 'a { 415 return Err(Error::from_errno(irq)); in irq_by_index() 429 return Err(Error::from_errno(irq)); in optional_irq_by_index() 442 return Err(Error::from_errno(irq)); in irq_by_name() 458 return Err(Error::from_errno(irq)); in optional_irq_by_name() 561 type Error = kernel::error::Error; typedef [all …]
|
| H A D | maple_tree.rs | 603 impl From<InsertErrorKind> for Error { implementation 605 fn from(kind: InsertErrorKind) -> Error { in from() argument 614 impl<T> From<InsertError<T>> for Error { implementation 616 fn from(insert_err: InsertError<T>) -> Error { in from() argument 617 Error::from(insert_err.cause) in from() 640 impl From<AllocErrorKind> for Error { implementation 642 fn from(kind: AllocErrorKind) -> Error { in from() argument 651 impl<T> From<AllocError<T>> for Error { implementation 653 fn from(insert_err: AllocError<T>) -> Error { in from() argument 654 Error::from(insert_err.cause) in from()
|
| H A D | regulator.rs | 68 pub struct Error<State: RegulatorState> { struct 70 pub error: kernel::error::Error, argument 304 pub fn try_into_enabled(self) -> Result<Regulator<Enabled>, Error<Disabled>> { in try_into_enabled() 315 .map_err(|error| Error { in try_into_enabled() 333 pub fn try_into_disabled(self) -> Result<Regulator<Disabled>, Error<Enabled>> { in try_into_disabled() 344 .map_err(|error| Error { in try_into_disabled()
|
| H A D | xarray.rs | 11 error::{Error, Result}, 59 /// # Ok::<(), Error>(()) 175 pub error: Error, in from() 180 impl<T> From<StoreError<T>> for Error { 265 error: Error::from_errno(errno), in store() 174 impl<T> From<StoreError<T>> for Error { global() implementation
|
| /linux/rust/pin-init/examples/ |
| H A D | pthread_mutex.rs | 43 pub enum Error { 45 IO(std::io::Error), 50 impl From<Infallible> for Error { 57 impl From<AllocError> for Error { 65 pub fn new(data: T) -> impl PinInit<Self, Error> { 66 fn init_raw() -> impl PinInit<UnsafeCell<libc::pthread_mutex_t>, Error> { in new() argument 75 return Err(Error::IO(std::io::Error::from_raw_os_error(ret))); in new() 84 return Err(Error::IO(std::io::Error in new() 44 pub enum Error { global() enum 51 impl From<Infallible> for Error { global() implementation 58 impl From<AllocError> for Error { global() implementation [all...] |
| /linux/rust/zerocopy-derive/derive/ |
| H A D | unaligned.rs | 4 use syn::{Data, DataEnum, DataStruct, DataUnion, Error}; 11 pub(crate) fn derive_unaligned(ctx: &Ctx, _top_level: Trait) -> Result<TokenStream, Error> { in derive_unaligned() argument 24 fn derive_unaligned_struct(ctx: &Ctx, strct: &DataStruct) -> Result<TokenStream, Error> { in derive_unaligned_struct() argument 33 return ctx.error_or_skip(Error::new( in derive_unaligned_struct() 45 fn derive_unaligned_enum(ctx: &Ctx, enm: &DataEnum) -> Result<TokenStream, Error> { in derive_unaligned_enum() argument 50 return ctx.error_or_skip(Error::new( in derive_unaligned_enum() 64 fn derive_unaligned_union(ctx: &Ctx, unn: &DataUnion) -> Result<TokenStream, Error> { in derive_unaligned_union() argument 73 return ctx.error_or_skip(Error::new( in derive_unaligned_union()
|
| H A D | into_bytes.rs | 5 use syn::{Data, DataEnum, DataStruct, DataUnion, Error, Type}; 14 pub(crate) fn derive_into_bytes(ctx: &Ctx, _top_level: Trait) -> Result<TokenStream, Error> { in derive_into_bytes() argument 21 fn derive_into_bytes_struct(ctx: &Ctx, strct: &DataStruct) -> Result<TokenStream, Error> { in derive_into_bytes_struct() argument 84 return ctx.error_or_skip(Error::new( in derive_into_bytes_struct() 101 fn derive_into_bytes_enum(ctx: &Ctx, enm: &DataEnum) -> Result<TokenStream, Error> { in derive_into_bytes_enum() argument 104 return ctx.error_or_skip(Error::new( in derive_into_bytes_enum() 116 fn derive_into_bytes_union(ctx: &Ctx, unn: &DataUnion) -> Result<TokenStream, Error> { in derive_into_bytes_union() argument 142 return ctx.error_or_skip(Error::new( in derive_into_bytes_union() 154 return ctx.error_or_skip(Error::new( in derive_into_bytes_union()
|
| H A D | mod.rs | 11 use syn::{Data, Error}; 18 pub(crate) fn derive_immutable(ctx: &Ctx, _top_level: Trait) -> Result<TokenStream, Error> { in derive_immutable() argument 32 pub(crate) fn derive_hash(ctx: &Ctx, _top_level: Trait) -> Result<TokenStream, Error> { in derive_hash() argument 60 pub(crate) fn derive_eq(ctx: &Ctx, _top_level: Trait) -> Result<TokenStream, Error> { in derive_eq() argument 94 pub(crate) fn derive_split_at(ctx: &Ctx, _top_level: Trait) -> Result<TokenStream, Error> { in derive_split_at() argument 101 .error_or_skip(Error::new(Span::call_site(), "can only be applied to structs")); in derive_split_at() 106 return ctx.error_or_skip(Error::new( in derive_split_at() 113 return ctx.error_or_skip(Error::new( in derive_split_at() 123 return ctx.error_or_skip(Error::new(Span::call_site(), "must at least one field")); in derive_split_at()
|
| H A D | from_bytes.rs | 5 parse_quote, Data, DataEnum, DataStruct, DataUnion, Error, Expr, ExprLit, ExprUnary, Lit, UnOp, 91 pub(crate) fn derive_from_zeros(ctx: &Ctx, top_level: Trait) -> Result<TokenStream, Error> { in derive_from_zeros() argument 100 pub(crate) fn derive_from_bytes(ctx: &Ctx, top_level: Trait) -> Result<TokenStream, Error> { in derive_from_bytes() argument 113 fn derive_from_zeros_enum(ctx: &Ctx, enm: &DataEnum) -> Result<TokenStream, Error> { in derive_from_zeros_enum() argument 123 Error::new( in derive_from_zeros_enum() 135 return ctx.error_or_skip(Error::new_spanned( in derive_from_zeros_enum() 145 return ctx.error_or_skip(Error::new_spanned( in derive_from_zeros_enum() 172 fn derive_from_bytes_enum(ctx: &Ctx, enm: &DataEnum) -> Result<TokenStream, Error> { in derive_from_bytes_enum() argument 177 return ctx.error_or_skip(Error::new_spanned( in derive_from_bytes_enum()
|
| /linux/rust/kernel/alloc/kvec/ |
| H A D | errors.rs | 10 /// Error type for [`Vec::push_within_capacity`]. 19 impl<T> From<PushError<T>> for Error { in from() 21 fn from(_: PushError<T>) -> Error { in from() 28 /// Error type for [`Vec::remove`]. 37 impl From<RemoveError> for Error { in from() 39 fn from(_: RemoveError) -> Error { 44 /// Error type for [`Vec::insert_within_capacity`]. 61 impl<T> From<InsertError<T>> for Error { 63 fn from(_: InsertError<T>) -> Error { 17 impl<T> From<PushError<T>> for Error { global() implementation 18 from(_: PushError<T>) -> Error from() argument 34 impl From<RemoveError> for Error { global() implementation 35 from(_: RemoveError) -> Error from() argument 57 impl<T> From<InsertError<T>> for Error { global() implementation 58 from(_: InsertError<T>) -> Error from() argument
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-bus-platform-devices-ampere-smpro | 5 (RO) Contains the 48-byte Ampere (Vendor-Specific) Error Record printed 11 …| 00 | Error Type | 1 | See :ref:`the table below <smpro-error-types>` for detail… 17 …| 04 | Error status | 4 | See ARM RAS specification for details … 19 …| 08 | Error Address | 8 | See ARM RAS specification for details … 21 …| 16 | Error Misc 0 | 8 | See ARM RAS specification for details … 23 …| 24 | Error Misc 1 | 8 | See ARM RAS specification for details … 25 …| 32 | Error Misc 2 | 8 | See ARM RAS specification for details … 27 …| 40 | Error Misc 3 | 8 | See ARM RAS specification for details … 35 …| Error Group | Error Type | Sub type | Sub component | Instance … 53 …| MCU (mem) | 1 | 7 | Link Error | MCU # … [all …]
|
| H A D | sysfs-bus-pci-devices-aer | 23 Receiver Error 2 29 Corrected Internal Error 0 46 Surprise Down Error 0 57 Uncorrectable Internal Error 0 60 TLP Prefix Blocked Error 0 76 Surprise Down Error 0 87 Uncorrectable Internal Error 0 90 TLP Prefix Blocked Error 0
|
| H A D | sysfs-bus-fcoe | 58 Link Error Status Block (LESB) link failure count. 61 Link Error Status Block (LESB) virtual link 65 Link Error Status Block (LESB) missed FCoE 69 Link Error Status Block (LESB) symbolic error count. 72 Link Error Status Block (LESB) block error count. 75 Link Error Status Block (LESB) Fibre Channel
|
| /linux/rust/kernel/io/ |
| H A D | mem.rs | 74 /// ) -> impl PinInit<Self, Error> + 'bound { 134 /// ) -> impl PinInit<Self, Error> + 'bound {
|
| /linux/drivers/android/binder/ |
| H A D | error.rs | 16 pub(crate) source: Option<Error>, 48 impl From<Error> for BinderError { 49 fn from(source: Error) -> Self { in from() 59 BinderError::from(Error::from(source)) in from()
|
| /linux/samples/rust/ |
| H A D | rust_driver_auxiliary.rs | 47 ) -> impl PinInit<Self, Error> + 'bound { in probe() 102 ) -> impl PinInit<Self::Data<'bound>, Error> + 'bound { in connect() 188 fn init(module: &'static kernel::ThisModule) -> impl PinInit<Self, Error> { 38 probe(adev: &auxiliary::Device<Core>, _info: &Self::IdInfo) -> impl PinInit<Self, Error> probe() argument 72 probe(pdev: &pci::Device<Core>, _info: &Self::IdInfo) -> impl PinInit<Self, Error> probe() argument 114 init(module: &'static kernel::ThisModule) -> impl PinInit<Self, Error> init() argument
|
| H A D | rust_debugfs.rs | 91 type Err = Error; in from_str() 126 ) -> impl PinInit<Self, Error> + 'bound { 151 ) -> impl PinInit<Self, Error> + use<'a, 'b> { in new() 112 probe( pdev: &platform::Device<Core>, _info: Option<&Self::IdInfo>, ) -> impl PinInit<Self, Error> probe() argument
|
| /linux/Documentation/driver-api/mei/ |
| H A D | mei.rst | 104 Error returns: 110 EFAULT Fatal Error (e.g. Unable to access user input data) 141 Error returns: 147 EFAULT Fatal Error (e.g. Unable to access user input data) 169 Error returns: 175 EFAULT Fatal Error (e.g. Unable to access user input data) 196 Error returns: 200 EFAULT Fatal Error (e.g. Unable to access user input data)
|
| /linux/Documentation/driver-api/ |
| H A D | mtdnand.rst | 699 0x00 ECC byte 0 Error correction code byte 0 700 0x01 ECC byte 1 Error correction code byte 1 701 0x02 ECC byte 2 Error correction code byte 2 719 0x00 ECC byte 0 Error correction code byte 0 of the lower 721 0x01 ECC byte 1 Error correction code byte 1 of the lower 723 0x02 ECC byte 2 Error correction code byte 2 of the lower 725 0x03 ECC byte 3 Error correction code byte 0 of the upper 732 0x06 ECC byte 4 Error correction code byte 1 of the upper 734 0x07 ECC byte 5 Error correction code byte 2 of the upper 751 0x28 ECC byte 0 Error correction code byte 0 of the first [all …]
|
| /linux/Documentation/PCI/ |
| H A D | pcieaer-howto.rst | 5 The PCI Express Advanced Error Reporting Driver Guide HOWTO 19 This guide describes the basics of the PCI Express (PCIe) Advanced Error 31 the Advanced Error Reporting capability. The baseline capability is 33 set of error reporting requirements. Advanced Error Reporting 34 capability is implemented with a PCIe Advanced Error Reporting 38 Error Reporting capability. The PCIe AER driver provides three basic 79 …0000:50:00.0: PCIe Bus Error: severity=Uncorrectable (Fatal), type=Transaction Layer, (Requester I… 150 Capability structure. Error information being logged includes storing 151 the error reporting agent's Requester ID into the Error Source 152 Identification Registers and setting the error bits of the Root Error [all …]
|
| /linux/Documentation/gpu/amdgpu/ |
| H A D | ras.rst | 8 RAS debugfs/sysfs Control and Error Injection Interfaces 20 RAS Error Count sysfs Interface 24 :doc: AMDGPU RAS sysfs Error Count Interface
|