Searched refs:rule (Results 126 - 150 of 325) sorted by relevance

1234567891011>>

/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dfs_tcp.c69 void mlx5e_accel_fs_del_sk(struct mlx5_flow_handle *rule) argument
71 mlx5_del_flow_rules(rule);
156 struct mlx5_flow_handle *rule; local
162 rule = mlx5_add_flow_rules(accel_fs_t->t, NULL, &flow_act, &dest, 1);
163 if (IS_ERR(rule)) {
164 err = PTR_ERR(rule);
165 fs_err(fs, "%s: add default rule failed, accel_fs type=%d, err %d\n",
170 fs_tcp->default_rules[type] = rule;
H A Dipsec.h192 struct mlx5_flow_handle *rule; member in struct:mlx5e_ipsec_drop
197 struct mlx5_flow_handle *rule; member in struct:mlx5e_ipsec_rule
208 struct mlx5_flow_handle *rule; member in struct:mlx5e_ipsec_miss
/linux-master/security/landlock/
H A Druleset.c74 const struct landlock_rule rule = { local
78 BUILD_BUG_ON(rule.num_layers < LANDLOCK_MAX_NUM_LAYERS);
155 static void free_rule(struct landlock_rule *const rule, argument
159 if (!rule)
162 landlock_put_object(rule->key.object);
163 kfree(rule);
182 * insert_rule - Create and insert a rule in a ruleset
185 * @id: The ID to build the new rule with. The underlying kernel object, if
187 * @layers: One or multiple layers to be copied into the new rule.
190 * When user space requests to add a new rule t
623 landlock_unmask_layers(const struct landlock_rule *const rule, const access_mask_t access_request, layer_mask_t (*const layer_masks)[], const size_t masks_array_size) argument
[all...]
/linux-master/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_debugfs.c2796 struct rvu_npc_mcam_rule *rule)
2800 for_each_set_bit(bit, (unsigned long *)&rule->features, 64) {
2804 if (rule->lxmb == 1)
2810 seq_printf(s, "%pM ", rule->packet.dmac);
2811 seq_printf(s, "mask %pM\n", rule->mask.dmac);
2814 seq_printf(s, "%pM ", rule->packet.smac);
2815 seq_printf(s, "mask %pM\n", rule->mask.smac);
2818 seq_printf(s, "0x%x ", ntohs(rule->packet.etype));
2819 seq_printf(s, "mask 0x%x\n", ntohs(rule->mask.etype));
2822 seq_printf(s, "0x%x ", ntohs(rule
2795 rvu_dbg_npc_mcam_show_flows(struct seq_file *s, struct rvu_npc_mcam_rule *rule) argument
2926 rvu_dbg_npc_mcam_show_action(struct seq_file *s, struct rvu_npc_mcam_rule *rule) argument
[all...]
/linux-master/tools/testing/selftests/landlock/
H A Dfs_test.c716 struct rule { struct
735 const struct rule rules[])
744 TH_LOG("No rule list");
748 TH_LOG("Empty rule list");
770 const struct rule rules[] = {
819 const struct rule rules[] = {
842 const struct rule rules[] = {
900 const struct rule rules[] = {
927 const struct rule rules[] = {
968 const struct rule layer
[all...]
/linux-master/drivers/net/ethernet/sfc/
H A Dtc_encap_actions.c432 struct efx_tc_flow_rule *rule; local
442 rule = container_of(acts, struct efx_tc_flow_rule, acts);
443 if (rule->fallback)
444 fallback = rule->fallback;
448 rule->fw_id);
451 "Failed to update (f) rule %08x rc %d\n",
452 rule->fw_id, rc);
454 netif_dbg(efx, drv, efx->net_dev, "Updated (f) rule %08x\n",
455 rule->fw_id);
485 /* Update rule user
585 efx_tc_check_ready(struct efx_nic *efx, struct efx_tc_flow_rule *rule) argument
[all...]
H A Dmae.h122 int efx_mae_insert_lhs_rule(struct efx_nic *efx, struct efx_tc_lhs_rule *rule,
124 int efx_mae_remove_lhs_rule(struct efx_nic *efx, struct efx_tc_lhs_rule *rule);
/linux-master/drivers/net/ethernet/intel/ice/
H A Dice_eswitch_br.c91 ice_eswitch_br_rule_delete(struct ice_hw *hw, struct ice_rule_query_data *rule) argument
95 if (!rule)
98 err = ice_rem_adv_rule_by_id(hw, rule);
99 kfree(rule);
125 struct ice_rule_query_data *rule; local
132 rule = kzalloc(sizeof(*rule), GFP_KERNEL);
133 if (!rule)
165 err = ice_add_adv_rule(hw, list, lkups_cnt, &rule_info, rule);
171 return rule;
186 struct ice_rule_query_data *rule; local
[all...]
/linux-master/sound/soc/sti/
H A Dsti_uniperif.c165 struct snd_pcm_hw_rule *rule)
167 struct uniperif *uni = rule->private;
176 return snd_interval_refine(hw_param_interval(params, rule->var), &t);
180 struct snd_pcm_hw_rule *rule)
182 struct uniperif *uni = rule->private;
183 struct snd_mask *maskp = hw_param_mask(params, rule->var);
164 sti_uniperiph_fix_tdm_chan(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
179 sti_uniperiph_fix_tdm_format(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_fs.c278 if (WARN_ONCE(*rule_p, "VLAN rule already exists type %d", rule_type))
286 fs_err(fs, "add rule failed\n");
372 struct mlx5_flow_handle *rule; local
383 rule = mlx5_add_flow_rules(ft, spec, &flow_act, &dest, 1);
385 return rule;
391 struct mlx5_flow_handle *rule; local
394 rule = mlx5e_add_trap_rule(ft, trap_id, tir_num);
395 if (IS_ERR(rule)) {
396 err = PTR_ERR(rule);
398 fs_err(fs, "add VLAN trap rule faile
416 struct mlx5_flow_handle *rule; local
[all...]
/linux-master/net/wireless/
H A Dreg.c617 /* aligned to 2, then followed by __be16 array of rule pointers */
663 static bool valid_wmm(struct fwdb_wmm_rule *rule) argument
665 struct fwdb_wmm_ac *ac = (struct fwdb_wmm_ac *)rule;
685 struct fwdb_rule *rule = (void *)(data + (rule_ptr << 2)); local
687 if ((u8 *)rule + sizeof(rule->len) > data + size)
691 if (rule->len < offsetofend(struct fwdb_rule, max_bw))
693 if (rule->len >= offsetofend(struct fwdb_rule, wmm_ptr)) {
694 u32 wmm_ptr = be16_to_cpu(rule->wmm_ptr) << 2;
845 const struct fwdb_rule *rule,
843 set_wmm_rule(const struct fwdb_header *db, const struct fwdb_country *country, const struct fwdb_rule *rule, struct ieee80211_reg_rule *rrule) argument
889 struct fwdb_rule *rule = (void *)((u8 *)db + rule_ptr); local
904 reg_query_regdb_wmm(char *alpha2, int freq, struct ieee80211_reg_rule *rule) argument
948 struct fwdb_rule *rule = (void *)((u8 *)db + rule_ptr); local
1161 reg_get_max_bandwidth_from_range(const struct ieee80211_regdomain *rd, const struct ieee80211_reg_rule *rule) argument
1210 reg_get_max_bandwidth(const struct ieee80211_regdomain *rd, const struct ieee80211_reg_rule *rule) argument
1234 is_valid_reg_rule(const struct ieee80211_reg_rule *rule) argument
1461 add_rule(struct ieee80211_reg_rule *rule, struct ieee80211_reg_rule *reg_rules, u32 *n_rules) argument
[all...]
/linux-master/drivers/net/ethernet/netronome/nfp/flower/
H A Daction.c266 nfp_flower_tun_is_gre(struct flow_rule *rule, int start_idx) argument
268 struct flow_action_entry *act = rule->action.entries;
269 int num_act = rule->action.num_entries;
284 struct flow_rule *rule,
293 if (nfp_flower_tun_is_gre(rule, act_idx))
809 nfp_fl_commit_mangle(struct flow_rule *rule, char *nfp_action, argument
816 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_BASIC)) {
819 flow_rule_match_basic(rule, &match);
1042 struct flow_rule *rule,
1111 *tun_type = nfp_fl_get_tun_from_act(app, rule, ac
283 nfp_fl_get_tun_from_act(struct nfp_app *app, struct flow_rule *rule, const struct flow_action_entry *act, int act_idx) argument
1041 nfp_flower_loop_action(struct nfp_app *app, const struct flow_action_entry *act, struct flow_rule *rule, struct nfp_fl_payload *nfp_fl, int *a_len, struct net_device *netdev, enum nfp_flower_tun_type *tun_type, int *tun_out_cnt, int *out_cnt, u32 *csum_updated, struct nfp_flower_pedit_acts *set_act, bool *pkt_host, struct netlink_ext_ack *extack, int act_idx) argument
1272 nfp_flower_compile_action(struct nfp_app *app, struct flow_rule *rule, struct net_device *netdev, struct nfp_fl_payload *nfp_flow, struct netlink_ext_ack *extack) argument
[all...]
/linux-master/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_tc.c462 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); local
463 struct flow_dissector *dissector = rule->match.dissector;
470 flow_rule_match_basic(rule, &match);
480 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); local
481 struct flow_dissector *dissector = rule->match.dissector;
491 flow_rule_match_ipv4_addrs(rule, &match);
515 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); local
516 struct flow_dissector *dissector = rule->match.dissector;
538 flow_rule_match_ports(rule, &match);
591 struct flow_rule *rule local
665 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); local
736 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); local
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dptp.c810 struct mlx5_flow_handle *rule; local
822 rule = mlx5e_fs_tt_redirect_udp_add_rule(fs, MLX5_TT_IPV4_UDP,
824 if (IS_ERR(rule)) {
825 err = PTR_ERR(rule);
828 ptp_fs->udp_v4_rule = rule;
830 rule = mlx5e_fs_tt_redirect_udp_add_rule(fs, MLX5_TT_IPV6_UDP,
832 if (IS_ERR(rule)) {
833 err = PTR_ERR(rule);
836 ptp_fs->udp_v6_rule = rule;
842 rule
[all...]
H A Dtc_priv.h81 struct mlx5_flow_handle *rule[MLX5E_TC_MAX_SPLITS + 1]; member in struct:mlx5e_tc_flow
123 struct mlx5_flow_handle *rule,
H A Dtc_ct.h157 struct flow_rule *rule = flow_cls_offload_flow_rule(f); local
159 if (!flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CT))
/linux-master/drivers/net/ethernet/microchip/vcap/
H A Dvcap_api.h91 u16 sw_count; /* maximum subwords used per rule */
93 u16 sticky_width; /* sticky bits per rule */
127 /* VCAP rule data towards the VCAP cache */
136 /* Selects which part of the rule must be updated */
157 VCAP_ERR_NO_KEYSET_MATCH, /* No keyset matched the rule keys */
158 VCAP_ERR_NO_ACTIONSET_MATCH, /* No actionset matched the rule actions */
159 VCAP_ERR_NO_PORT_KEYSET_MATCH, /* No port keyset matched the rule keys */
177 int last_used_addr; /* address of lowest added rule */
180 struct vcap_cache_data cache; /* encoded rule data */
183 /* Client supplied VCAP rule dat
[all...]
/linux-master/sound/soc/fsl/
H A Dfsl_qmc_audio.c352 struct snd_pcm_hw_rule *rule)
354 struct qmc_dai *qmc_dai = rule->private;
361 struct snd_pcm_hw_rule *rule)
363 struct qmc_dai *qmc_dai = rule->private;
399 struct snd_pcm_hw_rule *rule)
401 struct qmc_dai *qmc_dai = rule->private;
408 struct snd_pcm_hw_rule *rule)
410 struct qmc_dai *qmc_dai = rule->private;
447 dev_err(dai->dev, "Failed to add channels rule (%d)\n", ret);
455 dev_err(dai->dev, "Failed to add format rule (
351 qmc_dai_hw_rule_playback_channels_by_format(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
359 qmc_dai_hw_rule_capture_channels_by_format( struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
397 qmc_dai_hw_rule_playback_format_by_channels( struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
406 qmc_dai_hw_rule_capture_format_by_channels( struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
[all...]
/linux-master/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_tc_matchall.c56 if (!flow_offload_has_one_action(&tmo->rule->action)) {
61 action = &tmo->rule->action.entries[0];
/linux-master/net/netfilter/
H A Dnf_dup_netdev.c84 entry = &flow->rule->action.entries[ctx->num_actions++];
/linux-master/sound/firewire/bebob/
H A Dbebob_pcm.c11 hw_rule_rate(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
13 struct snd_bebob_stream_formation *formations = rule->private;
39 hw_rule_channels(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
41 struct snd_bebob_stream_formation *formations = rule->private;
/linux-master/sound/firewire/fireface/
H A Dff-pcm.c11 struct snd_pcm_hw_rule *rule)
13 const unsigned int *pcm_channels = rule->private;
42 struct snd_pcm_hw_rule *rule)
44 const unsigned int *pcm_channels = 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/sound/firewire/fireworks/
H A Dfireworks_pcm.c64 hw_rule_rate(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
66 unsigned int *pcm_channels = rule->private;
89 hw_rule_channels(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
91 unsigned int *pcm_channels = rule->private;
/linux-master/sound/firewire/motu/
H A Dmotu-pcm.c12 struct snd_pcm_hw_rule *rule)
14 struct snd_motu_packet_format *formats = rule->private;
41 struct snd_pcm_hw_rule *rule)
43 struct snd_motu_packet_format *formats = rule->private;
11 motu_rate_constraint(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
40 motu_channels_constraint(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
/linux-master/sound/soc/codecs/
H A Dlochnagar-sc.c58 struct snd_pcm_hw_rule *rule)
62 .max = 24576000 / hw_param_interval(params, rule->deps[0])->max,
65 return snd_interval_refine(hw_param_interval(params, rule->var),
57 lochnagar_sc_hw_rule_rate(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument

Completed in 282 milliseconds

1234567891011>>