Searched refs:size_of (Results 1 – 8 of 8) sorted by relevance
/Linux-v6.6/rust/kernel/sync/ |
D | locked_by.rs | 7 use core::{cell::UnsafeCell, mem::size_of, ptr}; 97 size_of::<Lock<U, B>>() > 0, in new() 120 size_of::<U>() > 0, in access() 146 size_of::<U>() > 0, in access_mut()
|
/Linux-v6.6/rust/kernel/ |
D | ioctl.rs | 34 _IOC(uapi::_IOC_READ, ty, nr, core::mem::size_of::<T>()) in _IOR() 40 _IOC(uapi::_IOC_WRITE, ty, nr, core::mem::size_of::<T>()) in _IOW() 50 core::mem::size_of::<T>(), in _IOWR()
|
/Linux-v6.6/rust/alloc/ |
D | raw_vec.rs | 112 pub(crate) const MIN_NON_ZERO_CAP: usize = if mem::size_of::<T>() == 1 { 114 } else if mem::size_of::<T>() <= 1024 { 280 let _: () = const { assert!(mem::size_of::<T>() % mem::align_of::<T>() == 0) }; in current_memory() 283 let size = mem::size_of::<T>().unchecked_mul(self.cap); in current_memory() 473 let _: () = const { assert!(mem::size_of::<T>() % mem::align_of::<T>() == 0) }; in shrink() 477 let new_size = mem::size_of::<T>().unchecked_mul(cap); in shrink()
|
D | slice.rs | 379 let sz_u8 = mem::size_of::<(K, u8)>(); in sort_by_cached_key() 380 let sz_u16 = mem::size_of::<(K, u16)>(); in sort_by_cached_key() 381 let sz_u32 = mem::size_of::<(K, u32)>(); in sort_by_cached_key() 382 let sz_usize = mem::size_of::<(K, usize)>(); in sort_by_cached_key()
|
/Linux-v6.6/drivers/net/ethernet/intel/ice/ |
D | ice_lan_tx_rx.h | 473 u16 size_of; member 480 .size_of = sizeof_field(struct _struct, _ele), \
|
D | ice_common.c | 4555 if (ce_info[f].width > (ce_info[f].size_of * BITS_PER_BYTE)) { in ice_set_ctx() 4557 f, ce_info[f].width, ce_info[f].size_of); in ice_set_ctx() 4560 switch (ce_info[f].size_of) { in ice_set_ctx()
|
/Linux-v6.6/drivers/net/ethernet/intel/i40e/ |
D | i40e_lan_hmc.c | 666 u16 size_of; member 946 switch (ce_info[f].size_of) { in i40e_set_hmc_context()
|
/Linux-v6.6/drivers/net/can/usb/peak_usb/ |
D | pcan_usb_fd.c | 42 __le16 size_of; /* sizeof this */ member
|