Home
last modified time | relevance | path

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

/samples/vfio-mdev/
Dmtty.c139 u32 bar_mask[VFIO_PCI_NUM_REGIONS]; member
201 mdev_state->bar_mask[0] = ~(MTTY_IO_BAR_SIZE) + 1; in mtty_create_config_space()
206 mdev_state->bar_mask[1] = ~(MTTY_IO_BAR_SIZE) + 1; in mtty_create_config_space()
242 u32 cfg_addr, bar_mask, bar_index = 0; in handle_pci_cfg_write() local
274 bar_mask = mdev_state->bar_mask[bar_index]; in handle_pci_cfg_write()
275 cfg_addr = (cfg_addr & bar_mask); in handle_pci_cfg_write()
Dmdpy.c94 u32 bar_mask; member
127 mdev_state->bar_mask = ~(mdev_state->memsize) + 1; in mdpy_create_config_space()
153 cfg_addr = (cfg_addr & mdev_state->bar_mask); in handle_pci_cfg_write()
Dmbochs.c166 u64 bar_mask[3]; member
231 mdev_state->bar_mask[0] = ~(mdev_state->memsize) + 1; in mbochs_create_config_space()
236 mdev_state->bar_mask[2] = ~(MBOCHS_MMIO_BAR_SIZE) + 1; in mbochs_create_config_space()
310 cfg_addr = (cfg_addr & mdev_state->bar_mask[index]); in handle_pci_cfg_write()