Home | History | Annotate | Download | only in common

Lines Matching refs:id

42 	unsigned int id;
44 id = gicv2_get_pending_interrupt_id();
45 if (id == GIC_SPURIOUS_INTERRUPT)
48 return id;
54 * Pending interrupt register (`GICC_HPPIR`) is read to determine the id of
55 * the pending interrupt. The type of interrupt depends upon the id value
57 * 1. id < PENDING_G1_INTID (1022) is reported as a S-EL1 interrupt
58 * 2. id = PENDING_G1_INTID (1022) is reported as a Non-secure interrupt.
59 * 3. id = GIC_SPURIOUS_INTERRUPT (1023) is reported as an invalid interrupt
64 unsigned int id;
66 id = gicv2_get_pending_interrupt_type();
69 if (id < PENDING_G1_INTID) {
77 if (id == GIC_SPURIOUS_INTERRUPT)
94 * This function returns the type of the interrupt `id`, depending on how
97 uint32_t plat_ic_get_interrupt_type(uint32_t id)
101 type = gicv2_get_interrupt_group(id);
114 * the processing of the interrupt corresponding to the `id` has
117 void plat_ic_end_of_interrupt(uint32_t id)
119 gicv2_end_of_interrupt(id);
154 int plat_ic_is_spi(unsigned int id)
156 return (id >= MIN_SPI_ID) && (id <= MAX_SPI_ID);
159 int plat_ic_is_ppi(unsigned int id)
161 return (id >= MIN_PPI_ID) && (id < MIN_SPI_ID);
164 int plat_ic_is_sgi(unsigned int id)
166 return (id >= MIN_SGI_ID) && (id < MIN_PPI_ID);
169 unsigned int plat_ic_get_interrupt_active(unsigned int id)
171 return gicv2_get_interrupt_active(id);
174 void plat_ic_enable_interrupt(unsigned int id)
176 gicv2_enable_interrupt(id);
179 void plat_ic_disable_interrupt(unsigned int id)
181 gicv2_disable_interrupt(id);
184 void plat_ic_set_interrupt_priority(unsigned int id, unsigned int priority)
186 gicv2_set_interrupt_priority(id, priority);
204 void plat_ic_set_interrupt_type(unsigned int id, unsigned int type)
224 gicv2_set_interrupt_type(id, gicv2_type);
230 int id;
233 id = plat_core_pos_by_mpidr(target);
234 assert(id >= 0);
239 gicv2_raise_sgi(sgi_num, id);
245 void plat_ic_set_spi_routing(unsigned int id, unsigned int routing_mode,
263 gicv2_set_spi_routing(id, proc_num);
266 void plat_ic_set_interrupt_pending(unsigned int id)
268 gicv2_set_interrupt_pending(id);
271 void plat_ic_clear_interrupt_pending(unsigned int id)
273 gicv2_clear_interrupt_pending(id);