/arch/powerpc/sysdev/ |
D | cpm2_pic.c | 132 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 …]
|
D | ehv_pic.c | 112 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()
|
D | ipic.c | 598 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()
|
D | mpic.h | 32 extern int mpic_set_irq_type(struct irq_data *d, unsigned int flow_type);
|
D | mpic.c | 867 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/ |
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/ |
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/ |
D | irq_txx9.c | 112 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/ |
D | irq_tx4939.c | 104 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/ |
D | pic.c | 51 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/ |
D | mpc52xx_pic.c | 176 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
|
D | mpc52xx_gpt.c | 162 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/ |
D | pxa3xx.c | 309 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/ |
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/ |
D | common.c | 756 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/ |
D | socrates_fpga_pic.c | 187 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/ |
D | uic.c | 118 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/ |
D | xics.h | 169 extern int xics_set_irq_type(struct irq_data *d, unsigned int flow_type);
|
/arch/mips/alchemy/common/ |
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()
|