Home
last modified time | relevance | path

Searched refs:flow_type (Results 1 – 23 of 23) 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.c602 static int ipic_set_irq_type(struct irq_data *d, unsigned int flow_type) in ipic_set_irq_type() argument
608 if (flow_type == IRQ_TYPE_NONE) in ipic_set_irq_type()
609 flow_type = IRQ_TYPE_LEVEL_LOW; in ipic_set_irq_type()
613 if (!(flow_type & (IRQ_TYPE_LEVEL_LOW | IRQ_TYPE_EDGE_FALLING))) { in ipic_set_irq_type()
615 flow_type); in ipic_set_irq_type()
619 if ((flow_type & IRQ_TYPE_EDGE_FALLING) && !ipic_info[src].ack) { in ipic_set_irq_type()
626 irqd_set_trigger_type(d, flow_type); in ipic_set_irq_type()
627 if (flow_type & IRQ_TYPE_LEVEL_LOW) { in ipic_set_irq_type()
644 return (flow_type & IRQ_TYPE_LEVEL_LOW) ? 0 : -EINVAL; in ipic_set_irq_type()
647 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.c869 int mpic_set_irq_type(struct irq_data *d, unsigned int flow_type) in mpic_set_irq_type() argument
876 mpic, d->irq, src, flow_type); in mpic_set_irq_type()
884 if (flow_type == IRQ_TYPE_NONE) in mpic_set_irq_type()
885 flow_type = IRQ_TYPE_DEFAULT; in mpic_set_irq_type()
888 if (flow_type == IRQ_TYPE_DEFAULT) { in mpic_set_irq_type()
896 flow_type = IRQ_TYPE_EDGE_RISING; in mpic_set_irq_type()
899 flow_type = IRQ_TYPE_EDGE_FALLING; in mpic_set_irq_type()
902 flow_type = IRQ_TYPE_LEVEL_HIGH; in mpic_set_irq_type()
905 flow_type = IRQ_TYPE_LEVEL_LOW; in mpic_set_irq_type()
911 irqd_set_trigger_type(d, flow_type); in mpic_set_irq_type()
[all …]
Duic.c123 static int uic_set_irq_type(struct irq_data *d, unsigned int flow_type) in uic_set_irq_type() argument
131 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/arm/mach-msm/
Dirq.c90 static int msm_irq_set_type(struct irq_data *d, unsigned int flow_type) in msm_irq_set_type() argument
96 if (flow_type & (IRQF_TRIGGER_FALLING | IRQF_TRIGGER_LOW)) in msm_irq_set_type()
98 if (flow_type & (IRQF_TRIGGER_RISING | IRQF_TRIGGER_HIGH)) in msm_irq_set_type()
101 if (flow_type & (IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING)) { in msm_irq_set_type()
105 if (flow_type & (IRQF_TRIGGER_HIGH | IRQF_TRIGGER_LOW)) { in msm_irq_set_type()
Dsirc.c90 static int sirc_irq_set_type(struct irq_data *d, unsigned int flow_type) in sirc_irq_set_type() argument
98 if (flow_type & (IRQF_TRIGGER_LOW | IRQF_TRIGGER_FALLING)) in sirc_irq_set_type()
106 if (flow_type & (IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING)) { in sirc_irq_set_type()
Dirq-vic.c296 static int msm_irq_set_type(struct irq_data *d, unsigned int flow_type) in msm_irq_set_type() argument
306 if (flow_type & (IRQF_TRIGGER_FALLING | IRQF_TRIGGER_LOW)) in msm_irq_set_type()
308 if (flow_type & (IRQF_TRIGGER_RISING | IRQF_TRIGGER_HIGH)) in msm_irq_set_type()
314 if (flow_type & (IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING)) { in msm_irq_set_type()
318 if (flow_type & (IRQF_TRIGGER_HIGH | IRQF_TRIGGER_LOW)) { in msm_irq_set_type()
/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/mips/jz4740/
Dgpio.c349 static int jz_gpio_irq_set_type(struct irq_data *data, unsigned int flow_type) in jz_gpio_irq_set_type() argument
354 if (flow_type == IRQ_TYPE_EDGE_BOTH) { in jz_gpio_irq_set_type()
357 flow_type = IRQ_TYPE_EDGE_FALLING; in jz_gpio_irq_set_type()
359 flow_type = IRQ_TYPE_EDGE_RISING; in jz_gpio_irq_set_type()
365 switch (flow_type) { in jz_gpio_irq_set_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/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/arm/mach-pxa/
Dpxa3xx.c357 static int pxa_set_ext_wakeup_type(struct irq_data *d, unsigned int flow_type) in pxa_set_ext_wakeup_type() argument
359 if (flow_type & IRQ_TYPE_EDGE_RISING) in pxa_set_ext_wakeup_type()
362 if (flow_type & IRQ_TYPE_EDGE_FALLING) in pxa_set_ext_wakeup_type()
/arch/powerpc/platforms/85xx/
Dsocrates_fpga_pic.c191 unsigned int flow_type) in socrates_fpga_pic_set_type() argument
201 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()