| /openbmc/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
|
| /openbmc/qemu/rust/hw/char/pl011/src/ |
| H A D | lib.rs | 20 pub const TYPE_PL011: &::std::ffi::CStr = c"pl011"; 21 pub const TYPE_PL011_LUMINARY: &::std::ffi::CStr = c"pl011_luminary";
|
| H A D | device.rs | 6 ffi::{c_int, c_void, CStr}, 163 const TYPE_NAME: &'static CStr = crate::TYPE_PL011; variable 703 const TYPE_NAME: &'static CStr = crate::TYPE_PL011_LUMINARY; variable
|
| /openbmc/qemu/rust/qemu-api/src/ |
| H A D | qdev.rs | 8 ffi::{c_int, c_void, CStr, CString}, 148 const TYPE_NAME: &'static CStr = variable 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 = variable 246 unsafe { CStr::from_bytes_with_nul_unchecked(bindings::TYPE_DEVICE) }; 407 const TYPE_NAME: &'static CStr = variable 408 unsafe { CStr::from_bytes_with_nul_unchecked(bindings::TYPE_CLOCK) };
|
| 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 | error.rs | 39 ffi::{c_char, c_int, c_void, CStr}, 295 CStr::from_ptr(error.src).to_str() in cloned_from_foreign() 316 use std::ffi::CStr; 325 fn error_for_test(msg: &CStr) -> OwnedPointer<Error> { in error_for_test() 344 unsafe fn error_get_pretty<'a>(local_err: *mut bindings::Error) -> &'a CStr { in error_get_pretty() argument 345 unsafe { CStr::from_ptr(bindings::error_get_pretty(local_err)) } in error_get_pretty()
|
| 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 | qom.rs | 96 ffi::{c_void, CStr}, 463 const TYPE_NAME: &'static CStr; variable 502 const TYPE_NAME: &'static CStr; variable 744 const TYPE_NAME: &'static CStr = variable 745 unsafe { CStr::from_bytes_with_nul_unchecked(bindings::TYPE_OBJECT) }; 925 CStr::from_ptr(p).to_string_lossy() in typename()
|
| 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),
|
| /openbmc/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}, 893 const TYPE_NAME: &'static CStr = crate::TYPE_HPET; variable 1011 const VALIDATE_TIMERS_NAME: &CStr = c"num_timers must match";
|
| /openbmc/openbmc/meta-security/recipes-ids/suricata/files/ |
| H A D | CVE-2024-38535_pre.patch | 32 use std::ffi::CStr;
|