Home
last modified time | relevance | path

Searched refs:Error (Results 1 – 25 of 356) sorted by relevance

12345678910>>...15

/linux/rust/syn/
H A Derror.rs16 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 Dlookahead.rs4 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 Derror.rs27 pub const $err: super::Error =
28 match super::Error::try_from_errno(-(crate::bindings::$err as i32)) {
102 pub struct Error(NonZeroI32);
104 impl Error {
105 /// Creates an [`Error`] from a kernel error code.
114 /// assert_eq!(Error::from_errno(-1), EPERM);
115 /// assert_eq!(Error::from_errno(-2), ENOENT);
121 /// assert_eq!(Error::from_errno(0), EINVAL);
122 /// assert_eq!(Error::from_errno(-1000000), EINVAL);
124 pub fn from_errno(errno: crate::ffi::c_int) -> Error { in from_errno()
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
224 impl From<TryFromIntError> for Error { global() implementation
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 Dinit.rs91 //! pub fn new(flags: u32) -> impl PinInit<Self, Error> {
109 //! return Err(Error::from_errno(err));
130 error::{self, Error},
156 Error: From<E>, in pin_init()
160 pin_init_from_closure(|slot| init.__pinned_init(slot).map_err(|e| Error::from(e))) in pin_init()
173 Error: From<E>, in init()
177 init_from_closure(|slot| init.__pinned_init(slot).map_err(|e| Error::from(e))) in init()
185 /// This macro defaults the error to [`Error`]. If you need [`Infallible`], then use
199 /// use kernel::error::Error;
207 /// fn new() -> impl Init<Self, Error> {
[all...]
H A Dplatform.rs228 ) -> impl PinInit<Self, Error>; in probe() argument
341 handler: impl PinInit<T, Error> + 'a,
342 ) -> impl PinInit<irq::$reg_type<T>, Error> + 'a {
370 handler: impl PinInit<T, Error> + 'a,
371 ) -> impl PinInit<irq::$reg_type<T>, Error> + 'a {
393 return Err(Error::from_errno(irq)); in irq_by_index()
407 return Err(Error::from_errno(irq)); in optional_irq_by_index()
420 return Err(Error::from_errno(irq)); in irq_by_name()
436 return Err(Error::from_errno(irq)); in optional_irq_by_name()
539 type Error = kernel::error::Error; typedef
[all …]
H A Dmaple_tree.rs603 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 Dregulator.rs68 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 Dxarray.rs9 error::{Error, Result},
53 /// # Ok::<(), Error>(())
169 pub error: Error,
174 impl<T> From<StoreError<T>> for Error { implementation
259 error: Error::from_errno(errno), in store()
H A Ddevres.rs115 /// # fn no_run(dev: &Device<Bound>) -> Result<(), Error> {
194 Error: From<E>,
196 let inner = Arc::pin_init::<Error>( in devres_callback()
428 Error: From<E>,
/linux/rust/pin-init/examples/
H A Dpthread_mutex.rs45 pub enum Error {
47 IO(std::io::Error),
52 impl From<Infallible> for Error { in from()
59 impl From<AllocError> for Error { in from()
67 pub fn new(data: T) -> impl PinInit<Self, Error> { in new()
68 fn init_raw() -> impl PinInit<UnsafeCell<libc::pthread_mutex_t>, Error> { in new()
77 return Err(Error::IO(std::io::Error::from_raw_os_error(ret))); in new()
86 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
66 new(data: T) -> impl PinInit<Self, Error> new() argument
[all...]
/linux/rust/kernel/alloc/kvec/
H A Derrors.rs8 /// Error type for [`Vec::push_within_capacity`].
17 impl<T> From<PushError<T>> for Error { implementation
19 fn from(_: PushError<T>) -> Error { in from()
26 /// Error type for [`Vec::remove`].
35 impl From<RemoveError> for Error { in from() argument
37 fn from(_: RemoveError) -> Error { in from()
42 /// Error type for [`Vec::insert_within_capacity`].
59 impl<T> From<InsertError<T>> for Error { in from()
61 fn from(_: InsertError<T>) -> Error {
18 from(_: PushError<T>) -> Error from() argument
34 impl From<RemoveError> for Error { global() implementation
57 impl<T> From<InsertError<T>> for Error { global() implementation
58 from(_: InsertError<T>) -> Error from() argument
/linux/Documentation/ABI/testing/
H A Dsysfs-bus-platform-devices-ampere-smpro5 (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 Dsysfs-bus-pci-devices-aer23 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 Dsysfs-bus-fcoe58 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/pci/
H A Dirq.rs102 type Error = Error; typedef
108 return Err(crate::error::Error::from_errno(irq)); in try_into()
181 handler: impl PinInit<T, Error> + 'a, in request_irq()
182 ) -> impl PinInit<irq::Registration<T>, Error> + 'a { in request_irq()
196 handler: impl PinInit<T, Error> + 'a, in request_threaded_irq()
197 ) -> impl PinInit<irq::ThreadedRegistration<T>, Error> + 'a { in request_threaded_irq()
/linux/rust/kernel/io/
H A Dmem.rs69 /// ) -> impl PinInit<Self, Error> {
90 pub fn iomap_sized<const SIZE: usize>(self) -> impl PinInit<Devres<IoMem<SIZE>>, Error> + 'a {
102 ) -> impl PinInit<Devres<ExclusiveIoMem<SIZE>>, Error> + 'a {
133 /// ) -> impl PinInit<Self, Error> {
154 pub fn iomap(self) -> impl PinInit<Devres<IoMem<0>>, Error> + 'a {
160 pub fn iomap_exclusive(self) -> impl PinInit<Devres<ExclusiveIoMem<0>>, Error> + 'a {
208 pub fn new<'a>(io_request: IoRequest<'a>) -> impl PinInit<Devres<Self>, Error> + 'a { in deref()
276 pub fn new<'a>(io_request: IoRequest<'a>) -> impl PinInit<Devres<Self>, Error> + 'a { in drop()
/linux/drivers/android/binder/
H A Derror.rs16 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 Drust_driver_auxiliary.rs39 fn probe(adev: &auxiliary::Device<Core>, _info: &Self::IdInfo) -> impl PinInit<Self, Error> { in probe()
73 fn probe(pdev: &pci::Device<Core>, _info: &Self::IdInfo) -> impl PinInit<Self, Error> { in probe()
115 fn init(module: &'static kernel::ThisModule) -> impl PinInit<Self, Error> { in init()
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 Drust_debugfs.rs91 type Err = Error; in from_str()
126 ) -> impl PinInit<Self, Error> {
149 fn new(pdev: &platform::Device<Core>) -> impl PinInit<Self, Error> + '_ { 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 Dmei.rst104 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/drivers/gpu/nova-core/gsp/
H A Dcmdq.rs506 pub(crate) fn new(dev: &device::Device<device::Bound>) -> impl PinInit<Self, Error> + '_ { in new()
559 Error: From<M::InitError>, in send_command()
560 Error: From<<M::Reply as MessageFromGsp>::InitError>, in send_command()
586 Error: From<M::InitError>, in send_command_no_wait()
597 Error: From<M::InitError>, in receive_msg()
631 Error: From<M::InitError>, in send_single_command()
700 Error: From<M::InitError>, in send_command()
816 Error: From<M::InitError>, in receive_msg()
/linux/Documentation/driver-api/
H A Dmtdnand.rst699 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 Dpcieaer-howto.rst5 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 Dras.rst8 RAS debugfs/sysfs Control and Error Injection Interfaces
20 RAS Error Count sysfs Interface
24 :doc: AMDGPU RAS sysfs Error Count Interface
/linux/Documentation/admin-guide/RAS/
H A Derror-decoding.rst3 Error decoding
9 Error decoding on AMD systems should be done using the rasdaemon tool:

12345678910>>...15