Lines Matching full:deviceid
68 // SAFETY: `DeviceId` is a `#[repr(transparent)` wrapper of `struct pci_device_id` and in probe_callback()
70 let id = unsafe { &*id.cast::<DeviceId>() }; in probe_callback()
121 pub struct DeviceId(bindings::pci_device_id); struct
123 impl DeviceId { impl
128 /// Create a new `pci::DeviceId` from a vendor and device ID number.
133 subvendor: DeviceId::PCI_ANY_ID, in from_id()
134 subdevice: DeviceId::PCI_ANY_ID, in from_id()
144 /// Create a new `pci::DeviceId` from a class number and mask.
147 vendor: DeviceId::PCI_ANY_ID, in from_class()
148 device: DeviceId::PCI_ANY_ID, in from_class()
149 subvendor: DeviceId::PCI_ANY_ID, in from_class()
150 subdevice: DeviceId::PCI_ANY_ID, in from_class()
160 // * `DeviceId` is a `#[repr(transparent)` wrapper of `pci_device_id` and does not add
163 unsafe impl RawDeviceId for DeviceId { implementation
174 pub type IdTable<T> = &'static dyn kernel::device_id::IdTable<DeviceId, T>;
181 $crate::pci::DeviceId,
204 /// (pci::DeviceId::from_id(bindings::PCI_VENDOR_ID_REDHAT, bindings::PCI_ANY_ID as _), ())