Home
last modified time | relevance | path

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

123456

/openbmc/linux/arch/powerpc/sysdev/
H A Dcpm2_pic.c140 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()
169 return (flow_type & IRQ_TYPE_LEVEL_LOW) ? in cpm2_set_irq_type()
[all …]
H A Dehv_pic.c112 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 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()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_fs_ethtool.c353 u32 flow_type = flow_type_mask(fs->flow_type); in set_flow_attrs() local
355 switch (flow_type) { in set_flow_attrs()
430 u32 flow_type; in flow_get_tirn() local
438 flow_type = flow_type_mask(fs->flow_type); in flow_get_tirn()
869 switch (flow_type) { in flow_type_to_traffic_type()
899 u32 flow_type = 0; in mlx5e_set_rss_hash_opt() local
904 if (nfc->flow_type & FLOW_RSS) in mlx5e_set_rss_hash_opt()
907 flow_type = flow_type_mask(nfc->flow_type); in mlx5e_set_rss_hash_opt()
919 flow_type != UDP_V6_FLOW) in mlx5e_set_rss_hash_opt()
946 u32 flow_type = 0; in mlx5e_get_rss_hash_opt() local
[all …]
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_fdir.c913 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()
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()
1279 enum ice_fltr_ptype flow_type; in ice_fdir_is_dup_fltr() local
1281 if (rule->flow_type != input->flow_type) in ice_fdir_is_dup_fltr()
1284 flow_type = input->flow_type; in ice_fdir_is_dup_fltr()
1285 if (flow_type == ICE_FLTR_PTYPE_NONF_IPV4_TCP || in ice_fdir_is_dup_fltr()
[all …]
H A 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 …]
H A 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()
214 rule->flow_type); in ice_get_ethtool_fdir_entry()
391 enum ice_fltr_ptype flow_type) in ice_fdir_rem_flow() argument
487 if (!(fsp->flow_type & FLOW_EXT)) in ice_parse_rx_flow_user_data()
1701 int flow_type; in ice_set_fdir_input_set() local
1734 flow_type = fsp->flow_type & ~FLOW_EXT; in ice_set_fdir_input_set()
1745 input->flow_type = ice_ethtool_flow_to_fltr(flow_type); in ice_set_fdir_input_set()
1747 if (fsp->flow_type & FLOW_EXT) { in ice_set_fdir_input_set()
1758 switch (flow_type) { in ice_set_fdir_input_set()
[all …]
H A Dice_virtchnl_fdir.c335 enum ice_fltr_ptype flow = conf->input.flow_type; in ice_vc_fdir_set_flow_hdr()
581 flow_type_a = a->flow_type; in ice_vc_fdir_has_prof_conflict()
582 flow_type_b = b->flow_type; in ice_vc_fdir_has_prof_conflict()
767 flow = input->flow_type; in ice_vc_fdir_config_input_set()
849 input->flow_type = ICE_FLTR_PTYPE_NON_IP_L2; in ice_vc_fdir_parse_pattern()
920 input->flow_type = in ice_vc_fdir_parse_pattern()
923 input->flow_type = in ice_vc_fdir_parse_pattern()
975 input->flow_type = ICE_FLTR_PTYPE_NONF_IPV4_AH; in ice_vc_fdir_parse_pattern()
977 input->flow_type = ICE_FLTR_PTYPE_NONF_IPV6_AH; in ice_vc_fdir_parse_pattern()
1147 if (a->flow_type != b->flow_type) in ice_vc_fdir_comp_rules()
[all …]
H A 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
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_flows.c530 u32 flow_type) in otx2_prepare_ipv4_flow() argument
541 switch (flow_type) { in otx2_prepare_ipv4_flow()
675 if (flow_type == AH_V4_FLOW) in otx2_prepare_ipv4_flow()
689 u32 flow_type) in otx2_prepare_ipv6_flow() argument
700 switch (flow_type) { in otx2_prepare_ipv6_flow()
801 if (flow_type == AH_V6_FLOW) in otx2_prepare_ipv6_flow()
820 u32 flow_type; in otx2_prepare_flow_request() local
823 flow_type = fsp->flow_type & ~(FLOW_EXT | FLOW_MAC_EXT | FLOW_RSS); in otx2_prepare_flow_request()
824 switch (flow_type) { in otx2_prepare_flow_request()
946 u32 flow_type; in otx2_is_flow_rule_dmacfilter() local
[all …]
/openbmc/linux/drivers/irqchip/
H A Dirq-tb10x.c41 static int tb10x_irq_set_type(struct irq_data *data, unsigned int flow_type) in tb10x_irq_set_type() argument
53 switch (flow_type & IRQF_TRIGGER_MASK) { in tb10x_irq_set_type()
61 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()
H A 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()
H A Dirq-sunxi-nmi.c96 static int sunxi_sc_nmi_set_type(struct irq_data *data, unsigned int flow_type) in sunxi_sc_nmi_set_type() argument
107 switch (flow_type & IRQF_TRIGGER_MASK) { in sunxi_sc_nmi_set_type()
128 irqd_set_trigger_type(data, flow_type); in sunxi_sc_nmi_set_type()
129 irq_setup_alt_chip(data, flow_type); in sunxi_sc_nmi_set_type()
132 if (ct->type & flow_type) in sunxi_sc_nmi_set_type()
H A Dirq-al-fic.c63 static int al_fic_irq_set_type(struct irq_data *data, unsigned int flow_type) in al_fic_irq_set_type() argument
72 if (((flow_type & IRQ_TYPE_SENSE_MASK) != IRQ_TYPE_LEVEL_HIGH) && in al_fic_irq_set_type()
73 ((flow_type & IRQ_TYPE_SENSE_MASK) != IRQ_TYPE_EDGE_RISING)) { in al_fic_irq_set_type()
74 pr_debug("fic doesn't support flow type %d\n", flow_type); in al_fic_irq_set_type()
79 new_state = (flow_type & IRQ_TYPE_LEVEL_HIGH) ? in al_fic_irq_set_type()
H A 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()
/openbmc/linux/arch/powerpc/sysdev/xics/
H A 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()
/openbmc/linux/drivers/gpio/
H A Dgpio-rda.c88 unsigned int flow_type) in rda_gpio_set_irq() argument
94 switch (flow_type) { in rda_gpio_set_irq()
161 static int rda_gpio_irq_set_type(struct irq_data *data, unsigned int flow_type) in rda_gpio_irq_set_type() argument
167 ret = rda_gpio_set_irq(chip, offset, flow_type); in rda_gpio_irq_set_type()
171 if (flow_type & (IRQ_TYPE_LEVEL_LOW | IRQ_TYPE_LEVEL_HIGH)) in rda_gpio_irq_set_type()
173 else if (flow_type & (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING)) in rda_gpio_irq_set_type()
H A 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()
/openbmc/linux/drivers/net/ethernet/marvell/mvpp2/
H A Dmvpp2_cls.c16 .flow_type = _type, \
1379 if (info->fs.flow_type & FLOW_RSS) in mvpp2_ethtool_cls_rule_ins()
1389 efs->rule.flow_type = mvpp2_cls_ethtool_flow_to_type(info->fs.flow_type); in mvpp2_ethtool_cls_rule_ins()
1390 if (efs->rule.flow_type < 0) { in mvpp2_ethtool_cls_rule_ins()
1391 ret = efs->rule.flow_type; in mvpp2_ethtool_cls_rule_ins()
1577 if (!(rxnfc->fs.flow_type & FLOW_RSS) || in mvpp22_port_rss_ctx_delete()
1634 u32 flow_type; in mvpp2_ethtool_rxfh_set() local
1636 flow_type = mvpp2_cls_ethtool_flow_to_type(info->flow_type); in mvpp2_ethtool_rxfh_set()
1638 switch (flow_type) { in mvpp2_ethtool_rxfh_set()
1672 u32 flow_type; in mvpp2_ethtool_rxfh_get() local
[all …]
/openbmc/linux/drivers/net/ethernet/aquantia/atlantic/
H A 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()
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()
593 if (aq_rx_fltr->aq_fsp.flow_type & FLOW_EXT) { in aq_add_del_rule()
[all …]
/openbmc/linux/arch/mips/bcm63xx/
H A 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()
/openbmc/linux/drivers/net/ethernet/sfc/
H A Dethtool_common.c731 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()
886 if (info->fs.flow_type & FLOW_RSS) in efx_ethtool_get_rxnfc()
928 u32 flow_type = rule->flow_type & ~(FLOW_EXT | FLOW_RSS); in efx_ethtool_set_class_rule() local
945 if ((rule->flow_type & FLOW_EXT) && in efx_ethtool_set_class_rule()
952 if (rule->flow_type & FLOW_RSS) in efx_ethtool_set_class_rule()
959 if (rule->flow_type & FLOW_RSS) in efx_ethtool_set_class_rule()
[all …]
/openbmc/linux/drivers/net/ethernet/sfc/siena/
H A Dethtool_common.c731 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()
887 if (info->fs.flow_type & FLOW_RSS) in efx_siena_ethtool_get_rxnfc()
929 u32 flow_type = rule->flow_type & ~(FLOW_EXT | FLOW_RSS); in efx_ethtool_set_class_rule() local
946 if ((rule->flow_type & FLOW_EXT) && in efx_ethtool_set_class_rule()
953 if (rule->flow_type & FLOW_RSS) in efx_ethtool_set_class_rule()
960 if (rule->flow_type & FLOW_RSS) in efx_ethtool_set_class_rule()
[all …]
/openbmc/linux/arch/mips/kernel/
H A 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()
/openbmc/linux/arch/powerpc/platforms/52xx/
H A Dmpc52xx_pic.c177 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

123456