Lines Matching refs:size_of
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()
981 if !is_aligned(buffers_size, size_of::<u64>()) { in copy_transaction_data()
992 size_of::<u64>(), in copy_transaction_data()
1038 .step_by(size_of::<u64>()) in copy_transaction_data()
1045 if offset < end_of_previous_object || !is_aligned(offset, size_of::<u32>()) { in copy_transaction_data()
1077 let offset_after_object = index_offset + size_of::<u64>(); in copy_transaction_data()
1318 while reader.len() >= size_of::<u32>() && self.inner.lock().return_work.is_unused() { in write()
1434 while writer.len() >= size_of::<uapi::binder_transaction_data_secctx>() + 4 { in read()