Lines Matching defs:usb_interface
78 intf: *mut bindings::usb_interface,
82 // `struct usb_interface` and `struct usb_device_id`.
101 extern "C" fn disconnect_callback(intf: *mut bindings::usb_interface) {
103 // `struct usb_interface`.
328 /// This structure represents the Rust abstraction for a C [`struct usb_interface`].
329 /// The implementation abstracts the usage of a C [`struct usb_interface`] passed
334 /// An [`Interface`] instance represents a valid [`struct usb_interface`] created
337 /// [`struct usb_interface`]: https://www.kernel.org/doc/html/latest/driver-api/usb/usb.html#c.usb_interface
340 Opaque<bindings::usb_interface>,
345 fn as_raw(&self) -> *mut bindings::usb_interface {
350 // SAFETY: `usb::Interface` is a transparent wrapper of `struct usb_interface`.
353 const OFFSET: usize = offset_of!(bindings::usb_interface, dev);
364 // `struct usb_interface`.
377 // SAFETY: For a valid `struct usb_interface` pointer, the above call to
387 // returns a valid `struct usb_interface` pointer, for which we will