Home
last modified time | relevance | path

Searched refs:FromBytes (Results 1 – 13 of 13) sorted by relevance

/linux/rust/kernel/
H A Dtransmute.rs17 /// use kernel::transmute::FromBytes;
38 pub unsafe trait FromBytes { interface
127 /// Unlike [`FromBytes::from_bytes`], which requires aligned input, this method can be used on
135 // invariants of `FromBytes`, any byte sequence of the correct length is a valid value in from_bytes_copy()
168 $(unsafe impl$($($generics)*)? FromBytes for $t {})*
183 {<T: FromBytes>} [T],
184 {<T: FromBytes, const N: usize>} [T; N],
216 Self: FromBytes, in as_bytes_mut()
218 // CAST: `Self` implements both `AsBytes` and `FromBytes` thus making `Self` in as_bytes_mut()
210 as_bytes_mut(&mut self) -> &mut [u8] where Self: FromBytes, as_bytes_mut() argument
H A Ddma.rs13 transmute::{AsBytes, FromBytes},
376 pub struct CoherentAllocation<T: AsBytes + FromBytes> {
384 impl<T: AsBytes + FromBytes> CoherentAllocation<T> {
606 pub unsafe fn field_read<F: FromBytes>(&self, field: *const F) -> F { in field_read()
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},
337 pub fn read<T: FromBytes>(&mut self) -> Result<T> { in read()
/linux/drivers/gpu/nova-core/gsp/fw/
H A Dcommands.rs4 use kernel::transmute::{AsBytes, FromBytes};
56 unsafe impl FromBytes for GspSetSystemInfo {}
106 unsafe impl FromBytes for PackedRegistryTable {}
124 unsafe impl FromBytes for GspStaticConfigInfo {}
/linux/drivers/gpu/nova-core/gsp/
H A Dfw.rs25 FromBytes, //
211 unsafe impl FromBytes for GspFwWprMeta {}
472 unsafe impl FromBytes for RegWritePayload {}
500 unsafe impl FromBytes for RegModifyPayload {}
533 unsafe impl FromBytes for RegPollPayload {}
551 unsafe impl FromBytes for DelayUsPayload {}
575 unsafe impl FromBytes for RegStorePayload {}
677 unsafe impl FromBytes for SequencerBufferCmd {}
694 unsafe impl FromBytes for RunCpuSequencer {}
721 unsafe impl FromBytes for LibosMemoryRegionInitArgument {}
[all …]
H A Dcmdq.rs21 FromBytes, //
59 type Command: FromBytes + AsBytes;
106 type Message: FromBytes;
183 unsafe impl FromBytes for GspMem {}
H A Dsequencer.rs19 transmute::FromBytes, //
/linux/rust/kernel/debugfs/
H A Dtraits.rs23 FromBytes, //
234 impl<T: AsBytes + FromBytes> BinaryReaderMut for T {
258 T: AsBytes + FromBytes,
/linux/drivers/android/binder/
H A Ddefs.rs8 transmute::{AsBytes, FromBytes},
95 unsafe impl FromBytes for $newname {} impl
H A Dallocation.rs13 transmute::{AsBytes, FromBytes},
111 pub(crate) fn read<T: FromBytes>(&self, offset: usize) -> Result<T> { in read()
333 pub(crate) fn read<T: FromBytes>(&self, offset: usize) -> Result<T> { in read()
H A Dpage_range.rs35 transmute::FromBytes,
567 pub(crate) unsafe fn read<T: FromBytes>(&self, offset: usize) -> Result<T> { in read()
/linux/drivers/gpu/nova-core/
H A Dvbios.rs16 transmute::FromBytes,
332 unsafe impl FromBytes for PcirStruct {}
392 unsafe impl FromBytes for BitHeader {}
555 unsafe impl FromBytes for NpdeStruct {}
859 unsafe impl FromBytes for PmuLookupTableHeader {}
/linux/samples/rust/
H A Drust_dma.rs45 unsafe impl kernel::transmute::FromBytes for MyStruct {}