Home
last modified time | relevance | path

Searched refs:AsBytes (Results 1 – 12 of 12) sorted by relevance

/linux/rust/kernel/
H A Dtransmute.rs90 Self: AsBytes + Sized, in from_bytes_mut()
111 Self: AsBytes + Sized, in from_bytes_mut_prefix()
202 pub unsafe trait AsBytes { in as_bytes()
205 // CAST: `Self` implements `AsBytes` thus all bytes of `self` are initialized. in as_bytes()
218 // CAST: `Self` implements both `AsBytes` and `FromBytes` thus making `Self` in as_bytes_mut()
232 $(unsafe impl$($($generics)*)? AsBytes for $t {})*
250 {<T: AsBytes>} [T],
251 {<T: AsBytes, const N: usize>} [T; N],
198 pub unsafe trait AsBytes { global() interface
H A Ddma.rs13 transmute::{AsBytes, FromBytes},
376 pub struct CoherentAllocation<T: AsBytes + FromBytes> {
384 impl<T: AsBytes + FromBytes> CoherentAllocation<T> {
629 pub unsafe fn field_write<F: AsBytes>(&self, field: *mut F, val: F) { in field_write()
645 impl<T: AsBytes + FromBytes> Drop for CoherentAllocation<T> {
665 unsafe impl<T: AsBytes + FromBytes + Send> Send for CoherentAllocation<T> {}
H A Duaccess.rs14 transmute::{AsBytes, FromBytes},
531 pub fn write<T: AsBytes>(&mut self, value: &T) -> Result { in write()
/linux/drivers/gpu/nova-core/gsp/fw/
H A Dcommands.rs4 use kernel::transmute::{AsBytes, FromBytes};
52 unsafe impl AsBytes for GspSetSystemInfo {}
79 unsafe impl AsBytes for PackedRegistryEntry {}
102 unsafe impl AsBytes for PackedRegistryTable {}
120 unsafe impl AsBytes for GspStaticConfigInfo {}
/linux/drivers/gpu/nova-core/gsp/
H A Dfw.rs24 AsBytes,
207 unsafe impl AsBytes for GspFwWprMeta {}
475 unsafe impl AsBytes for RegWritePayload {}
503 unsafe impl AsBytes for RegModifyPayload {}
536 unsafe impl AsBytes for RegPollPayload {}
554 unsafe impl AsBytes for DelayUsPayload {}
578 unsafe impl AsBytes for RegStorePayload {}
680 unsafe impl AsBytes for SequencerBufferCmd {}
697 unsafe impl AsBytes for RunCpuSequencer {}
717 unsafe impl AsBytes for LibosMemoryRegionInitArgument {}
[all …]
H A Dcmdq.rs20 AsBytes,
59 type Command: FromBytes + AsBytes;
179 unsafe impl AsBytes for GspMem {}
/linux/rust/kernel/debugfs/
H A Dtraits.rs22 AsBytes,
80 impl<T: AsBytes> BinaryWriter for T {
150 T: AsBytes,
234 impl<T: AsBytes + FromBytes> BinaryReaderMut for T {
258 T: AsBytes + FromBytes,
/linux/drivers/gpu/nova-core/
H A Dgsp.rs14 transmute::AsBytes, //
47 unsafe impl<const NUM_ENTRIES: usize> AsBytes for PteArray<NUM_ENTRIES> {}
/linux/drivers/android/binder/
H A Ddefs.rs8 transmute::{AsBytes, FromBytes},
97 unsafe impl AsBytes for $newname {} impl
H A Dallocation.rs13 transmute::{AsBytes, FromBytes},
340 pub(crate) fn write<T: AsBytes>(&self, offset: usize, obj: &T) -> Result { in write()
H A Drust_binder_main.rs25 transmute::AsBytes,
125 fn write_payload<T: AsBytes>(&mut self, payload: &T) -> Result { in write_payload()
/linux/samples/rust/
H A Drust_dma.rs43 unsafe impl kernel::transmute::AsBytes for MyStruct {}