Loading rust/kernel/pci.rs +1 −1 Original line number Diff line number Diff line Loading @@ -348,7 +348,7 @@ impl Device { /// // Get an instance of `Vendor`. /// let vendor = pdev.vendor_id(); /// dev_info!( /// pdev.as_ref(), /// pdev, /// "Device: Vendor={}, Device=0x{:x}\n", /// vendor, /// pdev.device_id() Loading rust/kernel/pci/id.rs +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ /// fn probe_device(pdev: &pci::Device<Core>) -> Result { /// let pci_class = pdev.pci_class(); /// dev_info!( /// pdev.as_ref(), /// pdev, /// "Detected PCI class: {}\n", /// pci_class /// ); Loading samples/rust/rust_driver_pci.rs +3 −3 Original line number Diff line number Diff line Loading @@ -101,7 +101,7 @@ fn probe(pdev: &pci::Device<Core>, info: &Self::IdInfo) -> impl PinInit<Self, Er pin_init::pin_init_scope(move || { let vendor = pdev.vendor_id(); dev_dbg!( pdev.as_ref(), pdev, "Probe Rust PCI driver sample (PCI ID: {}, 0x{:x}).\n", vendor, pdev.device_id() Loading @@ -117,7 +117,7 @@ fn probe(pdev: &pci::Device<Core>, info: &Self::IdInfo) -> impl PinInit<Self, Er let bar = bar.access(pdev.as_ref())?; dev_info!( pdev.as_ref(), pdev, "pci-testdev data-match count: {}\n", Self::testdev(info, bar)? ); Loading @@ -139,7 +139,7 @@ fn unbind(pdev: &pci::Device<Core>, this: Pin<&Self>) { #[pinned_drop] impl PinnedDrop for SampleDriver { fn drop(self: Pin<&mut Self>) { dev_dbg!(self.pdev.as_ref(), "Remove Rust PCI driver sample.\n"); dev_dbg!(self.pdev, "Remove Rust PCI driver sample.\n"); } } Loading Loading
rust/kernel/pci.rs +1 −1 Original line number Diff line number Diff line Loading @@ -348,7 +348,7 @@ impl Device { /// // Get an instance of `Vendor`. /// let vendor = pdev.vendor_id(); /// dev_info!( /// pdev.as_ref(), /// pdev, /// "Device: Vendor={}, Device=0x{:x}\n", /// vendor, /// pdev.device_id() Loading
rust/kernel/pci/id.rs +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ /// fn probe_device(pdev: &pci::Device<Core>) -> Result { /// let pci_class = pdev.pci_class(); /// dev_info!( /// pdev.as_ref(), /// pdev, /// "Detected PCI class: {}\n", /// pci_class /// ); Loading
samples/rust/rust_driver_pci.rs +3 −3 Original line number Diff line number Diff line Loading @@ -101,7 +101,7 @@ fn probe(pdev: &pci::Device<Core>, info: &Self::IdInfo) -> impl PinInit<Self, Er pin_init::pin_init_scope(move || { let vendor = pdev.vendor_id(); dev_dbg!( pdev.as_ref(), pdev, "Probe Rust PCI driver sample (PCI ID: {}, 0x{:x}).\n", vendor, pdev.device_id() Loading @@ -117,7 +117,7 @@ fn probe(pdev: &pci::Device<Core>, info: &Self::IdInfo) -> impl PinInit<Self, Er let bar = bar.access(pdev.as_ref())?; dev_info!( pdev.as_ref(), pdev, "pci-testdev data-match count: {}\n", Self::testdev(info, bar)? ); Loading @@ -139,7 +139,7 @@ fn unbind(pdev: &pci::Device<Core>, this: Pin<&Self>) { #[pinned_drop] impl PinnedDrop for SampleDriver { fn drop(self: Pin<&mut Self>) { dev_dbg!(self.pdev.as_ref(), "Remove Rust PCI driver sample.\n"); dev_dbg!(self.pdev, "Remove Rust PCI driver sample.\n"); } } Loading