Lines Matching refs:event_map

162 	struct event_lpi_map	event_map;  member
227 return d->hwirq - its_dev->event_map.lpi_base; in its_get_event_id()
235 return its->collections + its_dev->event_map.col_map[event]; in dev_event_to_col()
241 if (WARN_ON_ONCE(event >= its_dev->event_map.nr_lpis)) in dev_event_to_vlpi_map()
244 return &its_dev->event_map.vlpi_maps[event]; in dev_event_to_vlpi_map()
280 cpu = its_dev->event_map.col_map[its_get_event_id(d)]; in irq_to_cpuid_lock()
1651 prev_cpu = its_dev->event_map.col_map[id]; in its_set_affinity()
1666 its_dev->event_map.col_map[id] = cpu; in its_set_affinity()
1814 raw_spin_lock(&its_dev->event_map.vlpi_lock); in its_vlpi_map()
1816 if (!its_dev->event_map.vm) { in its_vlpi_map()
1819 maps = kcalloc(its_dev->event_map.nr_lpis, sizeof(*maps), in its_vlpi_map()
1826 its_dev->event_map.vm = info->map->vm; in its_vlpi_map()
1827 its_dev->event_map.vlpi_maps = maps; in its_vlpi_map()
1828 } else if (its_dev->event_map.vm != info->map->vm) { in its_vlpi_map()
1834 its_dev->event_map.vlpi_maps[event] = *info->map; in its_vlpi_map()
1859 its_dev->event_map.nr_vlpis++; in its_vlpi_map()
1863 raw_spin_unlock(&its_dev->event_map.vlpi_lock); in its_vlpi_map()
1873 raw_spin_lock(&its_dev->event_map.vlpi_lock); in its_vlpi_get()
1877 if (!its_dev->event_map.vm || !map) { in its_vlpi_get()
1886 raw_spin_unlock(&its_dev->event_map.vlpi_lock); in its_vlpi_get()
1896 raw_spin_lock(&its_dev->event_map.vlpi_lock); in its_vlpi_unmap()
1898 if (!its_dev->event_map.vm || !irqd_is_forwarded_to_vcpu(d)) { in its_vlpi_unmap()
1914 its_unmap_vm(its_dev->its, its_dev->event_map.vm); in its_vlpi_unmap()
1920 if (!--its_dev->event_map.nr_vlpis) { in its_vlpi_unmap()
1921 its_dev->event_map.vm = NULL; in its_vlpi_unmap()
1922 kfree(its_dev->event_map.vlpi_maps); in its_vlpi_unmap()
1926 raw_spin_unlock(&its_dev->event_map.vlpi_lock); in its_vlpi_unmap()
1934 if (!its_dev->event_map.vm || !irqd_is_forwarded_to_vcpu(d)) in its_vlpi_prop_update()
3400 dev->event_map.lpi_map = lpi_map; in its_create_device()
3401 dev->event_map.col_map = col_map; in its_create_device()
3402 dev->event_map.lpi_base = lpi_base; in its_create_device()
3403 dev->event_map.nr_lpis = nr_lpis; in its_create_device()
3404 raw_spin_lock_init(&dev->event_map.vlpi_lock); in its_create_device()
3425 kfree(its_dev->event_map.col_map); in its_free_device()
3435 idx = bitmap_find_free_region(dev->event_map.lpi_map, in its_alloc_device_irq()
3436 dev->event_map.nr_lpis, in its_alloc_device_irq()
3441 *hwirq = dev->event_map.lpi_base + idx; in its_alloc_device_irq()
3563 (int)(hwirq + i - its_dev->event_map.lpi_base), in its_irq_domain_alloc()
3582 its_dev->event_map.col_map[event] = cpu; in its_irq_domain_activate()
3596 its_dec_lpi_count(d, its_dev->event_map.col_map[event]); in its_irq_domain_deactivate()
3609 bitmap_release_region(its_dev->event_map.lpi_map, in its_irq_domain_free()
3627 bitmap_empty(its_dev->event_map.lpi_map, in its_irq_domain_free()
3628 its_dev->event_map.nr_lpis)) { in its_irq_domain_free()
3629 its_lpi_free(its_dev->event_map.lpi_map, in its_irq_domain_free()
3630 its_dev->event_map.lpi_base, in its_irq_domain_free()
3631 its_dev->event_map.nr_lpis); in its_irq_domain_free()
3729 vpe_proxy.dev->event_map.col_map[vpe->vpe_proxy_event] = vpe->col_idx; in its_vpe_db_proxy_map_locked()
3758 vpe_proxy.dev->event_map.col_map[vpe->vpe_proxy_event] = to; in its_vpe_db_proxy_move()