Searched refs:base_irq (Results 1 – 1 of 1) sorted by relevance
73 static inline unsigned int gpio_sifive_pin_irq(unsigned int base_irq, int pin) in gpio_sifive_pin_irq() argument75 unsigned int level = irq_get_level(base_irq); in gpio_sifive_pin_irq()79 pin_irq = base_irq + pin; in gpio_sifive_pin_irq()81 pin_irq = base_irq + (pin << CONFIG_1ST_LEVEL_INTERRUPT_BITS); in gpio_sifive_pin_irq()90 static inline int gpio_sifive_plic_to_pin(unsigned int base_irq, int plic_irq) in gpio_sifive_plic_to_pin() argument92 unsigned int level = irq_get_level(base_irq); in gpio_sifive_plic_to_pin()95 base_irq = irq_from_level_2(base_irq); in gpio_sifive_plic_to_pin()98 return (plic_irq - base_irq); in gpio_sifive_plic_to_pin()