Lines Matching refs:bar_index
313 u32 cfg_addr, bar_mask, bar_index = 0;
332 bar_index = 0;
334 bar_index = 1;
336 if ((mdev_state->nr_ports == 1) && (bar_index == 1)) {
342 pr_info("BAR%d addr 0x%x\n", bar_index, cfg_addr);
345 bar_mask = mdev_state->bar_mask[bar_index];
1725 u32 bar_index;
1727 bar_index = region_info->index;
1728 if (bar_index >= VFIO_PCI_NUM_REGIONS)
1733 switch (bar_index) {
1749 mdev_state->region_info[bar_index].size = size;
1750 mdev_state->region_info[bar_index].vfio_offset =
1751 MTTY_VFIO_PCI_INDEX_TO_OFFSET(bar_index);
1754 region_info->offset = MTTY_VFIO_PCI_INDEX_TO_OFFSET(bar_index);