Home
last modified time | relevance | path

Searched refs:new_rule (Results 1 – 8 of 8) sorted by relevance

/linux/security/landlock/
A Druleset.c75 struct landlock_rule *new_rule; in create_rule() local
87 new_rule = kzalloc(struct_size(new_rule, layers, new_num_layers), in create_rule()
89 if (!new_rule) in create_rule()
91 RB_CLEAR_NODE(&new_rule->node); in create_rule()
93 new_rule->object = object; in create_rule()
100 new_rule->layers[new_rule->num_layers - 1] = *new_layer; in create_rule()
101 return new_rule; in create_rule()
198 if (IS_ERR(new_rule)) in insert_rule()
199 return PTR_ERR(new_rule); in insert_rule()
210 if (IS_ERR(new_rule)) in insert_rule()
[all …]
/linux/drivers/net/wireless/ath/ath11k/
A Dreg.c346 struct ieee80211_reg_rule *new_rule) in ath11k_reg_intersect_rules() argument
358 new_rule->freq_range.start_freq_khz = max_t(u32, start_freq1, in ath11k_reg_intersect_rules()
360 new_rule->freq_range.end_freq_khz = min_t(u32, end_freq1, end_freq2); in ath11k_reg_intersect_rules()
362 freq_diff = new_rule->freq_range.end_freq_khz - in ath11k_reg_intersect_rules()
363 new_rule->freq_range.start_freq_khz; in ath11k_reg_intersect_rules()
368 new_rule->power_rule.max_antenna_gain = in ath11k_reg_intersect_rules()
376 new_rule->flags = rule1->flags | rule2->flags; in ath11k_reg_intersect_rules()
379 new_rule->dfs_cac_ms = max_t(u32, rule1->dfs_cac_ms, in ath11k_reg_intersect_rules()
388 struct ieee80211_reg_rule *old_rule, *curr_rule, *new_rule; in ath11k_regd_intersect() local
424 new_rule = new_regd->reg_rules; in ath11k_regd_intersect()
[all …]
/linux/drivers/net/dsa/sja1105/
A Dsja1105_flower.c39 bool new_rule = false; in sja1105_setup_bcast_policer() local
52 new_rule = true; in sja1105_setup_bcast_policer()
92 if (rc == 0 && new_rule) { in sja1105_setup_bcast_policer()
95 } else if (new_rule) { in sja1105_setup_bcast_policer()
110 bool new_rule = false; in sja1105_setup_tc_policer() local
124 new_rule = true; in sja1105_setup_tc_policer()
164 if (rc == 0 && new_rule) { in sja1105_setup_tc_policer()
167 } else if (new_rule) { in sja1105_setup_tc_policer()
/linux/drivers/net/wireless/marvell/mwifiex/
A Dsta_cmdresp.c1035 bool new_rule; in mwifiex_create_custom_regdomain() local
1059 new_rule = false; in mwifiex_create_custom_regdomain()
1081 new_rule = true; in mwifiex_create_custom_regdomain()
1092 if (!new_rule) in mwifiex_create_custom_regdomain()
/linux/drivers/net/wireless/intel/iwlwifi/
A Diwl-nvm-parse.c1310 bool new_rule; in iwl_parse_nvm_mcc_info() local
1351 new_rule = false; in iwl_parse_nvm_mcc_info()
1367 new_rule = true; in iwl_parse_nvm_mcc_info()
1372 if (new_rule) in iwl_parse_nvm_mcc_info()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Dfs_core.c1336 bool *new_rule) in create_flow_handle() argument
1358 *new_rule = true; in create_flow_handle()
1403 bool new_rule = false; in add_rule_fte() local
1406 &new_rule); in add_rule_fte()
1407 if (IS_ERR(handle) || !new_rule) in add_rule_fte()
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
A Dhclge_main.c5480 struct hclge_fd_rule *new_rule, in hclge_update_fd_rule_node() argument
5495 new_rule->rule_node.next = old_rule->rule_node.next; in hclge_update_fd_rule_node()
5496 new_rule->rule_node.pprev = old_rule->rule_node.pprev; in hclge_update_fd_rule_node()
5497 memcpy(old_rule, new_rule, sizeof(*old_rule)); in hclge_update_fd_rule_node()
5498 kfree(new_rule); in hclge_update_fd_rule_node()
5689 struct hclge_fd_rule *new_rule) in hclge_update_fd_list() argument
5698 hclge_fd_inc_user_def_refcnt(hdev, new_rule); in hclge_update_fd_list()
5701 hclge_update_fd_rule_node(hdev, fd_rule, new_rule, state); in hclge_update_fd_list()
5715 hclge_fd_inc_user_def_refcnt(hdev, new_rule); in hclge_update_fd_list()
5718 hclge_fd_insert_rule_node(hlist, new_rule, parent); in hclge_update_fd_list()
[all …]
/linux/net/wireless/
A Dnl80211.c12927 struct cfg80211_coalesce_rules *new_rule) in nl80211_parse_coalesce_rule() argument
12941 new_rule->delay = in nl80211_parse_coalesce_rule()
12943 if (new_rule->delay > coalesce->max_delay) in nl80211_parse_coalesce_rule()
12947 new_rule->condition = in nl80211_parse_coalesce_rule()
12959 new_rule->patterns = kcalloc(n_patterns, sizeof(new_rule->patterns[0]), in nl80211_parse_coalesce_rule()
12961 if (!new_rule->patterns) in nl80211_parse_coalesce_rule()
12964 new_rule->n_patterns = n_patterns; in nl80211_parse_coalesce_rule()
12995 new_rule->patterns[i].pkt_offset = pkt_offset; in nl80211_parse_coalesce_rule()
13001 new_rule->patterns[i].mask = mask_pat; in nl80211_parse_coalesce_rule()
13006 new_rule->patterns[i].pattern = mask_pat; in nl80211_parse_coalesce_rule()
[all …]

Completed in 88 milliseconds