| /linux/drivers/android/binder/range_alloc/ |
| H A D | array.rs | 40 pub(crate) fn new(size: usize, alloc: EmptyArrayAlloc<T>) -> Self { in new() 48 pub(crate) fn free_oneway_space(&self) -> usize { in free_oneway_space() 52 pub(crate) fn count_buffers(&self) -> usize { in count_buffers() 56 pub(crate) fn total_size(&self) -> usize { in total_size() 117 debug_id: usize, in reserve_new() 118 size: usize, in reserve_new() 121 ) -> Result<usize> { in reserve_new() 193 pub(crate) fn reservation_commit(&mut self, offset: usize, data: &mut Option<T>) -> Result { in reservation_commit() 209 pub(crate) fn reserve_existing(&mut self, offset: usize) -> Result<(usize, usize, Option<T>)> { in reserve_existing() 227 pub(crate) fn take_for_each<F: Fn(usize, usize, usize, Option<T>)>(&mut self, callback: F) { in take_for_each()
|
| H A D | tree.rs | 35 size: usize, in from_array() 99 pub(crate) fn total_size(&self) -> usize { in total_size() 103 pub(crate) fn free_oneway_space(&self) -> usize { in free_oneway_space() 107 pub(crate) fn count_buffers(&self) -> usize { in count_buffers() 151 debug_id: usize, in reserve_new() 152 size: usize, in reserve_new() 156 ) -> Result<(usize, bool)> { in reserve_new() 309 pub(crate) fn reservation_commit(&mut self, offset: usize, data: &mut Option<T>) -> Result { in reservation_commit() 328 pub(crate) fn reserve_existing(&mut self, offset: usize) -> Result<(usize, usize, Option<T>)> { in reserve_existing() 361 pub(crate) fn take_for_each<F: Fn(usize, usize, usize, Option<T>)>(&mut self, callback: F) { in take_for_each() [all …]
|
| H A D | mod.rs | 19 fn new(is_oneway: bool, debug_id: usize, pid: Pid) -> Self { in new() 68 fn debug_id(&self) -> usize { in debug_id() 89 fn interior_pages(offset: usize, size: usize) -> FreedRange { in interior_pages() 106 fn endpoint(&self) -> usize { in endpoint() 128 pub(crate) fn free_oneway_space(&self) -> usize { in free_oneway_space() 136 pub(crate) fn count_buffers(&self) -> usize { in count_buffers() 245 pub(crate) fn reservation_commit(&mut self, offset: usize, data: &mut Option<T>) -> Result { in reservation_commit() 256 pub(crate) fn reserve_existing(&mut self, offset: usize) -> Result<(usize, usize, Option<T>)> { in reserve_existing() 267 pub(crate) fn take_for_each<F: Fn(usize, usize, usize, Option<T>)>(&mut self, callback: F) { in take_for_each()
|
| /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 | 31 pub fn new(addr: usize, maxsize: usize) -> Result<Self> { in new() 41 pub fn addr(&self) -> usize { in addr() 47 pub fn maxsize(&self) -> usize { in maxsize() 189 pub fn addr(&self) -> usize { in addr() 195 pub fn maxsize(&self) -> usize { in maxsize() 200 const fn offset_valid<U>(offset: usize, size: usize) -> bool { in offset_valid() 210 fn io_addr<U>(&self, offset: usize) -> Result<usize> { in io_addr() 221 fn io_addr_assert<U>(&self, offset: usize) -> usize { in io_addr_assert()
|
| H A D | iov.rs | 84 pub fn len(&self) -> usize { in len() 108 pub fn advance(&mut self, bytes: usize) { in advance() 119 pub unsafe fn revert(&mut self, bytes: usize) { in revert() 129 pub fn copy_from_iter(&mut self, out: &mut [u8]) -> usize { in copy_from_iter() 145 ) -> Result<usize> { in copy_from_iter_vec() 235 pub fn len(&self) -> usize { in len() 259 pub fn advance(&mut self, bytes: usize) { in advance() 270 pub unsafe fn revert(&mut self, bytes: usize) { in revert() 281 pub fn copy_to_iter(&mut self, input: &[u8]) -> usize { in copy_to_iter() 295 pub fn simple_read_from_buffer(&mut self, ppos: &mut i64, contents: &[u8]) -> Result<usize> { in simple_read_from_buffer()
|
| H A D | page.rs | 32 pub const fn page_align(addr: usize) -> usize { in page_align() 238 off: usize, in with_pointer_into_page() 239 len: usize, in with_pointer_into_page() 265 pub unsafe fn read_raw(&self, dst: *mut u8, offset: usize, len: usize) -> Result { in read_raw() 287 pub unsafe fn write_raw(&self, src: *const u8, offset: usize, len: usize) -> Result { in write_raw() 307 pub unsafe fn fill_zero_raw(&self, offset: usize, len: usize) -> Result { in fill_zero_raw() 333 offset: usize, in copy_from_user_slice_raw() 334 len: usize, in copy_from_user_slice_raw()
|
| 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 | id_pool.rs | 105 pub fn new(num_ids: usize, flags: Flags) -> Result<Self, AllocError> { in new() 113 pub fn capacity(&self) -> usize { in capacity() 213 pub fn acquire_next_id(&mut self, offset: usize) -> Option<usize> { in acquire_next_id() 223 pub fn release_id(&mut self, id: usize) { in release_id()
|
| H A D | dma.rs | 381 count: usize, in alloc_attrs() 426 count: usize, in alloc_coherent() 436 pub fn count(&self) -> usize { in count() 441 pub fn size(&self) -> usize { in size() 480 fn validate_range(&self, offset: usize, count: usize) -> Result { in validate_range() 500 pub unsafe fn as_slice(&self, offset: usize, count: usize) -> Result<&[T]> { in as_slice() 520 pub unsafe fn as_slice_mut(&mut self, offset: usize, count: usize) -> Result<&mut [T]> { in as_slice_mut()
|
| H A D | ptr.rs | 104 pub const fn as_usize(self) -> usize { in as_usize() 120 pub const fn as_nonzero(self) -> NonZero<usize> { in as_nonzero() 158 pub const fn mask(self) -> usize { in mask()
|
| H A D | miscdevice.rs | 146 fn read_iter(_kiocb: Kiocb<'_, Self::Ptr>, _iov: &mut IovIterDest<'_>) -> Result<usize> { in read_iter() 151 fn write_iter(_kiocb: Kiocb<'_, Self::Ptr>, _iov: &mut IovIterSource<'_>) -> Result<usize> { in write_iter() 164 _arg: usize, in ioctl() 181 _arg: usize, in compat_ioctl()
|
| /linux/drivers/android/binder/ |
| H A D | allocation.rs | 67 debug_id: usize, in new() 68 offset: usize, in new() 69 size: usize, in new() 70 ptr: usize, in new() 85 fn size_check(&self, offset: usize, size: usize) -> Result { in size_check() 97 offset: usize, in copy_into() 98 size: usize, in copy_into() 119 pub(crate) fn write<T: ?Sized>(&self, offset: usize, obj: &T) -> Result { in write() 147 pub(crate) fn set_info_offsets(&mut self, offsets: Range<usize>) { in set_info_offsets() 176 buffer_offset: usize, in info_add_fd() [all …]
|
| H A D | page_range.rs | 272 pub(crate) fn register_with_vma(&self, vma: &virt::VmaNew) -> Result<usize> { in register_with_vma() 317 pub(crate) fn use_range(&self, start: usize, end: usize) -> Result<()> { in use_range() 438 pub(crate) fn stop_using_range(&self, start: usize, end: usize) { in stop_using_range() 462 unsafe fn iterate<T>(&self, mut offset: usize, mut size: usize, mut cb: T) -> Result in iterate() 510 offset: usize, in copy_from_user_slice() 511 size: usize, in copy_from_user_slice() 549 pub(crate) unsafe fn write<T: ?Sized>(&self, offset: usize, obj: &T) -> Result { in write() 569 pub(crate) unsafe fn fill_zero(&self, offset: usize, size: usize) -> Result { in fill_zero()
|
| /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 …]
|
| H A D | layout.rs | 93 pub const fn len(&self) -> usize { in len() 103 pub const fn size(&self) -> usize { in size()
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_panic_qr.rs | 221 fn max_data(&self) -> usize { in max_data() 225 fn ec_size(&self) -> usize { in ec_size() 229 fn g1_blocks(&self) -> usize { in g1_blocks() 233 fn g2_blocks(&self) -> usize { in g2_blocks() 237 fn g1_blk_size(&self) -> usize { in g1_blk_size() 311 fn get_header(&self) -> (u16, usize) { in get_header() argument 319 fn length_bits_count(&self, version: Version) -> usize { in length_bits_count() 335 fn character_count(&self) -> usize { in character_count() 346 fn get_length_field(&self, version: Version) -> (u16, usize) { in get_length_field() argument 353 fn total_size_bits(&self, version: Version) -> usize { in total_size_bits() [all …]
|
| /linux/rust/kernel/alloc/allocator/ |
| H A D | iter.rs | 61 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint() 93 pub fn size(&self) -> usize { in size() 99 pub fn page_count(&self) -> usize { in page_count()
|
| /linux/drivers/block/rnull/ |
| H A D | configfs.rs | 37 fn show(_this: &Config, page: &mut [u8; PAGE_SIZE]) -> Result<usize> { in show() 133 fn show(this: &DeviceConfig, page: &mut [u8; PAGE_SIZE]) -> Result<usize> { in show() 171 fn show(this: &DeviceConfig, page: &mut [u8; PAGE_SIZE]) -> Result<usize> { in show() 195 fn show(this: &DeviceConfig, page: &mut [u8; PAGE_SIZE]) -> Result<usize> { in show() 222 fn show(this: &DeviceConfig, page: &mut [u8; PAGE_SIZE]) -> Result<usize> { in show() 245 fn show(this: &DeviceConfig, page: &mut [u8; PAGE_SIZE]) -> Result<usize> { in show()
|
| /linux/samples/rust/ |
| H A D | rust_configfs.rs | 95 fn show(container: &Configuration, page: &mut [u8; PAGE_SIZE]) -> Result<usize> { in show() 107 fn show(container: &Configuration, page: &mut [u8; PAGE_SIZE]) -> Result<usize> { in show() 164 fn show(_container: &Child, page: &mut [u8; PAGE_SIZE]) -> Result<usize> { in show() 186 fn show(_container: &GrandChild, page: &mut [u8; PAGE_SIZE]) -> Result<usize> { in show()
|
| /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 | 114 pub fn property_match_string(&self, name: &CStr, match_str: &CStr) -> Result<usize> { in property_match_string() 133 len: usize, in property_read_array_vec() 158 pub fn property_count_elem<T: PropertyInt>(&self, name: &CStr) -> Result<usize> { in property_count_elem() 345 pub fn len(&self) -> usize { in len() 484 fn read_array_len_from_fwnode_property(fwnode: &FwNode, name: &CStr) -> Result<usize>; in read_array_len_from_fwnode_property()
|
| /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/drivers/gpu/nova-core/ |
| H A D | vbios.rs | 91 fn read_more_at_offset(&mut self, offset: usize, len: usize) -> Result { in read_more_at_offset() 111 offset: usize, in read_bios_image_at_offset() 112 len: usize, in read_bios_image_at_offset() 330 fn image_size_bytes(&self) -> usize { in image_size_bytes() 570 fn image_size_bytes(&self) -> usize { in image_size_bytes() 647 fn image_size_bytes(&self) -> usize { in image_size_bytes() 817 fn find_byte_pattern(haystack: &[u8], needle: &[u8]) -> Result<usize> { in find_byte_pattern() 825 fn find_bit_header(data: &[u8]) -> Result<(BitHeader, usize)> { in find_bit_header() argument
|