Lines Matching refs:base
95 static bool is_pci_mem_bar_base_valid(struct acrn_vm *vm, uint64_t base) in is_pci_mem_bar_base_valid() argument
98 struct pci_mmio_res *res = (base < (1UL << 32UL)) ? &(vpci->res32): &(vpci->res64); in is_pci_mem_bar_base_valid()
100 return ((base >= res->start) && (base <= res->end)); in is_pci_mem_bar_base_valid()
106 uint64_t base = 0UL; in pci_vdev_update_vbar_base() local
114 base = lo & vbar->mask; in pci_vdev_update_vbar_base()
120 base |= ((uint64_t)hi << 32U); in pci_vdev_update_vbar_base()
122 base = 0UL; in pci_vdev_update_vbar_base()
130 base &= 0xffffUL; in pci_vdev_update_vbar_base()
134 if (base != 0UL) { in pci_vdev_update_vbar_base()
150 base = 0UL; in pci_vdev_update_vbar_base()
153 if ((!is_pci_mem_bar_base_valid(vpci2vm(vdev->vpci), base)) in pci_vdev_update_vbar_base()
154 || (!mem_aligned_check(base, vdev->vbars[idx].size))) { in pci_vdev_update_vbar_base()
155 res = (base < (1UL << 32UL)) ? &(vdev->vpci->res32) : &(vdev->vpci->res64); in pci_vdev_update_vbar_base()
164 __func__, vdev->bdf.bits.b, vdev->bdf.bits.d, vdev->bdf.bits.f, idx, base, in pci_vdev_update_vbar_base()
170 vdev->vbars[idx].base_gpa = base; in pci_vdev_update_vbar_base()