Home
last modified time | relevance | path

Searched refs:size_of (Results 1 – 8 of 8) sorted by relevance

/linux-6.6.21/rust/kernel/sync/
Dlocked_by.rs7 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-6.6.21/rust/kernel/
Dioctl.rs34 _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-6.6.21/rust/alloc/
Draw_vec.rs112 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()
486 let new_size = mem::size_of::<T>().unchecked_mul(cap); in shrink()
Dslice.rs379 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-6.6.21/drivers/net/ethernet/intel/i40e/
Di40e_lan_hmc.c666 u16 size_of; member
946 switch (ce_info[f].size_of) { in i40e_set_hmc_context()
/linux-6.6.21/drivers/net/ethernet/intel/ice/
Dice_lan_tx_rx.h473 u16 size_of; member
480 .size_of = sizeof_field(struct _struct, _ele), \
Dice_common.c4555 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-6.6.21/drivers/net/can/usb/peak_usb/
Dpcan_usb_fd.c42 __le16 size_of; /* sizeof this */ member