Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/phy/
Dax88796b_rust.rs34 fn asix_soft_reset(dev: &mut phy::Device) -> Result { in asix_soft_reset()
81 fn suspend(dev: &mut phy::Device) -> Result { in suspend()
85 fn resume(dev: &mut phy::Device) -> Result { in resume()
89 fn soft_reset(dev: &mut phy::Device) -> Result { in soft_reset()
111 fn suspend(dev: &mut phy::Device) -> Result { in suspend()
115 fn resume(dev: &mut phy::Device) -> Result { in resume()
119 fn soft_reset(dev: &mut phy::Device) -> Result { in soft_reset()
131 fn soft_reset(dev: &mut phy::Device) -> Result { in soft_reset()
Dqt2025.rs42 fn probe(dev: &mut phy::Device) -> Result<()> { in probe()
/linux-6.12.1/rust/kernel/alloc/
Dvec_ext.rs35 fn push(&mut self, v: T, flags: Flags) -> Result<(), AllocError>; in push()
52 fn extend_from_slice(&mut self, other: &[T], flags: Flags) -> Result<(), AllocError> in extend_from_slice()
74 fn reserve(&mut self, additional: usize, flags: Flags) -> Result<(), AllocError>; in reserve()
84 fn push(&mut self, v: T, flags: Flags) -> Result<(), AllocError> { in push()
96 fn extend_from_slice(&mut self, other: &[T], flags: Flags) -> Result<(), AllocError> in extend_from_slice()
113 fn reserve(&mut self, additional: usize, _flags: Flags) -> Result<(), AllocError> { in reserve()
119 fn reserve(&mut self, additional: usize, flags: Flags) -> Result<(), AllocError> { in reserve()
/linux-6.12.1/rust/kernel/net/
Dphy.rs189 pub fn write<R: reg::Register>(&mut self, reg: R, val: u16) -> Result { in write()
215 pub fn genphy_soft_reset(&mut self) -> Result { in genphy_soft_reset()
223 pub fn init_hw(&mut self) -> Result { in init_hw()
231 pub fn start_aneg(&mut self) -> Result { in start_aneg()
239 pub fn genphy_resume(&mut self) -> Result { in genphy_resume()
247 pub fn genphy_suspend(&mut self) -> Result { in genphy_suspend()
260 pub fn genphy_update_link(&mut self) -> Result { in genphy_update_link()
268 pub fn genphy_read_lpa(&mut self) -> Result { in genphy_read_lpa()
276 pub fn genphy_read_abilities(&mut self) -> Result { in genphy_read_abilities()
589 fn soft_reset(_dev: &mut Device) -> Result { in soft_reset()
[all …]
/linux-6.12.1/rust/kernel/
Duaccess.rs133 pub fn read_all(self, buf: &mut Vec<u8>, flags: Flags) -> Result { in read_all()
182 pub fn skip(&mut self, num_skip: usize) -> Result { in skip()
224 pub fn read_raw(&mut self, out: &mut [MaybeUninit<u8>]) -> Result { in read_raw()
249 pub fn read_slice(&mut self, out: &mut [u8]) -> Result { in read_slice()
294 pub fn read_all(mut self, buf: &mut Vec<u8>, flags: Flags) -> Result { in read_all()
335 pub fn write_slice(&mut self, data: &[u8]) -> Result { in write_slice()
360 pub fn write<T: AsBytes>(&mut self, value: &T) -> Result { in write()
Dinit.rs847 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E>; in __pinned_init()
890 F: FnOnce(Pin<&mut T>) -> Result<(), E>, in pin_chain()
908 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> { in __pinned_init()
958 unsafe fn __init(self, slot: *mut T) -> Result<(), E>; in __init()
989 F: FnOnce(&mut T) -> Result<(), E>, in chain()
1006 unsafe fn __init(self, slot: *mut T) -> Result<(), E> { in __init()
1022 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> { in __pinned_init()
1042 f: impl FnOnce(*mut T) -> Result<(), E>, in pin_init_from_closure()
1061 f: impl FnOnce(*mut T) -> Result<(), E>, in init_from_closure()
1164 unsafe fn __init(self, slot: *mut T) -> Result<(), E> { in __init()
[all …]
Dpage.rs165 pub unsafe fn read_raw(&self, dst: *mut u8, offset: usize, len: usize) -> Result { in read_raw()
187 pub unsafe fn write_raw(&self, src: *const u8, offset: usize, len: usize) -> Result { in write_raw()
207 pub unsafe fn fill_zero_raw(&self, offset: usize, len: usize) -> Result { in fill_zero_raw()
235 ) -> Result { in copy_from_user_slice_raw()
Derror.rs170 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
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()
Dstr.rs50 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
81 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
394 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
424 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
704 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str()
756 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str()
865 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
Dworkqueue.rs213 ) -> Result<(), AllocError> { in try_spawn()
/linux-6.12.1/scripts/
Dgenerate_rust_target.rs32 f: impl Fn(&mut Formatter<'_>, &T) -> Result, in comma_sep()
47 fn fmt(&self, formatter: &mut Formatter<'_>) -> Result { in fmt()
117 fn fmt(&self, formatter: &mut Formatter<'_>) -> Result { in fmt()
/linux-6.12.1/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()
256 unsafe fn __pinned_init(self, _slot: *mut T) -> Result<(), ()> { in __pinned_init()
/linux-6.12.1/rust/kernel/sync/
Darc.rs740 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
746 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
752 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
758 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
/linux-6.12.1/rust/kernel/net/phy/
Dreg.rs48 fn write(&self, dev: &mut Device, val: u16) -> Result; in write()
117 fn write(&self, dev: &mut Device, val: u16) -> Result { in write()
207 fn write(&self, dev: &mut Device, val: u16) -> Result { in write()
/linux-6.12.1/drivers/block/
Drnull.rs61 fn queue_rq(rq: ARef<mq::Request<Self>>, _is_last: bool) -> Result { in queue_rq()
/linux-6.12.1/rust/kernel/block/mq/
Draw_writer.rs39 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str()
Doperations.rs30 fn queue_rq(rq: ARef<Request<Self>>, is_last: bool) -> Result; in queue_rq()
Dgen_disk.rs48 fn validate_block_size(size: u32) -> Result<()> { in validate_block_size()
Drequest.rs114 pub fn end_ok(this: ARef<Self>) -> Result<(), ARef<Self>> { in end_ok()
/linux-6.12.1/tools/perf/scripts/python/
Dexported-sql-viewer.py2427 def Result(self): member in SlowInitClass