Home
last modified time | relevance | path

Searched refs:flow_type (Results 1 – 21 of 21) 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.c111 int ehv_pic_set_irq_type(struct irq_data *d, unsigned int flow_type) in ehv_pic_set_irq_type() argument
117 if (flow_type == IRQ_TYPE_NONE) in ehv_pic_set_irq_type()
118 flow_type = IRQ_TYPE_LEVEL_LOW; in ehv_pic_set_irq_type()
120 irqd_set_trigger_type(d, flow_type); in ehv_pic_set_irq_type()
122 vecpri = ehv_pic_type_to_vecpri(flow_type); in ehv_pic_set_irq_type()
Dipic.c601 static int ipic_set_irq_type(struct irq_data *d, unsigned int flow_type) in ipic_set_irq_type() argument
607 if (flow_type == IRQ_TYPE_NONE) in ipic_set_irq_type()
608 flow_type = IRQ_TYPE_LEVEL_LOW; in ipic_set_irq_type()
612 if (!(flow_type & (IRQ_TYPE_LEVEL_LOW | IRQ_TYPE_EDGE_FALLING))) { in ipic_set_irq_type()
614 flow_type); in ipic_set_irq_type()
618 if ((flow_type & IRQ_TYPE_EDGE_FALLING) && !ipic_info[src].ack) { in ipic_set_irq_type()
625 irqd_set_trigger_type(d, flow_type); in ipic_set_irq_type()
626 if (flow_type & IRQ_TYPE_LEVEL_LOW) { in ipic_set_irq_type()
643 return (flow_type & IRQ_TYPE_LEVEL_LOW) ? 0 : -EINVAL; in ipic_set_irq_type()
646 if ((flow_type & IRQ_TYPE_SENSE_MASK) == IRQ_TYPE_EDGE_FALLING) { in ipic_set_irq_type()
Dmpc8xx_pic.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()
Dmpic.h37 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 …]
Duic.c122 static int uic_set_irq_type(struct irq_data *d, unsigned int flow_type) in uic_set_irq_type() argument
130 switch (flow_type & IRQ_TYPE_SENSE_MASK) { in uic_set_irq_type()
Dxilinx_intc.c82 static int xilinx_intc_set_type(struct irq_data *d, unsigned int flow_type) in xilinx_intc_set_type() argument
/arch/avr32/mach-at32ap/
Dextint.c89 static int eic_set_irq_type(struct irq_data *d, unsigned int flow_type) in eic_set_irq_type() argument
96 flow_type &= IRQ_TYPE_SENSE_MASK; in eic_set_irq_type()
97 if (flow_type == IRQ_TYPE_NONE) in eic_set_irq_type()
98 flow_type = IRQ_TYPE_LEVEL_LOW; in eic_set_irq_type()
104 switch (flow_type) { in eic_set_irq_type()
129 irqd_set_trigger_type(d, flow_type); in eic_set_irq_type()
130 if (flow_type & (IRQ_TYPE_LEVEL_LOW | IRQ_TYPE_LEVEL_HIGH)) in eic_set_irq_type()
/arch/mips/bcm63xx/
Dirq.c279 unsigned int flow_type) in bcm63xx_external_irq_set_type() argument
286 flow_type &= IRQ_TYPE_SENSE_MASK; in bcm63xx_external_irq_set_type()
288 if (flow_type == IRQ_TYPE_NONE) in bcm63xx_external_irq_set_type()
289 flow_type = IRQ_TYPE_LEVEL_LOW; in bcm63xx_external_irq_set_type()
292 switch (flow_type) { in bcm63xx_external_irq_set_type()
366 irqd_set_trigger_type(d, flow_type); in bcm63xx_external_irq_set_type()
367 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/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.c166 static int mpc52xx_gpt_irq_set_type(struct irq_data *d, unsigned int flow_type) in mpc52xx_gpt_irq_set_type() argument
172 dev_dbg(gpt->dev, "%s: virq=%i type=%x\n", __func__, d->irq, flow_type); in mpc52xx_gpt_irq_set_type()
176 if (flow_type & IRQF_TRIGGER_RISING) in mpc52xx_gpt_irq_set_type()
178 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/arm/mach-davinci/
Dcp_intc.c54 static int cp_intc_set_irq_type(struct irq_data *d, unsigned int flow_type) in cp_intc_set_irq_type() argument
61 switch (flow_type) { in cp_intc_set_irq_type()
/arch/mips/jz4740/
Dgpio.c343 static int jz_gpio_irq_set_type(struct irq_data *data, unsigned int flow_type) in jz_gpio_irq_set_type() argument
348 if (flow_type == IRQ_TYPE_EDGE_BOTH) { in jz_gpio_irq_set_type()
351 flow_type = IRQ_TYPE_EDGE_FALLING; in jz_gpio_irq_set_type()
353 flow_type = IRQ_TYPE_EDGE_RISING; in jz_gpio_irq_set_type()
359 switch (flow_type) { in jz_gpio_irq_set_type()
/arch/mips/pnx833x/common/
Dinterrupts.c209 static int pnx833x_set_type_gpio_irq(struct irq_data *d, unsigned int flow_type) in pnx833x_set_type_gpio_irq() argument
214 switch (flow_type) { in pnx833x_set_type_gpio_irq()
/arch/powerpc/platforms/powernv/
Dopal-irqchip.c101 static int opal_event_set_type(struct irq_data *d, unsigned int flow_type) in opal_event_set_type() argument
108 if (flow_type != IRQ_TYPE_LEVEL_HIGH) in opal_event_set_type()
/arch/powerpc/platforms/85xx/
Dsocrates_fpga_pic.c192 unsigned int flow_type) in socrates_fpga_pic_set_type() argument
202 switch (flow_type & IRQ_TYPE_SENSE_MASK) { in socrates_fpga_pic_set_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()