Searched refs:flow_type (Results 1 - 62 of 62) sorted by relevance

/linux-4.4.14/arch/powerpc/sysdev/
H A Dcpm2_pic.c132 static int cpm2_set_irq_type(struct irq_data *d, unsigned int flow_type) cpm2_set_irq_type() argument
142 if (flow_type == IRQ_TYPE_NONE) cpm2_set_irq_type()
143 flow_type = IRQ_TYPE_EDGE_BOTH; cpm2_set_irq_type()
145 if (flow_type != IRQ_TYPE_EDGE_BOTH && cpm2_set_irq_type()
146 flow_type != IRQ_TYPE_EDGE_FALLING) cpm2_set_irq_type()
149 if (flow_type == IRQ_TYPE_NONE) cpm2_set_irq_type()
150 flow_type = IRQ_TYPE_LEVEL_LOW; cpm2_set_irq_type()
152 if (flow_type & (IRQ_TYPE_EDGE_RISING | IRQ_TYPE_LEVEL_HIGH)) cpm2_set_irq_type()
156 irqd_set_trigger_type(d, flow_type); cpm2_set_irq_type()
157 if (flow_type & IRQ_TYPE_LEVEL_LOW) cpm2_set_irq_type()
171 return (flow_type & IRQ_TYPE_LEVEL_LOW) ? cpm2_set_irq_type()
176 if ((flow_type & IRQ_TYPE_SENSE_MASK) == IRQ_TYPE_EDGE_FALLING) cpm2_set_irq_type()
186 pr_err("CPM2 PIC: sense type 0x%x not supported\n", flow_type); cpm2_set_irq_type()
H A Dehv_pic.c111 int ehv_pic_set_irq_type(struct irq_data *d, unsigned int flow_type) ehv_pic_set_irq_type() argument
117 if (flow_type == IRQ_TYPE_NONE) ehv_pic_set_irq_type()
118 flow_type = IRQ_TYPE_LEVEL_LOW; ehv_pic_set_irq_type()
120 irqd_set_trigger_type(d, flow_type); ehv_pic_set_irq_type()
122 vecpri = ehv_pic_type_to_vecpri(flow_type); ehv_pic_set_irq_type()
H A Dmpc8xx_pic.c51 static int mpc8xx_set_irq_type(struct irq_data *d, unsigned int flow_type) mpc8xx_set_irq_type() argument
54 if ((flow_type & IRQ_TYPE_EDGE_FALLING) && !(irqd_to_hwirq(d) & 1)) { mpc8xx_set_irq_type()
H A Dmpic.h37 extern int mpic_set_irq_type(struct irq_data *d, unsigned int flow_type); mpic_pasemi_msi_init()
H A Dipic.c601 static int ipic_set_irq_type(struct irq_data *d, unsigned int flow_type) ipic_set_irq_type() argument
607 if (flow_type == IRQ_TYPE_NONE) ipic_set_irq_type()
608 flow_type = IRQ_TYPE_LEVEL_LOW; ipic_set_irq_type()
612 if (!(flow_type & (IRQ_TYPE_LEVEL_LOW | IRQ_TYPE_EDGE_FALLING))) { ipic_set_irq_type()
614 flow_type); ipic_set_irq_type()
618 if ((flow_type & IRQ_TYPE_EDGE_FALLING) && !ipic_info[src].ack) { ipic_set_irq_type()
625 irqd_set_trigger_type(d, flow_type); ipic_set_irq_type()
626 if (flow_type & IRQ_TYPE_LEVEL_LOW) { ipic_set_irq_type()
643 return (flow_type & IRQ_TYPE_LEVEL_LOW) ? 0 : -EINVAL; ipic_set_irq_type()
646 if ((flow_type & IRQ_TYPE_SENSE_MASK) == IRQ_TYPE_EDGE_FALLING) { ipic_set_irq_type()
H A Dmpic.c867 int mpic_set_irq_type(struct irq_data *d, unsigned int flow_type) mpic_set_irq_type() argument
874 mpic, d->irq, src, flow_type); mpic_set_irq_type()
882 if (flow_type == IRQ_TYPE_NONE) mpic_set_irq_type()
883 flow_type = IRQ_TYPE_DEFAULT; mpic_set_irq_type()
886 if (flow_type == IRQ_TYPE_DEFAULT) { mpic_set_irq_type()
894 flow_type = IRQ_TYPE_EDGE_RISING; mpic_set_irq_type()
897 flow_type = IRQ_TYPE_EDGE_FALLING; mpic_set_irq_type()
900 flow_type = IRQ_TYPE_LEVEL_HIGH; mpic_set_irq_type()
903 flow_type = IRQ_TYPE_LEVEL_LOW; mpic_set_irq_type()
909 irqd_set_trigger_type(d, flow_type); mpic_set_irq_type()
916 vecpri = mpic_type_to_vecpri(mpic, flow_type); mpic_set_irq_type()
H A Duic.c122 static int uic_set_irq_type(struct irq_data *d, unsigned int flow_type) uic_set_irq_type() argument
130 switch (flow_type & IRQ_TYPE_SENSE_MASK) { uic_set_irq_type()
H A Dxilinx_intc.c82 static int xilinx_intc_set_type(struct irq_data *d, unsigned int flow_type) xilinx_intc_set_type() argument
/linux-4.4.14/arch/avr32/mach-at32ap/
H A Dextint.c89 static int eic_set_irq_type(struct irq_data *d, unsigned int flow_type) eic_set_irq_type() argument
96 flow_type &= IRQ_TYPE_SENSE_MASK; eic_set_irq_type()
97 if (flow_type == IRQ_TYPE_NONE) eic_set_irq_type()
98 flow_type = IRQ_TYPE_LEVEL_LOW; eic_set_irq_type()
104 switch (flow_type) { eic_set_irq_type()
129 irqd_set_trigger_type(d, flow_type); eic_set_irq_type()
130 if (flow_type & (IRQ_TYPE_LEVEL_LOW | IRQ_TYPE_LEVEL_HIGH)) eic_set_irq_type()
/linux-4.4.14/drivers/irqchip/
H A Dirq-sunxi-nmi.c75 static int sunxi_sc_nmi_set_type(struct irq_data *data, unsigned int flow_type) sunxi_sc_nmi_set_type() argument
86 switch (flow_type & IRQF_TRIGGER_MASK) { sunxi_sc_nmi_set_type()
107 irqd_set_trigger_type(data, flow_type); sunxi_sc_nmi_set_type()
108 irq_setup_alt_chip(data, flow_type); sunxi_sc_nmi_set_type()
111 if (ct->type & flow_type) sunxi_sc_nmi_set_type()
H A Dirq-tb10x.c54 static int tb10x_irq_set_type(struct irq_data *data, unsigned int flow_type) tb10x_irq_set_type() argument
66 switch (flow_type & IRQF_TRIGGER_MASK) { tb10x_irq_set_type()
74 flow_type = IRQ_TYPE_LEVEL_LOW; tb10x_irq_set_type()
88 irqd_set_trigger_type(data, flow_type); tb10x_irq_set_type()
89 irq_setup_alt_chip(data, flow_type); tb10x_irq_set_type()
H A Dirq-vt8500.c115 static int vt8500_irq_set_type(struct irq_data *d, unsigned int flow_type) vt8500_irq_set_type() argument
124 switch (flow_type) { vt8500_irq_set_type()
H A Dirq-imgpdc.c150 static int syswake_irq_set_type(struct irq_data *data, unsigned int flow_type) syswake_irq_set_type() argument
158 switch (flow_type) { syswake_irq_set_type()
188 irq_setup_alt_chip(data, flow_type); syswake_irq_set_type()
H A Dirq-metag-ext.c395 * @flow_type: new irq flow type
402 static int meta_intc_irq_set_type(struct irq_data *data, unsigned int flow_type) meta_intc_irq_set_type() argument
414 if (flow_type & IRQ_TYPE_LEVEL_MASK) meta_intc_irq_set_type()
424 if (flow_type & IRQ_TYPE_LEVEL_MASK) meta_intc_irq_set_type()
/linux-4.4.14/arch/mips/bcm63xx/
H A Dirq.c279 unsigned int flow_type) bcm63xx_external_irq_set_type()
286 flow_type &= IRQ_TYPE_SENSE_MASK; bcm63xx_external_irq_set_type()
288 if (flow_type == IRQ_TYPE_NONE) bcm63xx_external_irq_set_type()
289 flow_type = IRQ_TYPE_LEVEL_LOW; bcm63xx_external_irq_set_type()
292 switch (flow_type) { bcm63xx_external_irq_set_type()
366 irqd_set_trigger_type(d, flow_type); bcm63xx_external_irq_set_type()
367 if (flow_type & (IRQ_TYPE_LEVEL_LOW | IRQ_TYPE_LEVEL_HIGH)) bcm63xx_external_irq_set_type()
278 bcm63xx_external_irq_set_type(struct irq_data *d, unsigned int flow_type) bcm63xx_external_irq_set_type() argument
/linux-4.4.14/arch/mips/kernel/
H A Dirq_txx9.c112 static int txx9_irq_set_type(struct irq_data *d, unsigned int flow_type) txx9_irq_set_type() argument
120 if (flow_type & IRQF_TRIGGER_PROBE) txx9_irq_set_type()
122 switch (flow_type & IRQF_TRIGGER_MASK) { txx9_irq_set_type()
/linux-4.4.14/arch/mips/txx9/generic/
H A Dirq_tx4939.c104 static int tx4939_irq_set_type(struct irq_data *d, unsigned int flow_type) tx4939_irq_set_type() argument
112 if (flow_type & IRQF_TRIGGER_PROBE) tx4939_irq_set_type()
114 switch (flow_type & IRQF_TRIGGER_MASK) { tx4939_irq_set_type()
/linux-4.4.14/drivers/mfd/
H A Dpm8921-core.c209 static int pm8xxx_irq_set_type(struct irq_data *d, unsigned int flow_type) pm8xxx_irq_set_type() argument
221 if (flow_type & (IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING)) { pm8xxx_irq_set_type()
222 if (flow_type & IRQF_TRIGGER_RISING) pm8xxx_irq_set_type()
224 if (flow_type & IRQF_TRIGGER_FALLING) pm8xxx_irq_set_type()
229 if (flow_type & IRQF_TRIGGER_HIGH) pm8xxx_irq_set_type()
H A Dhtc-i2cpld.c61 unsigned int flow_type; member in struct:htcpld_chip
110 chip->flow_type = flags; htcpld_set_type()
191 unsigned oldb, newb, type = chip->flow_type; htcpld_handler()
/linux-4.4.14/arch/mips/jz4740/
H A Dgpio.c343 static int jz_gpio_irq_set_type(struct irq_data *data, unsigned int flow_type) jz_gpio_irq_set_type() argument
348 if (flow_type == IRQ_TYPE_EDGE_BOTH) { jz_gpio_irq_set_type()
351 flow_type = IRQ_TYPE_EDGE_FALLING; jz_gpio_irq_set_type()
353 flow_type = IRQ_TYPE_EDGE_RISING; jz_gpio_irq_set_type()
359 switch (flow_type) { jz_gpio_irq_set_type()
/linux-4.4.14/arch/arm/mach-davinci/
H A Dcp_intc.c54 static int cp_intc_set_irq_type(struct irq_data *d, unsigned int flow_type) cp_intc_set_irq_type() argument
61 switch (flow_type) { cp_intc_set_irq_type()
/linux-4.4.14/drivers/gpio/
H A Dgpio-mpc8xxx.c246 static int mpc8xxx_irq_set_type(struct irq_data *d, unsigned int flow_type) mpc8xxx_irq_set_type() argument
252 switch (flow_type) { mpc8xxx_irq_set_type()
274 static int mpc512x_irq_set_type(struct irq_data *d, unsigned int flow_type) mpc512x_irq_set_type() argument
291 switch (flow_type) { mpc512x_irq_set_type()
H A Dgpio-sx150x.c374 static int sx150x_irq_set_type(struct irq_data *d, unsigned int flow_type) sx150x_irq_set_type() argument
379 if (flow_type & (IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_LEVEL_LOW)) sx150x_irq_set_type()
384 if (flow_type & IRQ_TYPE_EDGE_RISING) sx150x_irq_set_type()
386 if (flow_type & IRQ_TYPE_EDGE_FALLING) sx150x_irq_set_type()
H A Dgpio-tz1090.c320 static int gpio_set_irq_type(struct irq_data *data, unsigned int flow_type) gpio_set_irq_type() argument
326 switch (flow_type) { gpio_set_irq_type()
352 irq_setup_alt_chip(data, flow_type); gpio_set_irq_type()
354 if (flow_type == IRQ_TYPE_EDGE_BOTH) gpio_set_irq_type()
/linux-4.4.14/arch/arm/mach-pxa/
H A Dpxa3xx.c309 static int pxa_set_ext_wakeup_type(struct irq_data *d, unsigned int flow_type) pxa_set_ext_wakeup_type() argument
311 if (flow_type & IRQ_TYPE_EDGE_RISING) pxa_set_ext_wakeup_type()
314 if (flow_type & IRQ_TYPE_EDGE_FALLING) pxa_set_ext_wakeup_type()
/linux-4.4.14/drivers/spmi/
H A Dspmi-pmic-arb.c544 static int qpnpint_irq_set_type(struct irq_data *d, unsigned int flow_type) qpnpint_irq_set_type() argument
551 if (flow_type & (IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING)) { qpnpint_irq_set_type()
553 if (flow_type & IRQF_TRIGGER_RISING) qpnpint_irq_set_type()
555 if (flow_type & IRQF_TRIGGER_FALLING) qpnpint_irq_set_type()
558 if ((flow_type & (IRQF_TRIGGER_HIGH)) && qpnpint_irq_set_type()
559 (flow_type & (IRQF_TRIGGER_LOW))) qpnpint_irq_set_type()
563 if (flow_type & IRQF_TRIGGER_HIGH) qpnpint_irq_set_type()
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ethtool.c2355 switch (rule->filter.formatted.flow_type) { ixgbe_get_ethtool_fdir_entry()
2357 fsp->flow_type = TCP_V4_FLOW; ixgbe_get_ethtool_fdir_entry()
2360 fsp->flow_type = UDP_V4_FLOW; ixgbe_get_ethtool_fdir_entry()
2363 fsp->flow_type = SCTP_V4_FLOW; ixgbe_get_ethtool_fdir_entry()
2366 fsp->flow_type = IP_USER_FLOW; ixgbe_get_ethtool_fdir_entry()
2389 fsp->flow_type |= FLOW_EXT; ixgbe_get_ethtool_fdir_entry()
2430 switch (cmd->flow_type) { ixgbe_get_rss_hash_opts()
2555 u8 *flow_type) ixgbe_flowspec_to_flow_type()
2557 switch (fsp->flow_type & ~FLOW_EXT) { ixgbe_flowspec_to_flow_type()
2559 *flow_type = IXGBE_ATR_FLOW_TYPE_TCPV4; ixgbe_flowspec_to_flow_type()
2562 *flow_type = IXGBE_ATR_FLOW_TYPE_UDPV4; ixgbe_flowspec_to_flow_type()
2565 *flow_type = IXGBE_ATR_FLOW_TYPE_SCTPV4; ixgbe_flowspec_to_flow_type()
2570 *flow_type = IXGBE_ATR_FLOW_TYPE_TCPV4; ixgbe_flowspec_to_flow_type()
2573 *flow_type = IXGBE_ATR_FLOW_TYPE_UDPV4; ixgbe_flowspec_to_flow_type()
2576 *flow_type = IXGBE_ATR_FLOW_TYPE_SCTPV4; ixgbe_flowspec_to_flow_type()
2580 *flow_type = IXGBE_ATR_FLOW_TYPE_IPV4; ixgbe_flowspec_to_flow_type()
2649 &input->filter.formatted.flow_type)) { ixgbe_add_ethtool_fdir_entry()
2654 mask.formatted.flow_type = IXGBE_ATR_L4TYPE_IPV6_MASK | ixgbe_add_ethtool_fdir_entry()
2657 if (input->filter.formatted.flow_type == IXGBE_ATR_FLOW_TYPE_IPV4) ixgbe_add_ethtool_fdir_entry()
2658 mask.formatted.flow_type &= IXGBE_ATR_L4TYPE_IPV6_MASK; ixgbe_add_ethtool_fdir_entry()
2670 if (fsp->flow_type & FLOW_EXT) { ixgbe_add_ethtool_fdir_entry()
2753 switch (nfc->flow_type) { ixgbe_set_rss_hash_opt()
2554 ixgbe_flowspec_to_flow_type(struct ethtool_rx_flow_spec *fsp, u8 *flow_type) ixgbe_flowspec_to_flow_type() argument
H A Dixgbe_82599.c1390 u8 flow_type; ixgbe_fdir_add_signature_filter_82599() local
1395 * Get the flow_type in order to program FDIRCMD properly ixgbe_fdir_add_signature_filter_82599()
1398 tunnel = !!(input.formatted.flow_type & IXGBE_ATR_L4TYPE_TUNNEL_MASK); ixgbe_fdir_add_signature_filter_82599()
1399 flow_type = input.formatted.flow_type & ixgbe_fdir_add_signature_filter_82599()
1401 switch (flow_type) { ixgbe_fdir_add_signature_filter_82599()
1417 fdircmd |= (u32)flow_type << IXGBE_FDIRCMD_FLOW_TYPE_SHIFT; ixgbe_fdir_add_signature_filter_82599()
1572 switch (input_mask->formatted.flow_type & IXGBE_ATR_L4TYPE_MASK) { ixgbe_fdir_set_input_mask_82599()
1695 fdircmd |= input->formatted.flow_type << IXGBE_FDIRCMD_FLOW_TYPE_SHIFT; ixgbe_fdir_write_perfect_filter_82599()
H A Dixgbe_type.h2895 * flow_type - 1 byte
2906 u8 flow_type; member in struct:ixgbe_atr_input::__anon7135
2922 u8 flow_type; member in struct:ixgbe_atr_hash_dword::__anon7136
H A Dixgbe_main.c7407 * containing vm_pool, vlan_id, and flow_type. The rest of the data ixgbe_atr()
7423 input.formatted.flow_type = IXGBE_ATR_FLOW_TYPE_TCPV4; ixgbe_atr()
7426 input.formatted.flow_type = IXGBE_ATR_FLOW_TYPE_TCPV6; ixgbe_atr()
7439 input.formatted.flow_type |= IXGBE_ATR_L4TYPE_TUNNEL_MASK; ixgbe_atr()
/linux-4.4.14/drivers/net/ethernet/sfc/
H A Dethtool.c818 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? efx_ethtool_get_class_rule()
840 rule->flow_type = ETHER_FLOW; efx_ethtool_get_class_rule()
865 rule->flow_type |= FLOW_EXT; efx_ethtool_get_class_rule()
888 switch (info->flow_type) { efx_ethtool_get_rxnfc()
969 if ((rule->flow_type & FLOW_EXT) && efx_ethtool_set_class_rule()
979 switch (rule->flow_type & ~FLOW_EXT) { efx_ethtool_set_class_rule()
985 spec.ip_proto = ((rule->flow_type & ~FLOW_EXT) == TCP_V4_FLOW ? efx_ethtool_set_class_rule()
1044 if ((rule->flow_type & FLOW_EXT) && rule->m_ext.vlan_tci) { efx_ethtool_set_class_rule()
/linux-4.4.14/arch/powerpc/platforms/85xx/
H A Dsocrates_fpga_pic.c192 unsigned int flow_type) socrates_fpga_pic_set_type()
202 switch (flow_type & IRQ_TYPE_SENSE_MASK) { socrates_fpga_pic_set_type()
191 socrates_fpga_pic_set_type(struct irq_data *d, unsigned int flow_type) socrates_fpga_pic_set_type() argument
/linux-4.4.14/arch/powerpc/platforms/powernv/
H A Dopal-irqchip.c101 static int opal_event_set_type(struct irq_data *d, unsigned int flow_type) opal_event_set_type() argument
108 if (flow_type != IRQ_TYPE_LEVEL_HIGH) opal_event_set_type()
/linux-4.4.14/arch/mips/pnx833x/common/
H A Dinterrupts.c209 static int pnx833x_set_type_gpio_irq(struct irq_data *d, unsigned int flow_type) pnx833x_set_type_gpio_irq() argument
214 switch (flow_type) { pnx833x_set_type_gpio_irq()
/linux-4.4.14/arch/powerpc/platforms/52xx/
H A Dmpc52xx_pic.c176 static int mpc52xx_extirq_set_type(struct irq_data *d, unsigned int flow_type) mpc52xx_extirq_set_type() argument
182 pr_debug("%s: irq=%x. l2=%d flow_type=%d\n", __func__, mpc52xx_extirq_set_type()
183 (int) irqd_to_hwirq(d), l2irq, flow_type); mpc52xx_extirq_set_type()
185 switch (flow_type) { mpc52xx_extirq_set_type()
215 static int mpc52xx_null_set_type(struct irq_data *d, unsigned int flow_type) mpc52xx_null_set_type() argument
H A Dmpc52xx_gpt.c166 static int mpc52xx_gpt_irq_set_type(struct irq_data *d, unsigned int flow_type) mpc52xx_gpt_irq_set_type() argument
172 dev_dbg(gpt->dev, "%s: virq=%i type=%x\n", __func__, d->irq, flow_type); mpc52xx_gpt_irq_set_type()
176 if (flow_type & IRQF_TRIGGER_RISING) mpc52xx_gpt_irq_set_type()
178 if (flow_type & IRQF_TRIGGER_FALLING) mpc52xx_gpt_irq_set_type()
/linux-4.4.14/drivers/net/ethernet/cavium/thunder/
H A Dnicvf_ethtool.c431 switch (info->flow_type) { nicvf_get_rss_hash_opts()
480 info->flow_type, info->data); nicvf_set_rss_hash_opts()
485 switch (info->flow_type) { nicvf_set_rss_hash_opts()
/linux-4.4.14/drivers/net/ethernet/samsung/sxgbe/
H A Dsxgbe_ethtool.c339 switch (cmd->flow_type) { sxgbe_get_rss_hash_opts()
396 switch (cmd->flow_type) { sxgbe_set_rss_hash_opt()
/linux-4.4.14/drivers/net/ethernet/cisco/enic/
H A Denic_ethtool.c370 fsp->flow_type = TCP_V4_FLOW; enic_grxclsrule()
373 fsp->flow_type = UDP_V4_FLOW; enic_grxclsrule()
/linux-4.4.14/include/uapi/linux/
H A Dethtool.h768 * is set in &struct ethtool_rx_flow_spec @flow_type.
781 * @flow_type: Type of match to perform, e.g. %TCP_V4_FLOW
782 * @h_u: Flow fields to match (dependent on @flow_type)
786 * Note, all additional fields must be ignored unless @flow_type
796 __u32 flow_type; member in struct:ethtool_rx_flow_spec
835 * @flow_type: Type of flow to be affected, e.g. %TCP_V4_FLOW
884 __u32 flow_type; member in struct:ethtool_rxnfc
949 * @flow_type: Type of match to perform, e.g. %TCP_V4_FLOW
950 * @h_u: Flow field values to match (dependent on @flow_type)
964 __u32 flow_type; member in struct:ethtool_rx_ntuple_flow_spec
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
H A Den_ethtool.c1234 if (cmd->fs.flow_type & FLOW_MAC_EXT) { mlx4_en_validate_flow()
1240 switch (cmd->fs.flow_type & ~(FLOW_EXT | FLOW_MAC_EXT)) { mlx4_en_validate_flow()
1279 if ((cmd->fs.flow_type & FLOW_EXT)) { mlx4_en_validate_flow()
1309 if ((cmd->fs.flow_type & FLOW_EXT) && mlx4_en_ethtool_add_mac_rule()
1330 if (cmd->fs.flow_type & FLOW_MAC_EXT) mlx4_en_ethtool_add_mac_rule_by_ipv4()
1463 switch (cmd->fs.flow_type & ~(FLOW_EXT | FLOW_MAC_EXT)) { mlx4_en_ethtool_to_net_trans_rule()
H A Dmcg.c760 enum mlx4_net_trans_promisc_mode flow_type) mlx4_map_sw_to_hw_steering_mode()
762 if (flow_type >= MLX4_FS_MODE_NUM) { mlx4_map_sw_to_hw_steering_mode()
763 mlx4_err(dev, "Invalid flow type. type = %d\n", flow_type); mlx4_map_sw_to_hw_steering_mode()
766 return __promisc_mode[flow_type]; mlx4_map_sw_to_hw_steering_mode()
759 mlx4_map_sw_to_hw_steering_mode(struct mlx4_dev *dev, enum mlx4_net_trans_promisc_mode flow_type) mlx4_map_sw_to_hw_steering_mode() argument
/linux-4.4.14/drivers/net/ethernet/sun/
H A Dniu.c6927 static void niu_ethflow_to_l3proto(int flow_type, u8 *pid) niu_ethflow_to_l3proto() argument
6929 switch (flow_type) { niu_ethflow_to_l3proto()
6956 static int niu_class_to_ethflow(u64 class, int *flow_type) niu_class_to_ethflow() argument
6960 *flow_type = TCP_V4_FLOW; niu_class_to_ethflow()
6963 *flow_type = UDP_V4_FLOW; niu_class_to_ethflow()
6966 *flow_type = AH_V4_FLOW; niu_class_to_ethflow()
6969 *flow_type = SCTP_V4_FLOW; niu_class_to_ethflow()
6972 *flow_type = TCP_V6_FLOW; niu_class_to_ethflow()
6975 *flow_type = UDP_V6_FLOW; niu_class_to_ethflow()
6978 *flow_type = AH_V6_FLOW; niu_class_to_ethflow()
6981 *flow_type = SCTP_V6_FLOW; niu_class_to_ethflow()
6987 *flow_type = IP_USER_FLOW; niu_class_to_ethflow()
6996 static int niu_ethflow_to_class(int flow_type, u64 *class) niu_ethflow_to_class() argument
6998 switch (flow_type) { niu_ethflow_to_class()
7088 if (!niu_ethflow_to_class(nfc->flow_type, &class)) niu_get_hash_opts()
7123 switch (fsp->flow_type) { niu_get_ip4fs_from_tcam_key()
7198 ret = niu_class_to_ethflow(class, &fsp->flow_type); niu_get_ethtool_tcam_entry()
7205 if (fsp->flow_type == AH_V4_FLOW || fsp->flow_type == AH_V6_FLOW) { niu_get_ethtool_tcam_entry()
7209 if (fsp->flow_type == AH_V4_FLOW) niu_get_ethtool_tcam_entry()
7210 fsp->flow_type = ESP_V4_FLOW; niu_get_ethtool_tcam_entry()
7212 fsp->flow_type = ESP_V6_FLOW; niu_get_ethtool_tcam_entry()
7216 switch (fsp->flow_type) { niu_get_ethtool_tcam_entry()
7324 if (!niu_ethflow_to_class(nfc->flow_type, &class)) niu_set_hash_opts()
7395 switch (fsp->flow_type) { niu_get_tcamkey_from_ip4fs()
7406 niu_ethflow_to_l3proto(fsp->flow_type, &pid); niu_get_tcamkey_from_ip4fs()
7415 niu_ethflow_to_l3proto(fsp->flow_type, &pid); niu_get_tcamkey_from_ip4fs()
7454 if (fsp->flow_type == IP_USER_FLOW) { niu_add_ethtool_tcam_entry()
7516 if (!niu_ethflow_to_class(fsp->flow_type, &class)) { niu_add_ethtool_tcam_entry()
7529 switch (fsp->flow_type) { niu_add_ethtool_tcam_entry()
7544 parent->index, __func__, fsp->flow_type); niu_add_ethtool_tcam_entry()
7552 parent->index, __func__, fsp->flow_type); niu_add_ethtool_tcam_entry()
/linux-4.4.14/include/linux/
H A Dethtool.h21 u32 flow_type; member in struct:compat_ethtool_rx_flow_spec
32 u32 flow_type; member in struct:compat_ethtool_rxnfc
H A Dirq.h361 int (*irq_set_type)(struct irq_data *data, unsigned int flow_type);
/linux-4.4.14/drivers/net/ethernet/emulex/benet/
H A Dbe_ethtool.c1003 static u64 be_get_rss_hash_opts(struct be_adapter *adapter, u64 flow_type) be_get_rss_hash_opts() argument
1007 switch (flow_type) { be_get_rss_hash_opts()
1050 cmd->data = be_get_rss_hash_opts(adapter, cmd->flow_type); be_get_rxnfc()
1072 switch (cmd->flow_type) { be_set_rss_hash_opts()
/linux-4.4.14/drivers/net/ethernet/freescale/
H A Dgianfar_ethtool.c876 if (!gfar_ethflow_to_filer_table(priv, cmd->data, cmd->flow_type)) gfar_set_hash_opts()
1172 if ((rule->flow_type & FLOW_EXT) && gfar_convert_to_filer()
1197 switch (rule->flow_type & ~FLOW_EXT) { gfar_convert_to_filer()
1299 if (flow->flow_type & FLOW_EXT) { gfar_check_capability()
1307 if (flow->flow_type == IP_USER_FLOW) gfar_check_capability()
/linux-4.4.14/drivers/net/ethernet/intel/i40e/
H A Di40e_ethtool.c1966 cmd->flow_type = pf->vsi[pf->lan_vsi]->rxnfc.flow_type; i40e_get_rss_hash_opts()
1970 switch (cmd->flow_type) { i40e_get_rss_hash_opts()
2063 fsp->flow_type = rule->flow_type; i40e_get_ethtool_fdir_entry()
2064 if (fsp->flow_type == IP_USER_FLOW) { i40e_get_ethtool_fdir_entry()
2163 switch (nfc->flow_type) { i40e_set_rss_hash_opt()
2436 input->flow_type = fsp->flow_type; i40e_add_fdir_ethtool()
H A Di40e.h208 u8 flow_type; member in struct:i40e_fdir_filter
H A Di40e_txrx.c406 switch (input->flow_type & ~FLOW_EXT) { i40e_add_del_fdir()
437 input->flow_type); i40e_add_del_fdir()
/linux-4.4.14/drivers/net/ethernet/intel/i40evf/
H A Di40evf_ethtool.c382 switch (cmd->flow_type) { i40evf_get_rss_hash_opts()
478 switch (nfc->flow_type) { i40evf_set_rss_hash_opt()
/linux-4.4.14/arch/mips/alchemy/common/
H A Dirq.c426 static int au1x_ic_settype(struct irq_data *d, unsigned int flow_type) au1x_ic_settype() argument
450 switch (flow_type) { /* cfgregs 2:1:0 */ au1x_ic_settype()
/linux-4.4.14/drivers/vlynq/
H A Dvlynq.c164 static int vlynq_irq_type(struct irq_data *d, unsigned int flow_type) vlynq_irq_type() argument
173 switch (flow_type & IRQ_TYPE_SENSE_MASK) { vlynq_irq_type()
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_ethtool.c757 switch (cmd->flow_type) { fm10k_get_rss_hash_opts()
825 switch (nfc->flow_type) { fm10k_set_rss_hash_opt()
/linux-4.4.14/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ethtool.c334 fs->flow_type = TCP_V4_FLOW;
336 fs->flow_type = UDP_V4_FLOW;
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_ethtool.c3271 switch (info->flow_type) { bnx2x_get_rss_flags()
3326 info->flow_type, info->data); bnx2x_set_rss_flags()
3328 switch (info->flow_type) { bnx2x_set_rss_flags()
3357 if ((info->flow_type == UDP_V4_FLOW) && bnx2x_set_rss_flags()
3364 } else if ((info->flow_type == UDP_V6_FLOW) && bnx2x_set_rss_flags()
/linux-4.4.14/net/core/
H A Dethtool.c508 * ETHTOOL_{G,S}RXFH with only the cmd, flow_type and data ethtool_set_rxnfc()
542 * ETHTOOL_{G,S}RXFH with only the cmd, flow_type and data ethtool_get_rxnfc()
/linux-4.4.14/drivers/infiniband/hw/mlx4/
H A Dmain.c1462 enum mlx4_net_trans_promisc_mode flow_type, __mlx4_ib_create_flow()
1490 if (mlx4_map_sw_to_hw_steering_mode(mdev->dev, flow_type) < 0) __mlx4_ib_create_flow()
1500 ctrl->type = mlx4_map_sw_to_hw_steering_mode(mdev->dev, flow_type); __mlx4_ib_create_flow()
1460 __mlx4_ib_create_flow(struct ib_qp *qp, struct ib_flow_attr *flow_attr, int domain, enum mlx4_net_trans_promisc_mode flow_type, u64 *reg_id) __mlx4_ib_create_flow() argument
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_ethtool.c1042 switch (info->flow_type) { get_rxnfc()
/linux-4.4.14/include/linux/mlx4/
H A Ddevice.h1395 enum mlx4_net_trans_promisc_mode flow_type);
/linux-4.4.14/drivers/net/ethernet/intel/igb/
H A Digb_ethtool.c2430 switch (cmd->flow_type) { igb_get_rss_hash_opts()
2501 switch (nfc->flow_type) { igb_set_rss_hash_opt()
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/
H A Dethtool.c2120 switch (info->flow_type) { e1000_get_rxnfc()

Completed in 2705 milliseconds