Lines Matching refs:event_desc
284 struct ti_sci_inta_event_desc *event_desc; in ti_sci_inta_alloc_event() local
291 event_desc = &vint_desc->events[free_bit]; in ti_sci_inta_alloc_event()
292 event_desc->hwirq = hwirq; in ti_sci_inta_alloc_event()
293 event_desc->vint_bit = free_bit; in ti_sci_inta_alloc_event()
294 event_desc->global_event = ti_sci_get_free_resource(inta->global_event); in ti_sci_inta_alloc_event()
295 if (event_desc->global_event == TI_SCI_RESOURCE_NULL) in ti_sci_inta_alloc_event()
302 event_desc->global_event, in ti_sci_inta_alloc_event()
307 return event_desc; in ti_sci_inta_alloc_event()
309 ti_sci_release_resource(inta->global_event, event_desc->global_event); in ti_sci_inta_alloc_event()
329 struct ti_sci_inta_event_desc *event_desc; in ti_sci_inta_alloc_irq() local
345 event_desc = ERR_CAST(vint_desc); in ti_sci_inta_alloc_irq()
354 event_desc = ti_sci_inta_alloc_event(vint_desc, free_bit, hwirq); in ti_sci_inta_alloc_irq()
355 if (IS_ERR(event_desc)) in ti_sci_inta_alloc_irq()
360 return event_desc; in ti_sci_inta_alloc_irq()
384 static void ti_sci_inta_free_irq(struct ti_sci_inta_event_desc *event_desc, in ti_sci_inta_free_irq() argument
391 vint_desc = to_vint_desc(event_desc, event_desc->vint_bit); in ti_sci_inta_free_irq()
400 event_desc->global_event, in ti_sci_inta_free_irq()
401 event_desc->vint_bit); in ti_sci_inta_free_irq()
403 clear_bit(event_desc->vint_bit, vint_desc->event_map); in ti_sci_inta_free_irq()
404 ti_sci_release_resource(inta->global_event, event_desc->global_event); in ti_sci_inta_free_irq()
405 event_desc->global_event = TI_SCI_RESOURCE_NULL; in ti_sci_inta_free_irq()
406 event_desc->hwirq = 0; in ti_sci_inta_free_irq()
425 struct ti_sci_inta_event_desc *event_desc; in ti_sci_inta_request_resources() local
427 event_desc = ti_sci_inta_alloc_irq(data->domain, data->hwirq); in ti_sci_inta_request_resources()
428 if (IS_ERR(event_desc)) in ti_sci_inta_request_resources()
429 return PTR_ERR(event_desc); in ti_sci_inta_request_resources()
431 data->chip_data = event_desc; in ti_sci_inta_request_resources()
445 struct ti_sci_inta_event_desc *event_desc; in ti_sci_inta_release_resources() local
447 event_desc = irq_data_get_irq_chip_data(data); in ti_sci_inta_release_resources()
448 ti_sci_inta_free_irq(event_desc, data->hwirq); in ti_sci_inta_release_resources()
458 struct ti_sci_inta_event_desc *event_desc; in ti_sci_inta_manage_event() local
462 event_desc = irq_data_get_irq_chip_data(data); in ti_sci_inta_manage_event()
463 vint_desc = to_vint_desc(event_desc, event_desc->vint_bit); in ti_sci_inta_manage_event()
466 writeq_relaxed(BIT(event_desc->vint_bit), in ti_sci_inta_manage_event()