Lines Matching refs:event_map
166 struct event_lpi_map event_map; member
231 return d->hwirq - its_dev->event_map.lpi_base; in its_get_event_id()
239 return its->collections + its_dev->event_map.col_map[event]; in dev_event_to_col()
245 if (WARN_ON_ONCE(event >= its_dev->event_map.nr_lpis)) in dev_event_to_vlpi_map()
248 return &its_dev->event_map.vlpi_maps[event]; in dev_event_to_vlpi_map()
284 cpu = its_dev->event_map.col_map[its_get_event_id(d)]; in irq_to_cpuid_lock()
1657 prev_cpu = its_dev->event_map.col_map[id]; in its_set_affinity()
1672 its_dev->event_map.col_map[id] = cpu; in its_set_affinity()
1820 raw_spin_lock(&its_dev->event_map.vlpi_lock); in its_vlpi_map()
1822 if (!its_dev->event_map.vm) { in its_vlpi_map()
1825 maps = kcalloc(its_dev->event_map.nr_lpis, sizeof(*maps), in its_vlpi_map()
1832 its_dev->event_map.vm = info->map->vm; in its_vlpi_map()
1833 its_dev->event_map.vlpi_maps = maps; in its_vlpi_map()
1834 } else if (its_dev->event_map.vm != info->map->vm) { in its_vlpi_map()
1840 its_dev->event_map.vlpi_maps[event] = *info->map; in its_vlpi_map()
1865 its_dev->event_map.nr_vlpis++; in its_vlpi_map()
1869 raw_spin_unlock(&its_dev->event_map.vlpi_lock); in its_vlpi_map()
1879 raw_spin_lock(&its_dev->event_map.vlpi_lock); in its_vlpi_get()
1883 if (!its_dev->event_map.vm || !map) { in its_vlpi_get()
1892 raw_spin_unlock(&its_dev->event_map.vlpi_lock); in its_vlpi_get()
1902 raw_spin_lock(&its_dev->event_map.vlpi_lock); in its_vlpi_unmap()
1904 if (!its_dev->event_map.vm || !irqd_is_forwarded_to_vcpu(d)) { in its_vlpi_unmap()
1920 its_unmap_vm(its_dev->its, its_dev->event_map.vm); in its_vlpi_unmap()
1926 if (!--its_dev->event_map.nr_vlpis) { in its_vlpi_unmap()
1927 its_dev->event_map.vm = NULL; in its_vlpi_unmap()
1928 kfree(its_dev->event_map.vlpi_maps); in its_vlpi_unmap()
1932 raw_spin_unlock(&its_dev->event_map.vlpi_lock); in its_vlpi_unmap()
1940 if (!its_dev->event_map.vm || !irqd_is_forwarded_to_vcpu(d)) in its_vlpi_prop_update()
3415 dev->event_map.lpi_map = lpi_map; in its_create_device()
3416 dev->event_map.col_map = col_map; in its_create_device()
3417 dev->event_map.lpi_base = lpi_base; in its_create_device()
3418 dev->event_map.nr_lpis = nr_lpis; in its_create_device()
3419 raw_spin_lock_init(&dev->event_map.vlpi_lock); in its_create_device()
3440 kfree(its_dev->event_map.col_map); in its_free_device()
3450 idx = bitmap_find_free_region(dev->event_map.lpi_map, in its_alloc_device_irq()
3451 dev->event_map.nr_lpis, in its_alloc_device_irq()
3456 *hwirq = dev->event_map.lpi_base + idx; in its_alloc_device_irq()
3578 (int)(hwirq + i - its_dev->event_map.lpi_base), in its_irq_domain_alloc()
3597 its_dev->event_map.col_map[event] = cpu; in its_irq_domain_activate()
3611 its_dec_lpi_count(d, its_dev->event_map.col_map[event]); in its_irq_domain_deactivate()
3624 bitmap_release_region(its_dev->event_map.lpi_map, in its_irq_domain_free()
3642 bitmap_empty(its_dev->event_map.lpi_map, in its_irq_domain_free()
3643 its_dev->event_map.nr_lpis)) { in its_irq_domain_free()
3644 its_lpi_free(its_dev->event_map.lpi_map, in its_irq_domain_free()
3645 its_dev->event_map.lpi_base, in its_irq_domain_free()
3646 its_dev->event_map.nr_lpis); in its_irq_domain_free()
3744 vpe_proxy.dev->event_map.col_map[vpe->vpe_proxy_event] = vpe->col_idx; in its_vpe_db_proxy_map_locked()
3773 vpe_proxy.dev->event_map.col_map[vpe->vpe_proxy_event] = to; in its_vpe_db_proxy_move()