Home
last modified time | relevance | path

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

12345

/kernel/linux/linux-5.10/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.c111 int ehv_pic_set_irq_type(struct irq_data *d, unsigned int flow_type) in ehv_pic_set_irq_type() argument
117 if (flow_type == IRQ_TYPE_NONE) in ehv_pic_set_irq_type()
118 flow_type = IRQ_TYPE_LEVEL_LOW; in ehv_pic_set_irq_type()
120 irqd_set_trigger_type(d, flow_type); in ehv_pic_set_irq_type()
122 vecpri = ehv_pic_type_to_vecpri(flow_type); in ehv_pic_set_irq_type()
Dipic.c598 static int ipic_set_irq_type(struct irq_data *d, unsigned int flow_type) in ipic_set_irq_type() argument
604 if (flow_type == IRQ_TYPE_NONE) in ipic_set_irq_type()
605 flow_type = IRQ_TYPE_LEVEL_LOW; in ipic_set_irq_type()
609 if (!(flow_type & (IRQ_TYPE_LEVEL_LOW | IRQ_TYPE_EDGE_FALLING))) { in ipic_set_irq_type()
611 flow_type); in ipic_set_irq_type()
615 if ((flow_type & IRQ_TYPE_EDGE_FALLING) && !ipic_info[src].ack) { in ipic_set_irq_type()
622 irqd_set_trigger_type(d, flow_type); in ipic_set_irq_type()
623 if (flow_type & IRQ_TYPE_LEVEL_LOW) { in ipic_set_irq_type()
640 return (flow_type & IRQ_TYPE_LEVEL_LOW) ? 0 : -EINVAL; in ipic_set_irq_type()
643 if ((flow_type & IRQ_TYPE_SENSE_MASK) == IRQ_TYPE_EDGE_FALLING) { in ipic_set_irq_type()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_fdir.c512 if (input->flow_type == ICE_FLTR_PTYPE_NONF_IPV4_OTHER) { in ice_fdir_get_gen_prgm_pkt()
529 } else if (input->flow_type == ICE_FLTR_PTYPE_NONF_IPV6_OTHER) { in ice_fdir_get_gen_prgm_pkt()
547 flow = input->flow_type; in ice_fdir_get_gen_prgm_pkt()
760 enum ice_fltr_ptype flow_type = a->flow_type; in ice_fdir_comp_rules() local
766 if (flow_type == ICE_FLTR_PTYPE_NONF_IPV4_TCP || in ice_fdir_comp_rules()
767 flow_type == ICE_FLTR_PTYPE_NONF_IPV4_UDP || in ice_fdir_comp_rules()
768 flow_type == ICE_FLTR_PTYPE_NONF_IPV4_SCTP) { in ice_fdir_comp_rules()
774 } else if (flow_type == ICE_FLTR_PTYPE_NONF_IPV4_OTHER) { in ice_fdir_comp_rules()
784 if (flow_type == ICE_FLTR_PTYPE_NONF_IPV6_UDP || in ice_fdir_comp_rules()
785 flow_type == ICE_FLTR_PTYPE_NONF_IPV6_TCP || in ice_fdir_comp_rules()
[all …]
Dice_ethtool_fdir.c133 fsp->flow_type = ice_fltr_to_ethtool_flow(rule->flow_type); in ice_get_ethtool_fdir_entry()
138 switch (fsp->flow_type) { in ice_get_ethtool_fdir_entry()
210 idx = ice_ethtool_flow_to_fltr(fsp->flow_type); in ice_get_ethtool_fdir_entry()
213 rule->flow_type); in ice_get_ethtool_fdir_entry()
316 enum ice_fltr_ptype flow_type) in ice_fdir_rem_flow() argument
318 int flow = (int)flow_type & ~FLOW_EXT; in ice_fdir_rem_flow()
412 if (!(fsp->flow_type & FLOW_EXT)) in ice_parse_rx_flow_user_data()
1078 switch (fsp->flow_type & ~FLOW_EXT) { in ice_cfg_fdir_xtrct_seq()
1139 fltr_idx = ice_ethtool_flow_to_fltr(fsp->flow_type & ~FLOW_EXT); in ice_cfg_fdir_xtrct_seq()
1222 has_frag = ice_fdir_has_frag(input->flow_type); in ice_fdir_write_fltr()
[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_arfs.h53 enum ice_fltr_ptype flow_type);
77 enum ice_fltr_ptype __always_unused flow_type) in ice_is_arfs_using_perfect_flow() argument
/kernel/linux/linux-5.10/arch/powerpc/sysdev/xics/
Dxics-common.c381 int xics_set_irq_type(struct irq_data *d, unsigned int flow_type) in xics_set_irq_type() argument
390 if (flow_type == IRQ_TYPE_DEFAULT || flow_type == IRQ_TYPE_NONE) in xics_set_irq_type()
391 flow_type = IRQ_TYPE_EDGE_RISING; in xics_set_irq_type()
393 if (flow_type != IRQ_TYPE_EDGE_RISING && in xics_set_irq_type()
394 flow_type != IRQ_TYPE_LEVEL_LOW) in xics_set_irq_type()
397 irqd_set_trigger_type(d, flow_type); in xics_set_irq_type()
/kernel/linux/linux-5.10/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-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.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()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c69 switch (fs->flow_type & ~(FLOW_EXT | FLOW_MAC_EXT)) { in get_flow_table()
332 u32 flow_type = fs->flow_type & ~(FLOW_EXT | FLOW_MAC_EXT); in set_flow_attrs() local
334 switch (flow_type) { in set_flow_attrs()
360 if ((fs->flow_type & FLOW_EXT) && in set_flow_attrs()
364 if (fs->flow_type & FLOW_MAC_EXT && in set_flow_attrs()
621 switch (fs->flow_type & ~(FLOW_EXT | FLOW_MAC_EXT)) { in validate_flow()
654 if ((fs->flow_type & FLOW_EXT)) { in validate_flow()
661 if (fs->flow_type & FLOW_MAC_EXT && in validate_flow()
788 static enum mlx5e_traffic_types flow_type_to_traffic_type(u32 flow_type) in flow_type_to_traffic_type() argument
790 switch (flow_type) { in flow_type_to_traffic_type()
[all …]
/kernel/linux/linux-5.10/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.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()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
Dethtool_common.c679 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in efx_ethtool_get_class_rule()
706 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in efx_ethtool_get_class_rule()
730 rule->flow_type = ETHER_FLOW; in efx_ethtool_get_class_rule()
754 rule->flow_type = IPV4_USER_FLOW; in efx_ethtool_get_class_rule()
774 rule->flow_type = IPV6_USER_FLOW; in efx_ethtool_get_class_rule()
796 rule->flow_type |= FLOW_EXT; in efx_ethtool_get_class_rule()
802 rule->flow_type |= FLOW_RSS; in efx_ethtool_get_class_rule()
826 if (info->flow_type & FLOW_RSS && info->rss_context) { in efx_ethtool_get_rxnfc()
838 switch (info->flow_type & ~FLOW_RSS) { in efx_ethtool_get_rxnfc()
885 if (info->fs.flow_type & FLOW_RSS) in efx_ethtool_get_rxnfc()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/arch/mips/kernel/
Dirq_txx9.c112 static int txx9_irq_set_type(struct irq_data *d, unsigned int flow_type) in txx9_irq_set_type() argument
120 if (flow_type & IRQF_TRIGGER_PROBE) in txx9_irq_set_type()
122 switch (flow_type & IRQF_TRIGGER_MASK) { in txx9_irq_set_type()
/kernel/linux/linux-5.10/arch/mips/txx9/generic/
Dirq_tx4939.c104 static int tx4939_irq_set_type(struct irq_data *d, unsigned int flow_type) in tx4939_irq_set_type() argument
112 if (flow_type & IRQF_TRIGGER_PROBE) in tx4939_irq_set_type()
114 switch (flow_type & IRQF_TRIGGER_MASK) { in tx4939_irq_set_type()
/kernel/linux/linux-5.10/arch/powerpc/platforms/52xx/
Dmpc52xx_pic.c176 static int mpc52xx_extirq_set_type(struct irq_data *d, unsigned int flow_type) in mpc52xx_extirq_set_type() argument
183 (int) irqd_to_hwirq(d), l2irq, flow_type); in mpc52xx_extirq_set_type()
185 switch (flow_type) { in mpc52xx_extirq_set_type()
215 static int mpc52xx_null_set_type(struct irq_data *d, unsigned int flow_type) in mpc52xx_null_set_type() argument
/kernel/linux/linux-5.10/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()
910 switch (fs->flow_type & ~FLOW_EXT) { in bcm_sf2_cfp_rule_insert()
937 if (fs->flow_type & FLOW_MAC_EXT) in bcm_sf2_cfp_rule_set()
[all …]

12345