Home
last modified time | relevance | path

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

123456

/linux-6.15/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
/linux-6.15/rust/pin-init/src/
H A Dalloc.rs30 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> in try_pin_init()
38 fn pin_init(init: impl PinInit<T>) -> Result<Pin<Self>, AllocError> { in pin_init()
50 fn try_init<E>(init: impl Init<T, E>) -> Result<Self, E> in try_init()
55 fn init(init: impl Init<T>) -> Result<Self, AllocError> { in init()
82 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> in try_pin_init()
90 fn try_init<E>(init: impl Init<T, E>) -> Result<Self, E> in try_init()
100 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> in try_pin_init()
118 fn try_init<E>(init: impl Init<T, E>) -> Result<Self, E> in try_init()
139 fn write_init<E>(mut self, init: impl Init<T, E>) -> Result<Self::Initialized, E> { in write_init()
148 fn write_pin_init<E>(mut self, init: impl PinInit<T, E>) -> Result<Pin<Self::Initialized>, E> { in write_pin_init()
H A D__internal.rs29 F: FnOnce(*mut T) -> Result<(), E>,
32 unsafe fn __init(self, slot: *mut T) -> Result<(), E> { in __init() argument
41 F: FnOnce(*mut T) -> Result<(), E>,
44 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> { in __pinned_init() argument
73 F: FnOnce(*mut Self::Datee) -> Result<O, E>, in make_closure()
103 F: FnOnce(*mut Self::Datee) -> Result<O, E>, in make_closure()
171 pub fn init<E>(self: Pin<&mut Self>, init: impl PinInit<T, E>) -> Result<Pin<&mut T>, E> { in init()
201 let value: Result<Pin<&mut Foo>, core::convert::Infallible> = in stack_init_reuse()
208 let value: Result<Pin<&mut Foo>, core::convert::Infallible> = in stack_init_reuse()
289 unsafe fn __pinned_init(self, _slot: *mut T) -> Result<(), ()> { in __pinned_init() argument
H A Dlib.rs1012 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E>; in __pinned_init() argument
1034 F: FnOnce(Pin<&mut T>) -> Result<(), E>, in pin_chain() argument
1050 F: FnOnce(Pin<&mut T>) -> Result<(), E>,
1110 unsafe fn __init(self, slot: *mut T) -> Result<(), E>; in __init() argument
1142 F: FnOnce(&mut T) -> Result<(), E>, in chain() argument
1157 F: FnOnce(&mut T) -> Result<(), E>,
1159 unsafe fn __init(self, slot: *mut T) -> Result<(), E> { in __init() argument
1173 F: FnOnce(&mut T) -> Result<(), E>,
1195 f: impl FnOnce(*mut T) -> Result<(), E>, in pin_init_from_closure() argument
1214 f: impl FnOnce(*mut T) -> Result<(), E>, in init_from_closure() argument
[all …]
/linux-6.15/rust/kernel/net/
H A Dphy.rs223 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
268 pub fn genphy_read_lpa(&mut self) -> Result { in genphy_read_lpa() argument
589 fn soft_reset(_dev: &mut Device) -> Result { in soft_reset() argument
594 fn probe(_dev: &mut Device) -> Result { in probe() argument
611 fn config_aneg(_dev: &mut Device) -> Result { in config_aneg() argument
621 fn suspend(_dev: &mut Device) -> Result { in suspend() argument
626 fn resume(_dev: &mut Device) -> Result { in resume() argument
[all …]
/linux-6.15/rust/kernel/
H A Dpage.rs9 error::Result,
72 pub fn alloc_page(flags: Flags) -> Result<Self, AllocError> { in alloc_page()
148 f: impl FnOnce(*mut u8) -> Result<T>, in with_pointer_into_page()
149 ) -> Result<T> { in with_pointer_into_page()
173 pub unsafe fn read_raw(&self, dst: *mut u8, offset: usize, len: usize) -> Result { in read_raw() argument
195 pub unsafe fn write_raw(&self, src: *const u8, offset: usize, len: usize) -> Result { in write_raw() argument
215 pub unsafe fn fill_zero_raw(&self, offset: usize, len: usize) -> Result { in fill_zero_raw() argument
243 ) -> Result { in copy_from_user_slice_raw() argument
H A Duaccess.rs10 error::Result,
130 pub fn read_all<A: Allocator>(self, buf: &mut Vec<u8, A>, flags: Flags) -> Result { in read_all() argument
179 pub fn skip(&mut self, num_skip: usize) -> Result { in skip() argument
221 pub fn read_raw(&mut self, out: &mut [MaybeUninit<u8>]) -> Result { in read_raw() argument
242 pub fn read_slice(&mut self, out: &mut [u8]) -> Result { in read_slice() argument
253 pub fn read<T: FromBytes>(&mut self) -> Result<T> { in read()
284 pub fn read_all<A: Allocator>(mut self, buf: &mut Vec<u8, A>, flags: Flags) -> Result { in read_all() argument
324 pub fn write_slice(&mut self, data: &[u8]) -> Result { in write_slice() argument
346 pub fn write<T: AsBytes>(&mut self, value: &T) -> Result { in write() argument
H A Dstr.rs67 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
99 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
329 pub fn to_str(&self) -> Result<&str, core::str::Utf8Error> { in to_str()
358 pub fn to_cstring(&self) -> Result<CString, AllocError> { in to_cstring()
401 pub fn to_ascii_lowercase(&self) -> Result<CString, AllocError> { in to_ascii_lowercase()
444 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
475 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
778 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str() argument
830 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str() argument
927 fn try_from(cstr: &'a CStr) -> Result<CString, AllocError> { in try_from()
[all …]
H A Dpci.rs13 error::{to_result, Result},
39 ) -> Result { in register() argument
240 fn probe(dev: &Device<device::Core>, id_info: &Self::IdInfo) -> Result<Pin<KBox<Self>>>; in probe()
271 fn new(pdev: &Device, num: u32, name: &CStr) -> Result<Self> { in new()
381 pub fn resource_len(&self, bar: u32) -> Result<bindings::resource_size_t> { in resource_len()
398 ) -> Result<Devres<Bar<SIZE>>> { in iomap_region_sized()
406 pub fn iomap_region(&self, bar: u32, name: &CStr) -> Result<Devres<Bar>> { in iomap_region()
413 pub fn enable_device_mem(&self) -> Result { in enable_device_mem() argument
H A Dinit.rs155 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self::PinnedSelf, E> in try_pin_init()
163 fn pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> error::Result<Self::PinnedSelf> in pin_init()
175 fn try_init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> in try_init()
180 fn init<E>(init: impl Init<T, E>, flags: Flags) -> error::Result<Self> in init()
H A Ddevres.rs12 error::{Error, Result},
102 fn new(dev: &Device, data: T, flags: Flags) -> Result<Arc<DevresInner<T>>> { in new()
174 pub fn new(dev: &Device, data: T, flags: Flags) -> Result<Self> { in new()
182 pub fn new_foreign_owned(dev: &Device, data: T, flags: Flags) -> Result { in new_foreign_owned() argument
H A Derror.rs184 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
375 pub type Result<T = (), E = Error> = core::result::Result<T, E>; typedef
379 pub fn to_result(err: crate::ffi::c_int) -> Result { in to_result() argument
408 pub fn from_err_ptr<T>(ptr: *mut T) -> Result<*mut T> { in from_err_ptr()
457 F: FnOnce() -> Result<T>, in from_result()
H A Dio.rs7 use crate::error::{code::EINVAL, Result};
25 pub fn new(addr: usize, maxsize: usize) -> Result<Self> { in new()
130 pub fn $try_name(&self, offset: usize) -> Result<$type_name> {
159 pub fn $try_name(&self, value: $type_name, offset: usize) -> Result {
204 fn io_addr<U>(&self, offset: usize) -> Result<usize> { in io_addr()
H A Dfirmware.rs7 use crate::{bindings, device::Device, error::Error, error::Result, ffi, str::CStr};
62 fn request_internal(name: &CStr, dev: &Device, func: FwFunc) -> Result<Self> { in request_internal()
79 pub fn request(name: &CStr, dev: &Device) -> Result<Self> { in request()
85 pub fn request_nowarn(name: &CStr, dev: &Device) -> Result<Self> { in request_nowarn()
/linux-6.15/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-6.15/rust/kernel/sync/
H A Darc.rs217 fn try_init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> in try_init()
227 pub fn new(contents: T, flags: Flags) -> Result<Self, AllocError> { in new()
703 fn try_init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> in try_init()
714 fn write_init<E>(mut self, init: impl Init<T, E>) -> Result<Self::Initialized, E> { in write_init()
735 pub fn new(value: T, flags: Flags) -> Result<Self, AllocError> { in new()
743 pub fn new_uninit(flags: Flags) -> Result<UniqueArc<MaybeUninit<T>>, AllocError> { in new_uninit()
798 ) -> core::result::Result<Pin<UniqueArc<T>>, E> { in pin_init_with()
835 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
841 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
847 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
[all …]
/linux-6.15/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()
/linux-6.15/rust/kernel/alloc/
H A Dkbox.rs16 use core::result::Result;
215 pub fn new(x: T, flags: Flags) -> Result<Self, AllocError> { in new()
234 pub fn new_uninit(flags: Flags) -> Result<Box<MaybeUninit<T>, A>, AllocError> { in new_uninit()
246 pub fn pin(x: T, flags: Flags) -> Result<Pin<Box<T, A>>, AllocError> in pin()
321 fn write_init<E>(mut self, init: impl Init<T, E>) -> Result<Self::Initialized, E> { in write_init()
330 fn write_pin_init<E>(mut self, init: impl PinInit<T, E>) -> Result<Pin<Self::Initialized>, E> { in write_pin_init()
347 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Pin<Self>, E> in try_pin_init()
355 fn try_init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> in try_init()
467 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
477 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
H A Dallocator.rs90 ) -> Result<NonNull<[u8]>, AllocError> { in call()
137 ) -> Result<NonNull<[u8]>, AllocError> { in realloc()
154 ) -> Result<NonNull<[u8]>, AllocError> { in realloc()
178 ) -> Result<NonNull<[u8]>, AllocError> { in realloc()
/linux-6.15/drivers/gpu/nova-core/
H A Dgpu.rs39 fn try_from(value: u32) -> Result<Self, Self::Error> {
95 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
123 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
136 fn new(bar: &Devres<Bar0>) -> Result<Spec> { in new()
157 fn new(dev: &device::Device, spec: &Spec, ver: &str) -> Result<Firmware> { in new()
185 pub(crate) fn new(pdev: &pci::Device, bar: Devres<Bar0>) -> Result<impl PinInit<Self>> { in new()
/linux-6.15/samples/rust/
H A Drust_misc_device.rs160 fn open(_file: &File, misc: &MiscDeviceRegistration<Self>) -> Result<Pin<KBox<Self>>> { in open()
176 fn ioctl(me: Pin<&RustMiscDevice>, _file: &File, cmd: u32, arg: usize) -> Result<isize> { in ioctl()
203 fn set_value(&self, mut reader: UserSliceReader) -> Result<isize> { in set_value()
217 fn get_value(&self, mut writer: UserSliceWriter) -> Result<isize> { in get_value()
234 fn hello(&self) -> Result<isize> { in hello()
H A Drust_dma.rs51 fn probe(pdev: &pci::Device<Core>, _info: &Self::IdInfo) -> Result<Pin<KBox<Self>>> { in probe()
57 || -> Result { in probe()
81 let _ = || -> Result { in drop()
/linux-6.15/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-6.15/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:

123456