/Linux-v4.19/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 | 111 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()
|
D | ipic.c | 602 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()
|
/Linux-v4.19/arch/powerpc/sysdev/xics/ |
D | xics-common.c | 386 int xics_set_irq_type(struct irq_data *d, unsigned int flow_type) in xics_set_irq_type() argument 395 if (flow_type == IRQ_TYPE_DEFAULT || flow_type == IRQ_TYPE_NONE) in xics_set_irq_type() 396 flow_type = IRQ_TYPE_EDGE_RISING; in xics_set_irq_type() 398 if (flow_type != IRQ_TYPE_EDGE_RISING && in xics_set_irq_type() 399 flow_type != IRQ_TYPE_LEVEL_LOW) in xics_set_irq_type() 402 irqd_set_trigger_type(d, flow_type); in xics_set_irq_type()
|
/Linux-v4.19/drivers/irqchip/ |
D | irq-tb10x.c | 54 static int tb10x_irq_set_type(struct irq_data *data, unsigned int flow_type) in tb10x_irq_set_type() argument 66 switch (flow_type & IRQF_TRIGGER_MASK) { in tb10x_irq_set_type() 74 flow_type = IRQ_TYPE_LEVEL_LOW; in tb10x_irq_set_type() 88 irqd_set_trigger_type(data, flow_type); in tb10x_irq_set_type() 89 irq_setup_alt_chip(data, flow_type); in tb10x_irq_set_type()
|
D | irq-sunxi-nmi.c | 110 static int sunxi_sc_nmi_set_type(struct irq_data *data, unsigned int flow_type) in sunxi_sc_nmi_set_type() argument 121 switch (flow_type & IRQF_TRIGGER_MASK) { in sunxi_sc_nmi_set_type() 142 irqd_set_trigger_type(data, flow_type); in sunxi_sc_nmi_set_type() 143 irq_setup_alt_chip(data, flow_type); in sunxi_sc_nmi_set_type() 146 if (ct->type & flow_type) in sunxi_sc_nmi_set_type()
|
D | irq-tango.c | 92 static int tangox_irq_set_type(struct irq_data *d, unsigned int flow_type) in tangox_irq_set_type() argument 98 switch (flow_type & IRQ_TYPE_SENSE_MASK) { in tangox_irq_set_type() 121 flow_type, d->irq); in tangox_irq_set_type() 125 return irq_setup_alt_chip(d, flow_type); in tangox_irq_set_type()
|
D | irq-pic32-evic.c | 82 unsigned int flow_type) in pic32_set_type_edge() argument 88 if (!(flow_type & IRQ_TYPE_EDGE_BOTH)) in pic32_set_type_edge() 94 ret = pic32_set_ext_polarity(i, flow_type); in pic32_set_type_edge() 100 irqd_set_trigger_type(data, flow_type); in pic32_set_type_edge()
|
/Linux-v4.19/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()
|
/Linux-v4.19/drivers/net/ethernet/sfc/ |
D | ethtool.c | 846 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in efx_ethtool_get_class_rule() 873 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in efx_ethtool_get_class_rule() 897 rule->flow_type = ETHER_FLOW; in efx_ethtool_get_class_rule() 921 rule->flow_type = IPV4_USER_FLOW; in efx_ethtool_get_class_rule() 941 rule->flow_type = IPV6_USER_FLOW; in efx_ethtool_get_class_rule() 963 rule->flow_type |= FLOW_EXT; in efx_ethtool_get_class_rule() 969 rule->flow_type |= FLOW_RSS; in efx_ethtool_get_class_rule() 993 if (info->flow_type & FLOW_RSS && info->rss_context) { in efx_ethtool_get_rxnfc() 1003 switch (info->flow_type & ~FLOW_RSS) { in efx_ethtool_get_rxnfc() 1049 if (info->fs.flow_type & FLOW_RSS) in efx_ethtool_get_rxnfc() [all …]
|
/Linux-v4.19/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()
|
/Linux-v4.19/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()
|
/Linux-v4.19/drivers/net/ethernet/marvell/mvpp2/ |
D | mvpp2_cls.c | 16 .flow_type = _type, \ 608 static int mvpp2_port_rss_hash_opts_set(struct mvpp2_port *port, int flow_type, in mvpp2_port_rss_hash_opts_set() argument 621 if (flow->flow_type != flow_type) in mvpp2_port_rss_hash_opts_set() 698 static u16 mvpp2_port_rss_hash_opts_get(struct mvpp2_port *port, int flow_type) in mvpp2_port_rss_hash_opts_get() argument 710 if (flow->flow_type != flow_type) in mvpp2_port_rss_hash_opts_get() 969 switch (info->flow_type) { in mvpp2_ethtool_rxfh_set() 997 return mvpp2_port_rss_hash_opts_set(port, info->flow_type, hash_opts); in mvpp2_ethtool_rxfh_set() 1005 hash_opts = mvpp2_port_rss_hash_opts_get(port, info->flow_type); in mvpp2_ethtool_rxfh_get()
|
/Linux-v4.19/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
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_fs_ethtool.c | 66 switch (fs->flow_type & ~(FLOW_EXT | FLOW_MAC_EXT)) { in get_flow_table() 327 u32 flow_type = fs->flow_type & ~(FLOW_EXT | FLOW_MAC_EXT); in set_flow_attrs() local 329 switch (flow_type) { in set_flow_attrs() 355 if ((fs->flow_type & FLOW_EXT) && in set_flow_attrs() 359 if (fs->flow_type & FLOW_MAC_EXT && in set_flow_attrs() 631 switch (fs->flow_type & ~(FLOW_EXT | FLOW_MAC_EXT)) { in validate_flow() 664 if ((fs->flow_type & FLOW_EXT)) { in validate_flow() 671 if (fs->flow_type & FLOW_MAC_EXT && in validate_flow()
|
/Linux-v4.19/arch/powerpc/sysdev/xive/ |
D | common.c | 741 static int xive_irq_set_type(struct irq_data *d, unsigned int flow_type) in xive_irq_set_type() argument 752 if (flow_type == IRQ_TYPE_DEFAULT || flow_type == IRQ_TYPE_NONE) in xive_irq_set_type() 753 flow_type = IRQ_TYPE_EDGE_RISING; in xive_irq_set_type() 755 if (flow_type != IRQ_TYPE_EDGE_RISING && in xive_irq_set_type() 756 flow_type != IRQ_TYPE_LEVEL_LOW) in xive_irq_set_type() 759 irqd_set_trigger_type(d, flow_type); in xive_irq_set_type() 769 if ((flow_type == IRQ_TYPE_LEVEL_LOW) != in xive_irq_set_type() 773 (flow_type == IRQ_TYPE_LEVEL_LOW) ? "Level" : "Edge", in xive_irq_set_type()
|
/Linux-v4.19/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()
|
/Linux-v4.19/drivers/gpio/ |
D | gpio-mpc8xxx.c | 163 static int mpc8xxx_irq_set_type(struct irq_data *d, unsigned int flow_type) in mpc8xxx_irq_set_type() argument 169 switch (flow_type) { in mpc8xxx_irq_set_type() 193 static int mpc512x_irq_set_type(struct irq_data *d, unsigned int flow_type) in mpc512x_irq_set_type() argument 210 switch (flow_type) { in mpc512x_irq_set_type()
|
D | gpio-104-idi-48.c | 207 static int idi_48_irq_set_type(struct irq_data *data, unsigned flow_type) in idi_48_irq_set_type() argument 210 if (flow_type != IRQ_TYPE_NONE && in idi_48_irq_set_type() 211 (flow_type & IRQ_TYPE_EDGE_BOTH) != IRQ_TYPE_EDGE_BOTH) in idi_48_irq_set_type()
|
D | gpio-104-idio-16.c | 191 static int idio_16_irq_set_type(struct irq_data *data, unsigned flow_type) in idio_16_irq_set_type() argument 194 if (flow_type != IRQ_TYPE_NONE && in idio_16_irq_set_type() 195 (flow_type & IRQ_TYPE_EDGE_BOTH) != IRQ_TYPE_EDGE_BOTH) in idio_16_irq_set_type()
|
/Linux-v4.19/drivers/net/ethernet/sfc/falcon/ |
D | ethtool.c | 823 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in ef4_ethtool_get_class_rule() 850 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in ef4_ethtool_get_class_rule() 874 rule->flow_type = ETHER_FLOW; in ef4_ethtool_get_class_rule() 898 rule->flow_type = IPV4_USER_FLOW; in ef4_ethtool_get_class_rule() 918 rule->flow_type = IPV6_USER_FLOW; in ef4_ethtool_get_class_rule() 940 rule->flow_type |= FLOW_EXT; in ef4_ethtool_get_class_rule() 963 switch (info->flow_type) { in ef4_ethtool_get_rxnfc() 1050 if ((rule->flow_type & FLOW_EXT) && in ef4_ethtool_set_class_rule() 1060 switch (rule->flow_type & ~FLOW_EXT) { in ef4_ethtool_set_class_rule() 1066 spec.ip_proto = ((rule->flow_type & ~FLOW_EXT) == TCP_V4_FLOW ? in ef4_ethtool_set_class_rule() [all …]
|
/Linux-v4.19/arch/arm/mach-pxa/ |
D | pxa3xx.c | 312 static int pxa_set_ext_wakeup_type(struct irq_data *d, unsigned int flow_type) in pxa_set_ext_wakeup_type() argument 314 if (flow_type & IRQ_TYPE_EDGE_RISING) in pxa_set_ext_wakeup_type() 317 if (flow_type & IRQ_TYPE_EDGE_FALLING) in pxa_set_ext_wakeup_type()
|
/Linux-v4.19/arch/arm/mach-davinci/ |
D | cp_intc.c | 55 static int cp_intc_set_irq_type(struct irq_data *d, unsigned int flow_type) in cp_intc_set_irq_type() argument 62 switch (flow_type) { in cp_intc_set_irq_type()
|
/Linux-v4.19/arch/mips/pnx833x/common/ |
D | interrupts.c | 209 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()
|
/Linux-v4.19/drivers/net/dsa/ |
D | bcm_sf2_cfp.c | 337 switch (fs->flow_type & ~FLOW_EXT) { in bcm_sf2_cfp_ipv4_rule_set() 531 switch (fs->flow_type & ~FLOW_EXT) { in bcm_sf2_cfp_ipv6_rule_set() 741 if ((fs->flow_type & FLOW_EXT) && (fs->m_ext.vlan_etype || in bcm_sf2_cfp_rule_set() 778 switch (fs->flow_type & ~FLOW_EXT) { in bcm_sf2_cfp_rule_set() 949 fs->flow_type = TCP_V4_FLOW; in bcm_sf2_cfp_ipv4_rule_get() 954 fs->flow_type = UDP_V4_FLOW; in bcm_sf2_cfp_ipv4_rule_get() 1096 fs->flow_type = TCP_V6_FLOW; in bcm_sf2_cfp_ipv6_rule_get() 1099 fs->flow_type = UDP_V6_FLOW; in bcm_sf2_cfp_ipv6_rule_get()
|