| /linux/arch/powerpc/sysdev/ |
| H A D | cpm2_pic.c | 130 static int cpm2_set_irq_type(struct irq_data *d, unsigned int flow_type) in cpm2_set_irq_type() argument 140 if (flow_type == IRQ_TYPE_NONE) in cpm2_set_irq_type() 141 flow_type = IRQ_TYPE_EDGE_BOTH; in cpm2_set_irq_type() 143 if (flow_type != IRQ_TYPE_EDGE_BOTH && in cpm2_set_irq_type() 144 flow_type != IRQ_TYPE_EDGE_FALLING) in cpm2_set_irq_type() 147 if (flow_type == IRQ_TYPE_NONE) in cpm2_set_irq_type() 148 flow_type = IRQ_TYPE_LEVEL_LOW; in cpm2_set_irq_type() 150 if (flow_type & (IRQ_TYPE_EDGE_RISING | IRQ_TYPE_LEVEL_HIGH)) in cpm2_set_irq_type() 154 irqd_set_trigger_type(d, flow_type); in cpm2_set_irq_type() 155 if (flow_type & IRQ_TYPE_LEVEL_LOW) in cpm2_set_irq_type() [all …]
|
| H A D | ehv_pic.c | 112 static int ehv_pic_set_irq_type(struct irq_data *d, unsigned int flow_type) in ehv_pic_set_irq_type() argument 118 if (flow_type == IRQ_TYPE_NONE) in ehv_pic_set_irq_type() 119 flow_type = IRQ_TYPE_LEVEL_LOW; in ehv_pic_set_irq_type() 121 irqd_set_trigger_type(d, flow_type); in ehv_pic_set_irq_type() 123 vecpri = ehv_pic_type_to_vecpri(flow_type); in ehv_pic_set_irq_type()
|
| H A D | ipic.c | 599 static int ipic_set_irq_type(struct irq_data *d, unsigned int flow_type) in ipic_set_irq_type() argument 605 if (flow_type == IRQ_TYPE_NONE) in ipic_set_irq_type() 606 flow_type = IRQ_TYPE_LEVEL_LOW; in ipic_set_irq_type() 610 if (!(flow_type & (IRQ_TYPE_LEVEL_LOW | IRQ_TYPE_EDGE_FALLING))) { in ipic_set_irq_type() 612 flow_type); in ipic_set_irq_type() 616 if ((flow_type & IRQ_TYPE_EDGE_FALLING) && !ipic_info[src].ack) { in ipic_set_irq_type() 623 irqd_set_trigger_type(d, flow_type); in ipic_set_irq_type() 624 if (flow_type & IRQ_TYPE_LEVEL_LOW) { in ipic_set_irq_type() 641 return (flow_type & IRQ_TYPE_LEVEL_LOW) ? 0 : -EINVAL; in ipic_set_irq_type() 644 if ((flow_type in ipic_set_irq_type() [all...] |
| /linux/drivers/net/ethernet/wangxun/txgbe/ |
| H A D | txgbe_ethtool.c | 129 switch (rule->filter.formatted.flow_type) { in txgbe_get_ethtool_fdir_entry() 131 fsp->flow_type = TCP_V4_FLOW; in txgbe_get_ethtool_fdir_entry() 134 fsp->flow_type = UDP_V4_FLOW; in txgbe_get_ethtool_fdir_entry() 137 fsp->flow_type = SCTP_V4_FLOW; in txgbe_get_ethtool_fdir_entry() 140 fsp->flow_type = IP_USER_FLOW; in txgbe_get_ethtool_fdir_entry() 161 fsp->flow_type |= FLOW_EXT; in txgbe_get_ethtool_fdir_entry() 229 u8 *flow_type) in txgbe_flowspec_to_flow_type() argument 231 switch (fsp->flow_type & ~FLOW_EXT) { in txgbe_flowspec_to_flow_type() 233 *flow_type = TXGBE_ATR_FLOW_TYPE_TCPV4; in txgbe_flowspec_to_flow_type() 236 *flow_type in txgbe_flowspec_to_flow_type() [all...] |
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_fs_ethtool.c | 54 static int flow_type_to_traffic_type(u32 flow_type); 56 static u32 flow_type_mask(u32 flow_type) in flow_type_mask() argument 58 return flow_type & ~(FLOW_EXT | FLOW_MAC_EXT | FLOW_RSS); in flow_type_mask() 94 switch (flow_type_mask(fs->flow_type)) { in get_flow_table() 353 u32 flow_type = flow_type_mask(fs->flow_type); in set_flow_attrs() local 355 switch (flow_type) { in set_flow_attrs() 381 if ((fs->flow_type & FLOW_EXT) && in set_flow_attrs() 385 if (fs->flow_type & FLOW_MAC_EXT && in set_flow_attrs() 427 if (fs->flow_type in flow_get_tirn() 430 u32 flow_type; flow_get_tirn() local 867 flow_type_to_traffic_type(u32 flow_type) flow_type_to_traffic_type() argument 902 u32 flow_type = 0; mlx5e_ethtool_set_rxfh_fields() local 948 u32 flow_type = 0; mlx5e_ethtool_get_rxfh_fields() local [all...] |
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_arfs.c | 19 * @flow_type: flow type as Flow Director understands it 22 * the specified flow_type for perfect (4-tuple) filters. 25 ice_is_arfs_using_perfect_flow(struct ice_hw *hw, enum ice_fltr_ptype flow_type) in ice_is_arfs_using_perfect_flow() argument 39 switch (flow_type) { in ice_is_arfs_using_perfect_flow() 65 switch (entry->fltr_info.flow_type) { in ice_arfs_update_active_fltr_cntrs() 92 entry->fltr_info.flow_type); in ice_arfs_update_active_fltr_cntrs() 191 if (arfs_entry->fltr_info.flow_type != ICE_FLTR_PTYPE_NONF_IPV4_UDP && in ice_arfs_is_flow_expired() 192 arfs_entry->fltr_info.flow_type != ICE_FLTR_PTYPE_NONF_IPV6_UDP) in ice_arfs_is_flow_expired() 229 enum ice_fltr_ptype flow_type = e->fltr_info.flow_type; in ice_arfs_update_flow_rules() local [all...] |
| H A D | ice_arfs.h | 55 enum ice_fltr_ptype flow_type); 78 enum ice_fltr_ptype __always_unused flow_type) in ice_is_arfs_using_perfect_flow() argument
|
| /linux/drivers/net/ethernet/google/gve/ |
| H A D | gve_flow_rule.c | 28 if (be16_to_cpu(flow_rule->flow_type) >= ARRAY_SIZE(flow_type_lut)) in gve_fill_ethtool_flow_spec() 31 fsp->flow_type = flow_type_lut[be16_to_cpu(flow_rule->flow_type)]; in gve_fill_ethtool_flow_spec() 38 switch (fsp->flow_type) { in gve_fill_ethtool_flow_spec() 121 u32 flow_type; in gve_generate_flow_rule() local 131 flow_type = fsp->flow_type & ~(FLOW_EXT | FLOW_MAC_EXT | FLOW_RSS); in gve_generate_flow_rule() 132 if (!flow_type || flow_type >= ARRAY_SIZE(flow_type_lut)) in gve_generate_flow_rule() 135 rule->flow_type in gve_generate_flow_rule() [all...] |
| /linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | otx2_flows.c | 538 u32 flow_type) in otx2_prepare_ipv4_flow() argument 549 switch (flow_type) { in otx2_prepare_ipv4_flow() 628 if (flow_type == UDP_V4_FLOW) in otx2_prepare_ipv4_flow() 630 else if (flow_type == TCP_V4_FLOW) in otx2_prepare_ipv4_flow() 640 if (flow_type == UDP_V4_FLOW) in otx2_prepare_ipv4_flow() 642 else if (flow_type == TCP_V4_FLOW) in otx2_prepare_ipv4_flow() 647 if (flow_type == UDP_V4_FLOW) in otx2_prepare_ipv4_flow() 649 else if (flow_type == TCP_V4_FLOW) in otx2_prepare_ipv4_flow() 683 if (flow_type == AH_V4_FLOW) in otx2_prepare_ipv4_flow() 697 u32 flow_type) in otx2_prepare_ipv6_flow() argument 828 u32 flow_type; otx2_prepare_flow_request() local 954 u32 flow_type; otx2_is_flow_rule_dmacfilter() local [all...] |
| /linux/drivers/irqchip/ |
| H A D | irq-tb10x.c | 41 static int tb10x_irq_set_type(struct irq_data *data, unsigned int flow_type) in tb10x_irq_set_type() argument 51 switch (flow_type & IRQF_TRIGGER_MASK) { in tb10x_irq_set_type() 59 flow_type = IRQ_TYPE_LEVEL_LOW; in tb10x_irq_set_type() 72 irqd_set_trigger_type(data, flow_type); in tb10x_irq_set_type() 73 irq_setup_alt_chip(data, flow_type); in tb10x_irq_set_type()
|
| H A D | irq-al-fic.c | 63 static int al_fic_irq_set_type(struct irq_data *data, unsigned int flow_type) in al_fic_irq_set_type() argument 71 if (((flow_type & IRQ_TYPE_SENSE_MASK) != IRQ_TYPE_LEVEL_HIGH) && in al_fic_irq_set_type() 72 ((flow_type & IRQ_TYPE_SENSE_MASK) != IRQ_TYPE_EDGE_RISING)) { in al_fic_irq_set_type() 73 pr_debug("fic doesn't support flow type %d\n", flow_type); in al_fic_irq_set_type() 77 new_state = (flow_type & IRQ_TYPE_LEVEL_HIGH) ? in al_fic_irq_set_type()
|
| H A 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()
|
| H A D | irq-sunxi-nmi.c | 105 static int sunxi_sc_nmi_set_type(struct irq_data *data, unsigned int flow_type) in sunxi_sc_nmi_set_type() argument 116 switch (flow_type & IRQF_TRIGGER_MASK) { in sunxi_sc_nmi_set_type() 135 irqd_set_trigger_type(data, flow_type); in sunxi_sc_nmi_set_type() 136 irq_setup_alt_chip(data, flow_type); in sunxi_sc_nmi_set_type() 139 if (ct->type & flow_type) in sunxi_sc_nmi_set_type()
|
| H A D | irq-pic32-evic.c | 77 unsigned int flow_type) in pic32_set_type_edge() argument 83 if (!(flow_type & IRQ_TYPE_EDGE_BOTH)) in pic32_set_type_edge() 89 ret = pic32_set_ext_polarity(i, flow_type); in pic32_set_type_edge() 95 irqd_set_trigger_type(data, flow_type); in pic32_set_type_edge()
|
| /linux/arch/powerpc/sysdev/xics/ |
| H A D | xics-common.c | 380 int xics_set_irq_type(struct irq_data *d, unsigned int flow_type) in xics_set_irq_type() argument 389 if (flow_type == IRQ_TYPE_DEFAULT || flow_type == IRQ_TYPE_NONE) in xics_set_irq_type() 390 flow_type = IRQ_TYPE_EDGE_RISING; in xics_set_irq_type() 392 if (flow_type != IRQ_TYPE_EDGE_RISING && in xics_set_irq_type() 393 flow_type != IRQ_TYPE_LEVEL_LOW) in xics_set_irq_type() 396 irqd_set_trigger_type(d, flow_type); in xics_set_irq_type()
|
| /linux/drivers/net/ethernet/marvell/mvpp2/ |
| H A D | mvpp2_cls.c | 16 .flow_type = _type, \ 554 static int mvpp2_cls_ethtool_flow_to_type(int flow_type) in mvpp2_cls_ethtool_flow_to_type() argument 556 switch (flow_type & ~(FLOW_EXT | FLOW_MAC_EXT | FLOW_RSS)) { in mvpp2_cls_ethtool_flow_to_type() 740 static int mvpp2_port_rss_hash_opts_set(struct mvpp2_port *port, int flow_type, in mvpp2_port_rss_hash_opts_set() argument 748 for_each_cls_flow_id_with_type(i, flow_type) { in mvpp2_port_rss_hash_opts_set() 829 static u16 mvpp2_port_rss_hash_opts_get(struct mvpp2_port *port, int flow_type) in mvpp2_port_rss_hash_opts_get() argument 836 for_each_cls_flow_id_with_type(i, flow_type) { in mvpp2_port_rss_hash_opts_get() 1187 for_each_cls_flow_id_containing_type(i, rule->flow_type) { in mvpp2_port_cls_rfs_rule_remove() 1220 for_each_cls_flow_id_containing_type(i, rule->flow_type) { in mvpp2_port_flt_rfs_rule_insert() 1379 if (info->fs.flow_type in mvpp2_ethtool_cls_rule_ins() 1624 u32 flow_type; mvpp2_ethtool_rxfh_set() local 1663 u32 flow_type; mvpp2_ethtool_rxfh_get() local [all...] |
| /linux/drivers/net/ethernet/intel/ice/virt/ |
| H A D | fdir.c | 336 enum ice_fltr_ptype flow = conf->input.flow_type; in ice_vc_fdir_set_flow_hdr() 580 flow_type_a = a->flow_type; in ice_vc_fdir_has_prof_conflict() 581 flow_type_b = b->flow_type; in ice_vc_fdir_has_prof_conflict() 764 flow = input->flow_type; in ice_vc_fdir_config_input_set() 957 input->flow_type = ICE_FLTR_PTYPE_NON_IP_L2; in ice_vc_fdir_parse_pattern() 965 input->flow_type = ICE_FLTR_PTYPE_NONF_IPV4_OTHER; in ice_vc_fdir_parse_pattern() 977 input->flow_type = ICE_FLTR_PTYPE_NONF_IPV6_OTHER; in ice_vc_fdir_parse_pattern() 994 input->flow_type = ICE_FLTR_PTYPE_NONF_IPV4_TCP; in ice_vc_fdir_parse_pattern() 996 input->flow_type = ICE_FLTR_PTYPE_NONF_IPV6_TCP; in ice_vc_fdir_parse_pattern() 1011 input->flow_type in ice_vc_fdir_parse_pattern() [all...] |
| /linux/drivers/net/ethernet/sfc/siena/ |
| H A D | ethtool_common.c | 674 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in efx_ethtool_get_class_rule() 701 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in efx_ethtool_get_class_rule() 725 rule->flow_type = ETHER_FLOW; in efx_ethtool_get_class_rule() 749 rule->flow_type = IPV4_USER_FLOW; in efx_ethtool_get_class_rule() 769 rule->flow_type = IPV6_USER_FLOW; in efx_ethtool_get_class_rule() 791 rule->flow_type |= FLOW_EXT; in efx_ethtool_get_class_rule() 797 rule->flow_type |= FLOW_RSS; in efx_ethtool_get_class_rule() 814 switch (info->flow_type) { in efx_siena_ethtool_get_rxfh_fields() 874 if (info->fs.flow_type & FLOW_RSS) in efx_siena_ethtool_get_rxnfc() 916 u32 flow_type in efx_ethtool_set_class_rule() local [all...] |
| /linux/drivers/net/ethernet/aquantia/atlantic/ |
| H A 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() 191 if (fsp->flow_type & FLOW_EXT) { in aq_check_filter() 203 switch (fsp->flow_type & ~FLOW_EXT) { in aq_check_filter() 248 } else if ((fsp->flow_type & ~FLOW_EXT) != ETHER_FLOW && in aq_rule_is_not_support() 254 } else if (fsp->flow_type & FLOW_MAC_EXT) { in aq_rule_is_not_support() 493 switch (fsp->flow_type) { in aq_set_data_fl3l4() 530 if (fsp->flow_type ! in aq_set_data_fl3l4() [all...] |
| /linux/arch/mips/bcm63xx/ |
| H A 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/drivers/net/ethernet/sfc/ |
| H A D | ethtool_common.c | 673 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in efx_ethtool_get_class_rule() 700 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in efx_ethtool_get_class_rule() 724 rule->flow_type = ETHER_FLOW; in efx_ethtool_get_class_rule() 748 rule->flow_type = IPV4_USER_FLOW; in efx_ethtool_get_class_rule() 768 rule->flow_type = IPV6_USER_FLOW; in efx_ethtool_get_class_rule() 790 rule->flow_type |= FLOW_EXT; in efx_ethtool_get_class_rule() 796 rule->flow_type |= FLOW_RSS; in efx_ethtool_get_class_rule() 823 switch (info->flow_type) { in efx_ethtool_get_rxfh_fields() 883 if (info->fs.flow_type & FLOW_RSS) in efx_ethtool_get_rxnfc() 925 u32 flow_type in efx_ethtool_set_class_rule() local [all...] |
| /linux/arch/mips/kernel/ |
| H A D | irq_txx9.c | 99 static int txx9_irq_set_type(struct irq_data *d, unsigned int flow_type) in txx9_irq_set_type() argument 107 if (flow_type & IRQF_TRIGGER_PROBE) in txx9_irq_set_type() 109 switch (flow_type & IRQF_TRIGGER_MASK) { in txx9_irq_set_type()
|
| /linux/drivers/net/ethernet/intel/iavf/ |
| H A D | iavf_ethtool.c | 861 if (!(fsp->flow_type & FLOW_EXT)) in iavf_parse_rx_flow_user_data() 906 fsp->flow_type |= FLOW_EXT; in iavf_fill_rx_flow_ext_data() 938 fsp->flow_type = iavf_fltr_to_ethtool_flow(rule->flow_type); in iavf_get_ethtool_fdir_entry() 943 switch (fsp->flow_type) { in iavf_get_ethtool_fdir_entry() 1106 u32 flow_type, q_index = 0; in iavf_add_fdir_fltr_info() local 1124 if (fsp->flow_type & FLOW_EXT) { in iavf_add_fdir_fltr_info() 1131 flow_type = fsp->flow_type & ~(FLOW_EXT | FLOW_MAC_EXT | FLOW_RSS); in iavf_add_fdir_fltr_info() 1132 fltr->flow_type in iavf_add_fdir_fltr_info() [all...] |
| /linux/drivers/net/dsa/ |
| H A D | bcm_sf2_cfp.c | 364 switch (fs->flow_type & ~FLOW_EXT) { in bcm_sf2_cfp_ipv4_rule_set() 378 if (fs->flow_type & FLOW_EXT) { in bcm_sf2_cfp_ipv4_rule_set() 595 if (rule->fs.flow_type != fs->flow_type || in bcm_sf2_cfp_rule_cmp() 600 switch (fs->flow_type & ~FLOW_EXT) { in bcm_sf2_cfp_rule_cmp() 616 if (rule->fs.flow_type & FLOW_EXT) { in bcm_sf2_cfp_rule_cmp() 644 switch (fs->flow_type & ~FLOW_EXT) { in bcm_sf2_cfp_ipv6_rule_set() 658 if (fs->flow_type & FLOW_EXT) { in bcm_sf2_cfp_ipv6_rule_set() 881 if (fs->flow_type & FLOW_EXT) { in bcm_sf2_cfp_rule_insert() 907 switch (fs->flow_type in bcm_sf2_cfp_rule_insert() [all...] |
| /linux/arch/powerpc/platforms/52xx/ |
| H A D | mpc52xx_pic.c | 177 static int mpc52xx_extirq_set_type(struct irq_data *d, unsigned int flow_type) in mpc52xx_extirq_set_type() argument 184 (int) irqd_to_hwirq(d), l2irq, flow_type); in mpc52xx_extirq_set_type() 186 switch (flow_type) { in mpc52xx_extirq_set_type() 216 static int mpc52xx_null_set_type(struct irq_data *d, unsigned int flow_type) in mpc52xx_null_set_type() argument
|