Home
last modified time | relevance | path

Searched defs:Result (Results 1 – 17 of 17) sorted by relevance

/linux-6.8/drivers/net/phy/
Dax88796b_rust.rs35 fn asix_soft_reset(dev: &mut phy::Device) -> Result { in asix_soft_reset()
82 fn suspend(dev: &mut phy::Device) -> Result { in suspend()
86 fn resume(dev: &mut phy::Device) -> Result { in resume()
90 fn soft_reset(dev: &mut phy::Device) -> Result { in soft_reset()
112 fn suspend(dev: &mut phy::Device) -> Result { in suspend()
116 fn resume(dev: &mut phy::Device) -> Result { in resume()
120 fn soft_reset(dev: &mut phy::Device) -> Result { in soft_reset()
132 fn soft_reset(dev: &mut phy::Device) -> Result { in soft_reset()
/linux-6.8/rust/kernel/
Dinit.rs777 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E>; in __pinned_init()
820 F: FnOnce(Pin<&mut T>) -> Result<(), E>, in pin_chain()
838 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> { in __pinned_init()
891 unsafe fn __init(self, slot: *mut T) -> Result<(), E>; in __init()
922 F: FnOnce(&mut T) -> Result<(), E>, in chain()
939 unsafe fn __init(self, slot: *mut T) -> Result<(), E> { in __init()
957 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> { in __pinned_init()
977 f: impl FnOnce(*mut T) -> Result<(), E>, in pin_init_from_closure()
996 f: impl FnOnce(*mut T) -> Result<(), E>, in init_from_closure()
1099 unsafe fn __init(self, slot: *mut T) -> Result<(), E> { in __init()
[all …]
Derror.rs165 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
239 pub type Result<T = (), E = Error> = core::result::Result<T, E>; typedef
243 pub fn to_result(err: core::ffi::c_int) -> Result { in to_result()
Dstr.rs227 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
257 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
459 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str()
511 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str()
612 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
Dworkqueue.rs210 pub fn try_spawn<T: 'static + Send + FnOnce()>(&self, func: T) -> Result<(), AllocError> { in try_spawn()
/linux-6.8/rust/alloc/vec/
Dspec_extend.rs18 fn try_spec_extend(&mut self, iter: I) -> Result<(), TryReserveError>; in try_spec_extend()
35 default fn try_spec_extend(&mut self, iter: I) -> Result<(), TryReserveError> { in try_spec_extend()
54 default fn try_spec_extend(&mut self, iterator: I) -> Result<(), TryReserveError> { in try_spec_extend()
70 fn try_spec_extend(&mut self, mut iterator: IntoIter<T>) -> Result<(), TryReserveError> { in try_spec_extend()
95 default fn try_spec_extend(&mut self, iterator: I) -> Result<(), TryReserveError> { in try_spec_extend()
115 fn try_spec_extend(&mut self, iterator: slice::Iter<'a, T>) -> Result<(), TryReserveError> { in try_spec_extend()
Dmod.rs1093 pub fn try_reserve(&mut self, additional: usize) -> Result<(), TryReserveError> { in try_reserve()
1136 pub fn try_reserve_exact(&mut self, additional: usize) -> Result<(), TryReserveError> { in try_reserve_exact()
2020 pub fn try_push(&mut self, value: T) -> Result<(), TryReserveError> { in try_push()
2065 pub fn push_within_capacity(&mut self, value: T) -> Result<(), T> { in push_within_capacity()
2143 unsafe fn try_append_elements(&mut self, other: *const [T]) -> Result<(), TryReserveError> { in try_append_elements()
2598 pub fn try_resize(&mut self, new_len: usize, value: T) -> Result<(), TryReserveError> { in try_resize()
2654 pub fn try_extend_from_slice(&mut self, other: &[T]) -> Result<(), TryReserveError> { in try_extend_from_slice()
2773 fn try_extend_with(&mut self, n: usize, value: T) -> Result<(), TryReserveError> { in try_extend_with()
3112 …fn try_extend_desugared<I: Iterator<Item = T>>(&mut self, mut iterator: I) -> Result<(), TryReserv… in try_extend_desugared()
3386 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
Dinto_iter.rs53 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
219 fn advance_by(&mut self, n: usize) -> Result<(), NonZeroUsize> { in advance_by()
316 fn advance_back_by(&mut self, n: usize) -> Result<(), NonZeroUsize> { in advance_back_by()
Ddrain.rs40 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
/linux-6.8/rust/kernel/net/
Dphy.rs196 pub fn write(&mut self, regnum: u16, val: u16) -> Result { in write()
228 pub fn genphy_soft_reset(&mut self) -> Result { in genphy_soft_reset()
236 pub fn init_hw(&mut self) -> Result { in init_hw()
244 pub fn start_aneg(&mut self) -> Result { in start_aneg()
252 pub fn genphy_resume(&mut self) -> Result { in genphy_resume()
260 pub fn genphy_suspend(&mut self) -> Result { in genphy_suspend()
281 pub fn genphy_update_link(&mut self) -> Result { in genphy_update_link()
289 pub fn genphy_read_lpa(&mut self) -> Result { in genphy_read_lpa()
297 pub fn genphy_read_abilities(&mut self) -> Result { in genphy_read_abilities()
582 fn soft_reset(_dev: &mut Device) -> Result { in soft_reset()
[all …]
/linux-6.8/rust/alloc/
Draw_vec.rs339 pub fn try_reserve(&mut self, len: usize, additional: usize) -> Result<(), TryReserveError> { in try_reserve()
349 pub fn try_reserve_for_push(&mut self, len: usize) -> Result<(), TryReserveError> { in try_reserve_for_push()
380 ) -> Result<(), TryReserveError> { in try_reserve_exact()
422 fn grow_amortized(&mut self, len: usize, additional: usize) -> Result<(), TryReserveError> { in grow_amortized()
451 fn grow_exact(&mut self, len: usize, additional: usize) -> Result<(), TryReserveError> { in grow_exact()
468 fn shrink(&mut self, cap: usize) -> Result<(), TryReserveError> { in shrink()
542 fn handle_reserve(result: Result<(), TryReserveError>) { in handle_reserve()
560 fn alloc_guard(alloc_size: usize) -> Result<(), TryReserveError> { in alloc_guard()
Dboxed.rs1900 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
1907 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
1914 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
2309 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in from()
2316 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in from()
/linux-6.8/rust/kernel/sync/
Darc.rs658 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
664 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
670 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
676 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
/linux-6.8/scripts/
Dgenerate_rust_target.rs31 fn fmt(&self, formatter: &mut Formatter<'_>) -> Result { in fmt()
93 fn fmt(&self, formatter: &mut Formatter<'_>) -> Result { in fmt()
/linux-6.8/rust/kernel/init/
D__internal.rs30 unsafe fn __init(self, slot: *mut T) -> Result<(), E> { in __init()
42 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> { in __pinned_init()
/linux-6.8/rust/alloc/collections/
Dmod.rs137 ) -> core::result::Result<(), core::fmt::Error> { in fmt()
/linux-6.8/tools/perf/scripts/python/
Dexported-sql-viewer.py2427 def Result(self): member in SlowInitClass