| /Linux-v6.6/security/landlock/ |
| D | ruleset.c | 76 struct landlock_rule *new_rule; in create_rule() local 88 new_rule = kzalloc(struct_size(new_rule, layers, new_num_layers), in create_rule() 90 if (!new_rule) in create_rule() 92 RB_CLEAR_NODE(&new_rule->node); in create_rule() 94 new_rule->object = object; in create_rule() 95 new_rule->num_layers = new_num_layers; in create_rule() 97 memcpy(new_rule->layers, layers, in create_rule() 98 flex_array_size(new_rule, layers, num_layers)); in create_rule() 101 new_rule->layers[new_rule->num_layers - 1] = *new_layer; in create_rule() 102 return new_rule; in create_rule() [all …]
|
| /Linux-v6.6/drivers/net/wireless/ath/ath12k/ |
| D | reg.c | 347 struct ieee80211_reg_rule *new_rule) in ath12k_reg_intersect_rules() argument 359 new_rule->freq_range.start_freq_khz = max_t(u32, start_freq1, in ath12k_reg_intersect_rules() 361 new_rule->freq_range.end_freq_khz = min_t(u32, end_freq1, end_freq2); in ath12k_reg_intersect_rules() 363 freq_diff = new_rule->freq_range.end_freq_khz - in ath12k_reg_intersect_rules() 364 new_rule->freq_range.start_freq_khz; in ath12k_reg_intersect_rules() 367 new_rule->freq_range.max_bandwidth_khz = min_t(u32, max_bw, freq_diff); in ath12k_reg_intersect_rules() 369 new_rule->power_rule.max_antenna_gain = in ath12k_reg_intersect_rules() 373 new_rule->power_rule.max_eirp = min_t(u32, rule1->power_rule.max_eirp, in ath12k_reg_intersect_rules() 377 new_rule->flags = rule1->flags | rule2->flags; in ath12k_reg_intersect_rules() 380 new_rule->dfs_cac_ms = max_t(u32, rule1->dfs_cac_ms, in ath12k_reg_intersect_rules() [all …]
|
| /Linux-v6.6/drivers/net/wireless/ath/ath11k/ |
| D | reg.c | 385 struct ieee80211_reg_rule *new_rule) in ath11k_reg_intersect_rules() argument 397 new_rule->freq_range.start_freq_khz = max_t(u32, start_freq1, in ath11k_reg_intersect_rules() 399 new_rule->freq_range.end_freq_khz = min_t(u32, end_freq1, end_freq2); in ath11k_reg_intersect_rules() 401 freq_diff = new_rule->freq_range.end_freq_khz - in ath11k_reg_intersect_rules() 402 new_rule->freq_range.start_freq_khz; in ath11k_reg_intersect_rules() 405 new_rule->freq_range.max_bandwidth_khz = min_t(u32, max_bw, freq_diff); in ath11k_reg_intersect_rules() 407 new_rule->power_rule.max_antenna_gain = in ath11k_reg_intersect_rules() 411 new_rule->power_rule.max_eirp = min_t(u32, rule1->power_rule.max_eirp, in ath11k_reg_intersect_rules() 415 new_rule->flags = rule1->flags | rule2->flags; in ath11k_reg_intersect_rules() 418 new_rule->dfs_cac_ms = max_t(u32, rule1->dfs_cac_ms, in ath11k_reg_intersect_rules() [all …]
|
| /Linux-v6.6/drivers/net/dsa/sja1105/ |
| D | sja1105_flower.c | 39 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-v6.6/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| D | macsec_fs.c | 2135 struct mlx5_flow_handle *new_rule; in mlx5_macsec_fs_add_roce_rule_rx() local 2154 new_rule = mlx5_add_flow_rules(rx_fs->roce.ft_ip_check, spec, &flow_act, in mlx5_macsec_fs_add_roce_rule_rx() 2156 if (IS_ERR(new_rule)) { in mlx5_macsec_fs_add_roce_rule_rx() 2157 err = PTR_ERR(new_rule); in mlx5_macsec_fs_add_roce_rule_rx() 2160 rx_rule->ip = new_rule; in mlx5_macsec_fs_add_roce_rule_rx() 2170 new_rule = mlx5_add_flow_rules(rx_fs->roce.ft_macsec_op_check, spec, &flow_act, in mlx5_macsec_fs_add_roce_rule_rx() 2172 if (IS_ERR(new_rule)) { in mlx5_macsec_fs_add_roce_rule_rx() 2173 err = PTR_ERR(new_rule); in mlx5_macsec_fs_add_roce_rule_rx() 2176 rx_rule->op = new_rule; in mlx5_macsec_fs_add_roce_rule_rx() 2204 struct mlx5_flow_handle *new_rule; in mlx5_macsec_fs_add_roce_rule_tx() local [all …]
|
| /Linux-v6.6/drivers/net/wireless/marvell/mwifiex/ |
| D | sta_cmdresp.c | 1047 bool new_rule; in mwifiex_create_custom_regdomain() local 1071 new_rule = false; in mwifiex_create_custom_regdomain() 1093 new_rule = true; in mwifiex_create_custom_regdomain() 1104 if (!new_rule) in mwifiex_create_custom_regdomain()
|
| /Linux-v6.6/drivers/net/wireless/intel/iwlwifi/ |
| D | iwl-nvm-parse.c | 1632 bool new_rule; in iwl_parse_nvm_mcc_info() local 1677 new_rule = false; in iwl_parse_nvm_mcc_info() 1693 new_rule = true; in iwl_parse_nvm_mcc_info() 1698 if (new_rule) in iwl_parse_nvm_mcc_info()
|
| /Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/ |
| D | fs_core.c | 1476 bool *new_rule) in create_flow_handle() argument 1498 *new_rule = true; in create_flow_handle() 1546 bool new_rule = false; in add_rule_fte() local 1549 &new_rule); in add_rule_fte() 1550 if (IS_ERR(handle) || !new_rule) in add_rule_fte()
|
| /Linux-v6.6/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
| D | hclge_main.c | 5114 struct hclge_fd_rule *new_rule, in hclge_update_fd_rule_node() argument 5129 new_rule->rule_node.next = old_rule->rule_node.next; in hclge_update_fd_rule_node() 5130 new_rule->rule_node.pprev = old_rule->rule_node.pprev; in hclge_update_fd_rule_node() 5131 memcpy(old_rule, new_rule, sizeof(*old_rule)); in hclge_update_fd_rule_node() 5132 kfree(new_rule); in hclge_update_fd_rule_node() 5323 struct hclge_fd_rule *new_rule) in hclge_update_fd_list() argument 5332 hclge_fd_inc_user_def_refcnt(hdev, new_rule); in hclge_update_fd_list() 5335 hclge_update_fd_rule_node(hdev, fd_rule, new_rule, state); in hclge_update_fd_list() 5349 hclge_fd_inc_user_def_refcnt(hdev, new_rule); in hclge_update_fd_list() 5352 hclge_fd_insert_rule_node(hlist, new_rule, parent); in hclge_update_fd_list() [all …]
|
| /Linux-v6.6/net/wireless/ |
| D | nl80211.c | 13887 struct cfg80211_coalesce_rules *new_rule) in nl80211_parse_coalesce_rule() argument 13901 new_rule->delay = in nl80211_parse_coalesce_rule() 13903 if (new_rule->delay > coalesce->max_delay) in nl80211_parse_coalesce_rule() 13907 new_rule->condition = in nl80211_parse_coalesce_rule() 13919 new_rule->patterns = kcalloc(n_patterns, sizeof(new_rule->patterns[0]), in nl80211_parse_coalesce_rule() 13921 if (!new_rule->patterns) in nl80211_parse_coalesce_rule() 13924 new_rule->n_patterns = n_patterns; in nl80211_parse_coalesce_rule() 13955 new_rule->patterns[i].pkt_offset = pkt_offset; in nl80211_parse_coalesce_rule() 13961 new_rule->patterns[i].mask = mask_pat; in nl80211_parse_coalesce_rule() 13966 new_rule->patterns[i].pattern = mask_pat; in nl80211_parse_coalesce_rule() [all …]
|