Searched refs:vtpci_common (Results 1 – 4 of 4) sorted by relevance
| /src/sys/dev/virtio/pci/ |
| H A D | virtio_pci.h | 44 struct vtpci_common { struct 83 vtpci_child_device(struct vtpci_common *cn) in vtpci_child_device() argument 89 vtpci_is_msix_available(struct vtpci_common *cn) in vtpci_is_msix_available() 95 vtpci_is_msix_enabled(struct vtpci_common *cn) in vtpci_is_msix_enabled() 101 vtpci_is_modern(struct vtpci_common *cn) in vtpci_is_modern() 107 vtpci_virtqueue_count(struct vtpci_common *cn) in vtpci_virtqueue_count() 112 void vtpci_init(struct vtpci_common *cn, device_t dev, bool modern); 113 int vtpci_add_child(struct vtpci_common *cn); 114 int vtpci_delete_child(struct vtpci_common *cn); 115 void vtpci_child_detached(struct vtpci_common *cn); [all …]
|
| H A D | virtio_pci.c | 54 static void vtpci_describe_features(struct vtpci_common *, const char *, 56 static int vtpci_alloc_msix(struct vtpci_common *, int); 57 static int vtpci_alloc_msi(struct vtpci_common *); 58 static int vtpci_alloc_intr_msix_pervq(struct vtpci_common *); 59 static int vtpci_alloc_intr_msix_shared(struct vtpci_common *); 60 static int vtpci_alloc_intr_msi(struct vtpci_common *); 61 static int vtpci_alloc_intr_intx(struct vtpci_common *); 62 static int vtpci_alloc_interrupt(struct vtpci_common *, int, int, 64 static void vtpci_free_interrupt(struct vtpci_common *, 67 static void vtpci_free_interrupts(struct vtpci_common *); [all …]
|
| H A D | virtio_pci_legacy.c | 58 struct vtpci_common vtpci_common; member 112 VIRTIO_PCI_CONFIG_OFF(vtpci_is_msix_enabled(&(_sc)->vtpci_common)) 223 vtpci_init(&sc->vtpci_common, dev, false); in vtpci_legacy_attach() 231 if (vtpci_is_msix_available(&sc->vtpci_common) && in vtpci_legacy_attach() 243 error = vtpci_add_child(&sc->vtpci_common); in vtpci_legacy_attach() 266 error = vtpci_delete_child(&sc->vtpci_common); in vtpci_legacy_detach() 313 vtpci_child_detached(&sc->vtpci_common); in vtpci_legacy_child_detached() 324 struct vtpci_common *cn; in vtpci_legacy_read_ivar() 327 cn = &sc->vtpci_common; in vtpci_legacy_read_ivar() 347 struct vtpci_common *cn; in vtpci_legacy_write_ivar() [all …]
|
| H A D | virtio_pci_modern.c | 73 struct vtpci_common vtpci_common; member 289 vtpci_init(&sc->vtpci_common, dev, true); in vtpci_modern_attach() 309 error = vtpci_add_child(&sc->vtpci_common); in vtpci_modern_attach() 332 error = vtpci_delete_child(&sc->vtpci_common); in vtpci_modern_detach() 378 vtpci_child_detached(&sc->vtpci_common); in vtpci_modern_child_detached() 389 struct vtpci_common *cn; in vtpci_modern_read_ivar() 392 cn = &sc->vtpci_common; in vtpci_modern_read_ivar() 413 struct vtpci_common *cn; in vtpci_modern_write_ivar() 416 cn = &sc->vtpci_common; in vtpci_modern_write_ivar() 444 features = vtpci_negotiate_features(&sc->vtpci_common, in vtpci_modern_negotiate_features() [all …]
|