Lines Matching refs:irq
94 static inline int madera_get_irq_mapping(struct madera *madera, int irq) in madera_get_irq_mapping() argument
99 return regmap_irq_get_virq(madera->irq_data, irq); in madera_get_irq_mapping()
102 static inline int madera_request_irq(struct madera *madera, int irq, in madera_request_irq() argument
106 irq = madera_get_irq_mapping(madera, irq); in madera_request_irq()
107 if (irq < 0) in madera_request_irq()
108 return irq; in madera_request_irq()
110 return request_threaded_irq(irq, NULL, handler, IRQF_ONESHOT, name, in madera_request_irq()
114 static inline void madera_free_irq(struct madera *madera, int irq, void *data) in madera_free_irq() argument
116 irq = madera_get_irq_mapping(madera, irq); in madera_free_irq()
117 if (irq < 0) in madera_free_irq()
120 free_irq(irq, data); in madera_free_irq()
123 static inline int madera_set_irq_wake(struct madera *madera, int irq, int on) in madera_set_irq_wake() argument
125 irq = madera_get_irq_mapping(madera, irq); in madera_set_irq_wake()
126 if (irq < 0) in madera_set_irq_wake()
127 return irq; in madera_set_irq_wake()
129 return irq_set_irq_wake(irq, on); in madera_set_irq_wake()