Searched refs:AsBytes (Results 1 – 12 of 12) sorted by relevance
| /linux/rust/kernel/ |
| H A D | transmute.rs | 90 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 D | dma.rs | 13 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 D | uaccess.rs | 14 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 D | commands.rs | 4 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 D | fw.rs | 24 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 D | cmdq.rs | 20 AsBytes, 59 type Command: FromBytes + AsBytes; 179 unsafe impl AsBytes for GspMem {}
|
| /linux/rust/kernel/debugfs/ |
| H A D | traits.rs | 22 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 D | gsp.rs | 14 transmute::AsBytes, // 47 unsafe impl<const NUM_ENTRIES: usize> AsBytes for PteArray<NUM_ENTRIES> {}
|
| /linux/drivers/android/binder/ |
| H A D | defs.rs | 8 transmute::{AsBytes, FromBytes}, 97 unsafe impl AsBytes for $newname {} impl
|
| H A D | allocation.rs | 13 transmute::{AsBytes, FromBytes}, 340 pub(crate) fn write<T: AsBytes>(&self, offset: usize, obj: &T) -> Result { in write()
|
| H A D | rust_binder_main.rs | 25 transmute::AsBytes, 125 fn write_payload<T: AsBytes>(&mut self, payload: &T) -> Result { in write_payload()
|
| /linux/samples/rust/ |
| H A D | rust_dma.rs | 43 unsafe impl kernel::transmute::AsBytes for MyStruct {}
|