| /arch/powerpc/sysdev/ |
| A D | cpm2_pic.c | 140 if (flow_type == IRQ_TYPE_NONE) in cpm2_set_irq_type() 141 flow_type = IRQ_TYPE_EDGE_BOTH; in cpm2_set_irq_type() 143 if (flow_type != IRQ_TYPE_EDGE_BOTH && in cpm2_set_irq_type() 144 flow_type != IRQ_TYPE_EDGE_FALLING) in cpm2_set_irq_type() 147 if (flow_type == IRQ_TYPE_NONE) in cpm2_set_irq_type() 148 flow_type = IRQ_TYPE_LEVEL_LOW; in cpm2_set_irq_type() 150 if (flow_type & (IRQ_TYPE_EDGE_RISING | IRQ_TYPE_LEVEL_HIGH)) in cpm2_set_irq_type() 154 irqd_set_trigger_type(d, flow_type); in cpm2_set_irq_type() 155 if (flow_type & IRQ_TYPE_LEVEL_LOW) in cpm2_set_irq_type() 169 return (flow_type & IRQ_TYPE_LEVEL_LOW) ? in cpm2_set_irq_type() [all …]
|
| A D | ehv_pic.c | 112 static 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()
|
| A D | ipic.c | 599 static int ipic_set_irq_type(struct irq_data *d, unsigned int flow_type) in ipic_set_irq_type() argument 605 if (flow_type == IRQ_TYPE_NONE) in ipic_set_irq_type() 606 flow_type = IRQ_TYPE_LEVEL_LOW; in ipic_set_irq_type() 610 if (!(flow_type & (IRQ_TYPE_LEVEL_LOW | IRQ_TYPE_EDGE_FALLING))) { in ipic_set_irq_type() 612 flow_type); in ipic_set_irq_type() 616 if ((flow_type & IRQ_TYPE_EDGE_FALLING) && !ipic_info[src].ack) { in ipic_set_irq_type() 623 irqd_set_trigger_type(d, flow_type); in ipic_set_irq_type() 624 if (flow_type & IRQ_TYPE_LEVEL_LOW) { in ipic_set_irq_type() 641 return (flow_type & IRQ_TYPE_LEVEL_LOW) ? 0 : -EINVAL; in ipic_set_irq_type() 644 if ((flow_type & IRQ_TYPE_SENSE_MASK) == IRQ_TYPE_EDGE_FALLING) { in ipic_set_irq_type()
|
| A D | mpic.h | 32 extern int mpic_set_irq_type(struct irq_data *d, unsigned int flow_type);
|
| A D | mpic.c | 870 int mpic_set_irq_type(struct irq_data *d, unsigned int flow_type) in mpic_set_irq_type() argument 877 mpic, d->irq, src, flow_type); in mpic_set_irq_type() 885 if (flow_type == IRQ_TYPE_NONE) in mpic_set_irq_type() 886 flow_type = IRQ_TYPE_DEFAULT; in mpic_set_irq_type() 889 if (flow_type == IRQ_TYPE_DEFAULT) { in mpic_set_irq_type() 897 flow_type = IRQ_TYPE_EDGE_RISING; in mpic_set_irq_type() 900 flow_type = IRQ_TYPE_EDGE_FALLING; in mpic_set_irq_type() 903 flow_type = IRQ_TYPE_LEVEL_HIGH; in mpic_set_irq_type() 906 flow_type = IRQ_TYPE_LEVEL_LOW; in mpic_set_irq_type() 912 irqd_set_trigger_type(d, flow_type); in mpic_set_irq_type() [all …]
|
| /arch/powerpc/sysdev/xics/ |
| A D | xics-common.c | 380 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/ |
| A D | irq.c | 278 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/ |
| A D | irq_txx9.c | 99 static int txx9_irq_set_type(struct irq_data *d, unsigned int flow_type) in txx9_irq_set_type() argument 107 if (flow_type & IRQF_TRIGGER_PROBE) in txx9_irq_set_type() 109 switch (flow_type & IRQF_TRIGGER_MASK) { in txx9_irq_set_type()
|
| /arch/powerpc/platforms/52xx/ |
| A D | mpc52xx_pic.c | 177 static int mpc52xx_extirq_set_type(struct irq_data *d, unsigned int flow_type) in mpc52xx_extirq_set_type() argument 184 (int) irqd_to_hwirq(d), l2irq, flow_type); in mpc52xx_extirq_set_type() 186 switch (flow_type) { in mpc52xx_extirq_set_type() 216 static int mpc52xx_null_set_type(struct irq_data *d, unsigned int flow_type) in mpc52xx_null_set_type() argument
|
| A D | mpc52xx_gpt.c | 164 static int mpc52xx_gpt_irq_set_type(struct irq_data *d, unsigned int flow_type) in mpc52xx_gpt_irq_set_type() argument 170 dev_dbg(gpt->dev, "%s: virq=%i type=%x\n", __func__, d->irq, flow_type); in mpc52xx_gpt_irq_set_type() 174 if (flow_type & IRQF_TRIGGER_RISING) in mpc52xx_gpt_irq_set_type() 176 if (flow_type & IRQF_TRIGGER_FALLING) in mpc52xx_gpt_irq_set_type()
|
| /arch/powerpc/platforms/8xx/ |
| A D | pic.c | 50 static int mpc8xx_set_irq_type(struct irq_data *d, unsigned int flow_type) in mpc8xx_set_irq_type() argument 53 if ((flow_type & IRQ_TYPE_EDGE_FALLING) && !(irqd_to_hwirq(d) & 1)) { in mpc8xx_set_irq_type()
|
| /arch/arm/mach-pxa/ |
| A D | pxa3xx.c | 322 static int pxa_set_ext_wakeup_type(struct irq_data *d, unsigned int flow_type) in pxa_set_ext_wakeup_type() argument 324 if (flow_type & IRQ_TYPE_EDGE_RISING) in pxa_set_ext_wakeup_type() 327 if (flow_type & IRQ_TYPE_EDGE_FALLING) in pxa_set_ext_wakeup_type()
|
| /arch/powerpc/platforms/powernv/ |
| A D | opal-irqchip.c | 89 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/ |
| A D | common.c | 777 static int xive_irq_set_type(struct irq_data *d, unsigned int flow_type) in xive_irq_set_type() argument 788 if (flow_type == IRQ_TYPE_DEFAULT || flow_type == IRQ_TYPE_NONE) in xive_irq_set_type() 789 flow_type = IRQ_TYPE_EDGE_RISING; in xive_irq_set_type() 791 if (flow_type != IRQ_TYPE_EDGE_RISING && in xive_irq_set_type() 792 flow_type != IRQ_TYPE_LEVEL_LOW) in xive_irq_set_type() 795 irqd_set_trigger_type(d, flow_type); in xive_irq_set_type() 805 if ((flow_type == IRQ_TYPE_LEVEL_LOW) != in xive_irq_set_type() 809 (flow_type == IRQ_TYPE_LEVEL_LOW) ? "Level" : "Edge", in xive_irq_set_type()
|
| /arch/powerpc/platforms/85xx/ |
| A D | socrates_fpga_pic.c | 188 unsigned int flow_type) in socrates_fpga_pic_set_type() argument 198 switch (flow_type & IRQ_TYPE_SENSE_MASK) { in socrates_fpga_pic_set_type()
|
| /arch/powerpc/platforms/44x/ |
| A D | uic.c | 120 static int uic_set_irq_type(struct irq_data *d, unsigned int flow_type) in uic_set_irq_type() argument 128 switch (flow_type & IRQ_TYPE_SENSE_MASK) { in uic_set_irq_type()
|
| /arch/powerpc/include/asm/ |
| A D | xics.h | 167 extern int xics_set_irq_type(struct irq_data *d, unsigned int flow_type);
|
| /arch/mips/alchemy/common/ |
| A D | irq.c | 426 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()
|