Home
last modified time | relevance | path

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

/linux-6.6.21/arch/riscv/kvm/
Daia.c36 struct aia_hgei_control *hgctrl = get_cpu_ptr(&aia_hgei); in aia_find_hgei() local
38 raw_spin_lock_irqsave(&hgctrl->lock, flags); in aia_find_hgei()
42 if (hgctrl->owners[i] == owner) { in aia_find_hgei()
48 raw_spin_unlock_irqrestore(&hgctrl->lock, flags); in aia_find_hgei()
397 struct aia_hgei_control *hgctrl = per_cpu_ptr(&aia_hgei, cpu); in kvm_riscv_aia_alloc_hgei() local
399 if (!kvm_riscv_aia_available() || !hgctrl) in kvm_riscv_aia_alloc_hgei()
402 raw_spin_lock_irqsave(&hgctrl->lock, flags); in kvm_riscv_aia_alloc_hgei()
404 if (hgctrl->free_bitmap) { in kvm_riscv_aia_alloc_hgei()
405 ret = __ffs(hgctrl->free_bitmap); in kvm_riscv_aia_alloc_hgei()
406 hgctrl->free_bitmap &= ~BIT(ret); in kvm_riscv_aia_alloc_hgei()
[all …]