Lines Matching refs:bar_index
256 u32 cfg_addr, bar_mask, bar_index = 0; in handle_pci_cfg_write() local
275 bar_index = 0; in handle_pci_cfg_write()
277 bar_index = 1; in handle_pci_cfg_write()
279 if ((mdev_state->nr_ports == 1) && (bar_index == 1)) { in handle_pci_cfg_write()
285 pr_info("BAR%d addr 0x%x\n", bar_index, cfg_addr); in handle_pci_cfg_write()
288 bar_mask = mdev_state->bar_mask[bar_index]; in handle_pci_cfg_write()
1050 u32 bar_index; in mtty_get_region_info() local
1052 bar_index = region_info->index; in mtty_get_region_info()
1053 if (bar_index >= VFIO_PCI_NUM_REGIONS) in mtty_get_region_info()
1058 switch (bar_index) { in mtty_get_region_info()
1074 mdev_state->region_info[bar_index].size = size; in mtty_get_region_info()
1075 mdev_state->region_info[bar_index].vfio_offset = in mtty_get_region_info()
1076 MTTY_VFIO_PCI_INDEX_TO_OFFSET(bar_index); in mtty_get_region_info()
1079 region_info->offset = MTTY_VFIO_PCI_INDEX_TO_OFFSET(bar_index); in mtty_get_region_info()