Searched refs:mdev_state (Results 1 – 3 of 3) sorted by relevance
/linux-6.1.9/samples/vfio-mdev/ |
D | mtty.c | 128 struct mdev_state { struct 171 static int mtty_trigger_interrupt(struct mdev_state *mdev_state); 189 static void mtty_create_config_space(struct mdev_state *mdev_state) in mtty_create_config_space() argument 192 STORE_LE32((u32 *) &mdev_state->vconfig[0x0], 0x32534348); in mtty_create_config_space() 195 STORE_LE16((u16 *) &mdev_state->vconfig[0x4], 0x0001); in mtty_create_config_space() 198 STORE_LE16((u16 *) &mdev_state->vconfig[0x6], 0x0200); in mtty_create_config_space() 201 mdev_state->vconfig[0x8] = 0x10; in mtty_create_config_space() 204 mdev_state->vconfig[0x9] = 0x02; in mtty_create_config_space() 207 mdev_state->vconfig[0xa] = 0x00; in mtty_create_config_space() 210 mdev_state->vconfig[0xb] = 0x07; in mtty_create_config_space() [all …]
|
D | mdpy.c | 94 struct mdev_state { struct 107 static void mdpy_create_config_space(struct mdev_state *mdev_state) in mdpy_create_config_space() argument 109 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_VENDOR_ID], in mdpy_create_config_space() 111 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_DEVICE_ID], in mdpy_create_config_space() 113 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_SUBSYSTEM_VENDOR_ID], in mdpy_create_config_space() 115 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_SUBSYSTEM_ID], in mdpy_create_config_space() 118 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_COMMAND], in mdpy_create_config_space() 120 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_STATUS], in mdpy_create_config_space() 122 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_CLASS_DEVICE], in mdpy_create_config_space() 124 mdev_state->vconfig[PCI_CLASS_REVISION] = 0x01; in mdpy_create_config_space() [all …]
|
D | mbochs.c | 165 struct mdev_state *mdev_state; member 171 struct mdev_state { struct 213 static struct page *__mbochs_get_page(struct mdev_state *mdev_state, 215 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 …]
|