Home
last modified time | relevance | path

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

123456

/linux-6.1.9/arch/powerpc/sysdev/
Dcpm2_pic.c132 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 …]
Dehv_pic.c112 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()
Dipic.c599 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 & IRQ_TYPE_SENSE_MASK) == IRQ_TYPE_EDGE_FALLING) { in ipic_set_irq_type()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c54 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()
357 u32 flow_type = flow_type_mask(fs->flow_type); in set_flow_attrs() local
359 switch (flow_type) { in set_flow_attrs()
385 if ((fs->flow_type & FLOW_EXT) && in set_flow_attrs()
389 if (fs->flow_type & FLOW_MAC_EXT && in set_flow_attrs()
431 if (fs->flow_type & FLOW_RSS) { in flow_get_tirn()
434 u32 flow_type; in flow_get_tirn() local
[all …]
/linux-6.1.9/drivers/net/ethernet/intel/ice/
Dice_fdir.c882 if (input->flow_type == ICE_FLTR_PTYPE_NONF_IPV4_OTHER) { in ice_fdir_get_gen_prgm_pkt()
897 } else if (input->flow_type == ICE_FLTR_PTYPE_NONF_IPV6_OTHER) { in ice_fdir_get_gen_prgm_pkt()
913 flow = input->flow_type; in ice_fdir_get_gen_prgm_pkt()
1222 enum ice_fltr_ptype flow_type = a->flow_type; in ice_fdir_comp_rules() local
1228 if (flow_type == ICE_FLTR_PTYPE_NONF_IPV4_TCP || in ice_fdir_comp_rules()
1229 flow_type == ICE_FLTR_PTYPE_NONF_IPV4_UDP || in ice_fdir_comp_rules()
1230 flow_type == ICE_FLTR_PTYPE_NONF_IPV4_SCTP) { in ice_fdir_comp_rules()
1236 } else if (flow_type == ICE_FLTR_PTYPE_NONF_IPV4_OTHER) { in ice_fdir_comp_rules()
1246 if (flow_type == ICE_FLTR_PTYPE_NONF_IPV6_UDP || in ice_fdir_comp_rules()
1247 flow_type == ICE_FLTR_PTYPE_NONF_IPV6_TCP || in ice_fdir_comp_rules()
[all …]
Dice_arfs.c24 ice_is_arfs_using_perfect_flow(struct ice_hw *hw, enum ice_fltr_ptype flow_type) in ice_is_arfs_using_perfect_flow() argument
38 switch (flow_type) { in ice_is_arfs_using_perfect_flow()
64 switch (entry->fltr_info.flow_type) { in ice_arfs_update_active_fltr_cntrs()
91 entry->fltr_info.flow_type); in ice_arfs_update_active_fltr_cntrs()
190 if (arfs_entry->fltr_info.flow_type != ICE_FLTR_PTYPE_NONF_IPV4_UDP && in ice_arfs_is_flow_expired()
191 arfs_entry->fltr_info.flow_type != ICE_FLTR_PTYPE_NONF_IPV6_UDP) in ice_arfs_is_flow_expired()
228 enum ice_fltr_ptype flow_type = e->fltr_info.flow_type; in ice_arfs_update_flow_rules() local
240 if (flow_type == ICE_FLTR_PTYPE_NONF_IPV4_UDP || in ice_arfs_update_flow_rules()
241 flow_type == ICE_FLTR_PTYPE_NONF_IPV6_UDP) in ice_arfs_update_flow_rules()
321 fltr_info->flow_type = (ip_proto == IPPROTO_TCP) ? in ice_arfs_build_entry()
[all …]
Dice_ethtool_fdir.c134 fsp->flow_type = ice_fltr_to_ethtool_flow(rule->flow_type); in ice_get_ethtool_fdir_entry()
139 switch (fsp->flow_type) { in ice_get_ethtool_fdir_entry()
211 idx = ice_ethtool_flow_to_fltr(fsp->flow_type); in ice_get_ethtool_fdir_entry()
214 rule->flow_type); in ice_get_ethtool_fdir_entry()
391 enum ice_fltr_ptype flow_type) in ice_fdir_rem_flow() argument
393 int flow = (int)flow_type & ~FLOW_EXT; in ice_fdir_rem_flow()
487 if (!(fsp->flow_type & FLOW_EXT)) in ice_parse_rx_flow_user_data()
1224 switch (fsp->flow_type & ~FLOW_EXT) { in ice_cfg_fdir_xtrct_seq()
1285 fltr_idx = ice_ethtool_flow_to_fltr(fsp->flow_type & ~FLOW_EXT); in ice_cfg_fdir_xtrct_seq()
1390 has_frag = ice_fdir_has_frag(input->flow_type); in ice_fdir_write_fltr()
[all …]
Dice_virtchnl_fdir.c338 enum ice_fltr_ptype flow = conf->input.flow_type; in ice_vc_fdir_set_flow_hdr()
680 flow = input->flow_type; in ice_vc_fdir_config_input_set()
762 input->flow_type = ICE_FLTR_PTYPE_NON_IP_L2; in ice_vc_fdir_parse_pattern()
770 input->flow_type = ICE_FLTR_PTYPE_NONF_IPV4_OTHER; in ice_vc_fdir_parse_pattern()
782 input->flow_type = ICE_FLTR_PTYPE_NONF_IPV6_OTHER; in ice_vc_fdir_parse_pattern()
799 input->flow_type = ICE_FLTR_PTYPE_NONF_IPV4_TCP; in ice_vc_fdir_parse_pattern()
801 input->flow_type = ICE_FLTR_PTYPE_NONF_IPV6_TCP; in ice_vc_fdir_parse_pattern()
816 input->flow_type = ICE_FLTR_PTYPE_NONF_IPV4_UDP; in ice_vc_fdir_parse_pattern()
818 input->flow_type = ICE_FLTR_PTYPE_NONF_IPV6_UDP; in ice_vc_fdir_parse_pattern()
833 input->flow_type = in ice_vc_fdir_parse_pattern()
[all …]
Dice_arfs.h56 enum ice_fltr_ptype flow_type);
80 enum ice_fltr_ptype __always_unused flow_type) in ice_is_arfs_using_perfect_flow() argument
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_flows.c505 u32 flow_type) in otx2_prepare_ipv4_flow() argument
516 switch (flow_type) { in otx2_prepare_ipv4_flow()
595 if (flow_type == UDP_V4_FLOW) in otx2_prepare_ipv4_flow()
597 else if (flow_type == TCP_V4_FLOW) in otx2_prepare_ipv4_flow()
607 if (flow_type == UDP_V4_FLOW) in otx2_prepare_ipv4_flow()
609 else if (flow_type == TCP_V4_FLOW) in otx2_prepare_ipv4_flow()
614 if (flow_type == UDP_V4_FLOW) in otx2_prepare_ipv4_flow()
616 else if (flow_type == TCP_V4_FLOW) in otx2_prepare_ipv4_flow()
650 if (flow_type == AH_V4_FLOW) in otx2_prepare_ipv4_flow()
664 u32 flow_type) in otx2_prepare_ipv6_flow() argument
[all …]
/linux-6.1.9/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()
77 irqd_set_trigger_type(data, flow_type); in tb10x_irq_set_type()
78 irq_setup_alt_chip(data, flow_type); in tb10x_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-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-sunxi-nmi.c97 static int sunxi_sc_nmi_set_type(struct irq_data *data, unsigned int flow_type) in sunxi_sc_nmi_set_type() argument
108 switch (flow_type & IRQF_TRIGGER_MASK) { in sunxi_sc_nmi_set_type()
129 irqd_set_trigger_type(data, flow_type); in sunxi_sc_nmi_set_type()
130 irq_setup_alt_chip(data, flow_type); in sunxi_sc_nmi_set_type()
133 if (ct->type & flow_type) in sunxi_sc_nmi_set_type()
Dirq-pic32-evic.c77 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-6.1.9/arch/powerpc/sysdev/xics/
Dxics-common.c380 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-6.1.9/drivers/gpio/
Dgpio-rda.c88 unsigned int flow_type) in rda_gpio_set_irq() argument
94 switch (flow_type) { in rda_gpio_set_irq()
160 static int rda_gpio_irq_set_type(struct irq_data *data, unsigned int flow_type) in rda_gpio_irq_set_type() argument
166 ret = rda_gpio_set_irq(chip, offset, flow_type); in rda_gpio_irq_set_type()
170 if (flow_type & (IRQ_TYPE_LEVEL_LOW | IRQ_TYPE_LEVEL_HIGH)) in rda_gpio_irq_set_type()
172 else if (flow_type & (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING)) in rda_gpio_irq_set_type()
Dgpio-hlwd.c149 unsigned int flow_type) in hlwd_gpio_irq_setup_emulation() argument
163 if (flow_type & IRQ_TYPE_EDGE_RISING) in hlwd_gpio_irq_setup_emulation()
165 if (flow_type & IRQ_TYPE_EDGE_FALLING) in hlwd_gpio_irq_setup_emulation()
169 static int hlwd_gpio_irq_set_type(struct irq_data *data, unsigned int flow_type) in hlwd_gpio_irq_set_type() argument
180 switch (flow_type) { in hlwd_gpio_irq_set_type()
194 hlwd_gpio_irq_setup_emulation(hlwd, data->hwirq, flow_type); in hlwd_gpio_irq_set_type()
/linux-6.1.9/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()
1181 for_each_cls_flow_id_containing_type(i, rule->flow_type) { in mvpp2_port_cls_rfs_rule_remove()
1214 for_each_cls_flow_id_containing_type(i, rule->flow_type) { in mvpp2_port_flt_rfs_rule_insert()
1373 if (info->fs.flow_type & FLOW_RSS) in mvpp2_ethtool_cls_rule_ins()
[all …]
/linux-6.1.9/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()
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 != IP_USER_FLOW && in aq_set_data_fl3l4()
531 fsp->flow_type != IPV6_USER_FLOW) { in aq_set_data_fl3l4()
[all …]
/linux-6.1.9/drivers/net/ethernet/sfc/siena/
Dethtool_common.c680 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in efx_ethtool_get_class_rule()
707 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in efx_ethtool_get_class_rule()
731 rule->flow_type = ETHER_FLOW; in efx_ethtool_get_class_rule()
755 rule->flow_type = IPV4_USER_FLOW; in efx_ethtool_get_class_rule()
775 rule->flow_type = IPV6_USER_FLOW; in efx_ethtool_get_class_rule()
797 rule->flow_type |= FLOW_EXT; in efx_ethtool_get_class_rule()
803 rule->flow_type |= FLOW_RSS; in efx_ethtool_get_class_rule()
827 if (info->flow_type & FLOW_RSS && info->rss_context) { in efx_siena_ethtool_get_rxnfc()
840 switch (info->flow_type & ~FLOW_RSS) { in efx_siena_ethtool_get_rxnfc()
887 if (info->fs.flow_type & FLOW_RSS) in efx_siena_ethtool_get_rxnfc()
[all …]
/linux-6.1.9/drivers/net/ethernet/sfc/
Dethtool_common.c717 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in efx_ethtool_get_class_rule()
744 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in efx_ethtool_get_class_rule()
768 rule->flow_type = ETHER_FLOW; in efx_ethtool_get_class_rule()
792 rule->flow_type = IPV4_USER_FLOW; in efx_ethtool_get_class_rule()
812 rule->flow_type = IPV6_USER_FLOW; in efx_ethtool_get_class_rule()
834 rule->flow_type |= FLOW_EXT; in efx_ethtool_get_class_rule()
840 rule->flow_type |= FLOW_RSS; in efx_ethtool_get_class_rule()
864 if (info->flow_type & FLOW_RSS && info->rss_context) { in efx_ethtool_get_rxnfc()
876 switch (info->flow_type & ~FLOW_RSS) { in efx_ethtool_get_rxnfc()
923 if (info->fs.flow_type & FLOW_RSS) in efx_ethtool_get_rxnfc()
[all …]
/linux-6.1.9/arch/mips/bcm63xx/
Dirq.c278 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-6.1.9/arch/mips/kernel/
Dirq_txx9.c99 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-6.1.9/drivers/net/dsa/
Dbcm_sf2_cfp.c364 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 & ~FLOW_EXT) { in bcm_sf2_cfp_rule_insert()
934 if (fs->flow_type & FLOW_MAC_EXT) in bcm_sf2_cfp_rule_set()
[all …]

123456