Home
last modified time | relevance | path

Searched refs:Result (Results 1 – 25 of 111) sorted by relevance

12345

/linux/rust/kernel/
H A Dinit.rs847 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E>; in __pinned_init() argument
890 F: FnOnce(Pin<&mut T>) -> Result<(), E>, in pin_chain() argument
906 F: FnOnce(Pin<&mut T>) -> Result<(), E>,
908 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> { in __pinned_init() argument
958 unsafe fn __init(self, slot: *mut T) -> Result<(), E>; in __init() argument
989 F: FnOnce(&mut T) -> Result<(), E>, in chain() argument
1004 F: FnOnce(&mut T) -> Result<(), E>,
1006 unsafe fn __init(self, slot: *mut T) -> Result<(), E> { in __init() argument
1020 F: FnOnce(&mut T) -> Result<(), E>,
1022 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> { in __pinned_init() argument
[all …]
H A Dpage.rs9 error::Result,
64 pub fn alloc_page(flags: Flags) -> Result<Self, AllocError> { in alloc_page()
140 f: impl FnOnce(*mut u8) -> Result<T>, in with_pointer_into_page()
141 ) -> Result<T> { in with_pointer_into_page()
165 pub unsafe fn read_raw(&self, dst: *mut u8, offset: usize, len: usize) -> Result { in read_raw() argument
187 pub unsafe fn write_raw(&self, src: *const u8, offset: usize, len: usize) -> Result { in write_raw() argument
207 pub unsafe fn fill_zero_raw(&self, offset: usize, len: usize) -> Result { in fill_zero_raw() argument
235 ) -> Result { in copy_from_user_slice_raw() argument
H A Duaccess.rs10 error::Result,
133 pub fn read_all(self, buf: &mut Vec<u8>, flags: Flags) -> Result { in read_all() argument
182 pub fn skip(&mut self, num_skip: usize) -> Result { in skip() argument
224 pub fn read_raw(&mut self, out: &mut [MaybeUninit<u8>]) -> Result { in read_raw() argument
249 pub fn read_slice(&mut self, out: &mut [u8]) -> Result { in read_slice() argument
260 pub fn read<T: FromBytes>(&mut self) -> Result<T> { in read()
294 pub fn read_all(mut self, buf: &mut Vec<u8>, flags: Flags) -> Result { in read_all() argument
335 pub fn write_slice(&mut self, data: &[u8]) -> Result { in write_slice() argument
360 pub fn write<T: AsBytes>(&mut self, value: &T) -> Result { in write() argument
H A Dstr.rs50 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
81 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
203 pub const fn from_bytes_with_nul(bytes: &[u8]) -> Result<&Self, CStrConvertError> { in from_bytes_with_nul()
281 pub fn to_str(&self) -> Result<&str, core::str::Utf8Error> { in to_str()
309 pub fn to_cstring(&self) -> Result<CString, AllocError> { in to_cstring()
352 pub fn to_ascii_lowercase(&self) -> Result<CString, AllocError> { in to_ascii_lowercase()
369 pub fn to_ascii_uppercase(&self) -> Result<CString, AllocError> { in to_ascii_uppercase()
394 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
424 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
704 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str() argument
[all …]
H A Dfirmware.rs7 use crate::{bindings, device::Device, error::Error, error::Result, str::CStr};
58 fn request_internal(name: &CStr, dev: &Device, func: FwFunc) -> Result<Self> { in request_internal()
75 pub fn request(name: &CStr, dev: &Device) -> Result<Self> { in request()
81 pub fn request_nowarn(name: &CStr, dev: &Device) -> Result<Self> { in request_nowarn()
H A Derror.rs170 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
238 pub type Result<T = (), E = Error> = core::result::Result<T, E>; typedef
242 pub fn to_result(err: core::ffi::c_int) -> Result { in to_result() argument
273 pub(crate) fn from_err_ptr<T>(ptr: *mut T) -> Result<*mut T> { in from_err_ptr()
323 F: FnOnce() -> Result<T>, in from_result()
/linux/drivers/net/phy/
H A Dax88796b_rust.rs34 fn asix_soft_reset(dev: &mut phy::Device) -> Result { in asix_soft_reset() argument
50 fn read_status(dev: &mut phy::Device) -> Result<u16> { in read_status()
81 fn suspend(dev: &mut phy::Device) -> Result { in suspend() argument
85 fn resume(dev: &mut phy::Device) -> Result { in resume() argument
89 fn soft_reset(dev: &mut phy::Device) -> Result { in soft_reset() argument
111 fn suspend(dev: &mut phy::Device) -> Result { in suspend() argument
115 fn resume(dev: &mut phy::Device) -> Result { in resume() argument
119 fn soft_reset(dev: &mut phy::Device) -> Result { in soft_reset() argument
131 fn soft_reset(dev: &mut phy::Device) -> Result { in soft_reset() argument
H A Dqt2025.rs42 fn probe(dev: &mut phy::Device) -> Result<()> { in probe() argument
100 fn read_status(dev: &mut phy::Device) -> Result<u16> { in read_status()
/linux/rust/kernel/net/
H A Dphy.rs184 pub fn read<R: reg::Register>(&mut self, reg: R) -> Result<u16> { in read()
189 pub fn write<R: reg::Register>(&mut self, reg: R, val: u16) -> Result { in write() argument
194 pub fn read_paged(&mut self, page: u16, regnum: u16) -> Result<u16> { in read_paged()
215 pub fn genphy_soft_reset(&mut self) -> Result { in genphy_soft_reset() argument
223 pub fn init_hw(&mut self) -> Result { in init_hw() argument
231 pub fn start_aneg(&mut self) -> Result { in start_aneg() argument
239 pub fn genphy_resume(&mut self) -> Result { in genphy_resume() argument
247 pub fn genphy_suspend(&mut self) -> Result { in genphy_suspend() argument
255 pub fn genphy_read_status<R: reg::Register>(&mut self) -> Result<u16> { in genphy_read_status()
260 pub fn genphy_update_link(&mut self) -> Result { in genphy_update_link() argument
[all …]
/linux/rust/kernel/alloc/
H A Dvec_ext.rs20 fn with_capacity(capacity: usize, flags: Flags) -> Result<Self, AllocError>; in with_capacity()
35 fn push(&mut self, v: T, flags: Flags) -> Result<(), AllocError>; in push() argument
52 fn extend_from_slice(&mut self, other: &[T], flags: Flags) -> Result<(), AllocError> in extend_from_slice() argument
74 fn reserve(&mut self, additional: usize, flags: Flags) -> Result<(), AllocError>; in reserve() argument
78 fn with_capacity(capacity: usize, flags: Flags) -> Result<Self, AllocError> { in with_capacity()
84 fn push(&mut self, v: T, flags: Flags) -> Result<(), AllocError> { in push() argument
96 fn extend_from_slice(&mut self, other: &[T], flags: Flags) -> Result<(), AllocError> in extend_from_slice() argument
113 fn reserve(&mut self, additional: usize, _flags: Flags) -> Result<(), AllocError> { in reserve() argument
119 fn reserve(&mut self, additional: usize, flags: Flags) -> Result<(), AllocError> { in reserve() argument
H A Dbox_ext.rs7 use core::{mem::MaybeUninit, ptr, result::Result};
14 fn new(x: T, flags: Flags) -> Result<Self, AllocError>; in new()
19 fn new_uninit(flags: Flags) -> Result<Box<MaybeUninit<T>>, AllocError>; in new_uninit()
41 fn new(x: T, flags: Flags) -> Result<Self, AllocError> { in new()
49 fn new_uninit(_flags: Flags) -> Result<Box<MaybeUninit<T>>, AllocError> { in new_uninit()
54 fn new_uninit(flags: Flags) -> Result<Box<MaybeUninit<T>>, AllocError> { in new_uninit()
/linux/rust/kernel/net/phy/
H A Dreg.rs45 fn read(&self, dev: &mut Device) -> Result<u16>; in read()
48 fn write(&self, dev: &mut Device, val: u16) -> Result; in write() argument
51 fn read_status(dev: &mut Device) -> Result<u16>; in read_status()
105 fn read(&self, dev: &mut Device) -> Result<u16> { in read()
117 fn write(&self, dev: &mut Device, val: u16) -> Result { in write() argument
127 fn read_status(dev: &mut Device) -> Result<u16> { in read_status()
197 fn read(&self, dev: &mut Device) -> Result<u16> { in read()
207 fn write(&self, dev: &mut Device, val: u16) -> Result { in write() argument
216 fn read_status(dev: &mut Device) -> Result<u16> { in read_status()
/linux/rust/kernel/init/
H A D__internal.rs27 F: FnOnce(*mut T) -> Result<(), E>,
30 unsafe fn __init(self, slot: *mut T) -> Result<(), E> { in __init() argument
39 F: FnOnce(*mut T) -> Result<(), E>,
42 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> { in __pinned_init() argument
70 F: FnOnce(*mut Self::Datee) -> Result<O, E>, in make_closure()
99 F: FnOnce(*mut Self::Datee) -> Result<O, E>, in make_closure()
165 pub fn init<E>(self: Pin<&mut Self>, init: impl PinInit<T, E>) -> Result<Pin<&mut T>, E> { in init()
256 unsafe fn __pinned_init(self, _slot: *mut T) -> Result<(), ()> { in __pinned_init() argument
/linux/rust/kernel/block/mq/
H A Draw_writer.rs5 use crate::error::Result;
20 fn new(buffer: &'a mut [u8]) -> Result<RawWriter<'a>> { in new()
29 ) -> Result<RawWriter<'a>> {
39 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str() argument
H A Dgen_disk.rs9 use crate::{bindings, error::from_err_ptr, error::Result, sync::Arc};
48 fn validate_block_size(size: u32) -> Result<()> { in validate_block_size() argument
63 pub fn logical_block_size(mut self, block_size: u32) -> Result<Self> { in logical_block_size()
78 pub fn physical_block_size(mut self, block_size: u32) -> Result<Self> { in physical_block_size()
95 ) -> Result<GenDisk<T>> { in build()
H A Drequest.rs10 error::Result,
93 fn try_set_end(this: ARef<Self>) -> Result<*mut bindings::request, ARef<Self>> { in try_set_end()
114 pub fn end_ok(this: ARef<Self>) -> Result<(), ARef<Self>> { in end_ok() argument
/linux/rust/kernel/sync/
H A Darc.rs199 pub fn new(contents: T, flags: Flags) -> Result<Self, AllocError> { in new()
640 pub fn new(value: T, flags: Flags) -> Result<Self, AllocError> { in new()
648 pub fn new_uninit(flags: Flags) -> Result<UniqueArc<MaybeUninit<T>>, AllocError> { in new_uninit()
690 pub fn init_with<E>(mut self, init: impl Init<T, E>) -> core::result::Result<UniqueArc<T>, E> { in init_with()
703 ) -> core::result::Result<Pin<UniqueArc<T>>, E> { in pin_init_with()
740 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
746 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
752 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
758 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
/linux/drivers/block/
H A Drnull.rs20 error::Result,
39 fn init(_module: &'static ThisModule) -> Result<Self> { in init()
61 fn queue_rq(rq: ARef<mq::Request<Self>>, _is_last: bool) -> Result { in queue_rq() argument
/linux/scripts/
H A Dgenerate_rust_target.rs15 fmt::{Display, Formatter, Result},
32 f: impl Fn(&mut Formatter<'_>, &T) -> Result, in comma_sep() argument
33 ) -> Result { in comma_sep()
47 fn fmt(&self, formatter: &mut Formatter<'_>) -> Result { in fmt() argument
117 fn fmt(&self, formatter: &mut Formatter<'_>) -> Result { in fmt() argument
/linux/Documentation/firmware-guide/acpi/
H A Dchromeos-acpi-device.rst56 Result code:
87 Result code:
103 Result code:
117 Result code:
130 Result code:
192 Result code:
265 Result code:
315 Result code:
330 Result code:
343 Result code:
/linux/tools/memory-model/scripts/
H A DREADME12 "Result:" comment lines.
17 archive that are C-language and that have "Result:" comment lines
29 Check a single litmus test against its "Result:" expected result.
34 Check the specified list of litmus tests against their "Result:"
55 against the .litmus file's "Result:" comment to judge whether
97 # Checks results against Result tags, runs in minutes:
H A Dcmplitmushist.sh91 echo ' !!!' Result changed: $2
128 echo "!!!" Result changed: $badcompare 1>&2
/linux/samples/rust/
H A Drust_print.rs18 fn arc_print() -> Result { in arc_print()
43 fn init(_module: &'static ThisModule) -> Result<Self> { in init()
/linux/Documentation/driver-api/media/drivers/
H A Dcx2341x-devel.rst237 4-19 Parameter/Result
302 Result[0]
307 Result[1]
324 Result[0]
366 Result[0]
402 Result[0]
407 Result[1]
412 Result[2]
417 Result[3]
422 Result[4]
[all …]
/linux/rust/kernel/list/
H A Darc.rs172 pub fn new(contents: T, flags: Flags) -> Result<Self, AllocError> { in new()
182 pub fn pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self, E> in pin_init()
193 pub fn init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> in init()
276 pub fn try_from_arc(arc: Arc<T>) -> Result<Self, Arc<T>> in try_from_arc()

12345