/qemu/rust/qemu-api/src/ |
H A D | cell.rs | 258 pub struct BqlCell<T> { 259 value: UnsafeCell<T>, 264 unsafe impl<T: Send> Send for BqlCell<T> {} 265 unsafe impl<T: Send> Sync for BqlCell<T> {} 267 impl<T: Copy> Clone for BqlCell<T> { 269 fn clone(&self) -> BqlCell<T> { in clone() argument 274 impl<T: Default> Default for BqlCell<T> { 277 fn default() -> BqlCell<T> { in default() 282 impl<T: PartialEq + Copy> PartialEq for BqlCell<T> { 284 fn eq(&self, other: &BqlCell<T>) -> bool { in eq() [all …]
|
H A D | qom.rs | 132 unsafe impl<T: ObjectType> IsA<T> for T {} implementation 184 pub struct ParentField<T: ObjectType>(std::mem::ManuallyDrop<T>); 186 impl<T: ObjectType> Deref for ParentField<T> { 187 type Target = T; 195 impl<T: ObjectType> DerefMut for ParentField<T> { 202 impl<T: fmt::Display + ObjectType> fmt::Display for ParentField<T> { 209 unsafe extern "C" fn rust_instance_init<T: ObjectImpl>(obj: *mut bindings::Object) { in rust_instance_init() 210 let mut state = NonNull::new(obj).unwrap().cast::<T>(); in rust_instance_init() 215 T::INSTANCE_INIT.unwrap()(state.as_mut()); in rust_instance_init() 219 unsafe extern "C" fn rust_instance_post_init<T: ObjectImpl>(obj: *mut bindings::Object) { in rust_instance_post_init() [all …]
|
H A D | memory.rs | 22 pub struct MemoryRegionOps<T>( 32 PhantomData<fn(&T)>, 38 unsafe impl<T: Sync> Sync for MemoryRegionOps<T> {} 41 pub struct MemoryRegionOpsBuilder<T>(bindings::MemoryRegionOps, PhantomData<fn(&T)>); 43 unsafe extern "C" fn memory_region_ops_read_cb<T, F: for<'a> FnCall<(&'a T, hwaddr, u32), u64>>( in memory_region_ops_read_cb() argument 48 F::call((unsafe { &*(opaque.cast::<T>()) }, addr, size)) in memory_region_ops_read_cb() 51 unsafe extern "C" fn memory_region_ops_write_cb<T, F: for<'a> FnCall<(&'a T, hwaddr, u64, u32)>>( in memory_region_ops_write_cb() argument 57 F::call((unsafe { &*(opaque.cast::<T>()) }, addr, data, size)) in memory_region_ops_write_cb() 60 impl<T> MemoryRegionOpsBuilder<T> { 62 pub const fn read<F: for<'a> FnCall<(&'a T, hwaddr, u32), u64>>(mut self, _f: &F) -> Self { in read() argument [all …]
|
H A D | vmstate.rs | 63 … const fn phantom__<T>(_: &T) -> ::core::marker::PhantomData<T> { ::core::marker::PhantomData } 168 pub const fn vmstate_scalar_type<T: VMState>(_: PhantomData<T>) -> VMStateFieldType { in vmstate_scalar_type() 169 T::SCALAR_TYPE in vmstate_scalar_type() 174 pub const fn vmstate_base<T: VMState>(_: PhantomData<T>) -> VMStateField { in vmstate_base() 175 T::BASE in vmstate_base() 181 pub const fn vmstate_varray_flag<T: VMState>(_: PhantomData<T>) -> VMStateFlags { in vmstate_varray_flag() 182 T::VARRAY_FLAG in vmstate_varray_flag() 341 impl_vmstate_transparent!(std::cell::Cell<T> where T: VMState); 342 impl_vmstate_transparent!(std::cell::UnsafeCell<T> where T: VMState); 343 impl_vmstate_transparent!(std::pin::Pin<T> where T: VMState); [all …]
|
H A D | qdev.rs | 69 unsafe extern "C" fn rust_resettable_enter_fn<T: ResettablePhasesImpl>( in rust_resettable_enter_fn() 73 let state = NonNull::new(obj).unwrap().cast::<T>(); in rust_resettable_enter_fn() 74 T::ENTER.unwrap()(unsafe { state.as_ref() }, typ); in rust_resettable_enter_fn() 82 unsafe extern "C" fn rust_resettable_hold_fn<T: ResettablePhasesImpl>( in rust_resettable_hold_fn() 86 let state = NonNull::new(obj).unwrap().cast::<T>(); in rust_resettable_hold_fn() 87 T::HOLD.unwrap()(unsafe { state.as_ref() }, typ); in rust_resettable_hold_fn() 95 unsafe extern "C" fn rust_resettable_exit_fn<T: ResettablePhasesImpl>( in rust_resettable_exit_fn() 99 let state = NonNull::new(obj).unwrap().cast::<T>(); in rust_resettable_exit_fn() 100 T::EXIT.unwrap()(unsafe { state.as_ref() }, typ); in rust_resettable_exit_fn() 135 unsafe extern "C" fn rust_realize_fn<T: DeviceImpl>( in rust_realize_fn() [all …]
|
H A D | chardev.rs | 95 T, in enable_handlers() argument 96 CanReceiveFn: for<'a> FnCall<(&'a T,), u32>, in enable_handlers() argument 97 ReceiveFn: for<'a, 'b> FnCall<(&'a T, &'b [u8])>, in enable_handlers() argument 98 EventFn: for<'a> FnCall<(&'a T, Event)>, in enable_handlers() argument 104 owner: &'owner T, in enable_handlers() argument 109 unsafe extern "C" fn rust_can_receive_cb<T, F: for<'a> FnCall<(&'a T,), u32>>( in enable_handlers() argument 114 let owner: &T = unsafe { &*(opaque.cast::<T>()) }; in enable_handlers() 119 unsafe extern "C" fn rust_receive_cb<T, F: for<'a, 'b> FnCall<(&'a T, &'b [u8])>>( in enable_handlers() argument 126 let owner: &T = unsafe { &*(opaque.cast::<T>()) }; in enable_handlers() 131 unsafe extern "C" fn rust_event_cb<T, F: for<'a> FnCall<(&'a T, Event)>>( in enable_handlers() argument [all …]
|
H A D | irq.rs | 48 pub struct InterruptSource<T = bool> 50 c_int: From<T>, 53 _marker: PhantomData<T>, 57 unsafe impl<T> Sync for InterruptSource<T> where c_int: From<T> {} 77 impl<T> InterruptSource<T> 79 c_int: From<T>, 82 pub fn set(&self, level: T) { in set() argument
|
H A D | assertions.rs | 21 impl<T> EqType for T { implementation 22 type Itself = T; 48 fn types_must_be_equal<T, U>(_: T) 50 T: $crate::assertions::EqType<Itself = U>, 85 fn types_must_be_equal<T, U>(_: &T) 87 T: $crate::assertions::EqType<Itself = U>,
|
H A D | timer.rs | 48 pub fn init_full<'timer, 'opaque: 'timer, T, F>( in init_full() argument 55 opaque: &'opaque T, in init_full() argument 57 F: for<'a> FnCall<(&'a T,)>, in init_full() argument 62 unsafe extern "C" fn rust_timer_handler<T, F: for<'a> FnCall<(&'a T,)>>( in init_full() argument 66 F::call((unsafe { &*(opaque.cast::<T>()) },)) in init_full() 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() constant
|
/qemu/scripts/coccinelle/ |
H A D | use-g_new-etc.cocci | 3 type T; 5 -g_malloc(sizeof(T)) 6 +g_new(T, 1) 8 type T; 10 -g_try_malloc(sizeof(T)) 11 +g_try_new(T, 1) 13 type T; 15 -g_malloc0(sizeof(T)) 16 +g_new0(T, 1) 18 type T; [all …]
|
H A D | exec_rw_const.cocci | 40 type T; 41 const T *V; 45 - address_space_rw(E1, E2, E3, (T *)V, E4, 1) 80 type T; 83 - address_space_rw(E1, E2, E3, (T *)(E4), E5, E6) 86 - address_space_read(E1, E2, E3, (T *)(E4), E5) 89 - address_space_write(E1, E2, E3, (T *)(E4), E5) 92 - address_space_write_rom(E1, E2, E3, (T *)(E4), E5) 96 - cpu_physical_memory_rw(E1, (T *)(E2), E3, E4) 99 - cpu_physical_memory_read(E1, (T *)(E2), E3) [all …]
|
H A D | typecast.cocci | 3 type T; 4 T v; 6 - (T *)&v
|
H A D | return_directly.cocci | 5 type T; 8 T F(...) 11 - T VAR;
|
H A D | use-error_fatal.cocci | 2 type T; 8 - T RET = FUN(ARGS, &ERR); 9 + T RET = FUN(ARGS, &error_fatal);
|
H A D | timer-del-timer-free.cocci | 15 expression T; 17 -timer_del(T); 18 timer_free(T);
|
/qemu/tests/unit/ |
H A D | test-smp-parse.c | 20 #define T true macro 148 .config = SMP_CONFIG_GENERIC(T, 8, F, 0, F, 0, F, 0, F, 0), 154 .config = SMP_CONFIG_GENERIC(F, 0, T, 2, F, 0, F, 0, F, 0), 160 .config = SMP_CONFIG_GENERIC(F, 0, F, 0, T, 4, F, 0, F, 0), 166 .config = SMP_CONFIG_GENERIC(F, 0, F, 0, F, 0, T, 2, F, 0), 173 .config = SMP_CONFIG_GENERIC(F, 0, F, 0, F, 0, F, 0, T, 16), 179 .config = SMP_CONFIG_GENERIC(T, 8, T, 2, F, 0, F, 0, F, 0), 185 .config = SMP_CONFIG_GENERIC(T, 8, F, 0, T, 4, F, 0, F, 0), 192 .config = SMP_CONFIG_GENERIC(T, 8, F, 0, F, 0, T, 2, F, 0), 199 .config = SMP_CONFIG_GENERIC(T, 8, F, 0, F, 0, F, 0, T, 16), [all …]
|
H A D | test-crypto-xts.c | 343 uint8_t out[512], Torg[16], T[16]; in test_xts() local 357 memcpy(T, Torg, sizeof(T)); in test_xts() 361 T, data->PTLEN, out, data->PTX); in test_xts() 365 memcpy(T, Torg, sizeof(T)); in test_xts() 369 T, data->PTLEN, out, data->CTX); in test_xts() 378 uint8_t out[512], Torg[16], T[16]; in test_xts_split() local 393 memcpy(T, Torg, sizeof(T)); in test_xts_split() 397 T, len, out, data->PTX); in test_xts_split() 401 T, len, &out[len], &data->PTX[len]); in test_xts_split() 405 memcpy(T, Torg, sizeof(T)); in test_xts_split() [all …]
|
/qemu/tests/tcg/alpha/ |
H A D | test-cvttq.c | 53 } T[] = { in main() local 68 for (i = 0; i < sizeof(T)/sizeof(T[0]); i++) { in main() 69 long e, r = test_cvttq(&e, T[i].d); in main() 71 if (r != T[i].r || e != T[i].e) { in main() 73 T[i].d, T[i].r, T[i].e >> 48, r, e >> 48); in main()
|
/qemu/qga/vss-win32/ |
H A D | vss-common.h | 76 template <class T> 78 COMPointer(const COMPointer<T> &p) { } /* no copy */ in COMPointer() 79 T *p; 81 COMPointer &operator=(T *new_p) 91 T **replace(void) in replace() 97 operator T*() { return p; } 98 T *operator->(void) { return p; } 99 T &operator*(void) { return *p; } 102 COMPointer(T *p = NULL) : p(p) { } in p()
|
/qemu/scripts/codeconverter/codeconverter/ |
H A D | utils.py | 16 T = TypeVar('T') variable 17 def opt_compare(a: T, b: T) -> bool: argument 21 def merge(a: T, b: T) -> T: argument 68 def not_optional(arg: Optional[T]) -> T: argument
|
/qemu/crypto/ |
H A D | xts.c | 111 xts_uint128 PP, CC, T; in xts_decrypt() local 128 encfunc(tweakctx, XTS_BLOCK_SIZE, T.b, iv); in xts_decrypt() 135 xts_tweak_encdec(datactx, decfunc, S, D, &T); in xts_decrypt() 142 xts_tweak_encdec(datactx, decfunc, &D, &D, &T); in xts_decrypt() 152 memcpy(&CC, &T, XTS_BLOCK_SIZE); in xts_decrypt() 169 xts_tweak_encdec(datactx, decfunc, &CC, &D, &T); in xts_decrypt() 174 decfunc(tweakctx, XTS_BLOCK_SIZE, iv, T.b); in xts_decrypt() 187 xts_uint128 PP, CC, T; in xts_encrypt() local 204 encfunc(tweakctx, XTS_BLOCK_SIZE, T.b, iv); in xts_encrypt() 211 xts_tweak_encdec(datactx, encfunc, S, D, &T); in xts_encrypt() [all …]
|
/qemu/python/qemu/qmp/ |
H A D | util.py | 25 T = TypeVar('T') variable 56 def upper_half(func: T) -> T: argument 66 def bottom_half(func: T) -> T: argument 87 def create_task(coro: Coroutine[Any, Any, T], argument 152 def asyncio_run(coro: Coroutine[Any, Any, T], *, debug: bool = False) -> T: argument
|
/qemu/include/user/ |
H A D | thunk.h | 206 #define target_to_host_bitmask(M, T) \ argument 207 target_to_host_bitmask_len(M, T, ARRAY_SIZE(T)) 208 #define host_to_target_bitmask(M, T) \ argument 209 host_to_target_bitmask_len(M, T, ARRAY_SIZE(T))
|
/qemu/tests/tcg/ppc64/ |
H A D | bcdsub.c | 19 #define BCDSUB(T, A, B, PS) \ argument 20 ".long 4 << 26 | (" #T ") << 21 | (" #A ") << 16 | (" #B ") << 11" \ 23 #define BCDSUB(T, A, B, PS) "bcdsub. " #T ", " #A ", " #B ", " #PS "\n\t" argument
|
/qemu/include/standard-headers/linux/ |
H A D | const.h | 18 #define _AT(T,X) X 22 #define _AT(T,X) ((T)(X)) argument
|