Home
last modified time | relevance | path

Searched refs:mdev_state (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/samples/vfio-mdev/
Dmtty.c141 struct mdev_state;
146 struct mdev_state *mdev_state; member
153 struct mdev_state { struct
216 static bool is_intx(struct mdev_state *mdev_state) in is_intx() argument
218 return mdev_state->irq_index == VFIO_PCI_INTX_IRQ_INDEX; in is_intx()
221 static bool is_msi(struct mdev_state *mdev_state) in is_msi() argument
223 return mdev_state->irq_index == VFIO_PCI_MSI_IRQ_INDEX; in is_msi()
226 static bool is_noirq(struct mdev_state *mdev_state) in is_noirq() argument
228 return !is_intx(mdev_state) && !is_msi(mdev_state); in is_noirq()
231 static void mtty_trigger_interrupt(struct mdev_state *mdev_state) in mtty_trigger_interrupt() argument
[all …]
Dmdpy.c97 struct mdev_state { struct
110 static void mdpy_create_config_space(struct mdev_state *mdev_state) in mdpy_create_config_space() argument
112 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_VENDOR_ID], in mdpy_create_config_space()
114 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_DEVICE_ID], in mdpy_create_config_space()
116 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_SUBSYSTEM_VENDOR_ID], in mdpy_create_config_space()
118 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_SUBSYSTEM_ID], in mdpy_create_config_space()
121 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_COMMAND], in mdpy_create_config_space()
123 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_STATUS], in mdpy_create_config_space()
125 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_CLASS_DEVICE], in mdpy_create_config_space()
127 mdev_state->vconfig[PCI_CLASS_REVISION] = 0x01; in mdpy_create_config_space()
[all …]
Dmbochs.c168 struct mdev_state *mdev_state; member
174 struct mdev_state { struct
216 static struct page *__mbochs_get_page(struct mdev_state *mdev_state,
218 static struct page *mbochs_get_page(struct mdev_state *mdev_state,
221 static void mbochs_create_config_space(struct mdev_state *mdev_state) in mbochs_create_config_space() argument
223 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_VENDOR_ID], in mbochs_create_config_space()
225 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_DEVICE_ID], in mbochs_create_config_space()
227 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_SUBSYSTEM_VENDOR_ID], in mbochs_create_config_space()
229 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_SUBSYSTEM_ID], in mbochs_create_config_space()
232 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_COMMAND], in mbochs_create_config_space()
[all …]