Home
last modified time | relevance | path

Searched refs:vconfig (Results 1 - 14 of 14) sorted by relevance

/kernel/linux/linux-5.10/samples/vfio-mdev/
H A Dmtty.c134 u8 *vconfig; member
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()
198 STORE_LE32((u32 *) &mdev_state->vconfig[0x10], 0x000001); in mtty_create_config_space()
203 STORE_LE32((u32 *) &mdev_state->vconfig[ in mtty_create_config_space()
[all...]
H A 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_ in mdpy_create_config_space()
[all...]
H A Dmbochs.c163 u8 *vconfig; member
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()
231 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_CLASS_DEVICE], in mbochs_create_config_space()
233 mdev_state->vconfig[PCI_CLASS_REVISION] = 0x01; in mbochs_create_config_space()
235 STORE_LE32((u32 *) &mdev_state->vconfig[PCI_BASE_ADDRESS_0], in mbochs_create_config_space()
241 STORE_LE32((u32 *) &mdev_state->vconfig[PCI_BASE_ADDRESS_ in mbochs_create_config_space()
[all...]
/kernel/linux/linux-6.6/samples/vfio-mdev/
H A Dmtty.c133 u8 *vconfig; member
218 STORE_LE32((u32 *) &mdev_state->vconfig[0x0], 0x32534348); in mtty_create_config_space()
221 STORE_LE16((u16 *) &mdev_state->vconfig[0x4], 0x0001); in mtty_create_config_space()
224 STORE_LE16((u16 *) &mdev_state->vconfig[0x6], 0x0200); in mtty_create_config_space()
227 mdev_state->vconfig[0x8] = 0x10; in mtty_create_config_space()
230 mdev_state->vconfig[0x9] = 0x02; in mtty_create_config_space()
233 mdev_state->vconfig[0xa] = 0x00; in mtty_create_config_space()
236 mdev_state->vconfig[0xb] = 0x07; in mtty_create_config_space()
240 STORE_LE32((u32 *) &mdev_state->vconfig[0x10], 0x000001); in mtty_create_config_space()
245 STORE_LE32((u32 *) &mdev_state->vconfig[ in mtty_create_config_space()
[all...]
H A Dmdpy.c96 u8 *vconfig; member
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()
126 STORE_LE32((u32 *) &mdev_state->vconfig[PCI_BASE_ADDRESS_ in mdpy_create_config_space()
[all...]
H A Dmbochs.c173 u8 *vconfig; member
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()
231 STORE_LE16((u16 *) &mdev_state->vconfig[PCI_CLASS_DEVICE], in mbochs_create_config_space()
233 mdev_state->vconfig[PCI_CLASS_REVISION] = 0x01; in mbochs_create_config_space()
235 STORE_LE32((u32 *) &mdev_state->vconfig[PCI_BASE_ADDRESS_0], in mbochs_create_config_space()
241 STORE_LE32((u32 *) &mdev_state->vconfig[PCI_BASE_ADDRESS_ in mbochs_create_config_space()
[all...]
/kernel/linux/linux-6.6/drivers/vfio/pci/
H A Dvfio_pci_config.c181 memcpy(val, vdev->vconfig + pos, count); in vfio_default_config_read()
214 /* Virtualized and writable bits go to vconfig */ in vfio_default_config_write()
218 memcpy(&virt_val, vdev->vconfig + pos, count); in vfio_default_config_write()
223 memcpy(vdev->vconfig + pos, &virt_val, count); in vfio_default_config_write()
260 memcpy(val, vdev->vconfig + pos, count); in vfio_direct_config_read()
263 memcpy(val, vdev->vconfig + pos, in vfio_direct_config_read()
266 memcpy(val, vdev->vconfig + pos, 1); in vfio_direct_config_read()
304 memcpy(vdev->vconfig + pos, &val, count); in vfio_virt_config_write()
312 memcpy(val, vdev->vconfig + pos, count); in vfio_virt_config_read()
403 u16 cmd = le16_to_cpu(*(__le16 *)&vdev->vconfig[PCI_COMMAN in __vfio_pci_memory_enabled()
1732 u8 *map, *vconfig; vfio_config_init() local
[all...]
H A Dvfio_pci_igd.c170 __le32 *dwordp = (__le32 *)(vdev->vconfig + OPREGION_PCI_ADDR); in vfio_pci_igd_opregion_init()
273 /* Fill vconfig with the hw value and virtualize register */ in vfio_pci_igd_opregion_init()
/kernel/linux/linux-5.10/drivers/vfio/pci/
H A Dvfio_pci_config.c180 memcpy(val, vdev->vconfig + pos, count); in vfio_default_config_read()
213 /* Virtualized and writable bits go to vconfig */ in vfio_default_config_write()
217 memcpy(&virt_val, vdev->vconfig + pos, count); in vfio_default_config_write()
222 memcpy(vdev->vconfig + pos, &virt_val, count); in vfio_default_config_write()
259 memcpy(val, vdev->vconfig + pos, count); in vfio_direct_config_read()
262 memcpy(val, vdev->vconfig + pos, in vfio_direct_config_read()
265 memcpy(val, vdev->vconfig + pos, 1); in vfio_direct_config_read()
303 memcpy(vdev->vconfig + pos, &val, count); in vfio_virt_config_write()
311 memcpy(val, vdev->vconfig + pos, count); in vfio_virt_config_read()
402 u16 cmd = le16_to_cpu(*(__le16 *)&vdev->vconfig[PCI_COMMAN in __vfio_pci_memory_enabled()
1675 u8 *map, *vconfig; vfio_config_init() local
[all...]
H A Dvfio_pci_private.h107 u8 *vconfig; member
H A Dvfio_pci_igd.c57 __le32 *dwordp = (__le32 *)(vdev->vconfig + OPREGION_PCI_ADDR); in vfio_pci_igd_opregion_init()
102 /* Fill vconfig with the hw value and virtualize register */ in vfio_pci_igd_opregion_init()
/kernel/linux/linux-6.6/include/linux/
H A Dvfio_pci_core.h58 u8 *vconfig; member
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/
H A Drtnetlink.sh459 vconfig rem $swp1.10 &> /dev/null
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/mlxsw/
H A Drtnetlink.sh391 vconfig rem $swp1.10 &> /dev/null

Completed in 12 milliseconds