Home
last modified time | relevance | path

Searched refs:flow_type (Results 1 – 25 of 82) sorted by relevance

1234

/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c68 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 …]
/drivers/irqchip/
Dirq-tb10x.c42 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()
Dirq-al-fic.c64 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()
Dirq-rda-intc.c40 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()
Dirq-sunxi-nmi.c110 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()
Dirq-tango.c88 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()
Dirq-pic32-evic.c78 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()
Dirq-vt8500.c102 static int vt8500_irq_set_type(struct irq_data *d, unsigned int flow_type) in vt8500_irq_set_type() argument
111 switch (flow_type) { in vt8500_irq_set_type()
Dirq-davinci-cp-intc.c74 unsigned int flow_type) in davinci_cp_intc_set_irq_type() argument
83 switch (flow_type) { in davinci_cp_intc_set_irq_type()
/drivers/net/ethernet/marvell/mvpp2/
Dmvpp2_cls.c16 .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 …]
Dmvpp2_cls.h197 int flow_type; member
241 if (cls_flows[(i)].flow_type != (type)) \
247 if ((cls_flows[(i)].flow_type & (type)) != (type)) \
/drivers/net/ethernet/aquantia/atlantic/
Daq_filters.c11 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 …]
/drivers/gpio/
Dgpio-hlwd.c152 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()
Dgpio-mpc8xxx.c185 static int mpc8xxx_irq_set_type(struct irq_data *d, unsigned int flow_type) in mpc8xxx_irq_set_type() argument
191 switch (flow_type) { in mpc8xxx_irq_set_type()
215 static int mpc512x_irq_set_type(struct irq_data *d, unsigned int flow_type) in mpc512x_irq_set_type() argument
232 switch (flow_type) { in mpc512x_irq_set_type()
Dgpio-104-idio-16.c183 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()
Dgpio-104-idi-48.c199 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()
Dgpio-eic-sprd.c309 static int sprd_eic_irq_set_type(struct irq_data *data, unsigned int flow_type) in sprd_eic_irq_set_type() argument
318 switch (flow_type) { in sprd_eic_irq_set_type()
343 switch (flow_type) { in sprd_eic_irq_set_type()
368 switch (flow_type) { in sprd_eic_irq_set_type()
403 switch (flow_type) { in sprd_eic_irq_set_type()
Dgpio-ath79.c115 unsigned int flow_type) in ath79_gpio_irq_set_type() argument
123 switch (flow_type) { in ath79_gpio_irq_set_type()
143 if (flow_type == IRQ_TYPE_EDGE_BOTH) { in ath79_gpio_irq_set_type()
Dgpio-pci-idio-16.c248 static int idio_16_irq_set_type(struct irq_data *data, unsigned int flow_type) in idio_16_irq_set_type() argument
251 if (flow_type != IRQ_TYPE_NONE && in idio_16_irq_set_type()
252 (flow_type & IRQ_TYPE_EDGE_BOTH) != IRQ_TYPE_EDGE_BOTH) in idio_16_irq_set_type()
/drivers/net/ethernet/sfc/
Dethtool.c843 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 …]
/drivers/net/ethernet/sfc/falcon/
Dethtool.c820 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 …]
/drivers/mfd/
Dqcom-pm8xxx.c295 static int pm8xxx_irq_set_type(struct irq_data *d, unsigned int flow_type) in pm8xxx_irq_set_type() argument
307 if (flow_type & (IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING)) { in pm8xxx_irq_set_type()
308 if (flow_type & IRQF_TRIGGER_RISING) in pm8xxx_irq_set_type()
310 if (flow_type & IRQF_TRIGGER_FALLING) in pm8xxx_irq_set_type()
315 if (flow_type & IRQF_TRIGGER_HIGH) in pm8xxx_irq_set_type()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ethtool.c2434 switch (rule->filter.formatted.flow_type) { in ixgbe_get_ethtool_fdir_entry()
2436 fsp->flow_type = TCP_V4_FLOW; in ixgbe_get_ethtool_fdir_entry()
2439 fsp->flow_type = UDP_V4_FLOW; in ixgbe_get_ethtool_fdir_entry()
2442 fsp->flow_type = SCTP_V4_FLOW; in ixgbe_get_ethtool_fdir_entry()
2445 fsp->flow_type = IP_USER_FLOW; in ixgbe_get_ethtool_fdir_entry()
2468 fsp->flow_type |= FLOW_EXT; in ixgbe_get_ethtool_fdir_entry()
2509 switch (cmd->flow_type) { in ixgbe_get_rss_hash_opts()
2634 u8 *flow_type) in ixgbe_flowspec_to_flow_type() argument
2636 switch (fsp->flow_type & ~FLOW_EXT) { in ixgbe_flowspec_to_flow_type()
2638 *flow_type = IXGBE_ATR_FLOW_TYPE_TCPV4; in ixgbe_flowspec_to_flow_type()
[all …]
/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c2988 switch (cmd->flow_type) { in i40e_get_rss_hash_opts()
3033 if (cmd->flow_type == TCP_V4_FLOW || in i40e_get_rss_hash_opts()
3034 cmd->flow_type == UDP_V4_FLOW) { in i40e_get_rss_hash_opts()
3039 } else if (cmd->flow_type == TCP_V6_FLOW || in i40e_get_rss_hash_opts()
3040 cmd->flow_type == UDP_V6_FLOW) { in i40e_get_rss_hash_opts()
3099 if (!(fsp->flow_type & FLOW_EXT)) in i40e_parse_rx_flow_user_data()
3142 fsp->flow_type |= FLOW_EXT; in i40e_fill_rx_flow_user_data()
3214 fsp->flow_type = rule->flow_type; in i40e_get_ethtool_fdir_entry()
3215 if (fsp->flow_type == IP_USER_FLOW) { in i40e_get_ethtool_fdir_entry()
3229 switch (rule->flow_type) { in i40e_get_ethtool_fdir_entry()
[all …]
/drivers/net/dsa/
Dbcm_sf2_cfp.c350 switch (fs->flow_type & ~FLOW_EXT) { in bcm_sf2_cfp_ipv4_rule_set()
570 if (rule->fs.flow_type != fs->flow_type || in bcm_sf2_cfp_rule_cmp()
575 switch (fs->flow_type & ~FLOW_EXT) { in bcm_sf2_cfp_rule_cmp()
613 switch (fs->flow_type & ~FLOW_EXT) { in bcm_sf2_cfp_ipv6_rule_set()
854 switch (fs->flow_type & ~FLOW_EXT) { in bcm_sf2_cfp_rule_insert()
881 if ((fs->flow_type & FLOW_EXT) && (fs->m_ext.vlan_etype || in bcm_sf2_cfp_rule_set()

1234