Home
last modified time | relevance | path

Searched refs:CStr (Results 1 – 13 of 13) sorted by relevance

/qemu/rust/qemu-api/tests/
H A Dvmstate_tests.rs6 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 Dtests.rs5 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 Dqdev.rs8 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 Dirq.rs8 ffi::{c_int, CStr},
112 const TYPE_NAME: &'static CStr = variable
113 unsafe { CStr::from_bytes_with_nul_unchecked(bindings::TYPE_IRQ) };
H A Dsysbus.rs7 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 Dqom.rs96 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 Dmemory.rs8 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 Dchardev.rs13 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 Dvmstate.rs563 name: ::std::ffi::CStr::as_ptr($test_name),
/qemu/rust/hw/char/pl011/src/
H A Dlib.rs21 pub const TYPE_PL011: &::std::ffi::CStr = c"pl011";
22 pub const TYPE_PL011_LUMINARY: &::std::ffi::CStr = c"pl011_luminary";
H A Ddevice.rs5 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 Dlib.rs13 pub const TYPE_HPET: &::std::ffi::CStr = c"hpet";
H A Ddevice.rs6 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