Lines Matching refs:cte

542 	struct vgic_translation_cache_entry *cte;  in __vgic_its_check_cache()  local
544 list_for_each_entry(cte, &dist->lpi_translation_cache, entry) { in __vgic_its_check_cache()
549 if (!cte->irq) in __vgic_its_check_cache()
552 if (cte->db != db || cte->devid != devid || in __vgic_its_check_cache()
553 cte->eventid != eventid) in __vgic_its_check_cache()
560 if (!list_is_first(&cte->entry, &dist->lpi_translation_cache)) in __vgic_its_check_cache()
561 list_move(&cte->entry, &dist->lpi_translation_cache); in __vgic_its_check_cache()
563 return cte->irq; in __vgic_its_check_cache()
588 struct vgic_translation_cache_entry *cte; in vgic_its_cache_translation() local
611 cte = list_last_entry(&dist->lpi_translation_cache, in vgic_its_cache_translation()
612 typeof(*cte), entry); in vgic_its_cache_translation()
619 if (cte->irq) in vgic_its_cache_translation()
620 __vgic_put_lpi_locked(kvm, cte->irq); in vgic_its_cache_translation()
624 cte->db = db; in vgic_its_cache_translation()
625 cte->devid = devid; in vgic_its_cache_translation()
626 cte->eventid = eventid; in vgic_its_cache_translation()
627 cte->irq = irq; in vgic_its_cache_translation()
630 list_move(&cte->entry, &dist->lpi_translation_cache); in vgic_its_cache_translation()
639 struct vgic_translation_cache_entry *cte; in vgic_its_invalidate_cache() local
644 list_for_each_entry(cte, &dist->lpi_translation_cache, entry) { in vgic_its_invalidate_cache()
649 if (!cte->irq) in vgic_its_invalidate_cache()
652 __vgic_put_lpi_locked(kvm, cte->irq); in vgic_its_invalidate_cache()
653 cte->irq = NULL; in vgic_its_invalidate_cache()
1839 struct vgic_translation_cache_entry *cte; in vgic_lpi_translation_cache_init() local
1842 cte = kzalloc(sizeof(*cte), GFP_KERNEL); in vgic_lpi_translation_cache_init()
1843 if (WARN_ON(!cte)) in vgic_lpi_translation_cache_init()
1846 INIT_LIST_HEAD(&cte->entry); in vgic_lpi_translation_cache_init()
1847 list_add(&cte->entry, &dist->lpi_translation_cache); in vgic_lpi_translation_cache_init()
1854 struct vgic_translation_cache_entry *cte, *tmp; in vgic_lpi_translation_cache_destroy() local
1858 list_for_each_entry_safe(cte, tmp, in vgic_lpi_translation_cache_destroy()
1860 list_del(&cte->entry); in vgic_lpi_translation_cache_destroy()
1861 kfree(cte); in vgic_lpi_translation_cache_destroy()