Lines Matching full:irq
34 * This routine initializes an interrupt handler for an IRQ. The IRQ must be
42 * @param irq_p IRQ line number.
46 * @param flags_p Architecture-specific IRQ configuration flags..
56 * @param irq IRQ line number
60 * @param flags Arch-specific IRQ configuration flags
65 irq_connect_dynamic(unsigned int irq, unsigned int priority, in irq_connect_dynamic() argument
69 return arch_irq_connect_dynamic(irq, priority, routine, parameter, in irq_connect_dynamic()
81 * @param irq IRQ line number
85 * @param flags Arch-specific IRQ configuration flags
90 irq_disconnect_dynamic(unsigned int irq, unsigned int priority, in irq_disconnect_dynamic() argument
94 return arch_irq_disconnect_dynamic(irq, priority, routine, in irq_disconnect_dynamic()
101 * This routine initializes an interrupt handler for an IRQ. The IRQ must be
131 * @param irq_p IRQ line number.
134 * @param flags_p Architecture-specific IRQ configuration flags.
284 * @brief Return IRQ level
287 * @param irq IRQ number in its zephyr format
289 * @return 1 if IRQ level 1, 2 if IRQ level 2, 3 if IRQ level 3
291 static inline unsigned int irq_get_level(unsigned int irq) in irq_get_level() argument
298 if (IS_ENABLED(CONFIG_3RD_LEVEL_INTERRUPTS) && (irq & mask3) != 0) { in irq_get_level()
302 if (IS_ENABLED(CONFIG_2ND_LEVEL_INTERRUPTS) && (irq & mask2) != 0) { in irq_get_level()
313 * This routine returns the second level irq number of the zephyr irq
316 * @param irq IRQ number in its zephyr format
318 * @return 2nd level IRQ number
320 static inline unsigned int irq_from_level_2(unsigned int irq) in irq_from_level_2() argument
323 return ((irq >> CONFIG_1ST_LEVEL_INTERRUPT_BITS) & in irq_from_level_2()
326 return (irq >> CONFIG_1ST_LEVEL_INTERRUPT_BITS) - 1; in irq_from_level_2()
331 * @brief Converts irq from level 1 to level 2 format
334 * This routine converts the input into the level 2 irq number format
338 * @param irq IRQ number in its zephyr format
340 * @return 2nd level IRQ number
342 static inline unsigned int irq_to_level_2(unsigned int irq) in irq_to_level_2() argument
344 return (irq + 1) << CONFIG_1ST_LEVEL_INTERRUPT_BITS; in irq_to_level_2()
348 * @brief Returns the parent IRQ of the level 2 raw IRQ number
353 * @param irq IRQ number in its zephyr format
355 * @return 2nd level IRQ parent
357 static inline unsigned int irq_parent_level_2(unsigned int irq) in irq_parent_level_2() argument
359 return irq & BIT_MASK(CONFIG_1ST_LEVEL_INTERRUPT_BITS); in irq_parent_level_2()
368 * This routine returns the third level irq number of the zephyr irq
371 * @param irq IRQ number in its zephyr format
373 * @return 3rd level IRQ number
375 static inline unsigned int irq_from_level_3(unsigned int irq) in irq_from_level_3() argument
377 return (irq >> (CONFIG_1ST_LEVEL_INTERRUPT_BITS + CONFIG_2ND_LEVEL_INTERRUPT_BITS)) - 1; in irq_from_level_3()
381 * @brief Converts irq from level 1 to level 3 format
384 * This routine converts the input into the level 3 irq number format
388 * @param irq IRQ number in its zephyr format
390 * @return 3rd level IRQ number
392 static inline unsigned int irq_to_level_3(unsigned int irq) in irq_to_level_3() argument
394 return (irq + 1) << (CONFIG_1ST_LEVEL_INTERRUPT_BITS + CONFIG_2ND_LEVEL_INTERRUPT_BITS); in irq_to_level_3()
398 * @brief Returns the parent IRQ of the level 3 raw IRQ number
403 * @param irq IRQ number in its zephyr format
405 * @return 3rd level IRQ parent
407 static inline unsigned int irq_parent_level_3(unsigned int irq) in irq_parent_level_3() argument
409 return (irq >> CONFIG_1ST_LEVEL_INTERRUPT_BITS) & in irq_parent_level_3()
415 * @brief Enable an IRQ.
417 * This routine enables interrupts from source @a irq.
419 * @param irq IRQ line.
421 #define irq_enable(irq) arch_irq_enable(irq) argument
424 * @brief Disable an IRQ.
426 * This routine disables interrupts from source @a irq.
428 * @param irq IRQ line.
430 #define irq_disable(irq) arch_irq_disable(irq) argument
433 * @brief Get IRQ enable state.
435 * This routine indicates if interrupts from source @a irq are enabled.
437 * @param irq IRQ line.
441 #define irq_is_enabled(irq) arch_irq_is_enabled(irq) argument