/qemu/rust/qemu-api/tests/ |
H A D | vmstate_tests.rs | 6 ffi::{c_void, CStr}, 63 unsafe { CStr::from_ptr(foo_fields[0].name) }.to_bytes_with_nul(), in test_vmstate_uint16() 83 unsafe { CStr::from_ptr(foo_fields[1].name) }.to_bytes_with_nul(), in test_vmstate_unused() 104 unsafe { CStr::from_ptr(foo_fields[2].name) }.to_bytes_with_nul(), in test_vmstate_varray_uint16_unsafe() 125 unsafe { CStr::from_ptr(foo_fields[3].name) }.to_bytes_with_nul(), in test_vmstate_varray_multiply() 195 unsafe { CStr::from_ptr(foo_fields[0].name) }.to_bytes_with_nul(), in test_vmstate_bool_v() 215 unsafe { CStr::from_ptr(foo_fields[1].name) }.to_bytes_with_nul(), in test_vmstate_uint64() 236 unsafe { CStr::from_ptr(foo_fields[2].name) }.to_bytes_with_nul(), in test_vmstate_struct_varray_uint8() 260 unsafe { CStr::from_ptr(foo_fields[3].name) }.to_bytes_with_nul(), in test_vmstate_struct_varray_uint32_multiply() 286 unsafe { CStr::from_ptr(foo_fields[4].name) }.to_bytes_with_nul(), in test_vmstate_macro_array() [all …]
|
H A D | tests.rs | 5 use std::{ffi::CStr, ptr::addr_of}; 60 const TYPE_NAME: &'static CStr = c"dummy"; variable 94 const TYPE_NAME: &'static CStr = c"dummy_child"; variable
|
/qemu/rust/qemu-api/src/ |
H A D | qdev.rs | 8 ffi::{c_int, c_void, CStr, CString}, 148 const TYPE_NAME: &'static CStr = 149 unsafe { CStr::from_bytes_with_nul_unchecked(bindings::TYPE_RESETTABLE_INTERFACE) }; 195 name: ::std::ffi::CStr::as_ptr($name), 207 name: ::std::ffi::CStr::as_ptr($name), 218 name: ::std::ffi::CStr::as_ptr($name), 245 const TYPE_NAME: &'static CStr = 246 unsafe { CStr::from_bytes_with_nul_unchecked(bindings::TYPE_DEVICE) }; 396 const TYPE_NAME: &'static CStr = 397 unsafe { CStr 144 const TYPE_NAME: &'static CStr = global() variable 241 const TYPE_NAME: &'static CStr = global() variable 392 const TYPE_NAME: &'static CStr = global() variable [all...] |
H A D | irq.rs | 8 ffi::{c_int, CStr}, 112 const TYPE_NAME: &'static CStr = variable 113 unsafe { CStr::from_bytes_with_nul_unchecked(bindings::TYPE_IRQ) };
|
H A D | sysbus.rs | 7 use std::{ffi::CStr, ptr::addr_of_mut}; 31 const TYPE_NAME: &'static CStr = variable 32 unsafe { CStr::from_bytes_with_nul_unchecked(bindings::TYPE_SYS_BUS_DEVICE) };
|
H A D | qom.rs | 96 ffi::{c_void, CStr}, 285 const TYPE_NAME: &'static CStr; variable 324 const TYPE_NAME: &'static CStr; variable 566 const TYPE_NAME: &'static CStr = variable 567 unsafe { CStr::from_bytes_with_nul_unchecked(bindings::TYPE_OBJECT) }; 747 CStr::from_ptr(p).to_string_lossy() in typename()
|
H A D | memory.rs | 8 ffi::{c_uint, c_void, CStr, CString}, 189 const TYPE_NAME: &'static CStr = variable 190 unsafe { CStr::from_bytes_with_nul_unchecked(bindings::TYPE_MEMORY_REGION) };
|
H A D | chardev.rs | 13 ffi::{c_int, c_void, CStr}, 257 const TYPE_NAME: &'static CStr = variable 258 unsafe { CStr::from_bytes_with_nul_unchecked(bindings::TYPE_CHARDEV) };
|
H A D | vmstate.rs | 563 name: ::std::ffi::CStr::as_ptr($test_name),
|
/qemu/rust/hw/char/pl011/src/ |
H A D | lib.rs | 21 pub const TYPE_PL011: &::std::ffi::CStr = c"pl011"; 22 pub const TYPE_PL011_LUMINARY: &::std::ffi::CStr = c"pl011_luminary";
|
H A D | device.rs | 5 use std::{ffi::CStr, mem::size_of, ptr::addr_of_mut}; 156 const TYPE_NAME: &'static CStr = crate::TYPE_PL011; variable 693 const TYPE_NAME: &'static CStr = crate::TYPE_PL011_LUMINARY; 692 const TYPE_NAME: &'static CStr = crate::TYPE_PL011_LUMINARY; global() variable
|
/qemu/rust/hw/timer/hpet/src/ |
H A D | lib.rs | 13 pub const TYPE_HPET: &::std::ffi::CStr = c"hpet";
|
H A D | device.rs | 6 ffi::{c_int, c_void, CStr}, 889 const TYPE_NAME: &'static CStr = crate::TYPE_HPET; 1007 const VALIDATE_TIMERS_NAME: &CStr = c"num_timers must match"; 895 const TYPE_NAME: &'static CStr = crate::TYPE_HPET; global() variable
|