Home
last modified time | relevance | path

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

/rust/kernel/
Dsecurity.rs19 pub fn binder_set_context_mgr(mgr: &Credential) -> Result { in binder_set_context_mgr()
27 pub fn binder_transaction(from: &Credential, to: &Credential) -> Result { in binder_transaction()
35 pub fn binder_transfer_binder(from: &Credential, to: &Credential) -> Result { in binder_transfer_binder()
43 pub fn binder_transfer_file(from: &Credential, to: &Credential, file: &File) -> Result { in binder_transfer_file()
Duaccess.rs130 pub fn read_all<A: Allocator>(self, buf: &mut Vec<u8, A>, flags: Flags) -> Result { in read_all()
179 pub fn skip(&mut self, num_skip: usize) -> Result { in skip()
221 pub fn read_raw(&mut self, out: &mut [MaybeUninit<u8>]) -> Result { in read_raw()
242 pub fn read_slice(&mut self, out: &mut [u8]) -> Result { in read_slice()
284 pub fn read_all<A: Allocator>(mut self, buf: &mut Vec<u8, A>, flags: Flags) -> Result { in read_all()
384 pub fn write_slice(&mut self, data: &[u8]) -> Result { in write_slice()
406 pub fn write<T: AsBytes>(&mut self, value: &T) -> Result { in write()
Dpage.rs175 pub unsafe fn read_raw(&self, dst: *mut u8, offset: usize, len: usize) -> Result { in read_raw()
197 pub unsafe fn write_raw(&self, src: *const u8, offset: usize, len: usize) -> Result { in write_raw()
217 pub unsafe fn fill_zero_raw(&self, offset: usize, len: usize) -> Result { in fill_zero_raw()
245 ) -> Result { in copy_from_user_slice_raw()
Dinit.rs843 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E>; in __pinned_init()
887 F: FnOnce(Pin<&mut T>) -> Result<(), E>, in pin_chain()
905 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> { in __pinned_init()
955 unsafe fn __init(self, slot: *mut T) -> Result<(), E>; in __init()
986 F: FnOnce(&mut T) -> Result<(), E>, in chain()
1003 unsafe fn __init(self, slot: *mut T) -> Result<(), E> { in __init()
1019 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> { in __pinned_init()
1039 f: impl FnOnce(*mut T) -> Result<(), E>, in pin_init_from_closure()
1058 f: impl FnOnce(*mut T) -> Result<(), E>, in init_from_closure()
1162 unsafe fn __init(self, slot: *mut T) -> Result<(), E> { in __init()
[all …]
Derror.rs185 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
255 pub type Result<T = (), E = Error> = core::result::Result<T, E>; typedef
259 pub fn to_result(err: crate::ffi::c_int) -> Result { in to_result()
Dstr.rs49 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
80 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()
725 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str()
777 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str()
885 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
Dmiscdevice.rs139 ) -> Result { in mmap()
258 pub fn copy_to_iter<T: AsBytes>(&mut self, value: &T) -> Result<()> { in copy_to_iter()
Dtypes.rs261 init_func: impl FnOnce(*mut T) -> Result<(), E>, in try_ffi_init()
Dworkqueue.rs213 ) -> Result<(), AllocError> { in try_spawn()
/rust/kernel/alloc/kvec/
Derrors.rs12 fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { in fmt()
29 fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { in fmt()
49 fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { in fmt()
/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 …]
/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.rs121 pub fn end_ok(this: ARef<Self>) -> Result<(), ARef<Self>> { in end_ok()
/rust/kernel/mm/
Dvirt.rs194 pub fn vm_insert_page(&self, address: usize, page: &Page) -> Result { in vm_insert_page()
325 pub fn try_clear_mayread(&self) -> Result { in try_clear_mayread()
350 pub fn try_clear_maywrite(&self) -> Result { in try_clear_maywrite()
375 pub fn try_clear_mayexec(&self) -> Result { in try_clear_mayexec()
/rust/kernel/alloc/
Dkvec.rs314 pub fn push(&mut self, v: T, flags: Flags) -> Result<(), AllocError> { in push()
337 pub fn push_within_capacity(&mut self, v: T) -> Result<(), PushError<T>> { in push_within_capacity()
388 ) -> Result<(), InsertError<T>> { in insert_within_capacity()
611 pub fn reserve(&mut self, additional: usize, flags: Flags) -> Result<(), AllocError> { in reserve()
728 pub fn extend_with(&mut self, n: usize, value: T, flags: Flags) -> Result<(), AllocError> { in extend_with()
767 pub fn extend_from_slice(&mut self, other: &[T], flags: Flags) -> Result<(), AllocError> { in extend_from_slice()
808 pub fn resize(&mut self, new_len: usize, value: T, flags: Flags) -> Result<(), AllocError> { in resize()
865 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
Dkbox.rs473 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
/rust/kernel/init/
D__internal.rs31 unsafe fn __init(self, slot: *mut T) -> Result<(), E> { in __init()
43 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> { in __pinned_init()
261 unsafe fn __pinned_init(self, _slot: *mut T) -> Result<(), ()> { in __pinned_init()
/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()
/rust/kernel/sync/
Darc.rs736 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
742 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
748 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
754 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
/rust/kernel/fs/
Dfile.rs458 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt()