Home
last modified time | relevance | path

Searched refs:flow_type (Results 1 – 19 of 19) sorted by relevance

/arch/powerpc/sysdev/
Dcpm2_pic.c132 static int cpm2_set_irq_type(struct irq_data *d, unsigned int flow_type) in cpm2_set_irq_type() argument
142 if (flow_type == IRQ_TYPE_NONE) in cpm2_set_irq_type()
143 flow_type = IRQ_TYPE_EDGE_BOTH; in cpm2_set_irq_type()
145 if (flow_type != IRQ_TYPE_EDGE_BOTH && in cpm2_set_irq_type()
146 flow_type != IRQ_TYPE_EDGE_FALLING) in cpm2_set_irq_type()
149 if (flow_type == IRQ_TYPE_NONE) in cpm2_set_irq_type()
150 flow_type = IRQ_TYPE_LEVEL_LOW; in cpm2_set_irq_type()
152 if (flow_type & (IRQ_TYPE_EDGE_RISING | IRQ_TYPE_LEVEL_HIGH)) in cpm2_set_irq_type()
156 irqd_set_trigger_type(d, flow_type); in cpm2_set_irq_type()
157 if (flow_type & IRQ_TYPE_LEVEL_LOW) in cpm2_set_irq_type()
[all …]
Dehv_pic.c112 int ehv_pic_set_irq_type(struct irq_data *d, unsigned int flow_type) in ehv_pic_set_irq_type() argument
118 if (flow_type == IRQ_TYPE_NONE) in ehv_pic_set_irq_type()
119 flow_type = IRQ_TYPE_LEVEL_LOW; in ehv_pic_set_irq_type()
121 irqd_set_trigger_type(d, flow_type); in ehv_pic_set_irq_type()
123 vecpri = ehv_pic_type_to_vecpri(flow_type); in ehv_pic_set_irq_type()
Dipic.c598 static int ipic_set_irq_type(struct irq_data *d, unsigned int flow_type) in ipic_set_irq_type() argument
604 if (flow_type == IRQ_TYPE_NONE) in ipic_set_irq_type()
605 flow_type = IRQ_TYPE_LEVEL_LOW; in ipic_set_irq_type()
609 if (!(flow_type & (IRQ_TYPE_LEVEL_LOW | IRQ_TYPE_EDGE_FALLING))) { in ipic_set_irq_type()
611 flow_type); in ipic_set_irq_type()
615 if ((flow_type & IRQ_TYPE_EDGE_FALLING) && !ipic_info[src].ack) { in ipic_set_irq_type()
622 irqd_set_trigger_type(d, flow_type); in ipic_set_irq_type()
623 if (flow_type & IRQ_TYPE_LEVEL_LOW) { in ipic_set_irq_type()
640 return (flow_type & IRQ_TYPE_LEVEL_LOW) ? 0 : -EINVAL; in ipic_set_irq_type()
643 if ((flow_type & IRQ_TYPE_SENSE_MASK) == IRQ_TYPE_EDGE_FALLING) { in ipic_set_irq_type()
Dmpic.h32 extern int mpic_set_irq_type(struct irq_data *d, unsigned int flow_type);
Dmpic.c867 int mpic_set_irq_type(struct irq_data *d, unsigned int flow_type) in mpic_set_irq_type() argument
874 mpic, d->irq, src, flow_type); in mpic_set_irq_type()
882 if (flow_type == IRQ_TYPE_NONE) in mpic_set_irq_type()
883 flow_type = IRQ_TYPE_DEFAULT; in mpic_set_irq_type()
886 if (flow_type == IRQ_TYPE_DEFAULT) { in mpic_set_irq_type()
894 flow_type = IRQ_TYPE_EDGE_RISING; in mpic_set_irq_type()
897 flow_type = IRQ_TYPE_EDGE_FALLING; in mpic_set_irq_type()
900 flow_type = IRQ_TYPE_LEVEL_HIGH; in mpic_set_irq_type()
903 flow_type = IRQ_TYPE_LEVEL_LOW; in mpic_set_irq_type()
909 irqd_set_trigger_type(d, flow_type); in mpic_set_irq_type()
[all …]
/arch/powerpc/sysdev/xics/
Dxics-common.c380 int xics_set_irq_type(struct irq_data *d, unsigned int flow_type) in xics_set_irq_type() argument
389 if (flow_type == IRQ_TYPE_DEFAULT || flow_type == IRQ_TYPE_NONE) in xics_set_irq_type()
390 flow_type = IRQ_TYPE_EDGE_RISING; in xics_set_irq_type()
392 if (flow_type != IRQ_TYPE_EDGE_RISING && in xics_set_irq_type()
393 flow_type != IRQ_TYPE_LEVEL_LOW) in xics_set_irq_type()
396 irqd_set_trigger_type(d, flow_type); in xics_set_irq_type()
/arch/mips/bcm63xx/
Dirq.c278 unsigned int flow_type) in bcm63xx_external_irq_set_type() argument
285 flow_type &= IRQ_TYPE_SENSE_MASK; in bcm63xx_external_irq_set_type()
287 if (flow_type == IRQ_TYPE_NONE) in bcm63xx_external_irq_set_type()
288 flow_type = IRQ_TYPE_LEVEL_LOW; in bcm63xx_external_irq_set_type()
291 switch (flow_type) { in bcm63xx_external_irq_set_type()
365 irqd_set_trigger_type(d, flow_type); in bcm63xx_external_irq_set_type()
366 if (flow_type & (IRQ_TYPE_LEVEL_LOW | IRQ_TYPE_LEVEL_HIGH)) in bcm63xx_external_irq_set_type()
/arch/mips/kernel/
Dirq_txx9.c112 static int txx9_irq_set_type(struct irq_data *d, unsigned int flow_type) in txx9_irq_set_type() argument
120 if (flow_type & IRQF_TRIGGER_PROBE) in txx9_irq_set_type()
122 switch (flow_type & IRQF_TRIGGER_MASK) { in txx9_irq_set_type()
/arch/mips/txx9/generic/
Dirq_tx4939.c104 static int tx4939_irq_set_type(struct irq_data *d, unsigned int flow_type) in tx4939_irq_set_type() argument
112 if (flow_type & IRQF_TRIGGER_PROBE) in tx4939_irq_set_type()
114 switch (flow_type & IRQF_TRIGGER_MASK) { in tx4939_irq_set_type()
/arch/powerpc/platforms/8xx/
Dpic.c51 static int mpc8xx_set_irq_type(struct irq_data *d, unsigned int flow_type) in mpc8xx_set_irq_type() argument
54 if ((flow_type & IRQ_TYPE_EDGE_FALLING) && !(irqd_to_hwirq(d) & 1)) { in mpc8xx_set_irq_type()
/arch/powerpc/platforms/52xx/
Dmpc52xx_pic.c176 static int mpc52xx_extirq_set_type(struct irq_data *d, unsigned int flow_type) in mpc52xx_extirq_set_type() argument
183 (int) irqd_to_hwirq(d), l2irq, flow_type); in mpc52xx_extirq_set_type()
185 switch (flow_type) { in mpc52xx_extirq_set_type()
215 static int mpc52xx_null_set_type(struct irq_data *d, unsigned int flow_type) in mpc52xx_null_set_type() argument
Dmpc52xx_gpt.c162 static int mpc52xx_gpt_irq_set_type(struct irq_data *d, unsigned int flow_type) in mpc52xx_gpt_irq_set_type() argument
168 dev_dbg(gpt->dev, "%s: virq=%i type=%x\n", __func__, d->irq, flow_type); in mpc52xx_gpt_irq_set_type()
172 if (flow_type & IRQF_TRIGGER_RISING) in mpc52xx_gpt_irq_set_type()
174 if (flow_type & IRQF_TRIGGER_FALLING) in mpc52xx_gpt_irq_set_type()
/arch/arm/mach-pxa/
Dpxa3xx.c309 static int pxa_set_ext_wakeup_type(struct irq_data *d, unsigned int flow_type) in pxa_set_ext_wakeup_type() argument
311 if (flow_type & IRQ_TYPE_EDGE_RISING) in pxa_set_ext_wakeup_type()
314 if (flow_type & IRQ_TYPE_EDGE_FALLING) in pxa_set_ext_wakeup_type()
/arch/powerpc/platforms/powernv/
Dopal-irqchip.c89 static int opal_event_set_type(struct irq_data *d, unsigned int flow_type) in opal_event_set_type() argument
96 if (flow_type != IRQ_TYPE_LEVEL_HIGH) in opal_event_set_type()
/arch/powerpc/sysdev/xive/
Dcommon.c756 static int xive_irq_set_type(struct irq_data *d, unsigned int flow_type) in xive_irq_set_type() argument
767 if (flow_type == IRQ_TYPE_DEFAULT || flow_type == IRQ_TYPE_NONE) in xive_irq_set_type()
768 flow_type = IRQ_TYPE_EDGE_RISING; in xive_irq_set_type()
770 if (flow_type != IRQ_TYPE_EDGE_RISING && in xive_irq_set_type()
771 flow_type != IRQ_TYPE_LEVEL_LOW) in xive_irq_set_type()
774 irqd_set_trigger_type(d, flow_type); in xive_irq_set_type()
784 if ((flow_type == IRQ_TYPE_LEVEL_LOW) != in xive_irq_set_type()
788 (flow_type == IRQ_TYPE_LEVEL_LOW) ? "Level" : "Edge", in xive_irq_set_type()
/arch/powerpc/platforms/85xx/
Dsocrates_fpga_pic.c187 unsigned int flow_type) in socrates_fpga_pic_set_type() argument
197 switch (flow_type & IRQ_TYPE_SENSE_MASK) { in socrates_fpga_pic_set_type()
/arch/powerpc/platforms/4xx/
Duic.c118 static int uic_set_irq_type(struct irq_data *d, unsigned int flow_type) in uic_set_irq_type() argument
126 switch (flow_type & IRQ_TYPE_SENSE_MASK) { in uic_set_irq_type()
/arch/powerpc/include/asm/
Dxics.h169 extern int xics_set_irq_type(struct irq_data *d, unsigned int flow_type);
/arch/mips/alchemy/common/
Dirq.c426 static int au1x_ic_settype(struct irq_data *d, unsigned int flow_type) in au1x_ic_settype() argument
450 switch (flow_type) { /* cfgregs 2:1:0 */ in au1x_ic_settype()