| /rust/kernel/ |
| D | security.rs | 12 error::{to_result, Result}, 19 pub fn binder_set_context_mgr(mgr: &Credential) -> Result { in binder_set_context_mgr() argument 27 pub fn binder_transaction(from: &Credential, to: &Credential) -> Result { in binder_transaction() argument 35 pub fn binder_transfer_binder(from: &Credential, to: &Credential) -> Result { in binder_transfer_binder() argument 43 pub fn binder_transfer_file(from: &Credential, to: &Credential, file: &File) -> Result { in binder_transfer_file() argument 66 pub fn from_secid(secid: u32) -> Result<Self> { in from_secid()
|
| D | page.rs | 9 error::Result, 74 pub fn alloc_page(flags: Flags) -> Result<Self, AllocError> { in alloc_page() 150 f: impl FnOnce(*mut u8) -> Result<T>, in with_pointer_into_page() 151 ) -> Result<T> { in with_pointer_into_page() 175 pub unsafe fn read_raw(&self, dst: *mut u8, offset: usize, len: usize) -> Result { in read_raw() argument 197 pub unsafe fn write_raw(&self, src: *const u8, offset: usize, len: usize) -> Result { in write_raw() argument 217 pub unsafe fn fill_zero_raw(&self, offset: usize, len: usize) -> Result { in fill_zero_raw() argument 245 ) -> Result { in copy_from_user_slice_raw() argument
|
| D | uaccess.rs | 10 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 307 pub fn strcpy_into_buf<'buf>(self, buf: &'buf mut [u8]) -> Result<&'buf CStr> { in strcpy_into_buf() 384 pub fn write_slice(&mut self, data: &[u8]) -> Result { in write_slice() argument 406 pub fn write<T: AsBytes>(&mut self, value: &T) -> Result { in write() argument [all …]
|
| D | init.rs | 843 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E>; in __pinned_init() argument 887 F: FnOnce(Pin<&mut T>) -> Result<(), E>, in pin_chain() argument 903 F: FnOnce(Pin<&mut T>) -> Result<(), E>, 905 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> { in __pinned_init() argument 955 unsafe fn __init(self, slot: *mut T) -> Result<(), E>; in __init() argument 986 F: FnOnce(&mut T) -> Result<(), E>, in chain() argument 1001 F: FnOnce(&mut T) -> Result<(), E>, 1003 unsafe fn __init(self, slot: *mut T) -> Result<(), E> { in __init() argument 1017 F: FnOnce(&mut T) -> Result<(), E>, 1019 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> { in __pinned_init() argument [all …]
|
| D | firmware.rs | 7 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()
|
| D | str.rs | 49 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument 80 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument 202 pub const fn from_bytes_with_nul(bytes: &[u8]) -> Result<&Self, CStrConvertError> { in from_bytes_with_nul() 280 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 725 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str() argument [all …]
|
| D | error.rs | 185 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument 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() argument 288 pub fn from_err_ptr<T>(ptr: *mut T) -> Result<*mut T> { in from_err_ptr() 337 F: FnOnce() -> Result<T>, in from_result()
|
| D | miscdevice.rs | 14 error::{to_result, Error, Result, VTABLE_DEFAULT_ERROR}, 120 fn open(_file: &File, _misc: &MiscDeviceRegistration<Self>) -> Result<Self::Ptr>; in open() 139 ) -> Result { in mmap() argument 149 ) -> Result<loff_t> { in llseek() 154 fn read_iter(_kiocb: Kiocb<'_, Self::Ptr>, _iov: &mut IovIter) -> Result<usize> { in read_iter() 159 fn write_iter(_kiocb: Kiocb<'_, Self::Ptr>, _iov: &mut IovIter) -> Result<usize> { in write_iter() 173 ) -> Result<isize> { in ioctl() 190 ) -> Result<isize> { in compat_ioctl() 258 pub fn copy_to_iter<T: AsBytes>(&mut self, value: &T) -> Result<()> { in copy_to_iter() argument
|
| D | alloc.rs | 156 fn alloc(layout: Layout, flags: Flags) -> Result<NonNull<[u8]>, AllocError> { in alloc() 199 ) -> Result<NonNull<[u8]>, AllocError>; in realloc()
|
| D | prelude.rs | 33 pub use super::error::{code::*, Error, Result};
|
| /rust/kernel/block/mq/ |
| D | raw_writer.rs | 5 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
|
| D | gen_disk.rs | 9 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()
|
| D | request.rs | 10 error::Result, 100 fn try_set_end(this: ARef<Self>) -> Result<*mut bindings::request, ARef<Self>> { in try_set_end() 121 pub fn end_ok(this: ARef<Self>) -> Result<(), ARef<Self>> { in end_ok() argument
|
| D | operations.rs | 11 error::{from_result, Result}, 30 fn queue_rq(rq: ARef<Request<Self>>, is_last: bool) -> Result; in queue_rq() argument
|
| /rust/kernel/net/phy/ |
| D | reg.rs | 45 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()
|
| /rust/kernel/init/ |
| D | __internal.rs | 28 F: FnOnce(*mut T) -> Result<(), E>, 31 unsafe fn __init(self, slot: *mut T) -> Result<(), E> { in __init() argument 40 F: FnOnce(*mut T) -> Result<(), E>, 43 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> { in __pinned_init() argument 72 F: FnOnce(*mut Self::Datee) -> Result<O, E>, in make_closure() 102 F: FnOnce(*mut Self::Datee) -> Result<O, E>, in make_closure() 170 pub fn init<E>(self: Pin<&mut Self>, init: impl PinInit<T, E>) -> Result<Pin<&mut T>, E> { in init() 261 unsafe fn __pinned_init(self, _slot: *mut T) -> Result<(), ()> { in __pinned_init() argument
|
| /rust/kernel/net/ |
| D | phy.rs | 184 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 …]
|
| /rust/kernel/alloc/kvec/ |
| D | errors.rs | 12 fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { in fmt() argument 29 fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { in fmt() argument 49 fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { in fmt() argument
|
| /rust/kernel/alloc/ |
| D | allocator.rs | 78 ) -> Result<NonNull<[u8]>, AllocError> { in call() 136 ) -> Result<NonNull<[u8]>, AllocError> { in realloc() 155 ) -> Result<NonNull<[u8]>, AllocError> { in realloc() 179 ) -> Result<NonNull<[u8]>, AllocError> { in realloc()
|
| D | kbox.rs | 16 use core::result::Result; 248 pub fn new(x: T, flags: Flags) -> Result<Self, AllocError> { in new() 267 pub fn new_uninit(flags: Flags) -> Result<Box<MaybeUninit<T>, A>, AllocError> { in new_uninit() 279 pub fn pin(x: T, flags: Flags) -> Result<Pin<Box<T, A>>, AllocError> in pin() 348 fn write_init<E>(mut self, init: impl Init<T, E>) -> Result<Self::Initialized, E> { in write_init() 357 fn write_pin_init<E>(mut self, init: impl PinInit<T, E>) -> Result<Pin<Self::Initialized>, E> { in write_pin_init() 374 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Pin<Self>, E> in try_pin_init() 382 fn try_init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> in try_init() 473 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
|
| D | kvec.rs | 314 pub fn push(&mut self, v: T, flags: Flags) -> Result<(), AllocError> { in push() argument 337 pub fn push_within_capacity(&mut self, v: T) -> Result<(), PushError<T>> { in push_within_capacity() argument 388 ) -> Result<(), InsertError<T>> { in insert_within_capacity() argument 454 pub fn remove(&mut self, i: usize) -> Result<T, RemoveError> { in remove() 490 pub fn with_capacity(capacity: usize, flags: Flags) -> Result<Self, AllocError> { in with_capacity() 611 pub fn reserve(&mut self, additional: usize, flags: Flags) -> Result<(), AllocError> { in reserve() argument 728 pub fn extend_with(&mut self, n: usize, value: T, flags: Flags) -> Result<(), AllocError> { in extend_with() argument 767 pub fn extend_from_slice(&mut self, other: &[T], flags: Flags) -> Result<(), AllocError> { in extend_from_slice() argument 783 pub fn from_elem(value: T, n: usize, flags: Flags) -> Result<Self, AllocError> { in from_elem() 808 pub fn resize(&mut self, new_len: usize, value: T, flags: Flags) -> Result<(), AllocError> { in resize() argument [all …]
|
| /rust/kernel/sync/ |
| D | arc.rs | 195 pub fn new(contents: T, flags: Flags) -> Result<Self, AllocError> { in new() 636 pub fn new(value: T, flags: Flags) -> Result<Self, AllocError> { in new() 644 pub fn new_uninit(flags: Flags) -> Result<UniqueArc<MaybeUninit<T>>, AllocError> { in new_uninit() 686 pub fn init_with<E>(mut self, init: impl Init<T, E>) -> core::result::Result<UniqueArc<T>, E> { in init_with() 699 ) -> core::result::Result<Pin<UniqueArc<T>>, E> { in pin_init_with() 736 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument 742 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument 748 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument 754 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
|
| /rust/kernel/mm/ |
| D | virt.rs | 19 error::{code::EINVAL, to_result, Result}, 194 pub fn vm_insert_page(&self, address: usize, page: &Page) -> Result { in vm_insert_page() argument 325 pub fn try_clear_mayread(&self) -> Result { in try_clear_mayread() argument 350 pub fn try_clear_maywrite(&self) -> Result { in try_clear_maywrite() argument 375 pub fn try_clear_mayexec(&self) -> Result { in try_clear_mayexec() argument
|
| /rust/kernel/fs/ |
| D | file.rs | 13 error::{code::*, Error, Result}, 253 pub fn fget(fd: u32) -> Result<ARef<LocalFile>, BadFdError> { in fget() 395 pub fn get_unused_fd_flags(flags: u32) -> Result<Self> { in get_unused_fd_flags() 458 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt() argument
|
| /rust/kernel/sync/arc/ |
| D | std_vendor.rs | 15 pub fn downcast<T>(self) -> core::result::Result<Arc<T>, Self> in downcast()
|