Lines Matching full:vendor
41 Vendor, //
171 /// Create a new `pci::DeviceId` from a vendor and device ID.
173 pub const fn from_id(vendor: Vendor, device: u32) -> Self { in from_id() argument
175 vendor: vendor.as_raw() as u32, in from_id()
192 vendor: DeviceId::PCI_ANY_ID, in from_class()
203 /// Create a new [`DeviceId`] from a class number, mask, and specific vendor.
205 /// This is more targeted than [`DeviceId::from_class`]: in addition to matching by [`Vendor`],
212 vendor: Vendor, in from_class_and_vendor() argument
215 vendor: vendor.as_raw() as u32, in from_class_and_vendor()
274 /// pci::DeviceId::from_id(pci::Vendor::REDHAT, bindings::PCI_ANY_ID as u32),
351 /// Returns the PCI vendor ID as [`Vendor`].
356 /// # use kernel::{device::Core, pci::{self, Vendor}, prelude::*};
358 /// // Get an instance of `Vendor`.
359 /// let vendor = pdev.vendor_id();
362 /// "Device: Vendor={}, Device=0x{:x}\n",
363 /// vendor,
370 pub fn vendor_id(&self) -> Vendor { in vendor_id() argument
372 let vendor_id = unsafe { (*self.as_raw()).vendor }; in vendor_id()
373 Vendor::from_raw(vendor_id) in vendor_id()
400 /// Returns the PCI subsystem vendor ID.