Lines Matching defs:id

48 	unsigned int id;
50 id = gicv2_get_pending_interrupt_id();
51 if (id == GIC_SPURIOUS_INTERRUPT)
54 return id;
60 * Pending interrupt register (`GICC_HPPIR`) is read to determine the id of
61 * the pending interrupt. The type of interrupt depends upon the id value
63 * 1. id < PENDING_G1_INTID (1022) is reported as a S-EL1 interrupt
64 * 2. id = PENDING_G1_INTID (1022) is reported as a Non-secure interrupt.
65 * 3. id = GIC_SPURIOUS_INTERRUPT (1023) is reported as an invalid interrupt
70 unsigned int id;
72 id = gicv2_get_pending_interrupt_type();
75 if (id < PENDING_G1_INTID) {
83 if (id == GIC_SPURIOUS_INTERRUPT)
100 * This function returns the type of the interrupt `id`, depending on how
103 uint32_t plat_ic_get_interrupt_type(uint32_t id)
107 type = gicv2_get_interrupt_group(id);
120 * the processing of the interrupt corresponding to the `id` has
123 void plat_ic_end_of_interrupt(uint32_t id)
125 gicv2_end_of_interrupt(id);
161 int plat_ic_is_spi(unsigned int id)
163 return (id >= MIN_SPI_ID) && (id <= MAX_SPI_ID);
166 int plat_ic_is_ppi(unsigned int id)
168 return (id >= MIN_PPI_ID) && (id < MIN_SPI_ID);
171 int plat_ic_is_sgi(unsigned int id)
173 return (id >= MIN_SGI_ID) && (id < MIN_PPI_ID);
176 unsigned int plat_ic_get_interrupt_active(unsigned int id)
178 return gicv2_get_interrupt_active(id);
181 void plat_ic_enable_interrupt(unsigned int id)
183 gicv2_enable_interrupt(id);
186 void plat_ic_disable_interrupt(unsigned int id)
188 gicv2_disable_interrupt(id);
191 void plat_ic_set_interrupt_priority(unsigned int id, unsigned int priority)
193 gicv2_set_interrupt_priority(id, priority);
217 void plat_ic_set_interrupt_type(unsigned int id, unsigned int type)
238 gicv2_set_interrupt_group(id, gicv2_group);
244 int id;
247 id = plat_core_pos_by_mpidr(target);
248 assert(id >= 0);
253 gicv2_raise_sgi(sgi_num, false, id);
261 int id;
264 id = plat_core_pos_by_mpidr(target);
265 assert(id >= 0);
270 gicv2_raise_sgi(sgi_num, true, id);
278 int id;
281 id = plat_core_pos_by_mpidr(target);
282 assert(id >= 0);
287 gicv2_raise_sgi(sgi_num, false, id);
291 void plat_ic_set_spi_routing(unsigned int id, unsigned int routing_mode,
310 gicv2_set_spi_routing(id, proc_num);
313 void plat_ic_set_interrupt_pending(unsigned int id)
315 gicv2_set_interrupt_pending(id);
318 void plat_ic_clear_interrupt_pending(unsigned int id)
320 gicv2_clear_interrupt_pending(id);
330 unsigned int id = (raw & INT_ID_MASK);
332 if (id == GIC_SPURIOUS_INTERRUPT)
333 id = INTR_ID_UNAVAILABLE;
335 return id;