Lines Matching full:as
47 /// has a side-effect on other objects, such as raising or lowering an
49 /// reset's type as argument.
156 if <T as ResettablePhasesImpl>::ENTER.is_some() { in class_init()
159 if <T as ResettablePhasesImpl>::HOLD.is_some() { in class_init()
162 if <T as ResettablePhasesImpl>::EXIT.is_some() { in class_init()
172 if <T as DeviceImpl>::REALIZE.is_some() { in class_init()
175 if let Some(vmsd) = <T as DeviceImpl>::vmsd() { in class_init()
178 let prop = <T as DeviceImpl>::properties(); in class_init()
197 offset: ::std::mem::offset_of!($state, $field) as isize,
200 defval: $crate::bindings::Property__bindgen_ty_1 { u: $defval as u64 },
209 offset: ::std::mem::offset_of!($state, $field) as isize,
211 defval: $crate::bindings::Property__bindgen_ty_1 { u: $defval as u64 },
220 offset: ::std::mem::offset_of!($state, $field) as isize,
250 /// Initialization methods take a [`ParentInit`] and can be called as
254 /// `self` as the first parameter for the events that are requested.
256 /// The resulting clock is added as a child of `self`, but it also
317 /// The resulting clock is added as a child of `self`, but it also
372 qdev_init_gpio_in(dev.as_mut_ptr(), Some(gpio_in_cb), num_lines as c_int); in init_gpio_in()
382 // SAFETY: the opaque was passed as a reference to `T` in init_gpio_in()
383 F::call((unsafe { &*(opaque.cast::<T>()) }, line as u32, level as u32)) in init_gpio_in()
397 pins.len() as c_int, in init_gpio_out()