Searched refs:mdev_state (Results  1 – 3 of 3) sorted by relevance
| /Linux-v5.15/samples/vfio-mdev/ | 
| D | mtty.c | 129 struct mdev_state {  struct 157 static int mtty_trigger_interrupt(struct mdev_state *mdev_state);  argument 175 static void mtty_create_config_space(struct mdev_state *mdev_state)  in mtty_create_config_space()  argument 178 	STORE_LE32((u32 *) &mdev_state->vconfig[0x0], 0x32534348);  in mtty_create_config_space() 181 	STORE_LE16((u16 *) &mdev_state->vconfig[0x4], 0x0001);  in mtty_create_config_space() 184 	STORE_LE16((u16 *) &mdev_state->vconfig[0x6], 0x0200);  in mtty_create_config_space() 187 	mdev_state->vconfig[0x8] =  0x10;  in mtty_create_config_space() 190 	mdev_state->vconfig[0x9] =  0x02;  in mtty_create_config_space() 193 	mdev_state->vconfig[0xa] =  0x00;  in mtty_create_config_space() 196 	mdev_state->vconfig[0xb] =  0x07;  in mtty_create_config_space() [all …] 
 | 
| D | mbochs.c | 157 	struct mdev_state *mdev_state;  member 163 struct mdev_state {  struct 205 static struct page *__mbochs_get_page(struct mdev_state *mdev_state, 207 static struct page *mbochs_get_page(struct mdev_state *mdev_state, 210 static void mbochs_create_config_space(struct mdev_state *mdev_state)  in mbochs_create_config_space()  argument 212 	STORE_LE16((u16 *) &mdev_state->vconfig[PCI_VENDOR_ID],  in mbochs_create_config_space() 214 	STORE_LE16((u16 *) &mdev_state->vconfig[PCI_DEVICE_ID],  in mbochs_create_config_space() 216 	STORE_LE16((u16 *) &mdev_state->vconfig[PCI_SUBSYSTEM_VENDOR_ID],  in mbochs_create_config_space() 218 	STORE_LE16((u16 *) &mdev_state->vconfig[PCI_SUBSYSTEM_ID],  in mbochs_create_config_space() 221 	STORE_LE16((u16 *) &mdev_state->vconfig[PCI_COMMAND],  in mbochs_create_config_space() [all …] 
 | 
| D | mdpy.c | 91 struct mdev_state {  struct 104 static void mdpy_create_config_space(struct mdev_state *mdev_state)  in mdpy_create_config_space()  argument 106 	STORE_LE16((u16 *) &mdev_state->vconfig[PCI_VENDOR_ID],  in mdpy_create_config_space() 108 	STORE_LE16((u16 *) &mdev_state->vconfig[PCI_DEVICE_ID],  in mdpy_create_config_space() 110 	STORE_LE16((u16 *) &mdev_state->vconfig[PCI_SUBSYSTEM_VENDOR_ID],  in mdpy_create_config_space() 112 	STORE_LE16((u16 *) &mdev_state->vconfig[PCI_SUBSYSTEM_ID],  in mdpy_create_config_space() 115 	STORE_LE16((u16 *) &mdev_state->vconfig[PCI_COMMAND],  in mdpy_create_config_space() 117 	STORE_LE16((u16 *) &mdev_state->vconfig[PCI_STATUS],  in mdpy_create_config_space() 119 	STORE_LE16((u16 *) &mdev_state->vconfig[PCI_CLASS_DEVICE],  in mdpy_create_config_space() 121 	mdev_state->vconfig[PCI_CLASS_REVISION] =  0x01;  in mdpy_create_config_space() [all …] 
 |