Home
last modified time | relevance | path

Searched refs:vconfig (Results 1 – 7 of 7) sorted by relevance

/Linux-v4.19/samples/vfio-mdev/
Dmtty.c138 u8 *vconfig; member
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()
209 mdev_state->vconfig[0xb] = 0x07; in mtty_create_config_space()
213 STORE_LE32((u32 *) &mdev_state->vconfig[0x10], 0x000001); in mtty_create_config_space()
218 STORE_LE32((u32 *) &mdev_state->vconfig[0x14], 0x000001); in mtty_create_config_space()
[all …]
Dmdpy.c91 u8 *vconfig; member
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()
131 STORE_LE32((u32 *) &mdev_state->vconfig[PCI_BASE_ADDRESS_0], in mdpy_create_config_space()
[all …]
Dmbochs.c142 u8 *vconfig; member
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()
209 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_CLASS_DEVICE], in mbochs_create_config_space()
211 mdev_state->vconfig[PCI_CLASS_REVISION] = 0x01; in mbochs_create_config_space()
213 STORE_LE32((u32 *) &mdev_state->vconfig[PCI_BASE_ADDRESS_0], in mbochs_create_config_space()
219 STORE_LE32((u32 *) &mdev_state->vconfig[PCI_BASE_ADDRESS_2], in mbochs_create_config_space()
[all …]
/Linux-v4.19/drivers/vfio/pci/
Dvfio_pci_config.c183 memcpy(val, vdev->vconfig + pos, count); in vfio_default_config_read()
220 memcpy(&virt_val, vdev->vconfig + pos, count); in vfio_default_config_write()
225 memcpy(vdev->vconfig + pos, &virt_val, count); in vfio_default_config_write()
262 memcpy(val, vdev->vconfig + pos, count); in vfio_direct_config_read()
265 memcpy(val, vdev->vconfig + pos, in vfio_direct_config_read()
268 memcpy(val, vdev->vconfig + pos, 1); in vfio_direct_config_read()
306 memcpy(vdev->vconfig + pos, &val, count); in vfio_virt_config_write()
314 memcpy(val, vdev->vconfig + pos, count); in vfio_virt_config_read()
460 bar = (__le32 *)&vdev->vconfig[PCI_BASE_ADDRESS_0]; in vfio_bar_fixup()
480 bar = (__le32 *)&vdev->vconfig[PCI_ROM_ADDRESS]; in vfio_bar_fixup()
[all …]
Dvfio_pci_private.h84 u8 *vconfig; member
Dvfio_pci_igd.c60 __le32 *dwordp = (__le32 *)(vdev->vconfig + OPREGION_PCI_ADDR); in vfio_pci_igd_opregion_init()
/Linux-v4.19/Documentation/networking/
Dti-cpsw.txt29 map has to be created with ip or vconfig tool