Home
last modified time | relevance | path

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

/Linux-v5.10/samples/vfio-mdev/
Dmtty.c129 struct mdev_state { struct
155 static int mtty_trigger_interrupt(struct mdev_state *mdev_state); argument
173 static void mtty_create_config_space(struct mdev_state *mdev_state) in mtty_create_config_space() argument
176 STORE_LE32((u32 *) &mdev_state->vconfig[0x0], 0x32534348); in mtty_create_config_space()
179 STORE_LE16((u16 *) &mdev_state->vconfig[0x4], 0x0001); in mtty_create_config_space()
182 STORE_LE16((u16 *) &mdev_state->vconfig[0x6], 0x0200); in mtty_create_config_space()
185 mdev_state->vconfig[0x8] = 0x10; in mtty_create_config_space()
188 mdev_state->vconfig[0x9] = 0x02; in mtty_create_config_space()
191 mdev_state->vconfig[0xa] = 0x00; in mtty_create_config_space()
194 mdev_state->vconfig[0xb] = 0x07; in mtty_create_config_space()
[all …]
Dmbochs.c156 struct mdev_state *mdev_state; member
162 struct mdev_state { struct
203 static struct page *__mbochs_get_page(struct mdev_state *mdev_state,
205 static struct page *mbochs_get_page(struct mdev_state *mdev_state,
218 static void mbochs_create_config_space(struct mdev_state *mdev_state) in mbochs_create_config_space() argument
220 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_VENDOR_ID], in mbochs_create_config_space()
222 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_DEVICE_ID], in mbochs_create_config_space()
224 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_SUBSYSTEM_VENDOR_ID], in mbochs_create_config_space()
226 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_SUBSYSTEM_ID], in mbochs_create_config_space()
229 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_COMMAND], in mbochs_create_config_space()
[all …]
Dmdpy.c90 struct mdev_state { struct
112 static void mdpy_create_config_space(struct mdev_state *mdev_state) in mdpy_create_config_space() argument
114 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_VENDOR_ID], in mdpy_create_config_space()
116 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_DEVICE_ID], in mdpy_create_config_space()
118 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_SUBSYSTEM_VENDOR_ID], in mdpy_create_config_space()
120 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_SUBSYSTEM_ID], in mdpy_create_config_space()
123 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_COMMAND], in mdpy_create_config_space()
125 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_STATUS], in mdpy_create_config_space()
127 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_CLASS_DEVICE], in mdpy_create_config_space()
129 mdev_state->vconfig[PCI_CLASS_REVISION] = 0x01; in mdpy_create_config_space()
[all …]