Lines Matching defs:fn
48 unsafe fn register(
67 unsafe fn unregister(udrv: &Opaque<Self::DriverType>) {
74 extern "C" fn probe_callback(
101 extern "C" fn disconnect_callback(intf: *mut bindings::usb_interface) {
128 pub const fn from_id(vendor: u16, product: u16) -> Self {
138 pub const fn from_device_ver(vendor: u16, product: u16, bcd_lo: u16, bcd_hi: u16) -> Self {
150 pub const fn from_device_info(class: u8, subclass: u8, protocol: u8) -> Self {
161 pub const fn from_interface_info(class: u8, subclass: u8, protocol: u8) -> Self {
172 pub const fn from_device_interface_class(vendor: u16, product: u16, class: u8) -> Self {
184 pub const fn from_device_interface_protocol(vendor: u16, product: u16, protocol: u8) -> Self {
196 pub const fn from_device_interface_number(vendor: u16, product: u16, number: u8) -> Self {
208 pub const fn from_device_and_interface_info(
274 /// fn probe<'bound>(
282 /// fn disconnect<'bound>(
303 fn probe<'bound>(
312 fn disconnect<'bound>(
337 fn as_raw(&self) -> *mut bindings::usb_interface {
354 fn as_ref(&self) -> &device::Device<Ctx> {
365 fn as_ref(&self) -> &Device {
378 fn inc_ref(&self) {
386 unsafe fn dec_ref(obj: NonNull<Self>) {
418 fn as_raw(&self) -> *mut bindings::usb_device {
431 fn inc_ref(&self) {
439 unsafe fn dec_ref(obj: NonNull<Self>) {
446 fn as_ref(&self) -> &device::Device<Ctx> {