Searched refs:rule (Results 151 - 175 of 324) sorted by relevance

1234567891011>>

/linux-master/drivers/net/ethernet/intel/i40e/
H A Di40e_ethtool.c3320 * i40e_get_ethtool_fdir_all - Populates the rule count of a command
3323 * @rule_locs: Array of used rule locations
3325 * This function populates both the total and actual rule count of
3334 struct i40e_fdir_filter *rule; local
3338 /* report total rule count */
3341 hlist_for_each_entry_safe(rule, node2,
3346 rule_locs[cnt] = rule->fd_id;
3371 struct i40e_fdir_filter *rule = NULL; local
3376 hlist_for_each_entry_safe(rule, node2,
3378 if (fsp->location <= rule
3756 struct i40e_fdir_filter *rule, *parent; local
3816 struct i40e_fdir_filter *rule; local
4766 struct i40e_fdir_filter *rule; local
5036 struct i40e_fdir_filter *rule; local
[all...]
/linux-master/net/netfilter/
H A Dnf_flow_table_offload.c218 int i = flow_rule->rule->action.num_entries++;
220 return &flow_rule->rule->action.entries[i];
747 flow_rule->rule = flow_rule_alloc(NF_FLOW_RULE_ACTION_MAX);
748 if (!flow_rule->rule)
751 flow_rule->rule->match.dissector = &flow_rule->match.dissector;
752 flow_rule->rule->match.mask = &flow_rule->match.mask;
753 flow_rule->rule->match.key = &flow_rule->match.key;
764 flow_rule->rule->action.num_entries = 0;
771 kfree(flow_rule->rule);
783 for (i = 0; i < flow_rule->rule
[all...]
/linux-master/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_selftests.c1339 struct flow_rule *rule; local
1371 rule = kzalloc(struct_size(rule, action.entries, 1), GFP_KERNEL);
1372 if (!rule) {
1377 rule->match.dissector = dissector;
1378 rule->match.key = (void *)&key;
1379 rule->match.mask = (void *)&mask;
1386 cls->rule = rule;
1388 rule
1465 struct flow_rule *rule; local
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A Dfs_dr.c255 /* We want to support a rule with 32 destinations, which means we need to
273 struct mlx5dr_rule *rule; local
345 mlx5dr_err(domain, "FW-owned reformat can't be used in SW rule\n");
600 rule = mlx5dr_rule_create(group->fs_dr_matcher.dr_matcher,
605 if (!rule) {
613 fte->fs_dr_rule.dr_rule = rule;
631 mlx5_core_err(dev, "Failed to create dr rule err(%d)\n", err);
739 struct mlx5_fs_dr_rule *rule = &fte->fs_dr_rule; local
746 err = mlx5dr_rule_destroy(rule->dr_rule);
751 for (i = rule
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_tun.c807 struct flow_rule *rule = flow_cls_offload_flow_rule(f); local
839 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_CONTROL)) {
850 flow_rule_match_enc_control(rule, &match);
857 flow_rule_match_enc_ipv4_addrs(rule, &match);
878 flow_rule_match_enc_ipv6_addrs(rule, &match);
903 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_IP)) {
906 flow_rule_match_enc_ip(rule, &match);
949 struct flow_rule *rule = flow_cls_offload_flow_rule(f); local
955 if (!flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_PORTS)) {
963 flow_rule_match_enc_ports(rule,
[all...]
H A Dfs.h32 struct mlx5_flow_handle *rule; member in struct:mlx5e_l2_rule
39 struct mlx5_flow_handle *rule; member in struct:mlx5e_promisc_table
/linux-master/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_tc_flower.c28 struct sparx5_wildcard_rule rule[SPX5_MAX_RULE_SIZE]; member in struct:sparx5_multiple_rules
284 struct flow_rule *rule = flow_cls_offload_flow_rule(fco); local
286 struct flow_action *act = &rule->action;
358 /* Add a rule counter action */
409 /* Find the keysets that the rule can use */
439 mru = &multi->rule[kinfo->sw_per_item];
457 mru = &multi->rule[idx];
465 /* Set the chosen keyset on the rule and set a wildcarded type if there
469 mru = &multi->rule[idx];
489 struct sparx5_wildcard_rule *rule)
485 sparx5_tc_add_rule_copy(struct vcap_control *vctrl, struct flow_cls_offload *fco, struct vcap_rule *erule, struct vcap_admin *admin, struct sparx5_wildcard_rule *rule) argument
[all...]
/linux-master/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_matchall.c55 struct flow_action *actions = &cls->rule->action;
189 flow_action_for_each(i, entry, &cls->rule->action)
193 ret = cxgb4_policer_validate(&cls->rule->action, entry, extack);
251 flow_action_for_each(i, act, &cls->rule->action) {
311 * rule. Only insert rule if its prio doesn't conflict with
337 cxgb4_process_flow_actions(dev, &cls->rule->action, fs);
423 &cls_matchall->rule->action,
454 /* All the filter types of this matchall rule save the
H A Dcxgb4_tc_flower.h140 int cxgb4_flow_rule_replace(struct net_device *dev, struct flow_rule *rule,
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dsample.c55 struct mlx5_flow_handle *rule; member in struct:mlx5e_sample_restore
100 mlx5_core_warn(dev, "failed to create termtbl rule, err: %d\n", err);
290 restore->rule = esw_add_restore_rule(esw, obj_id);
291 if (IS_ERR(restore->rule)) {
292 err = PTR_ERR(restore->rule);
320 mlx5_del_flow_rules(restore->rule);
385 * neigh data struct, a slow path rule is offloaded first. Source
590 struct mlx5_flow_handle *rule,
589 mlx5e_tc_sample_unoffload(struct mlx5e_tc_psample *tc_psample, struct mlx5_flow_handle *rule, struct mlx5_flow_attr *attr) argument
/linux-master/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_tc.c372 struct flow_rule *rule = flow_cls_offload_flow_rule(tc_flow_cmd); local
373 struct flow_dissector *dissector = rule->match.dissector;
383 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_BASIC)) {
386 flow_rule_match_basic(rule, &match);
397 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ETH_ADDRS)) {
400 flow_rule_match_eth_addrs(rule, &match);
408 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_VLAN)) {
411 flow_rule_match_vlan(rule, &match);
423 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IPV4_ADDRS)) {
426 flow_rule_match_ipv4_addrs(rule,
[all...]
/linux-master/sound/soc/tegra/
H A Dtegra20_spdif.c183 struct snd_pcm_hw_rule *rule)
185 struct snd_interval *r = hw_param_interval(params, rule->var);
186 struct snd_soc_dai *dai = rule->private;
182 tegra20_spdif_filter_rates(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_tc.h310 struct mlx5_flow_handle *rule,
319 struct mlx5_flow_handle *rule,
350 struct mlx5_flow_handle *rule,
/linux-master/drivers/net/wireless/quantenna/qtnfmac/
H A Dqlink_util.h57 void qlink_utils_regrule_q2nl(struct ieee80211_reg_rule *rule,
/linux-master/drivers/net/ethernet/sfc/
H A Drx_common.h99 bool efx_rps_check_rule(struct efx_arfs_rule *rule, unsigned int filter_idx,
/linux-master/drivers/net/ethernet/sfc/siena/
H A Drx_common.h94 bool efx_siena_rps_check_rule(struct efx_arfs_rule *rule,
/linux-master/sound/firewire/dice/
H A Ddice-pcm.c12 struct snd_pcm_hw_rule *rule)
14 struct snd_pcm_substream *substream = rule->private;
50 struct snd_pcm_hw_rule *rule)
52 struct snd_pcm_substream *substream = rule->private;
11 dice_rate_constraint(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
49 dice_channels_constraint(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
/linux-master/sound/firewire/oxfw/
H A Doxfw-pcm.c11 struct snd_pcm_hw_rule *rule)
13 u8 **formats = rule->private;
42 struct snd_pcm_hw_rule *rule)
44 u8 **formats = rule->private;
10 hw_rule_rate(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
41 hw_rule_channels(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
/linux-master/drivers/net/ethernet/microchip/vcap/
H A Dvcap_api_debugfs_kunit.c37 struct vcap_rule *rule,
82 struct vcap_rule *rule)
85 vcap_rule_add_key_bit(rule, VCAP_KF_LOOKUP_FIRST_IS,
88 vcap_rule_add_key_bit(rule, VCAP_KF_LOOKUP_FIRST_IS,
332 /* Finally we hit the start of the rule */
369 " addr: 786, X6 rule, keysets: VCAP_KFS_MAC_ETYPE\n";
448 "rule: 100, addr: [794,799], X6, ctr[0]: 0, hit: 0\n",
35 test_val_keyset(struct net_device *ndev, struct vcap_admin *admin, struct vcap_rule *rule, struct vcap_keyset_list *kslist, u16 l3_proto) argument
80 test_add_def_fields(struct net_device *ndev, struct vcap_admin *admin, struct vcap_rule *rule) argument
/linux-master/security/apparmor/include/
H A Daudit.h204 int aa_audit_rule_known(struct audit_krule *rule);
/linux-master/drivers/net/wireless/intel/iwlwifi/
H A Diwl-nvm-parse.c1732 struct ieee80211_reg_rule *rule; local
1764 /* build a regdomain rule for every valid channel */
1793 /* we can't continue the same rule */
1800 rule = &regd->reg_rules[valid_rules - 1];
1803 rule->freq_range.start_freq_khz =
1806 rule->freq_range.end_freq_khz = MHZ_TO_KHZ(center_freq + 10);
1809 rule->power_rule.max_antenna_gain = DBI_TO_MBI(6);
1810 rule->power_rule.max_eirp =
1813 rule->flags = reg_rule_flags;
1816 rule
[all...]
/linux-master/kernel/
H A Dauditsc.c456 /* Determine if any context name data matches a rule's watch data */
461 * filtering a task rule at task creation time. This and tsk == current are
465 struct audit_krule *rule,
476 if (ctx && rule->prio <= ctx->prio)
481 for (i = 0; i < rule->field_count; i++) {
482 struct audit_field *f = &rule->fields[i];
500 result = audit_exe_compare(tsk, rule->exe);
634 result = audit_watch_compare(rule->watch,
643 result = match_tree_refs(ctx, rule->tree);
755 if (rule
464 audit_filter_rules(struct task_struct *tsk, struct audit_krule *rule, struct audit_context *ctx, struct audit_names *name, enum audit_state *state, bool task_creation) argument
795 audit_in_mask(const struct audit_krule *rule, unsigned long val) argument
[all...]
/linux-master/sound/core/
H A Dpcm_lib.c1135 * snd_pcm_hw_rule_add - add the hw-constraint rule
1278 struct snd_pcm_hw_rule *rule)
1280 struct snd_pcm_hw_constraint_list *list = rule->private;
1281 return snd_interval_list(hw_param_interval(params, rule->var), list->count, list->list, list->mask);
1308 struct snd_pcm_hw_rule *rule)
1310 struct snd_pcm_hw_constraint_ranges *r = rule->private;
1311 return snd_interval_ranges(hw_param_interval(params, rule->var),
1339 struct snd_pcm_hw_rule *rule)
1341 const struct snd_pcm_hw_constraint_ratnums *r = rule->private;
1344 err = snd_interval_ratnum(hw_param_interval(params, rule
1277 snd_pcm_hw_rule_list(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
1307 snd_pcm_hw_rule_ranges(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
1338 snd_pcm_hw_rule_ratnums(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
1373 snd_pcm_hw_rule_ratdens(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
1407 snd_pcm_hw_rule_msbits(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
1453 snd_pcm_hw_rule_step(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
1480 snd_pcm_hw_rule_pow2(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
1510 snd_pcm_hw_rule_noresample_func(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
[all...]
/linux-master/drivers/net/ethernet/intel/iavf/
H A Diavf_fdir.c826 struct iavf_fdir_fltr *rule; local
828 list_for_each_entry(rule, &adapter->fdir_list_head, list)
829 if (rule->loc == loc)
830 return rule;
842 struct iavf_fdir_fltr *rule, *parent = NULL; local
844 list_for_each_entry(rule, &adapter->fdir_list_head, list) {
845 if (rule->loc >= fltr->loc)
847 parent = rule;
/linux-master/drivers/net/ethernet/intel/igc/
H A Digc_main.c3573 struct igc_nfc_rule *rule)
3575 struct igc_nfc_filter *filter = &rule->filter;
3596 flex.rx_queue = rule->action;
3598 vlan = rule->filter.vlan_tci || rule->filter.vlan_etype;
3603 if (rule->filter.match_flags & IGC_FILTER_FLAG_DST_MAC_ADDR)
3608 if (rule->filter.match_flags & IGC_FILTER_FLAG_SRC_MAC_ADDR)
3613 if (rule->filter.match_flags & IGC_FILTER_FLAG_VLAN_ETYPE) {
3621 if (rule->filter.match_flags & IGC_FILTER_FLAG_VLAN_TCI)
3626 if (rule
3572 igc_add_flex_filter(struct igc_adapter *adapter, struct igc_nfc_rule *rule) argument
3681 igc_enable_nfc_rule(struct igc_adapter *adapter, struct igc_nfc_rule *rule) argument
3722 igc_disable_nfc_rule(struct igc_adapter *adapter, const struct igc_nfc_rule *rule) argument
3760 struct igc_nfc_rule *rule; local
3781 igc_del_nfc_rule(struct igc_adapter *adapter, struct igc_nfc_rule *rule) argument
3793 struct igc_nfc_rule *rule, *tmp; local
3814 igc_add_nfc_rule(struct igc_adapter *adapter, struct igc_nfc_rule *rule) argument
3837 struct igc_nfc_rule *rule; local
[all...]

Completed in 505 milliseconds

1234567891011>>