Home
last modified time | relevance | path

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

12

/drivers/irqchip/
Dirq-tb10x.c54 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()
Dirq-sunxi-nmi.c72 static int sunxi_sc_nmi_set_type(struct irq_data *data, unsigned int flow_type) in sunxi_sc_nmi_set_type() argument
83 switch (flow_type & IRQF_TRIGGER_MASK) { in sunxi_sc_nmi_set_type()
104 irqd_set_trigger_type(data, flow_type); in sunxi_sc_nmi_set_type()
105 irq_setup_alt_chip(data, flow_type); in sunxi_sc_nmi_set_type()
108 if (ct->type & flow_type) in sunxi_sc_nmi_set_type()
Dirq-vt8500.c116 static int vt8500_irq_set_type(struct irq_data *d, unsigned int flow_type) in vt8500_irq_set_type() argument
125 switch (flow_type) { in vt8500_irq_set_type()
Dirq-imgpdc.c150 static int syswake_irq_set_type(struct irq_data *data, unsigned int flow_type) in syswake_irq_set_type() argument
158 switch (flow_type) { in syswake_irq_set_type()
188 irq_setup_alt_chip(data, flow_type); in syswake_irq_set_type()
Dirq-metag-ext.c402 static int meta_intc_irq_set_type(struct irq_data *data, unsigned int flow_type) in meta_intc_irq_set_type() argument
415 if (flow_type & IRQ_TYPE_LEVEL_MASK) in meta_intc_irq_set_type()
425 if (flow_type & IRQ_TYPE_LEVEL_MASK) in meta_intc_irq_set_type()
/drivers/mfd/
Dpm8921-core.c209 static int pm8xxx_irq_set_type(struct irq_data *d, unsigned int flow_type) in pm8xxx_irq_set_type() argument
221 if (flow_type & (IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING)) { in pm8xxx_irq_set_type()
222 if (flow_type & IRQF_TRIGGER_RISING) in pm8xxx_irq_set_type()
224 if (flow_type & IRQF_TRIGGER_FALLING) in pm8xxx_irq_set_type()
229 if (flow_type & IRQF_TRIGGER_HIGH) in pm8xxx_irq_set_type()
Dhtc-i2cpld.c61 unsigned int flow_type; member
110 chip->flow_type = flags; in htcpld_set_type()
191 unsigned oldb, newb, type = chip->flow_type; in htcpld_handler()
/drivers/gpio/
Dgpio-msm-v2.c272 static int msm_gpio_irq_set_type(struct irq_data *d, unsigned int flow_type) in msm_gpio_irq_set_type() argument
282 if (flow_type & IRQ_TYPE_EDGE_BOTH) { in msm_gpio_irq_set_type()
285 if ((flow_type & IRQ_TYPE_EDGE_BOTH) == IRQ_TYPE_EDGE_BOTH) in msm_gpio_irq_set_type()
295 if (flow_type & (IRQ_TYPE_EDGE_RISING | IRQ_TYPE_LEVEL_HIGH)) in msm_gpio_irq_set_type()
302 if ((flow_type & IRQ_TYPE_EDGE_BOTH) == IRQ_TYPE_EDGE_BOTH) in msm_gpio_irq_set_type()
Dgpio-mpc8xxx.c209 static int mpc8xxx_irq_set_type(struct irq_data *d, unsigned int flow_type) in mpc8xxx_irq_set_type() argument
215 switch (flow_type) { in mpc8xxx_irq_set_type()
237 static int mpc512x_irq_set_type(struct irq_data *d, unsigned int flow_type) in mpc512x_irq_set_type() argument
254 switch (flow_type) { in mpc512x_irq_set_type()
Dgpio-tz1090.c320 static int gpio_set_irq_type(struct irq_data *data, unsigned int flow_type) in gpio_set_irq_type() argument
326 switch (flow_type) { in gpio_set_irq_type()
352 irq_setup_alt_chip(data, flow_type); in gpio_set_irq_type()
354 if (flow_type == IRQ_TYPE_EDGE_BOTH) in gpio_set_irq_type()
Dgpio-sx150x.c331 static int sx150x_irq_set_type(struct irq_data *d, unsigned int flow_type) in sx150x_irq_set_type() argument
336 if (flow_type & (IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_LEVEL_LOW)) in sx150x_irq_set_type()
341 if (flow_type & IRQ_TYPE_EDGE_RISING) in sx150x_irq_set_type()
343 if (flow_type & IRQ_TYPE_EDGE_FALLING) in sx150x_irq_set_type()
Dgpio-msm-v1.c570 static int msm_gpio_irq_set_type(struct irq_data *d, unsigned int flow_type) in msm_gpio_irq_set_type() argument
579 if (flow_type & IRQ_TYPE_EDGE_BOTH) { in msm_gpio_irq_set_type()
586 if ((flow_type & IRQ_TYPE_EDGE_BOTH) == IRQ_TYPE_EDGE_BOTH) { in msm_gpio_irq_set_type()
592 if (flow_type & (IRQF_TRIGGER_RISING | IRQF_TRIGGER_HIGH)) in msm_gpio_irq_set_type()
/drivers/spmi/
Dspmi-pmic-arb.c485 static int qpnpint_irq_set_type(struct irq_data *d, unsigned int flow_type) in qpnpint_irq_set_type() argument
492 if (flow_type & (IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING)) { in qpnpint_irq_set_type()
494 if (flow_type & IRQF_TRIGGER_RISING) in qpnpint_irq_set_type()
496 if (flow_type & IRQF_TRIGGER_FALLING) in qpnpint_irq_set_type()
499 if ((flow_type & (IRQF_TRIGGER_HIGH)) && in qpnpint_irq_set_type()
500 (flow_type & (IRQF_TRIGGER_LOW))) in qpnpint_irq_set_type()
504 if (flow_type & IRQF_TRIGGER_HIGH) in qpnpint_irq_set_type()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ethtool.c2335 switch (rule->filter.formatted.flow_type) { in ixgbe_get_ethtool_fdir_entry()
2337 fsp->flow_type = TCP_V4_FLOW; in ixgbe_get_ethtool_fdir_entry()
2340 fsp->flow_type = UDP_V4_FLOW; in ixgbe_get_ethtool_fdir_entry()
2343 fsp->flow_type = SCTP_V4_FLOW; in ixgbe_get_ethtool_fdir_entry()
2346 fsp->flow_type = IP_USER_FLOW; in ixgbe_get_ethtool_fdir_entry()
2369 fsp->flow_type |= FLOW_EXT; in ixgbe_get_ethtool_fdir_entry()
2410 switch (cmd->flow_type) { in ixgbe_get_rss_hash_opts()
2535 u8 *flow_type) in ixgbe_flowspec_to_flow_type() argument
2537 switch (fsp->flow_type & ~FLOW_EXT) { in ixgbe_flowspec_to_flow_type()
2539 *flow_type = IXGBE_ATR_FLOW_TYPE_TCPV4; in ixgbe_flowspec_to_flow_type()
[all …]
Dixgbe_82599.c1525 switch (input.formatted.flow_type) { in ixgbe_fdir_add_signature_filter_82599()
1541 fdircmd |= input.formatted.flow_type << IXGBE_FDIRCMD_FLOW_TYPE_SHIFT; in ixgbe_fdir_add_signature_filter_82599()
1694 switch (input_mask->formatted.flow_type & IXGBE_ATR_L4TYPE_MASK) { in ixgbe_fdir_set_input_mask_82599()
1806 fdircmd |= input->formatted.flow_type << IXGBE_FDIRCMD_FLOW_TYPE_SHIFT; in ixgbe_fdir_write_perfect_filter_82599()
/drivers/net/ethernet/sfc/
Dethtool.c818 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in efx_ethtool_get_class_rule()
840 rule->flow_type = ETHER_FLOW; in efx_ethtool_get_class_rule()
865 rule->flow_type |= FLOW_EXT; in efx_ethtool_get_class_rule()
888 switch (info->flow_type) { in efx_ethtool_get_rxnfc()
969 if ((rule->flow_type & FLOW_EXT) && in efx_ethtool_set_class_rule()
979 switch (rule->flow_type & ~FLOW_EXT) { in efx_ethtool_set_class_rule()
985 spec.ip_proto = ((rule->flow_type & ~FLOW_EXT) == TCP_V4_FLOW ? in efx_ethtool_set_class_rule()
1044 if ((rule->flow_type & FLOW_EXT) && rule->m_ext.vlan_tci) { in efx_ethtool_set_class_rule()
/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c667 if (cmd->fs.flow_type & FLOW_MAC_EXT) { in mlx4_en_validate_flow()
673 switch (cmd->fs.flow_type & ~(FLOW_EXT | FLOW_MAC_EXT)) { in mlx4_en_validate_flow()
712 if ((cmd->fs.flow_type & FLOW_EXT)) { in mlx4_en_validate_flow()
742 if ((cmd->fs.flow_type & FLOW_EXT) && in mlx4_en_ethtool_add_mac_rule()
763 if (cmd->fs.flow_type & FLOW_MAC_EXT) in mlx4_en_ethtool_add_mac_rule_by_ipv4()
896 switch (cmd->fs.flow_type & ~(FLOW_EXT | FLOW_MAC_EXT)) { in mlx4_en_ethtool_to_net_trans_rule()
Dmcg.c760 enum mlx4_net_trans_promisc_mode flow_type) in mlx4_map_sw_to_hw_steering_mode() argument
762 if (flow_type >= MLX4_FS_MODE_NUM) { in mlx4_map_sw_to_hw_steering_mode()
763 mlx4_err(dev, "Invalid flow type. type = %d\n", flow_type); in mlx4_map_sw_to_hw_steering_mode()
766 return __promisc_mode[flow_type]; in mlx4_map_sw_to_hw_steering_mode()
/drivers/net/ethernet/cisco/enic/
Denic_ethtool.c321 fsp->flow_type = TCP_V4_FLOW; in enic_grxclsrule()
324 fsp->flow_type = UDP_V4_FLOW; in enic_grxclsrule()
/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_ethtool.c339 switch (cmd->flow_type) { in sxgbe_get_rss_hash_opts()
396 switch (cmd->flow_type) { in sxgbe_set_rss_hash_opt()
/drivers/net/ethernet/sun/
Dniu.c6935 static void niu_ethflow_to_l3proto(int flow_type, u8 *pid) in niu_ethflow_to_l3proto() argument
6937 switch (flow_type) { in niu_ethflow_to_l3proto()
6964 static int niu_class_to_ethflow(u64 class, int *flow_type) in niu_class_to_ethflow() argument
6968 *flow_type = TCP_V4_FLOW; in niu_class_to_ethflow()
6971 *flow_type = UDP_V4_FLOW; in niu_class_to_ethflow()
6974 *flow_type = AH_V4_FLOW; in niu_class_to_ethflow()
6977 *flow_type = SCTP_V4_FLOW; in niu_class_to_ethflow()
6980 *flow_type = TCP_V6_FLOW; in niu_class_to_ethflow()
6983 *flow_type = UDP_V6_FLOW; in niu_class_to_ethflow()
6986 *flow_type = AH_V6_FLOW; in niu_class_to_ethflow()
[all …]
/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c1613 switch (cmd->flow_type) { in i40e_get_rss_hash_opts()
1706 fsp->flow_type = rule->flow_type; in i40e_get_ethtool_fdir_entry()
1707 if (fsp->flow_type == IP_USER_FLOW) { in i40e_get_ethtool_fdir_entry()
1796 switch (nfc->flow_type) { in i40e_set_rss_hash_opt()
2065 input->flow_type = fsp->flow_type; in i40e_add_fdir_ethtool()
/drivers/net/ethernet/emulex/benet/
Dbe_ethtool.c986 static u64 be_get_rss_hash_opts(struct be_adapter *adapter, u64 flow_type) in be_get_rss_hash_opts() argument
990 switch (flow_type) { in be_get_rss_hash_opts()
1033 cmd->data = be_get_rss_hash_opts(adapter, cmd->flow_type); in be_get_rxnfc()
1057 switch (cmd->flow_type) { in be_set_rss_hash_opts()
/drivers/net/ethernet/intel/i40evf/
Di40evf_ethtool.c377 switch (cmd->flow_type) { in i40evf_get_rss_hash_opts()
473 switch (nfc->flow_type) { in i40evf_set_rss_hash_opt()
/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c853 if (!gfar_ethflow_to_filer_table(priv, cmd->data, cmd->flow_type)) in gfar_set_hash_opts()
1170 if ((rule->flow_type & FLOW_EXT) && in gfar_convert_to_filer()
1195 switch (rule->flow_type & ~FLOW_EXT) { in gfar_convert_to_filer()
1602 if (flow->flow_type & FLOW_EXT) { in gfar_check_capability()
1610 if (flow->flow_type == IP_USER_FLOW) in gfar_check_capability()

12