Home
last modified time | relevance | path

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

123456

/external/crosvm/devices/src/virtio/video/
Dprotocol.rs31 use zerocopy::AsBytes;
138 #[derive(Debug, Default, Copy, Clone, AsBytes, FromBytes)]
148 #[derive(Debug, Default, Copy, Clone, AsBytes, FromBytes)]
158 #[derive(Debug, Default, Copy, Clone, AsBytes, FromBytes)]
167 #[derive(Debug, Default, Copy, Clone, AsBytes, FromBytes)]
176 #[derive(Debug, Default, Copy, Clone, AsBytes, FromBytes)]
186 #[derive(Debug, Default, Copy, Clone, AsBytes, FromBytes)]
197 #[derive(Copy, Clone, AsBytes, FromBytes)]
212 #[derive(Debug, Default, Copy, Clone, AsBytes, FromBytes)]
216 #[derive(Debug, Default, Copy, Clone, AsBytes, FromBytes)]
[all …]
/external/rust/crates/zerocopy-derive/tests/
Denum_as_bytes.rs7 use zerocopy::AsBytes;
9 struct IsAsBytes<T: AsBytes>(T);
22 #[derive(AsBytes)]
30 #[derive(AsBytes)]
38 #[derive(AsBytes)]
46 #[derive(AsBytes)]
54 #[derive(AsBytes)]
62 #[derive(AsBytes)]
70 #[derive(AsBytes)]
78 #[derive(AsBytes)]
[all …]
Dstruct_as_bytes.rs9 use zerocopy::AsBytes;
11 struct IsAsBytes<T: AsBytes>(T);
28 #[derive(AsBytes)]
34 #[derive(AsBytes)]
44 #[derive(AsBytes)]
53 #[derive(AsBytes)]
59 #[derive(AsBytes)]
Dunion_as_bytes.rs9 use zerocopy::AsBytes;
11 struct IsAsBytes<T: AsBytes>(T);
28 #[derive(AsBytes, Clone, Copy)]
36 #[derive(AsBytes)]
57 #[derive(AsBytes)]
65 #[derive(AsBytes)]
74 #[derive(AsBytes)]
/external/crosvm/fuse/src/
Dsys.rs9 use zerocopy::AsBytes;
476 #[derive(Debug, Default, Copy, Clone, AsBytes, FromBytes)]
520 #[derive(Debug, Default, Copy, Clone, AsBytes, FromBytes)]
551 #[derive(Debug, Default, Copy, Clone, AsBytes, FromBytes)]
560 #[derive(Debug, Copy, Clone, N, AsBytes)]
625 #[derive(Debug, Default, Copy, Clone, AsBytes, FromBytes)]
637 #[derive(Debug, Default, Copy, Clone, AsBytes, FromBytes)]
643 #[derive(Debug, Default, Copy, Clone, AsBytes, FromBytes)]
650 #[derive(Debug, Default, Copy, Clone, AsBytes, FromBytes)]
657 #[derive(Debug, Default, Copy, Clone, AsBytes, FromBytes)]
[all …]
/external/crosvm/devices/src/virtio/snd/
Dlayout.rs7 use zerocopy::AsBytes;
13 #[derive(Copy, Clone, Default, AsBytes, FromBytes)]
19 #[derive(Copy, Clone, Default, AsBytes, FromBytes)]
26 #[derive(Copy, Clone, Default, AsBytes, FromBytes)]
33 #[derive(Copy, Clone, Default, AsBytes, FromBytes)]
42 #[derive(Copy, Clone, Default, AsBytes, FromBytes)]
48 #[derive(Copy, Clone, Default, AsBytes, FromBytes)]
62 #[derive(Copy, Clone, Default, AsBytes, FromBytes)]
69 #[derive(Copy, Clone, Default, AsBytes, FromBytes)]
82 #[derive(Copy, Clone, AsBytes, FromBytes)]
[all …]
/external/crosvm/x86_64/src/
Dbootparam.rs19 use zerocopy::AsBytes;
63 #[derive(Debug, Default, Copy, Clone, FromBytes, AsBytes)]
103 #[derive(Debug, Default, Copy, Clone, FromBytes, AsBytes)]
116 #[derive(Copy, Clone, FromBytes, AsBytes)]
138 #[derive(Copy, Clone, FromBytes, AsBytes)]
149 #[derive(Debug, Default, Copy, Clone, FromBytes, AsBytes)]
156 #[derive(Debug, Default, Copy, Clone, FromBytes, AsBytes)]
165 #[derive(Debug, Default, Copy, Clone, FromBytes, AsBytes)]
170 #[derive(Debug, Default, Copy, Clone, FromBytes, AsBytes)]
175 #[derive(Debug, Default, Copy, Clone, FromBytes, AsBytes)]
[all …]
Dsmbios.rs17 use zerocopy::AsBytes;
85 #[derive(Default, Clone, Copy, FromBytes, AsBytes)]
96 #[derive(Default, Clone, Copy, FromBytes, AsBytes)]
110 #[derive(Default, Clone, Copy, FromBytes, AsBytes)]
125 #[derive(Default, Clone, Copy, FromBytes, AsBytes)]
141 #[derive(Default, Clone, Copy, FromBytes, AsBytes)]
157 #[derive(Default, Clone, Copy, FromBytes, AsBytes)]
165 fn write_and_incr<T: AsBytes + FromBytes>( in write_and_incr()
/external/crosvm/devices/src/virtio/iommu/
Dprotocol.rs33 use zerocopy::AsBytes;
74 #[derive(Debug, Default, Copy, Clone, AsBytes, FromBytes)]
81 #[derive(Debug, Default, Copy, Clone, AsBytes, FromBytes)]
88 #[derive(Debug, Default, Copy, Clone, AsBytes, FromBytes)]
97 #[derive(Debug, Default, Copy, Clone, AsBytes, FromBytes)]
104 #[derive(Debug, Default, Copy, Clone, AsBytes, FromBytes)]
111 #[derive(Debug, Default, Copy, Clone, AsBytes, FromBytes)]
119 #[derive(Debug, Default, Copy, Clone, AsBytes, FromBytes)]
127 #[derive(Debug, Default, Copy, Clone, AsBytes, FromBytes)]
137 #[derive(Debug, Default, Copy, Clone, AsBytes, FromBytes)]
[all …]
/external/rust/crates/zerocopy-derive/tests/ui/
Dunion.stderr4 16 | #[derive(AsBytes)]
7 …= note: this error originates in the derive macro `AsBytes` (in Nightly builds, run with -Z macro-…
33 error[E0277]: the trait bound `AsBytes: FieldsAreSameSize<true>` is not satisfied
36 24 | union AsBytes {
37 | ^^^^^^^ the trait `FieldsAreSameSize<true>` is not implemented for `AsBytes`
39 = help: the trait `FieldsAreSameSize<false>` is implemented for `AsBytes`
43 22 | #[derive(AsBytes)]
45 …= note: this error originates in the derive macro `AsBytes` (in Nightly builds, run with -Z macro-…
Dunion.rs16 #[derive(AsBytes)]
22 #[derive(AsBytes)]
24 union AsBytes {
/external/crosvm/rutabaga_gfx/src/cross_domain/
Dcross_domain_protocol.rs10 use zerocopy::AsBytes;
48 #[derive(Copy, Clone, Default, AsBytes, FromBytes)]
57 #[derive(Copy, Clone, Default, AsBytes, FromBytes)]
70 #[derive(Copy, Clone, Default, AsBytes, FromBytes)]
79 #[derive(Copy, Clone, Default, AsBytes, FromBytes)]
87 #[derive(Copy, Clone, Default, AsBytes, FromBytes)]
97 #[derive(Copy, Clone, Default, AsBytes, FromBytes)]
109 #[derive(Copy, Clone, Default, AsBytes, FromBytes)]
/external/rust/crates/zerocopy-derive/tests/ui-msrv/
Dunion.stderr4 16 | #[derive(AsBytes)]
7 …= note: this error originates in the derive macro `AsBytes` (in Nightly builds, run with -Z macro-…
33 error[E0277]: the trait bound `AsBytes: FieldsAreSameSize<true>` is not satisfied
36 22 | #[derive(AsBytes)]
37 | ^^^^^^^ the trait `FieldsAreSameSize<true>` is not implemented for `AsBytes`
40 <AsBytes as FieldsAreSameSize<false>>
44 22 | #[derive(AsBytes)]
46 …= note: this error originates in the derive macro `AsBytes` (in Nightly builds, run with -Z macro-…
Dunion.rs16 #[derive(AsBytes)]
22 #[derive(AsBytes)]
24 union AsBytes {
/external/rust/crates/zerocopy-derive/tests/ui-stable/
Dunion.stderr4 16 | #[derive(AsBytes)]
7 …= note: this error originates in the derive macro `AsBytes` (in Nightly builds, run with -Z macro-…
33 error[E0277]: the trait bound `AsBytes: FieldsAreSameSize<true>` is not satisfied
36 22 | #[derive(AsBytes)]
37 | ^^^^^^^ the trait `FieldsAreSameSize<true>` is not implemented for `AsBytes`
39 = help: the trait `FieldsAreSameSize<false>` is implemented for `AsBytes`
43 22 | #[derive(AsBytes)]
45 …= note: this error originates in the derive macro `AsBytes` (in Nightly builds, run with -Z macro-…
Dunion.rs16 #[derive(AsBytes)]
22 #[derive(AsBytes)]
24 union AsBytes {
/external/crosvm/devices/src/virtio/gpu/
Dprotocol.rs28 use zerocopy::AsBytes;
160 #[derive(Copy, Clone, Debug, Default, AsBytes, FromBytes)]
173 #[derive(Copy, Clone, Debug, Default, FromBytes, AsBytes)]
183 #[derive(Copy, Clone, Debug, Default, FromBytes, AsBytes)]
196 #[derive(Copy, Clone, Debug, Default, FromBytes, AsBytes)]
206 #[derive(Copy, Clone, Debug, Default, FromBytes, AsBytes)]
215 #[derive(Copy, Clone, Debug, Default, FromBytes, AsBytes)]
226 #[derive(Copy, Clone, Debug, Default, FromBytes, AsBytes)]
236 #[derive(Copy, Clone, Debug, Default, FromBytes, AsBytes)]
246 #[derive(Copy, Clone, Debug, Default, FromBytes, AsBytes)]
[all …]
/external/crosvm/devices/src/virtio/
Ddevice_constants.rs12 use zerocopy::AsBytes;
37 #[derive(Copy, Clone, Debug, Default, AsBytes, FromBytes)]
45 #[derive(Copy, Clone, Debug, Default, AsBytes, FromBytes)]
54 #[derive(Copy, Clone, Debug, Default, AsBytes, FromBytes)]
75 #[derive(Copy, Clone, Debug, Default, FromBytes, AsBytes)]
83 #[derive(Copy, Clone, Debug, Default, FromBytes, AsBytes)]
120 #[derive(Copy, Clone, Debug, Default, AsBytes, FromBytes)]
133 #[derive(Copy, Clone, Default, AsBytes, FromBytes)]
147 use zerocopy::AsBytes;
232 #[derive(Debug, Default, Copy, Clone, FromBytes, AsBytes)]
/external/crosvm/devices/src/usb/xhci/
Dxhci_abi.rs15 use zerocopy::AsBytes;
118 #[derive(Clone, Copy, PartialEq, Eq, FromBytes, AsBytes)]
295 #[derive(Clone, Copy, AsBytes, FromBytes)]
315 #[derive(Clone, Copy, FromBytes, AsBytes)]
336 #[derive(Clone, Copy, FromBytes, AsBytes)]
356 #[derive(Clone, Copy, FromBytes, AsBytes)]
373 #[derive(Clone, Copy, FromBytes, AsBytes)]
395 #[derive(Clone, Copy, AsBytes, FromBytes)]
411 #[derive(Clone, Copy, FromBytes, AsBytes)]
428 #[derive(Clone, Copy, FromBytes, AsBytes)]
[all …]
/external/rust/crates/virtio-drivers/src/device/
Dgpu.rs10 use zerocopy::{AsBytes, FromBytes};
177 fn request<Req: AsBytes, Rsp: FromBytes>(&mut self, req: Req) -> Result<Rsp> { in request() argument
188 fn cursor_request<Req: AsBytes>(&mut self, req: Req) -> Result { in cursor_request()
341 #[derive(AsBytes, Clone, Copy, Debug, Eq, PartialEq, FromBytes)]
374 #[derive(AsBytes, Debug, Clone, Copy, FromBytes)]
405 #[derive(AsBytes, Debug, Copy, Clone, Default, FromBytes)]
423 #[derive(AsBytes, Debug)]
433 #[derive(AsBytes, Debug)]
439 #[derive(AsBytes, Debug)]
450 #[derive(AsBytes, Debug)]
[all …]
/external/crosvm/devices/src/virtio/vsock/sys/windows/
Dprotocol.rs8 use zerocopy::AsBytes;
14 #[derive(Copy, Clone, Debug, Default, AsBytes, FromBytes)]
21 #[derive(Copy, Clone, Debug, Default, AsBytes, FromBytes)]
38 #[derive(Copy, Clone, Debug, Default, AsBytes, FromBytes)]
/external/crosvm/usb_util/src/
Dtypes.rs8 use zerocopy::AsBytes;
27 #[derive(Copy, Clone, Debug, Default, FromBytes, AsBytes)]
41 #[derive(Copy, Clone, Debug, Default, FromBytes, AsBytes)]
71 #[derive(Copy, Clone, Debug, Default, FromBytes, AsBytes)]
101 #[derive(Copy, Clone, Debug, Default, FromBytes, AsBytes)]
126 #[derive(Copy, Clone, Debug, Default, FromBytes, AsBytes)]
250 #[derive(Copy, Clone, Debug, FromBytes, AsBytes)]
/external/crosvm/devices/src/pci/
Dmsi.rs15 use zerocopy::AsBytes;
261 #[derive(Copy, Clone, AsBytes, FromBytes)]
275 #[derive(Clone, Copy, Default, AsBytes, FromBytes)]
284 #[derive(Clone, Copy, Default, AsBytes, FromBytes)]
295 #[derive(Clone, Copy, Default, AsBytes, FromBytes)]
305 #[derive(Clone, Copy, Default, AsBytes, FromBytes)]
316 #[derive(Clone, Copy, AsBytes, FromBytes)]
326 #[derive(Clone, Copy, AsBytes, FromBytes)]
/external/crosvm/acpi_tables/src/
Drsdp.rs5 use zerocopy::AsBytes;
9 #[derive(Clone, Copy, Default, FromBytes, AsBytes)]
48 use zerocopy::AsBytes;
Dsdt.rs11 use zerocopy::AsBytes;
92 pub fn append<T: AsBytes>(&mut self, value: T) { in append()
103 pub fn read<T: FromBytes + AsBytes + Default>(&self, offset: usize) -> T { in read()
114 pub fn write<T: AsBytes>(&mut self, offset: usize, value: T) { in write()

123456