Home
last modified time | relevance | path

Searched refs:Le32 (Results 1 – 25 of 27) sorted by relevance

12

/external/crosvm/devices/src/virtio/video/
Dprotocol.rs25 use data_model::{DataInit, Le32, Le64};
99 pub version: Le32,
100 pub max_caps_length: Le32,
101 pub max_resp_length: Le32,
135 pub type_: Le32,
136 pub stream_id: Le32,
147 pub queue_type: Le32,
159 pub min: Le32,
160 pub max: Le32,
161 pub step: Le32,
[all …]
Dparams.rs10 use data_model::Le32;
89 let num_planes = Le32::from(plane_formats.len() as u32); in to_virtio_video_params()
99 .map(|f| Le32::from(f as u32)) in to_virtio_video_params()
100 .unwrap_or_else(|| Le32::from(0)), in to_virtio_video_params()
101 frame_width: Le32::from(*frame_width), in to_virtio_video_params()
102 frame_height: Le32::from(*frame_height), in to_virtio_video_params()
103 min_buffers: Le32::from(*min_buffers), in to_virtio_video_params()
104 max_buffers: Le32::from(*max_buffers), in to_virtio_video_params()
106 frame_rate: Le32::from(*frame_rate), in to_virtio_video_params()
Dcontrol.rs10 use data_model::Le32;
35 num: Le32::from(ps.len() as u32), in write()
38 w.write_iter(ps.iter().map(|p| Le32::from(*p as u32))) in write()
42 num: Le32::from(ls.len() as u32), in write()
45 w.write_iter(ls.iter().map(|l| Le32::from(*l as u32))) in write()
71 bitrate: Le32::from(*r), in write()
75 profile: Le32::from(*p as u32), in write()
79 level: Le32::from(*l as u32), in write()
Dresponse.rs9 use data_model::{Le32, Le64};
73 let type_ = Le32::from(match self { in write()
104 num_descs: Le32::from(descs.len() as u32), in write()
116 flags: Le32::from(*flags), in write()
117 size: Le32::from(*size), in write()
Devent.rs9 use data_model::Le32;
31 event_type: Le32::from(self.typ as u32), in write()
32 stream_id: Le32::from(self.stream_id), in write()
Dformat.rs12 use data_model::Le32;
201 num_rates: Le32::from(self.bitrates.len() as u32), in write()
223 format: Le32::from(self.format as u32), in write()
225 planes_layout: Le32::from(VIRTIO_VIDEO_PLANES_LAYOUT_SINGLE_BUFFER), in write()
227 plane_align: Le32::from(0), in write()
228 num_frames: Le32::from(self.frame_formats.len() as u32), in write()
Dmacros.rs11 impl TryFrom<Le32> for $ty {
14 fn try_from(x: Le32) -> Result<Self, Self::Error> {
Dmod.rs14 use data_model::{DataInit, Le32};
150 version: Le32::from(0), in read_config()
151 max_caps_length: Le32::from(1024), // Set a big number in read_config()
152 max_resp_length: Le32::from(1024), // Set a big number in read_config()
/external/crosvm/devices/src/virtio/gpu/
Dprotocol.rs20 use data_model::{DataInit, Le32, Le64};
155 pub type_: Le32,
156 pub flags: Le32,
158 pub ctx_id: Le32,
159 pub info: Le32,
169 pub scanout_id: Le32,
170 pub x: Le32,
171 pub y: Le32,
172 pub padding: Le32,
183 pub resource_id: Le32, /* update only */
[all …]
Dmod.rs546 .unwrap_or_else(|_| Le32::from(0)); in process_queue()
1006 events_read: Le32::from(events_read), in get_config()
1007 events_clear: Le32::from(0), in get_config()
1008 num_scanouts: Le32::from(self.num_scanouts.get() as u32), in get_config()
1009 num_capsets: Le32::from(num_capsets), in get_config()
/external/crosvm/devices/src/virtio/snd/
Dlayout.rs6 use data_model::{DataInit, Le32, Le64};
11 pub jacks: Le32,
12 pub streams: Le32,
13 pub chmaps: Le32,
21 pub code: Le32,
30 pub jack_id: Le32,
39 pub data: Le32,
48 pub start_id: Le32,
49 pub count: Le32,
50 pub size: Le32,
[all …]
/external/crosvm/devices/src/virtio/
Dwl.rs115 0x1000 - size_of::<CtrlVfdRecv>() - VIRTWL_SEND_MAX_ALLOCS * size_of::<Le32>();
148 type_: Le32::from(if resp { in encode_vfd_new()
153 flags: Le32::from(0), in encode_vfd_new()
155 id: Le32::from(vfd_id), in encode_vfd_new()
156 flags: Le32::from(flags), in encode_vfd_new()
158 size: Le32::from(size), in encode_vfd_new()
177 type_: Le32::from(VIRTIO_WL_RESP_VFD_NEW_DMABUF), in encode_vfd_new_dmabuf()
178 flags: Le32::from(0), in encode_vfd_new_dmabuf()
180 id: Le32::from(vfd_id), in encode_vfd_new_dmabuf()
181 flags: Le32::from(flags), in encode_vfd_new_dmabuf()
[all …]
Dblock.rs21 use data_model::{DataInit, Le16, Le32, Le64};
88 opt_io_size: Le32,
98 size_max: Le32,
99 seg_max: Le32,
101 blk_size: Le32,
105 max_discard_sectors: Le32,
106 max_discard_seg: Le32,
107 discard_sector_alignment: Le32,
108 max_write_zeroes_sectors: Le32,
109 max_write_zeroes_seg: Le32,
[all …]
Dvirtio_pci_device.rs10 use data_model::{DataInit, Le32};
46 offset: Le32, // Offset within bar.
47 length: Le32, // Length of the structure, in bytes.
72 offset: Le32::from(offset), in new()
73 length: Le32::from(length), in new()
83 notify_off_multiplier: Le32,
104 multiplier: Le32, in new() argument
115 offset: Le32::from(offset), in new()
116 length: Le32::from(length), in new()
127 offset_hi: Le32, // Most sig 32 bits of offset
[all …]
Dblock_async.rs30 use data_model::{DataInit, Le16, Le32, Le64};
97 opt_io_size: Le32,
107 size_max: Le32,
108 seg_max: Le32,
110 blk_size: Le32,
115 max_discard_sectors: Le32,
116 max_discard_seg: Le32,
117 discard_sector_alignment: Le32,
118 max_write_zeroes_sectors: Le32,
119 max_write_zeroes_seg: Le32,
[all …]
Dqueue.rs564 use data_model::{DataInit, Le16, Le32, Le64};
581 len: Le32,
612 id: Le32,
613 len: Le32,
620 id: Le32::from(0u32), in default()
621 len: Le32::from(0u32), in default()
650 len: Le32::from(BUFFER_LEN), in setup_vq()
Dpmem.rs12 use data_model::{DataInit, Le32, Le64};
41 status_code: Le32,
50 type_: Le32,
Dballoon.rs17 use data_model::{DataInit, Le16, Le32, Le64};
57 num_pages: Le32,
58 actual: Le32,
128 for res in reader.iter::<Le32>() { in handle_address_chain()
Dconsole.rs10 use data_model::{DataInit, Le16, Le32};
30 max_nr_ports: Le32,
31 emerg_wr: Le32,
/external/crosvm/devices/src/virtio/input/
Devdev.rs6 use data_model::Le32;
92 min: Le32::from(other.minimum), in from()
93 max: Le32::from(other.maximum), in from()
94 fuzz: Le32::from(other.fuzz), in from()
95 flat: Le32::from(other.flat), in from()
Dmod.rs14 use data_model::{DataInit, Le16, Le32};
117 min: Le32,
118 max: Le32,
119 fuzz: Le32,
120 flat: Le32,
129 min: Le32::from(min), in new()
130 max: Le32::from(max), in new()
131 fuzz: Le32::from(fuzz), in new()
132 flat: Le32::from(flat), in new()
/external/crosvm/disk/src/
Dandroid_sparse.rs18 use data_model::{DataInit, Le16, Le32, VolatileSlice};
51 magic: Le32, /* SPARSE_HEADER_MAGIC */
56 blk_sz: Le32, /* block size in bytes, must be a multiple of 4 (4096) */
57 total_blks: Le32, /* total blocks in the non-sparse output image */
58 total_chunks: Le32, /* total chunks in the sparse input image */
59 image_checksum: Le32, /* CRC32 checksum of the original data, counting "don't care" */
76 chunk_sz: Le32, /* in blocks in output image */
77 total_sz: Le32, /* in bytes of chunk input file including chunk header and data */
/external/crosvm/devices/src/virtio/fs/
Dmod.rs12 use data_model::{DataInit, Le32};
55 pub num_request_queues: Le32,
156 num_request_queues: Le32::from(num_workers as u32), in new()
/external/crosvm/devices/src/virtio/vhost/user/
Dfs.rs12 use data_model::{DataInit, Le32};
50 num_request_queues: Le32::from(default_queue_size - 1), in new()
/external/crosvm/data_model/src/
Dendian.rs108 endian_type!(u32, Le32, to_le, from_le);
165 endian_test!(u32, Le32, test_le32, NATIVE_LITTLE);

12