Searched refs:FromBytes (Results 1 – 13 of 13) sorted by relevance
| /linux/rust/kernel/ |
| H A D | transmute.rs | 17 /// 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 D | dma.rs | 13 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 D | uaccess.rs | 14 transmute::{AsBytes, FromBytes}, 337 pub fn read<T: FromBytes>(&mut self) -> Result<T> { in read()
|
| /linux/drivers/gpu/nova-core/gsp/fw/ |
| H A D | commands.rs | 4 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 D | fw.rs | 25 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 D | cmdq.rs | 21 FromBytes, // 59 type Command: FromBytes + AsBytes; 106 type Message: FromBytes; 183 unsafe impl FromBytes for GspMem {}
|
| H A D | sequencer.rs | 19 transmute::FromBytes, //
|
| /linux/rust/kernel/debugfs/ |
| H A D | traits.rs | 23 FromBytes, // 234 impl<T: AsBytes + FromBytes> BinaryReaderMut for T { 258 T: AsBytes + FromBytes,
|
| /linux/drivers/android/binder/ |
| H A D | defs.rs | 8 transmute::{AsBytes, FromBytes}, 95 unsafe impl FromBytes for $newname {} impl
|
| H A D | allocation.rs | 13 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 D | page_range.rs | 35 transmute::FromBytes, 567 pub(crate) unsafe fn read<T: FromBytes>(&self, offset: usize) -> Result<T> { in read()
|
| /linux/drivers/gpu/nova-core/ |
| H A D | vbios.rs | 16 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 D | rust_dma.rs | 45 unsafe impl kernel::transmute::FromBytes for MyStruct {}
|