| /linux/rust/kernel/ |
| H A D | bitmap.rs | 37 pub unsafe fn from_raw<'a>(ptr: *const usize, nbits: usize) -> &'a Bitmap { in from_raw() 62 pub unsafe fn from_raw_mut<'a>(ptr: *mut usize, nbits: usize) -> &'a mut Bitmap { in from_raw_mut() 78 pub fn as_ptr(&self) -> *const usize { in as_ptr() 83 pub fn as_mut_ptr(&mut self) -> *mut usize { in as_mut_ptr() 89 pub fn len(&self) -> usize { in len() 234 pub fn new(nbits: usize, flags: Flags) -> Result<Self, AllocError> { in new() 258 pub fn len(&self) -> usize { in len() 292 pub fn set_bit(&mut self, index: usize) { in set_bit() 318 pub fn set_bit_atomic(&self, index: usize) { in set_bit_atomic() 343 pub fn clear_bit(&mut self, index: usize) { in clear_bit() [all …]
|
| H A D | io.rs | 30 new(addr: usize, maxsize: usize) -> Result<Self> new() argument 40 addr(&self) -> usize addr() argument 46 maxsize(&self) -> usize maxsize() argument 188 addr(&self) -> usize addr() argument 194 maxsize(&self) -> usize maxsize() argument 199 offset_valid<U>(offset: usize, size: usize) -> bool offset_valid() argument 209 io_addr<U>(&self, offset: usize) -> Result<usize> io_addr() argument 220 io_addr_assert<U>(&self, offset: usize) -> usize io_addr_assert() argument [all...] |
| H A D | page.rs | 27 page_align(addr: usize) -> usize page_align() argument 147 with_pointer_into_page<T>( &self, off: usize, len: usize, f: impl FnOnce(*mut u8) -> Result<T>, ) -> Result<T> with_pointer_into_page() argument 148 with_pointer_into_page<T>( &self, off: usize, len: usize, f: impl FnOnce(*mut u8) -> Result<T>, ) -> Result<T> with_pointer_into_page() argument 174 read_raw(&self, dst: *mut u8, offset: usize, len: usize) -> Result read_raw() argument 196 write_raw(&self, src: *const u8, offset: usize, len: usize) -> Result write_raw() argument 216 fill_zero_raw(&self, offset: usize, len: usize) -> Result fill_zero_raw() argument 242 copy_from_user_slice_raw( &self, reader: &mut UserSliceReader, offset: usize, len: usize, ) -> Result copy_from_user_slice_raw() argument 243 copy_from_user_slice_raw( &self, reader: &mut UserSliceReader, offset: usize, len: usize, ) -> Result copy_from_user_slice_raw() argument [all...] |
| H A D | maple_tree.rs | 56 fn to_maple_range(range: impl RangeBounds<usize>) -> Option<(usize, usize)> { in to_maple_range() argument 121 pub fn insert(&self, index: usize, value: T, gfp: Flags) -> Result<(), InsertError<T>> { in insert() 171 R: RangeBounds<usize>, in insert_range() 314 pub fn ma_state(&mut self, first: usize, end: usize) -> MaState<'_, T> { in ma_state() 433 size: usize, in alloc_range() 437 ) -> Result<usize, AllocError<T>> in alloc_range() 439 R: RangeBounds<usize>, in alloc_range() 502 unsafe fn new_raw(mt: &'tree MapleTree<T>, first: usize, end: usize) -> Self { in new_raw()
|
| H A D | dma.rs | 360 count: usize, in size() argument 300 alloc_attrs( dev: &device::Device<Bound>, count: usize, gfp_flags: kernel::alloc::Flags, dma_attrs: Attrs, ) -> Result<CoherentAllocation<T>> alloc_attrs() argument 345 alloc_coherent( dev: &device::Device<Bound>, count: usize, gfp_flags: kernel::alloc::Flags, ) -> Result<CoherentAllocation<T>> alloc_coherent() argument 355 count(&self) -> usize count() argument 399 validate_range(&self, offset: usize, count: usize) -> Result validate_range() argument 419 as_slice(&self, offset: usize, count: usize) -> Result<&[T]> as_slice() argument 439 as_slice_mut(&mut self, offset: usize, count: usize) -> Result<&mut [T]> as_slice_mut() argument [all...] |
| H A D | uaccess.rs | 243 pub fn len(&self) -> usize { in len() 410 pub fn len(&self) -> usize { in len() 485 fn raw_strncpy_from_user(dst: &mut [MaybeUninit<u8>], src: UserPtr) -> Result<usize> { in raw_strncpy_from_user()
|
| H A D | device_id.rs | 52 fn index(&self) -> usize; in index() argument 64 pub const fn size(&self) -> usize { in size() argument [all...] |
| H A D | str.rs | 18 len(&self) -> usize len() argument 214 len(&self) -> usize len() argument 220 len_with_nul(&self) -> usize len_with_nul() argument 564 impl CStrIndex for usize {} global() implementation 793 bytes_written(&self) -> usize bytes_written() argument [all...] |
| H A D | xarray.rs | 181 fn load<F, U>(&self, index: usize, f: F) -> Option<U> in load() 229 index: usize, in store()
|
| H A D | firmware.rs | 95 pub fn size(&self) -> usize { in size() argument 334 pub const fn build_length(self) -> usize { in build_length() argument
|
| H A D | configfs.rs | 586 size: usize, in store() argument 655 fn show(data: &Self::Data, page: &mut [u8; PAGE_SIZE]) -> Result<usize>; in show() argument 709 pub const unsafe fn add<const I: usize, cons argument [all...] |
| /linux/rust/kernel/alloc/ |
| H A D | kvec.rs | 181 pub const fn capacity(&self) -> usize { in capacity() 191 pub const fn len(&self) -> usize { in len() 202 pub const unsafe fn inc_len(&mut self, additional: usize) { in inc_len() 397 index: usize, in insert_within_capacity() 501 pub fn with_capacity(capacity: usize, flags: Flags) -> Result<Self, AllocError> { in with_capacity() 550 pub unsafe fn from_raw_parts(ptr: *mut T, length: usize, capacity: usize) -> Self { in from_raw_parts() 576 pub fn into_raw_parts(self) -> (*mut T, usize, usize) { in into_raw_parts() argument 622 pub fn reserve(&mut self, additional: usize, flags: Flags) -> Result<(), AllocError> { in reserve() 678 pub fn truncate(&mut self, len: usize) { in truncate() 740 pub fn extend_with(&mut self, n: usize, value: T, flags: Flags) -> Result<(), AllocError> { in extend_with() [all …]
|
| /linux/samples/rust/ |
| H A D | rust_configfs.rs | 95 fn show(container: &Configuration, page: &mut [u8; PAGE_SIZE]) -> Result<usize> { in show() argument 107 fn show(container: &Configuration, page: &mut [u8; PAGE_SIZE]) -> Result<usize> { in show() argument 164 fn show(_container: &Child, page: &mut [u8; PAGE_SIZE]) -> Result<usize> { in show() argument 186 fn show(_container: &GrandChild, page: &mut [u8; PAGE_SIZE]) -> Result<usize> { in show() argument
|
| /linux/rust/kernel/mm/ |
| H A D | virt.rs | 81 pub fn start(&self) -> usize { in start() 89 pub fn end(&self) -> usize { in end() 116 pub fn zap_page_range_single(&self, address: usize, size: usize) { in zap_page_range_single() 194 pub fn vm_insert_page(&self, address: usize, page: &Page) -> Result { in vm_insert_page()
|
| /linux/arch/x86/kernel/cpu/mce/ |
| H A D | dev-mcelog.c | 162 static int __mce_read_apei(char __user **ubuf, size_t usize) in __mce_read_apei() 203 size_t usize, loff_t *off) in mce_chrdev_read() 287 size_t usize, loff_t *off) in mce_chrdev_write()
|
| /linux/rust/kernel/device/ |
| H A D | property.rs | 113 property_match_string(&self, name: &CStr, match_str: &CStr) -> Result<usize> property_match_string() argument 132 property_read_array_vec<'fwnode, 'name, T: PropertyInt>( &'fwnode self, name: &'name CStr, len: usize, ) -> Result<PropertyGuard<'fwnode, 'name, KVec<T>>> property_read_array_vec() argument 157 property_count_elem<T: PropertyInt>(&self, name: &CStr) -> Result<usize> property_count_elem() argument 344 len(&self) -> usize len() argument 483 read_array_len_from_fwnode_property(fwnode: &FwNode, name: &CStr) -> Result<usize> read_array_len_from_fwnode_property() argument [all...] |
| /linux/drivers/acpi/apei/ |
| H A D | erst-dbg.c | 82 size_t usize, loff_t *off) in erst_dbg_read() 152 size_t usize, loff_t *off) in erst_dbg_write()
|
| /linux/rust/kernel/sync/atomic/ |
| H A D | predefine.rs | 91 unsafe impl super::AtomicType for usize { implementation 96 unsafe impl super::AtomicAdd<usize> for usize { implementation
|
| /linux/fs/ |
| H A D | nsfs.c | 145 struct mnt_ns_info __user *uinfo, size_t usize, in copy_ns_info_to_user() 294 size_t usize = _IOC_SIZE(ioctl); in ns_ioctl() local 315 size_t usize = _IOC_SIZE(ioctl); in ns_ioctl() local
|
| H A D | file_attr.c | 375 struct file_attr __user *, ufattr, size_t, usize, in SYSCALL_DEFINE5() argument 432 struct file_attr __user *, ufattr, size_t, usize, in SYSCALL_DEFINE5() argument
|
| /linux/lib/crypto/mpi/ |
| H A D | mpih-mul.c | 322 mpi_ptr_t up, mpi_size_t usize, in mpihelp_mul_karatsuba_case() 427 mpihelp_mul(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t usize, in mpihelp_mul()
|
| H A D | mpi-cmp.c | 52 mpi_size_t usize, vsize; in mpi_cmp() local
|
| H A D | generic_mpih-lshift.c | 28 mpihelp_lshift(mpi_ptr_t wp, mpi_ptr_t up, mpi_size_t usize, unsigned int cnt) in mpihelp_lshift()
|
| H A D | generic_mpih-rshift.c | 29 mpihelp_rshift(mpi_ptr_t wp, mpi_ptr_t up, mpi_size_t usize, unsigned cnt) in mpihelp_rshift()
|
| /linux/drivers/android/binder/ |
| H A D | node.rs | 315 pub(crate) fn global_id(&self) -> usize { in global_id() 374 count: usize, in update_refcount_locked() 471 pub(crate) fn update_refcount(self: &DArc<Self>, inc: bool, count: usize, strong: bool) { in update_refcount() 766 pub(crate) fn new(node: DArc<Node>, strong_count: usize, weak_count: usize) -> Self { in new() 807 pub(crate) fn get_count(&self) -> (usize, usize) { in get_count()
|