Searched refs:rule (Results 176 - 200 of 324) sorted by relevance

1234567891011>>

/linux-master/drivers/net/ethernet/sfc/
H A Dmae.c719 NL_SET_ERR_MSG_MOD(extack, "No support for encap rule ID matches");
801 NL_SET_ERR_MSG_MOD(extack, "Unexpected encap match in LHS rule");
825 /* Checks that the fields needed for encap-rule matches are supported by the
1691 struct efx_tc_lhs_rule *rule, u32 prio)
1703 rc = efx_mae_populate_lhs_match_criteria(match_crit, &rule->match);
1708 act = &rule->lhs_act;
1736 rule->fw_id = MCDI_DWORD(outbuf, MAE_OUTER_RULE_INSERT_OUT_OR_ID);
1744 struct efx_tc_lhs_rule *rule,
1749 struct efx_tc_lhs_action *act = &rule->lhs_act;
1775 rc = efx_mae_populate_match_criteria(match_crit, &rule
1690 efx_mae_insert_lhs_outer_rule(struct efx_nic *efx, struct efx_tc_lhs_rule *rule, u32 prio) argument
1743 efx_mae_insert_lhs_action_rule(struct efx_nic *efx, struct efx_tc_lhs_rule *rule, u32 prio) argument
1789 efx_mae_insert_lhs_rule(struct efx_nic *efx, struct efx_tc_lhs_rule *rule, u32 prio) argument
1797 efx_mae_remove_lhs_outer_rule(struct efx_nic *efx, struct efx_tc_lhs_rule *rule) argument
1825 efx_mae_remove_lhs_rule(struct efx_nic *efx, struct efx_tc_lhs_rule *rule) argument
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx4/
H A Den_ethtool.c1621 struct mlx4_net_trans_rule rule = { local
1628 rule.port = priv->port;
1629 rule.priority = MLX4_DOMAIN_ETHTOOL | cmd->fs.location;
1630 INIT_LIST_HEAD(&rule.list);
1650 rule.qpn = qpn;
1651 err = mlx4_en_ethtool_to_net_trans_rule(dev, cmd, &rule.list);
1659 en_err(priv, "Fail to detach network rule at location %d. registration id = %llx\n",
1668 err = mlx4_flow_attach(priv->mdev->dev, &rule, &reg_id);
1670 en_err(priv, "Fail to attach network rule at location %d\n",
1680 list_for_each_entry_safe(spec, tmp_spec, &rule
1691 struct ethtool_flow_id *rule; local
1721 struct ethtool_flow_id *rule; local
[all...]
/linux-master/drivers/net/ethernet/intel/igb/
H A Digb_ethtool.c2440 struct igb_nfc_filter *rule = NULL; local
2442 /* report total rule count */
2445 hlist_for_each_entry(rule, &adapter->nfc_filter_list, nfc_node) {
2446 if (fsp->location <= rule->sw_idx)
2450 if (!rule || fsp->location != rule->sw_idx)
2453 if (rule->filter.match_flags) {
2455 fsp->ring_cookie = rule->action;
2456 if (rule->filter.match_flags & IGB_FILTER_FLAG_ETHER_TYPE) {
2457 fsp->h_u.ether_spec.h_proto = rule
2491 struct igb_nfc_filter *rule; local
2853 struct igb_nfc_filter *rule, *parent; local
2903 struct igb_nfc_filter *input, *rule; local
[all...]
/linux-master/net/sched/
H A Dcls_flower.c461 cls_flower.rule = flow_rule_alloc(tcf_exts_num_actions(&f->exts));
462 if (!cls_flower.rule)
468 cls_flower.rule->match.dissector = &f->mask->dissector;
469 cls_flower.rule->match.mask = &f->mask->key;
470 cls_flower.rule->match.key = &f->mkey;
473 err = tc_setup_offload_action(&cls_flower.rule->action, &f->exts,
476 kfree(cls_flower.rule);
483 tc_cleanup_offload_action(&cls_flower.rule->action);
484 kfree(cls_flower.rule);
2303 * try to update concurrently inserted rule
[all...]
/linux-master/sound/core/
H A Dpcm_native.c372 * Each application of rule has own sequence number.
375 * recent application of corresponding rule.
383 * recent application of rule in which corresponding parameters were
402 * Check condition bits of this rule. When the rule has
412 * to SNDRV_PCM_HW_PARAM_XXXs for this rule. The fifth
416 * This rule should be processed in this time when dependent
2328 struct snd_pcm_hw_rule *rule)
2331 snd_interval_mul(hw_param_interval_c(params, rule->deps[0]),
2332 hw_param_interval_c(params, rule
2327 snd_pcm_hw_rule_mul(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
2336 snd_pcm_hw_rule_div(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
2345 snd_pcm_hw_rule_muldivk(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
2355 snd_pcm_hw_rule_mulkdiv(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
2365 snd_pcm_hw_rule_format(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
2387 snd_pcm_hw_rule_sample_bits(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
2427 snd_pcm_hw_rule_rate(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
2436 snd_pcm_hw_rule_buffer_bytes_max(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
2449 snd_pcm_hw_rule_subformats(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch_offloads.c661 struct mlx5_flow_handle *rule; local
698 rule = ERR_PTR(err);
707 rule = ERR_PTR(-EINVAL);
753 rule = ERR_CAST(fdb);
763 rule = mlx5_eswitch_add_termtbl_rule(esw, fdb, spec, esw_attr,
766 rule = mlx5_add_flow_rules(fdb, spec, &flow_act, dest, i);
767 if (IS_ERR(rule))
773 return rule;
784 return rule;
799 struct mlx5_flow_handle *rule; local
870 __mlx5_eswitch_del_rule(struct mlx5_eswitch *esw, struct mlx5_flow_handle *rule, struct mlx5_flow_attr *attr, bool fwd_rule) argument
913 mlx5_eswitch_del_offloaded_rule(struct mlx5_eswitch *esw, struct mlx5_flow_handle *rule, struct mlx5_flow_attr *attr) argument
921 mlx5_eswitch_del_fwd_rule(struct mlx5_eswitch *esw, struct mlx5_flow_handle *rule, struct mlx5_flow_attr *attr) argument
1019 mlx5_eswitch_del_send_to_vport_rule(struct mlx5_flow_handle *rule) argument
1024 mlx5_eswitch_del_send_to_vport_meta_rule(struct mlx5_flow_handle *rule) argument
4388 mlx5_eswitch_restore_ipsec_rule(struct mlx5_eswitch *esw, struct mlx5_flow_handle *rule, struct mlx5_esw_flow_attr *esw_attr, int attr_idx) argument
[all...]
H A Den_rep.h229 struct mlx5_flow_handle *rule; member in struct:mlx5e_rep_sq_peer
/linux-master/drivers/net/wireless/marvell/mwifiex/
H A Dsta_cmd.c1627 struct coalesce_receive_filt_rule *rule; local
1634 rule = (void *)coalesce_cfg->rule_data;
1637 rule->header.type = cpu_to_le16(TLV_TYPE_COALESCE_RULE);
1638 rule->max_coalescing_delay =
1639 cpu_to_le16(cfg->rule[cnt].max_coalescing_delay);
1640 rule->pkt_type = cfg->rule[cnt].pkt_type;
1641 rule->num_of_fields = cfg->rule[cnt].num_of_fields;
1645 param = rule
[all...]
/linux-master/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ethtool.c2541 struct ixgbe_fdir_filter *rule = NULL; local
2543 /* report total rule count */
2546 hlist_for_each_entry_safe(rule, node2,
2548 if (fsp->location <= rule->sw_idx)
2552 if (!rule || fsp->location != rule->sw_idx)
2558 switch (rule->filter.formatted.flow_type) {
2578 fsp->h_u.tcp_ip4_spec.psrc = rule->filter.formatted.src_port;
2580 fsp->h_u.tcp_ip4_spec.pdst = rule->filter.formatted.dst_port;
2582 fsp->h_u.tcp_ip4_spec.ip4src = rule
2608 struct ixgbe_fdir_filter *rule; local
2715 struct ixgbe_fdir_filter *rule, *parent; local
[all...]
/linux-master/net/netfilter/
H A Dnf_tables_api.c455 void nft_rule_expr_activate(const struct nft_ctx *ctx, struct nft_rule *rule) argument
459 expr = nft_expr_first(rule);
460 while (nft_expr_more(rule, expr)) {
468 void nft_rule_expr_deactivate(const struct nft_ctx *ctx, struct nft_rule *rule, argument
473 expr = nft_expr_first(rule);
474 while (nft_expr_more(rule, expr)) {
483 nf_tables_delrule_deactivate(struct nft_ctx *ctx, struct nft_rule *rule) argument
485 /* You cannot delete the same rule twice */
486 if (nft_is_active_next(ctx->net, rule)) {
487 nft_deactivate_next(ctx->net, rule);
494 nft_trans_rule_add(struct nft_ctx *ctx, int msg_type, struct nft_rule *rule) argument
513 nft_delrule(struct nft_ctx *ctx, struct nft_rule *rule) argument
545 struct nft_rule *rule; local
2952 struct nft_rule *rule; local
3366 struct nft_rule *rule; local
3402 nf_tables_fill_rule_info(struct sk_buff *skb, struct net *net, u32 portid, u32 seq, int event, u32 flags, int family, const struct nft_table *table, const struct nft_chain *chain, const struct nft_rule *rule, u64 handle, bool reset) argument
3461 nf_tables_rule_notify(const struct nft_ctx *ctx, const struct nft_rule *rule, int event) argument
3531 const struct nft_rule *rule, *prule; local
3693 const struct nft_rule *rule; local
3803 nf_tables_rule_destroy(const struct nft_ctx *ctx, struct nft_rule *rule) argument
3820 nf_tables_rule_release(const struct nft_ctx *ctx, struct nft_rule *rule) argument
3830 struct nft_rule *rule; local
3950 struct nft_rule *rule, *old_rule = NULL; local
4207 struct nft_rule *rule; local
9566 struct nft_rule *rule; local
10882 const struct nft_rule *rule; local
11351 struct nft_rule *rule, *nr; local
11400 struct nft_rule *rule, *nr; local
[all...]
/linux-master/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-ethtool.c427 /* Only apply the rule for IPv4 frames */
473 /* Only apply the rule for IPv4 frames with the specified L4 proto */
608 * set key can't be used for the current rule. User needs to
681 struct dpaa2_eth_cls_rule *rule; local
690 rule = &priv->cls_rules[location];
692 /* If a rule is present at the specified location, delete it. */
693 if (rule->in_use) {
694 err = dpaa2_eth_do_cls_rule(net_dev, &rule->fs, false);
698 rule->in_use = 0;
713 rule
[all...]
/linux-master/security/selinux/ss/
H A Dservices.c644 * If a specific type enforcement rule was defined for
1685 * like /dev or /var/run. This bitmap will quickly skip rule searches
1823 /* Look for a type transition/member/change rule. */
1830 /* If no permanent rule, also check for enabled conditional rules */
1842 /* Use the type from the type transition/member/change rule. */
1853 /* Look for a role transition rule. */
3503 struct selinux_audit_rule *rule = vrule; local
3505 if (rule) {
3506 context_destroy(&rule->au_ctxt);
3507 kfree(rule);
3520 struct selinux_audit_rule **rule = (struct selinux_audit_rule **)vrule; local
3612 selinux_audit_rule_known(struct audit_krule *rule) argument
3642 struct selinux_audit_rule *rule = vrule; local
[all...]
/linux-master/security/landlock/
H A Dfs.c193 * The lifetime of the returned rule is tied to @domain.
195 * Returns NULL if no rule is found or if @dentry is negative.
201 const struct landlock_rule *rule; local
214 rule = landlock_find_rule(domain, id);
216 return rule;
686 const struct landlock_rule *rule; local
724 rule = find_rule(domain, walker_path.dentry);
726 rule, access_masked_parent1, layer_masks_parent1,
729 rule, access_masked_parent2, layer_masks_parent2,
732 /* Stops when a rule fro
[all...]
H A Druleset.h98 * struct landlock_id - Unique rule identifier for a ruleset
124 * modified. It always points to an allocated object because each rule
312 bool landlock_unmask_layers(const struct landlock_rule *const rule,
/linux-master/tools/testing/selftests/netfilter/
H A Dnft_fib.sh257 ip -net ${nsrouter} rule add from all table 128
258 ip -net ${nsrouter} rule add from all iif veth0 table 129
263 ip -net ${nsrouter} -4 rule delete table main
/linux-master/sound/usb/
H A Dpcm.c815 struct snd_pcm_hw_rule *rule)
817 struct snd_usb_substream *subs = rule->private;
881 struct snd_pcm_hw_rule *rule)
883 struct snd_usb_substream *subs = rule->private;
920 struct snd_pcm_hw_rule *rule)
922 struct snd_usb_substream *subs = rule->private;
961 struct snd_pcm_hw_rule *rule)
963 struct snd_usb_substream *subs = rule->private;
989 struct snd_pcm_hw_rule *rule)
991 struct snd_usb_substream *subs = rule
814 hw_rule_rate(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
880 hw_rule_channels(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
919 hw_rule_format(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
960 hw_rule_period_time(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
988 hw_rule_period_size_implicit_fb(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
1033 hw_rule_periods_implicit_fb(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
[all...]
/linux-master/sound/soc/tegra/
H A Dtegra20_i2s.c270 struct snd_pcm_hw_rule *rule)
272 struct snd_interval *r = hw_param_interval(params, rule->var);
273 struct snd_soc_dai *dai = rule->private;
269 tegra20_i2s_filter_rates(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
/linux-master/sound/drivers/
H A Daloop.c973 struct snd_pcm_hw_rule *rule)
975 struct loopback_pcm *dpcm = rule->private;
984 return snd_mask_refine(hw_param_mask(params, rule->var), &m);
988 struct snd_pcm_hw_rule *rule)
990 struct loopback_pcm *dpcm = rule->private;
1000 return snd_interval_refine(hw_param_interval(params, rule->var), &t);
1004 struct snd_pcm_hw_rule *rule)
1006 struct loopback_pcm *dpcm = rule->private;
1016 return snd_interval_refine(hw_param_interval(params, rule->var), &t);
1020 struct snd_pcm_hw_rule *rule)
972 rule_format(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
987 rule_rate(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
1003 rule_channels(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
1019 rule_period_bytes(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
[all...]
/linux-master/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_npc.c369 /* get ucast entry rule entry index */
390 struct rvu_npc_mcam_rule *rule; local
407 /* don't enable rule when nixlf not attached or initialized */
413 list_for_each_entry(rule, &mcam->mcam_rules, list) {
414 if (rule->entry == index)
487 /* PF installing VF rule */
618 /* Ucast rule should not be installed if DMAC
789 /* Bcast rule should not be installed if both DMAC
868 /* Mcast rule should not be installed if both DMAC
951 struct rvu_npc_mcam_rule *rule; local
1169 struct rvu_npc_mcam_rule *rule, *tmp; local
1208 struct rvu_npc_mcam_rule *rule, *tmp; local
1244 struct rvu_npc_mcam_rule *rule, *tmp; local
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_acl_tcam.c749 /* If a rule was added or deleted from vchunk which is currently
1750 struct mlxsw_sp_acl_tcam_flower_rule *rule = rule_priv; local
1753 &rule->ventry, rulei);
1759 struct mlxsw_sp_acl_tcam_flower_rule *rule = rule_priv; local
1761 mlxsw_sp_acl_tcam_ventry_del(mlxsw_sp, &rule->ventry);
1776 struct mlxsw_sp_acl_tcam_flower_rule *rule = rule_priv; local
1778 return mlxsw_sp_acl_tcam_ventry_activity_get(mlxsw_sp, &rule->ventry,
1825 * only when the first rule is written. This is not the case for
1885 struct mlxsw_sp_acl_tcam_mr_rule *rule = rule_priv; local
1888 &rule
1894 struct mlxsw_sp_acl_tcam_mr_rule *rule = rule_priv; local
1904 struct mlxsw_sp_acl_tcam_mr_rule *rule = rule_priv; local
[all...]
/linux-master/drivers/net/ethernet/netronome/nfp/flower/
H A Dconntrack.h122 * @rule: Reference to the original TC flow rule
138 struct flow_rule *rule; member in struct:nfp_fl_ct_flow_entry
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A Dmlx5dr.h80 int mlx5dr_rule_destroy(struct mlx5dr_rule *rule);
/linux-master/drivers/infiniband/hw/mlx5/
H A Dfs.c538 * it won't fall into the multicast flow steering table and this rule
648 mlx5_del_flow_rules(iter->rule);
654 mlx5_del_flow_rules(handler->rule);
952 opfc->rule[i] = mlx5_add_flow_rules(prio->flow_table, &spec[i],
954 if (IS_ERR(opfc->rule[i])) {
955 err = PTR_ERR(opfc->rule[i]);
966 mlx5_del_flow_rules(opfc->rule[i]);
979 for (i = 0; i < MAX_OPFC_RULES && opfc->rule[i]; i++) {
980 mlx5_del_flow_rules(opfc->rule[i]);
1142 handler->rule
[all...]
/linux-master/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
H A Dchannel.c663 const struct ieee80211_reg_rule *rule; local
679 rule = freq_reg_info(wiphy,
681 if (IS_ERR(rule))
684 if (!(rule->flags & NL80211_RRF_NO_IR))
/linux-master/drivers/net/ethernet/intel/ice/
H A Dice_fdir.c1122 struct ice_fdir_fltr *rule; local
1124 list_for_each_entry(rule, &hw->fdir_list_head, fltr_node) {
1125 /* rule ID found in the list */
1126 if (fltr_idx == rule->fltr_id)
1127 return rule;
1128 if (fltr_idx < rule->fltr_id)
1141 struct ice_fdir_fltr *rule, *parent = NULL; local
1143 list_for_each_entry(rule, &hw->fdir_list_head, fltr_node) {
1144 /* rule ID found or pass its spot in the list */
1145 if (rule
1252 struct ice_fdir_fltr *rule; local
[all...]

Completed in 827 milliseconds

1234567891011>>