Lines Matching full:deviceid
71 // SAFETY: `DeviceId` is a `#[repr(transparent)` wrapper of `struct pci_device_id` and in probe_callback()
73 let id = unsafe { &*id.cast::<DeviceId>() }; in probe_callback()
124 pub struct DeviceId(bindings::pci_device_id); struct
126 impl DeviceId { impl
131 /// Create a new `pci::DeviceId` from a vendor and device ID number.
136 subvendor: DeviceId::PCI_ANY_ID, in from_id()
137 subdevice: DeviceId::PCI_ANY_ID, in from_id()
147 /// Create a new `pci::DeviceId` from a class number and mask.
150 vendor: DeviceId::PCI_ANY_ID, in from_class()
151 device: DeviceId::PCI_ANY_ID, in from_class()
152 subvendor: DeviceId::PCI_ANY_ID, in from_class()
153 subdevice: DeviceId::PCI_ANY_ID, in from_class()
163 // * `DeviceId` is a `#[repr(transparent)` wrapper of `pci_device_id` and does not add
166 unsafe impl RawDeviceId for DeviceId { implementation
177 pub type IdTable<T> = &'static dyn kernel::device_id::IdTable<DeviceId, T>;
184 $crate::pci::DeviceId,
207 /// (pci::DeviceId::from_id(bindings::PCI_VENDOR_ID_REDHAT, bindings::PCI_ANY_ID as _), ())