Lines Matching full:cn
83 vtpci_child_device(struct vtpci_common *cn) in vtpci_child_device() argument
85 return (cn->vtpci_child_dev); in vtpci_child_device()
89 vtpci_is_msix_available(struct vtpci_common *cn) in vtpci_is_msix_available() argument
91 return ((cn->vtpci_flags & VTPCI_FLAG_NO_MSIX) == 0); in vtpci_is_msix_available()
95 vtpci_is_msix_enabled(struct vtpci_common *cn) in vtpci_is_msix_enabled() argument
97 return ((cn->vtpci_flags & VTPCI_FLAG_MSIX) != 0); in vtpci_is_msix_enabled()
101 vtpci_is_modern(struct vtpci_common *cn) in vtpci_is_modern() argument
103 return ((cn->vtpci_flags & VTPCI_FLAG_MODERN) != 0); in vtpci_is_modern()
107 vtpci_virtqueue_count(struct vtpci_common *cn) in vtpci_virtqueue_count() argument
109 return (cn->vtpci_nvqs); 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);
116 int vtpci_reinit(struct vtpci_common *cn);
118 uint64_t vtpci_negotiate_features(struct vtpci_common *cn,
120 bool vtpci_with_feature(struct vtpci_common *cn, uint64_t feature);
122 int vtpci_read_ivar(struct vtpci_common *cn, int index, uintptr_t *result);
123 int vtpci_write_ivar(struct vtpci_common *cn, int index, uintptr_t value);
125 int vtpci_alloc_virtqueues(struct vtpci_common *cn, int nvqs,
127 int vtpci_setup_interrupts(struct vtpci_common *cn, enum intr_type type);
128 void vtpci_release_child_resources(struct vtpci_common *cn);