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()
1646 prev_cpu = its_dev->event_map.col_map[id]; in its_set_affinity()
1661 its_dev->event_map.col_map[id] = cpu; in its_set_affinity()
1809 raw_spin_lock(&its_dev->event_map.vlpi_lock); in its_vlpi_map()
1811 if (!its_dev->event_map.vm) { in its_vlpi_map()
1814 maps = kcalloc(its_dev->event_map.nr_lpis, sizeof(*maps), in its_vlpi_map()
1821 its_dev->event_map.vm = info->map->vm; in its_vlpi_map()
1822 its_dev->event_map.vlpi_maps = maps; in its_vlpi_map()
1823 } else if (its_dev->event_map.vm != info->map->vm) { in its_vlpi_map()
1829 its_dev->event_map.vlpi_maps[event] = *info->map; in its_vlpi_map()
1854 its_dev->event_map.nr_vlpis++; in its_vlpi_map()
1858 raw_spin_unlock(&its_dev->event_map.vlpi_lock); in its_vlpi_map()
1868 raw_spin_lock(&its_dev->event_map.vlpi_lock); in its_vlpi_get()
1872 if (!its_dev->event_map.vm || !map) { in its_vlpi_get()
1881 raw_spin_unlock(&its_dev->event_map.vlpi_lock); in its_vlpi_get()
1891 raw_spin_lock(&its_dev->event_map.vlpi_lock); in its_vlpi_unmap()
1893 if (!its_dev->event_map.vm || !irqd_is_forwarded_to_vcpu(d)) { in its_vlpi_unmap()
1909 its_unmap_vm(its_dev->its, its_dev->event_map.vm); in its_vlpi_unmap()
1915 if (!--its_dev->event_map.nr_vlpis) { in its_vlpi_unmap()
1916 its_dev->event_map.vm = NULL; in its_vlpi_unmap()
1917 kfree(its_dev->event_map.vlpi_maps); in its_vlpi_unmap()
1921 raw_spin_unlock(&its_dev->event_map.vlpi_lock); in its_vlpi_unmap()
1929 if (!its_dev->event_map.vm || !irqd_is_forwarded_to_vcpu(d)) in its_vlpi_prop_update()
3395 dev->event_map.lpi_map = lpi_map; in its_create_device()
3396 dev->event_map.col_map = col_map; in its_create_device()
3397 dev->event_map.lpi_base = lpi_base; in its_create_device()
3398 dev->event_map.nr_lpis = nr_lpis; in its_create_device()
3399 raw_spin_lock_init(&dev->event_map.vlpi_lock); in its_create_device()
3420 kfree(its_dev->event_map.col_map); in its_free_device()
3430 idx = bitmap_find_free_region(dev->event_map.lpi_map, in its_alloc_device_irq()
3431 dev->event_map.nr_lpis, in its_alloc_device_irq()
3436 *hwirq = dev->event_map.lpi_base + idx; in its_alloc_device_irq()
3555 (int)(hwirq + i - its_dev->event_map.lpi_base), in its_irq_domain_alloc()
3574 its_dev->event_map.col_map[event] = cpu; in its_irq_domain_activate()
3588 its_dec_lpi_count(d, its_dev->event_map.col_map[event]); in its_irq_domain_deactivate()
3601 bitmap_release_region(its_dev->event_map.lpi_map, in its_irq_domain_free()
3619 bitmap_empty(its_dev->event_map.lpi_map, in its_irq_domain_free()
3620 its_dev->event_map.nr_lpis)) { in its_irq_domain_free()
3621 its_lpi_free(its_dev->event_map.lpi_map, in its_irq_domain_free()
3622 its_dev->event_map.lpi_base, in its_irq_domain_free()
3623 its_dev->event_map.nr_lpis); in its_irq_domain_free()
3721 vpe_proxy.dev->event_map.col_map[vpe->vpe_proxy_event] = vpe->col_idx; in its_vpe_db_proxy_map_locked()
3750 vpe_proxy.dev->event_map.col_map[vpe->vpe_proxy_event] = to; in its_vpe_db_proxy_move()