| /linux/rust/kernel/sync/ |
| H A D | locked_by.rs | 7 use core::{cell::UnsafeCell, mem::size_of, ptr}; 104 size_of::<Lock<U, B>>() > 0, in new() 130 size_of::<U>() > 0, in access() 159 size_of::<U>() > 0, in access_mut()
|
| /linux/rust/kernel/sync/atomic/ |
| H A D | predefine.rs | 6 use core::mem::{align_of, size_of}; 9 static_assert!(size_of::<bool>() == size_of::<i8>()); 79 static_assert!(size_of::<isize>() == size_of::<isize_atomic_repr>()); 81 static_assert!(size_of::<usize>() == size_of::<isize_atomic_repr>());
|
| /linux/drivers/gpu/nova-core/ |
| H A D | gsp.rs | 91 .as_slice_mut(size_of::<u64>(), NUM_PAGES * size_of::<u64>())? in new() 95 for (i, chunk) in pte_region.chunks_exact_mut(size_of::<u64>()).enumerate() { in new() 131 GSP_PAGE_SIZE / size_of::<LibosMemoryRegionInitArgument>(), in new()
|
| /linux/rust/kernel/ |
| H A D | ptr.rs | 10 size_of, // 246 size_of::<T>() in size() 253 p.len() * size_of::<T>() in size()
|
| H A D | dma.rs | 405 core::mem::size_of::<T>() > 0, in alloc_attrs() 410 .checked_mul(core::mem::size_of::<T>()) in alloc_attrs() 461 self.count * core::mem::size_of::<T>() in size() 504 Ok(self.dma_handle + (offset * core::mem::size_of::<T>()) as DmaAddress) in dma_handle_with_offset() 647 let size = self.count * core::mem::size_of::<T>(); in drop()
|
| H A D | bug.rs | 42 size = const ::core::mem::size_of::<$crate::bindings::bug_entry>(), 68 size = const ::core::mem::size_of::<$crate::bindings::bug_entry>(),
|
| H A D | uaccess.rs | 16 use core::mem::{size_of, MaybeUninit}; 338 let len = size_of::<T>(); in read() 532 let len = size_of::<T>(); in write()
|
| H A D | prelude.rs | 16 mem::{align_of, align_of_val, size_of, size_of_val},
|
| H A D | device.rs | 26 static_assert!(core::mem::size_of::<bindings::driver_type>() >= core::mem::size_of::<TypeId>());
|
| H A D | device_id.rs | 65 core::mem::size_of::<Self>() in size()
|
| H A D | io.rs | 315 let type_size = core::mem::size_of::<U>(); in offset_valid()
|
| /linux/rust/ |
| H A D | ffi.rs | 20 ::core::mem::size_of::<$name>() == ::core::mem::size_of::<::core::ffi::$name>()
|
| /linux/drivers/gpu/nova-core/gsp/ |
| H A D | fw.rs | 601 core::mem::size_of::<RegWritePayload>(), in reg_write_payload() 618 core::mem::size_of::<RegModifyPayload>(), in reg_modify_payload() 635 core::mem::size_of::<RegPollPayload>(), in reg_poll_payload() 652 core::mem::size_of::<DelayUsPayload>(), in delay_us_payload() 669 core::mem::size_of::<RegStorePayload>(), in reg_store_payload() 730 let mut bytes = [0u8; core::mem::size_of::<u64>()]; in new() 826 length: size_of::<Self>() in init() 863 elemCount: size_of::<Self>() in init() 890 .saturating_sub(size_of::<bindings::rpc_message_header_v>()) in payload_length() 895 size_of::<Self>() + self.payload_length() in length() [all …]
|
| H A D | cmdq.rs | 174 const PTE_ARRAY_SIZE: usize = GSP_PAGE_SIZE / size_of::<u64>(); 201 const MSGQ_SIZE: u32 = num::usize_into_u32::<{ size_of::<Msgq>() }>(); in new() 303 if size_of::<GspMsgElement>() + size > slice_1.len() + slice_2.len() { in allocate_command() 423 pub(crate) const NUM_PTES: usize = size_of::<GspMem>() >> GSP_PAGE_SHIFT; 471 let command_size = size_of::<M::Command>() + command.variable_payload_len(); in send_command() 487 if command_size > size_of::<M::Command>() { in send_command()
|
| /linux/drivers/android/binder/ |
| H A D | thread.rs | 37 use core::mem::size_of; 755 size_of::<u64>(), in translate_object() 797 let fds_len = num_fds.checked_mul(size_of::<u32>()).ok_or(EINVAL)?; in translate_object() 799 if !is_aligned(parent_offset, size_of::<u32>()) { in translate_object() 817 if !is_aligned(parent_entry.sender_uaddr, size_of::<u32>()) { in translate_object() 847 for i in (0..fds_len).step_by(size_of::<u32>()) { in translate_object() 849 let mut fd_bytes = [0u8; size_of::<u32>()]; in translate_object() 850 fd_bytes.copy_from_slice(&fda_bytes[i..i + size_of::<u32>()]); in translate_object() 891 (size_of::<u64>(), *target_offset) in apply_sg() 978 if !is_aligned(offsets_size, size_of::<u64>()) { in copy_transaction_data() [all …]
|
| H A D | page_range.rs | 18 mem::{size_of, size_of_val, MaybeUninit}, 570 self.iterate(offset, size_of::<T>(), |page, offset, to_copy| { in read()
|
| /linux/rust/kernel/block/mq/ |
| H A D | tag_set.rs | 42 let tag_set: Result<_> = core::mem::size_of::<RequestDataWrapper>() in new()
|
| /linux/rust/kernel/debugfs/ |
| H A D | callback_adapters.rs | 124 const { assert!(core::mem::size_of::<F>() == 0) };
|
| /linux/rust/kernel/drm/ |
| H A D | ioctl.rs | 112 ::core::assert!(core::mem::size_of::<$crate::uapi::$struct>() ==
|
| /linux/drivers/net/ethernet/intel/i40e/ |
| H A D | i40e_lan_hmc.c | 663 u16 size_of; member 943 switch (ce_info[f].size_of) { in i40e_set_hmc_context()
|
| /linux/rust/kernel/alloc/ |
| H A D | kbox.rs | 712 let size = core::mem::size_of::<T>(); in page_iter()
|
| H A D | kvec.rs | 176 core::mem::size_of::<T>() == 0 in is_zst()
|
| /linux/drivers/net/can/usb/peak_usb/ |
| H A D | pcan_usb_fd.c | 43 __le16 size_of; /* sizeof this */ member
|