Home
last modified time | relevance | path

Searched refs:c_void (Results 1 – 15 of 15) sorted by relevance

/openbmc/qemu/rust/qemu-api/src/
H A Dchardev.rs13 ffi::{c_int, c_void, CStr},
110 opaque: *mut c_void, in enable_handlers() argument
120 opaque: *mut c_void, in enable_handlers() argument
132 opaque: *mut c_void, in enable_handlers() argument
142 let receive_cb: Option<unsafe extern "C" fn(*mut c_void, *const u8, c_int)> = in enable_handlers()
148 let event_cb: Option<unsafe extern "C" fn(*mut c_void, Event)> = if EventFn::is_some() { in enable_handlers()
163 (owner as *const T).cast_mut().cast::<c_void>(), in enable_handlers()
213 addr_of_mut!(duration).cast::<c_void>(), in send_break()
H A Dtimer.rs6 ffi::{c_int, c_void},
63 opaque: *mut c_void, in init_full() argument
69 let timer_cb: unsafe extern "C" fn(*mut c_void) = rust_timer_handler::<T, F>; in init_full()
84 (opaque as *const T).cast::<c_void>().cast_mut(), in init_full()
H A Dlib.rs37 ffi::c_void,
54 fn qemu_memalign(alignment: usize, size: usize) -> *mut c_void; in qemu_memalign() argument
55 fn qemu_vfree(ptr: *mut c_void); in qemu_vfree() argument
120 const _: [(); 8] = [(); ::core::mem::size_of::<*mut c_void>()];
H A Dmemory.rs8 ffi::{c_uint, c_void, CStr, CString},
45 opaque: *mut c_void, in memory_region_ops_read_cb() argument
53 opaque: *mut c_void, in memory_region_ops_write_cb() argument
162 owner.cast::<c_void>(), in do_init_io()
H A Dqdev.rs8 ffi::{c_int, c_void, CStr, CString},
275 cb: Option<unsafe extern "C" fn(*mut c_void, ClockEvent)>, in init_clock_in() argument
299 let cb: Option<unsafe extern "C" fn(*mut c_void, ClockEvent)> = if F::is_some() { in init_clock_in()
301 opaque: *mut c_void, in init_clock_in() argument
369 gpio_in_cb: unsafe extern "C" fn(*mut c_void, c_int, c_int), in init_gpio_in() argument
378 opaque: *mut c_void, in init_gpio_in() argument
386 let gpio_in_cb: unsafe extern "C" fn(*mut c_void, c_int, c_int) = in init_gpio_in()
H A Dqom.rs96 ffi::{c_void, CStr},
407 _data: *const c_void, in rust_class_init() argument
672 unsafe extern "C" fn(klass: *mut ObjectClass, data: *const c_void), constant
839 object_ref(obj.as_object_mut_ptr().cast::<c_void>()); in from()
879 object_unref(self.as_object_mut_ptr().cast::<c_void>()); in drop()
H A Derror.rs39 ffi::{c_char, c_int, c_void, CStr},
272 let err: *mut c_void = libc::malloc(std::mem::size_of::<bindings::Error>()); in clone_to_foreign()
329 let err: *mut c_void = libc::malloc(std::mem::size_of::<bindings::Error>()); in error_for_test()
H A Dvmstate.rs28 use std::ffi::{c_int, c_void};
440 opaque: *mut c_void, in rust_vms_test_field_exists() argument
450 opaque: *mut std::os::raw::c_void,
H A Dcell.rs1020 pub const fn as_void_ptr(&self) -> *mut std::ffi::c_void { in as_void_ptr() argument
/openbmc/qemu/rust/hw/timer/hpet/src/
H A Ddevice.rs6 ffi::{c_int, c_void, CStr},
942 unsafe extern "C" fn hpet_rtc_irq_level_needed(opaque: *mut c_void) -> bool { in hpet_rtc_irq_level_needed()
949 unsafe extern "C" fn hpet_offset_needed(opaque: *mut c_void) -> bool { in hpet_offset_needed()
956 unsafe extern "C" fn hpet_pre_save(opaque: *mut c_void) -> c_int { in hpet_pre_save()
964 unsafe extern "C" fn hpet_post_load(opaque: *mut c_void, version_id: c_int) -> c_int { in hpet_post_load() argument
/openbmc/openbmc/meta-security/meta-parsec/recipes-parsec/parsec-service/files/
H A D0002-Fix-unnecessary-qualifications-error.patch22 use libc::{c_void, getsockopt, socklen_t, ucred, SOL_SOCKET, SO_PEERCRED};
/openbmc/qemu/rust/qemu-api/tests/
H A Dvmstate_tests.rs6 ffi::{c_void, CStr},
304 let foo_b_p = std::ptr::addr_of_mut!(foo_b).cast::<c_void>(); in test_vmstate_struct_varray_uint8_wrapper()
469 let foo_d_p = std::ptr::addr_of_mut!(foo_d).cast::<c_void>(); in test_vmstate_validate()
/openbmc/qemu/rust/hw/char/pl011/src/
H A Ddevice.rs6 ffi::{c_int, c_void, CStr},
720 extern "C" fn pl011_clock_needed(opaque: *mut c_void) -> bool { in pl011_clock_needed()
737 extern "C" fn pl011_post_load(opaque: *mut c_void, version_id: c_int) -> c_int { in pl011_post_load() argument
/openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/python3-pyruvate/
H A D0001-musl-Define-SOCK_SEQPACKET-in-common-place.patch81 pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t;
/openbmc/qemu/rust/qemu-api-macros/src/
H A Dlib.rs138 pub const fn as_void_ptr(&self) -> *mut ::core::ffi::c_void { in derive_opaque_or_error()