| /Linux-v5.4/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 | 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()
|
| /Linux-v5.4/arch/powerpc/sysdev/xics/ |
| D | xics-common.c | 381 int xics_set_irq_type(struct irq_data *d, unsigned int flow_type) in xics_set_irq_type() argument 390 if (flow_type == IRQ_TYPE_DEFAULT || flow_type == IRQ_TYPE_NONE) in xics_set_irq_type() 391 flow_type = IRQ_TYPE_EDGE_RISING; in xics_set_irq_type() 393 if (flow_type != IRQ_TYPE_EDGE_RISING && in xics_set_irq_type() 394 flow_type != IRQ_TYPE_LEVEL_LOW) in xics_set_irq_type() 397 irqd_set_trigger_type(d, flow_type); in xics_set_irq_type()
|
| /Linux-v5.4/drivers/irqchip/ |
| D | irq-tb10x.c | 42 static int tb10x_irq_set_type(struct irq_data *data, unsigned int flow_type) in tb10x_irq_set_type() argument 54 switch (flow_type & IRQF_TRIGGER_MASK) { in tb10x_irq_set_type() 62 flow_type = IRQ_TYPE_LEVEL_LOW; in tb10x_irq_set_type() 76 irqd_set_trigger_type(data, flow_type); in tb10x_irq_set_type() 77 irq_setup_alt_chip(data, flow_type); in tb10x_irq_set_type()
|
| D | irq-rda-intc.c | 40 static int rda_intc_set_type(struct irq_data *data, unsigned int flow_type) in rda_intc_set_type() argument 43 if ((flow_type & (IRQF_TRIGGER_HIGH | IRQF_TRIGGER_LOW)) == flow_type) in rda_intc_set_type()
|
| D | irq-al-fic.c | 64 static int al_fic_irq_set_type(struct irq_data *data, unsigned int flow_type) in al_fic_irq_set_type() argument 73 if (((flow_type & IRQ_TYPE_SENSE_MASK) != IRQ_TYPE_LEVEL_HIGH) && in al_fic_irq_set_type() 74 ((flow_type & IRQ_TYPE_SENSE_MASK) != IRQ_TYPE_EDGE_RISING)) { in al_fic_irq_set_type() 75 pr_debug("fic doesn't support flow type %d\n", flow_type); in al_fic_irq_set_type() 80 new_state = (flow_type & IRQ_TYPE_LEVEL_HIGH) ? in al_fic_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 | 88 static int tangox_irq_set_type(struct irq_data *d, unsigned int flow_type) in tangox_irq_set_type() argument 94 switch (flow_type & IRQ_TYPE_SENSE_MASK) { in tangox_irq_set_type() 117 flow_type, d->irq); in tangox_irq_set_type() 121 return irq_setup_alt_chip(d, flow_type); in tangox_irq_set_type()
|
| D | irq-pic32-evic.c | 78 unsigned int flow_type) in pic32_set_type_edge() argument 84 if (!(flow_type & IRQ_TYPE_EDGE_BOTH)) in pic32_set_type_edge() 90 ret = pic32_set_ext_polarity(i, flow_type); in pic32_set_type_edge() 96 irqd_set_trigger_type(data, flow_type); in pic32_set_type_edge()
|
| /Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/ |
| D | en_fs_ethtool.c | 68 switch (fs->flow_type & ~(FLOW_EXT | FLOW_MAC_EXT)) { in get_flow_table() 329 u32 flow_type = fs->flow_type & ~(FLOW_EXT | FLOW_MAC_EXT); in set_flow_attrs() local 331 switch (flow_type) { in set_flow_attrs() 357 if ((fs->flow_type & FLOW_EXT) && in set_flow_attrs() 361 if (fs->flow_type & FLOW_MAC_EXT && in set_flow_attrs() 618 switch (fs->flow_type & ~(FLOW_EXT | FLOW_MAC_EXT)) { in validate_flow() 651 if ((fs->flow_type & FLOW_EXT)) { in validate_flow() 658 if (fs->flow_type & FLOW_MAC_EXT && in validate_flow() 785 static enum mlx5e_traffic_types flow_type_to_traffic_type(u32 flow_type) in flow_type_to_traffic_type() argument 787 switch (flow_type) { in flow_type_to_traffic_type() [all …]
|
| /Linux-v5.4/drivers/net/ethernet/marvell/mvpp2/ |
| D | mvpp2_cls.c | 16 .flow_type = _type, \ 548 static int mvpp2_cls_ethtool_flow_to_type(int flow_type) in mvpp2_cls_ethtool_flow_to_type() argument 550 switch (flow_type & ~(FLOW_EXT | FLOW_MAC_EXT | FLOW_RSS)) { in mvpp2_cls_ethtool_flow_to_type() 734 static int mvpp2_port_rss_hash_opts_set(struct mvpp2_port *port, int flow_type, in mvpp2_port_rss_hash_opts_set() argument 742 for_each_cls_flow_id_with_type(i, flow_type) { in mvpp2_port_rss_hash_opts_set() 823 static u16 mvpp2_port_rss_hash_opts_get(struct mvpp2_port *port, int flow_type) in mvpp2_port_rss_hash_opts_get() argument 830 for_each_cls_flow_id_with_type(i, flow_type) { in mvpp2_port_rss_hash_opts_get() 1178 for_each_cls_flow_id_containing_type(i, rule->flow_type) { in mvpp2_port_cls_rfs_rule_remove() 1211 for_each_cls_flow_id_containing_type(i, rule->flow_type) { in mvpp2_port_flt_rfs_rule_insert() 1367 if (info->fs.flow_type & FLOW_RSS) in mvpp2_ethtool_cls_rule_ins() [all …]
|
| D | mvpp2_cls.h | 197 int flow_type; member 241 if (cls_flows[(i)].flow_type != (type)) \ 247 if ((cls_flows[(i)].flow_type & (type)) != (type)) \
|
| /Linux-v5.4/drivers/gpio/ |
| D | gpio-hlwd.c | 152 unsigned int flow_type) in hlwd_gpio_irq_setup_emulation() argument 166 if (flow_type & IRQ_TYPE_EDGE_RISING) in hlwd_gpio_irq_setup_emulation() 168 if (flow_type & IRQ_TYPE_EDGE_FALLING) in hlwd_gpio_irq_setup_emulation() 172 static int hlwd_gpio_irq_set_type(struct irq_data *data, unsigned int flow_type) in hlwd_gpio_irq_set_type() argument 183 switch (flow_type) { in hlwd_gpio_irq_set_type() 197 hlwd_gpio_irq_setup_emulation(hlwd, data->hwirq, flow_type); in hlwd_gpio_irq_set_type()
|
| D | gpio-104-idi-48.c | 199 static int idi_48_irq_set_type(struct irq_data *data, unsigned flow_type) in idi_48_irq_set_type() argument 202 if (flow_type != IRQ_TYPE_NONE && in idi_48_irq_set_type() 203 (flow_type & IRQ_TYPE_EDGE_BOTH) != IRQ_TYPE_EDGE_BOTH) in idi_48_irq_set_type()
|
| D | gpio-104-idio-16.c | 183 static int idio_16_irq_set_type(struct irq_data *data, unsigned flow_type) in idio_16_irq_set_type() argument 186 if (flow_type != IRQ_TYPE_NONE && in idio_16_irq_set_type() 187 (flow_type & IRQ_TYPE_EDGE_BOTH) != IRQ_TYPE_EDGE_BOTH) in idio_16_irq_set_type()
|
| /Linux-v5.4/drivers/net/ethernet/aquantia/atlantic/ |
| D | aq_filters.c | 11 if (fsp->flow_type & FLOW_MAC_EXT) in aq_rule_is_approve() 14 switch (fsp->flow_type & ~FLOW_EXT) { in aq_rule_is_approve() 56 if (fsp1->flow_type != fsp2->flow_type || in aq_match_filter() 184 if (fsp->flow_type & FLOW_EXT) { in aq_check_filter() 196 switch (fsp->flow_type & ~FLOW_EXT) { in aq_check_filter() 241 } else if ((fsp->flow_type & ~FLOW_EXT) != ETHER_FLOW && in aq_rule_is_not_support() 247 } else if (fsp->flow_type & FLOW_MAC_EXT) { in aq_rule_is_not_support() 485 switch (fsp->flow_type) { in aq_set_data_fl3l4() 522 if (fsp->flow_type != IP_USER_FLOW && in aq_set_data_fl3l4() 523 fsp->flow_type != IPV6_USER_FLOW) { in aq_set_data_fl3l4() [all …]
|
| /Linux-v5.4/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-v5.4/drivers/net/ethernet/sfc/ |
| D | ethtool.c | 843 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in efx_ethtool_get_class_rule() 870 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in efx_ethtool_get_class_rule() 894 rule->flow_type = ETHER_FLOW; in efx_ethtool_get_class_rule() 918 rule->flow_type = IPV4_USER_FLOW; in efx_ethtool_get_class_rule() 938 rule->flow_type = IPV6_USER_FLOW; in efx_ethtool_get_class_rule() 960 rule->flow_type |= FLOW_EXT; in efx_ethtool_get_class_rule() 966 rule->flow_type |= FLOW_RSS; in efx_ethtool_get_class_rule() 990 if (info->flow_type & FLOW_RSS && info->rss_context) { in efx_ethtool_get_rxnfc() 1000 switch (info->flow_type & ~FLOW_RSS) { in efx_ethtool_get_rxnfc() 1046 if (info->fs.flow_type & FLOW_RSS) in efx_ethtool_get_rxnfc() [all …]
|
| /Linux-v5.4/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-v5.4/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-v5.4/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-v5.4/arch/powerpc/sysdev/xive/ |
| D | common.c | 783 static int xive_irq_set_type(struct irq_data *d, unsigned int flow_type) in xive_irq_set_type() argument 794 if (flow_type == IRQ_TYPE_DEFAULT || flow_type == IRQ_TYPE_NONE) in xive_irq_set_type() 795 flow_type = IRQ_TYPE_EDGE_RISING; in xive_irq_set_type() 797 if (flow_type != IRQ_TYPE_EDGE_RISING && in xive_irq_set_type() 798 flow_type != IRQ_TYPE_LEVEL_LOW) in xive_irq_set_type() 801 irqd_set_trigger_type(d, flow_type); in xive_irq_set_type() 811 if ((flow_type == IRQ_TYPE_LEVEL_LOW) != in xive_irq_set_type() 815 (flow_type == IRQ_TYPE_LEVEL_LOW) ? "Level" : "Edge", in xive_irq_set_type()
|
| /Linux-v5.4/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-v5.4/drivers/net/ethernet/sfc/falcon/ |
| D | ethtool.c | 820 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in ef4_ethtool_get_class_rule() 847 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in ef4_ethtool_get_class_rule() 871 rule->flow_type = ETHER_FLOW; in ef4_ethtool_get_class_rule() 895 rule->flow_type = IPV4_USER_FLOW; in ef4_ethtool_get_class_rule() 915 rule->flow_type = IPV6_USER_FLOW; in ef4_ethtool_get_class_rule() 937 rule->flow_type |= FLOW_EXT; in ef4_ethtool_get_class_rule() 960 switch (info->flow_type) { in ef4_ethtool_get_rxnfc() 1047 if ((rule->flow_type & FLOW_EXT) && in ef4_ethtool_set_class_rule() 1057 switch (rule->flow_type & ~FLOW_EXT) { in ef4_ethtool_set_class_rule() 1063 spec.ip_proto = ((rule->flow_type & ~FLOW_EXT) == TCP_V4_FLOW ? in ef4_ethtool_set_class_rule() [all …]
|