Home
last modified time | relevance | path

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

/Linux-v4.19/samples/vfio-mdev/
Dmtty.c133 struct mdev_state { struct
162 static struct mdev_state *find_mdev_state_by_uuid(uuid_le uuid) in find_mdev_state_by_uuid() argument
164 struct mdev_state *mds; in find_mdev_state_by_uuid()
188 static void mtty_create_config_space(struct mdev_state *mdev_state) in mtty_create_config_space() argument
191 STORE_LE32((u32 *) &mdev_state->vconfig[0x0], 0x32534348); in mtty_create_config_space()
194 STORE_LE16((u16 *) &mdev_state->vconfig[0x4], 0x0001); in mtty_create_config_space()
197 STORE_LE16((u16 *) &mdev_state->vconfig[0x6], 0x0200); in mtty_create_config_space()
200 mdev_state->vconfig[0x8] = 0x10; in mtty_create_config_space()
203 mdev_state->vconfig[0x9] = 0x02; in mtty_create_config_space()
206 mdev_state->vconfig[0xa] = 0x00; in mtty_create_config_space()
[all …]
Dmbochs.c135 struct mdev_state *mdev_state; member
141 struct mdev_state { struct
181 static struct page *__mbochs_get_page(struct mdev_state *mdev_state,
183 static struct page *mbochs_get_page(struct mdev_state *mdev_state,
196 static void mbochs_create_config_space(struct mdev_state *mdev_state) in mbochs_create_config_space() argument
198 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_VENDOR_ID], in mbochs_create_config_space()
200 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_DEVICE_ID], in mbochs_create_config_space()
202 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_SUBSYSTEM_VENDOR_ID], in mbochs_create_config_space()
204 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_SUBSYSTEM_ID], in mbochs_create_config_space()
207 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 …]