rules 604 drivers/net/ethernet/amazon/ena/ena_ethtool.c u32 *rules) rules 3362 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c u32 *rules __always_unused) rules 3911 drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h union eth_classify_rule_cmd rules[CLASSIFY_RULES_COUNT]; rules 4084 drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h struct eth_filter_rules_cmd rules[FILTER_RULES_COUNT]; rules 4100 drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h union eth_classify_rule_cmd rules[CLASSIFY_RULES_COUNT]; rules 4186 drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h struct eth_multicast_rules_cmd rules[MULTICAST_RULES_COUNT]; rules 890 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c union eth_classify_rule_cmd *rule_entry = &data->rules[rule_idx]; rules 1074 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c union eth_classify_rule_cmd *rule_entry = &data->rules[rule_idx]; rules 1124 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c union eth_classify_rule_cmd *rule_entry = &data->rules[rule_idx]; rules 2458 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c data->rules[rule_idx].client_id = p->cl_id; rules 2459 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c data->rules[rule_idx].func_id = p->func_id; rules 2461 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c data->rules[rule_idx].cmd_general_data = rules 2465 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c &(data->rules[rule_idx++]), rules 2471 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c data->rules[rule_idx].client_id = p->cl_id; rules 2472 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c data->rules[rule_idx].func_id = p->func_id; rules 2474 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c data->rules[rule_idx].cmd_general_data = rules 2478 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c &(data->rules[rule_idx++]), rules 2491 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c data->rules[rule_idx].client_id = bnx2x_fcoe(bp, cl_id); rules 2492 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c data->rules[rule_idx].func_id = p->func_id; rules 2494 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c data->rules[rule_idx].cmd_general_data = rules 2498 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c &(data->rules[rule_idx]), rules 2505 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c data->rules[rule_idx].client_id = bnx2x_fcoe(bp, cl_id); rules 2506 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c data->rules[rule_idx].func_id = p->func_id; rules 2508 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c data->rules[rule_idx].cmd_general_data = rules 2512 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c &(data->rules[rule_idx]), rules 2844 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c data->rules[idx].cmd_general_data |= rx_tx_add_flag; rules 2886 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c data->rules[idx].bin_id = (u8)bin; rules 2887 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c data->rules[idx].func_id = func_id; rules 2888 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c data->rules[idx].engine_id = o->engine_id; rules 12609 drivers/net/ethernet/broadcom/tg3.c u32 *rules __always_unused) rules 540 drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c struct ethtool_rxnfc *info, u32 *rules) rules 1331 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c u32 *rules) rules 582 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c int i, rules = 0; rules 586 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c rules++; rules 588 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c return rules; rules 869 drivers/net/ethernet/intel/ixgbevf/ethtool.c u32 *rules __always_unused) rules 4163 drivers/net/ethernet/marvell/mvneta.c u32 *rules __always_unused) rules 4211 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c struct ethtool_rxnfc *info, u32 *rules) rules 4235 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c rules[loc++] = i; rules 110 drivers/net/ethernet/mellanox/mlx5/core/en/fs.h struct mlx5_flow_handle *rules[MLX5E_NUM_TT]; rules 154 drivers/net/ethernet/mellanox/mlx5/core/en/fs.h struct list_head rules; rules 195 drivers/net/ethernet/mellanox/mlx5/core/en/fs.h struct list_head rules; rules 104 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c err = mlx5_modify_rule_destination(priv->fs.ttc.rules[tt], rules 137 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c err = mlx5_modify_rule_destination(priv->fs.ttc.rules[tt], rules 353 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c INIT_LIST_HEAD(&priv->fs.arfs.rules); rules 675 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c if (!IS_ERR_OR_NULL(ttc->rules[i])) { rules 676 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c mlx5_del_flow_rules(ttc->rules[i]); rules 677 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c ttc->rules[i] = NULL; rules 860 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c struct mlx5_flow_handle **rules; rules 866 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c rules = ttc->rules; rules 874 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c rules[tt] = mlx5e_generate_ttc_rule(priv, ft, &dest, rules 877 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c if (IS_ERR(rules[tt])) rules 884 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c rules = ttc->tunnel_rules; rules 891 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c rules[tt] = mlx5e_generate_ttc_rule(priv, ft, &dest, rules 894 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c if (IS_ERR(rules[tt])) rules 901 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c err = PTR_ERR(rules[tt]); rules 902 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c rules[tt] = NULL; rules 1018 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c struct mlx5_flow_handle **rules; rules 1024 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c rules = ttc->rules; rules 1033 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c rules[tt] = mlx5e_generate_inner_ttc_rule(priv, ft, &dest, rules 1036 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c if (IS_ERR(rules[tt])) rules 1043 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c err = PTR_ERR(rules[tt]); rules 1044 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c rules[tt] = NULL; rules 375 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c struct list_head *head = &priv->fs.ethtool.rules; rules 377 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c list_for_each_entry(iter, &priv->fs.ethtool.rules, list) { rules 469 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c list_for_each_entry(iter, &priv->fs.ethtool.rules, list) { rules 743 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c list_for_each_entry(eth_rule, &priv->fs.ethtool.rules, list) { rules 776 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c list_for_each_entry_safe(iter, temp, &priv->fs.ethtool.rules, list) rules 782 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c INIT_LIST_HEAD(&priv->fs.ethtool.rules); rules 28 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c struct list_head rules; rules 707 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c list_add_tail(&rule->list, &mlxsw_sp->acl->rules); rules 793 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c list_for_each_entry(rule, &acl->rules, list) { rules 887 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c INIT_LIST_HEAD(&acl->rules); rules 919 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c WARN_ON(!list_empty(&acl->rules)); rules 602 drivers/net/ethernet/mscc/ocelot_ace.c if (list_empty(&block->rules)) { rules 603 drivers/net/ethernet/mscc/ocelot_ace.c list_add(&rule->list, &block->rules); rules 607 drivers/net/ethernet/mscc/ocelot_ace.c list_for_each_safe(pos, n, &block->rules) { rules 621 drivers/net/ethernet/mscc/ocelot_ace.c list_for_each_entry(tmp, &block->rules, list) { rules 635 drivers/net/ethernet/mscc/ocelot_ace.c list_for_each_entry(tmp, &block->rules, list) { rules 672 drivers/net/ethernet/mscc/ocelot_ace.c list_for_each_safe(pos, q, &block->rules) { rules 733 drivers/net/ethernet/mscc/ocelot_ace.c INIT_LIST_HEAD(&block->rules); rules 215 drivers/net/ethernet/mscc/ocelot_ace.h struct list_head rules; rules 558 drivers/net/ethernet/pensando/ionic/ionic_ethtool.c struct ethtool_rxnfc *info, u32 *rules) rules 1548 drivers/net/hyperv/netvsc_drv.c u32 *rules) rules 32 drivers/net/netdevsim/fib.c struct nsim_fib_entry rules; rules 52 drivers/net/netdevsim/fib.c entry = &fib_data->ipv4.rules; rules 58 drivers/net/netdevsim/fib.c entry = &fib_data->ipv6.rules; rules 79 drivers/net/netdevsim/fib.c entry = &fib_data->ipv4.rules; rules 85 drivers/net/netdevsim/fib.c entry = &fib_data->ipv6.rules; rules 131 drivers/net/netdevsim/fib.c err = nsim_fib_rule_account(&data->ipv4.rules, add, extack); rules 134 drivers/net/netdevsim/fib.c err = nsim_fib_rule_account(&data->ipv6.rules, add, extack); rules 210 drivers/net/netdevsim/fib.c data->ipv4.rules.num = 0ULL; rules 213 drivers/net/netdevsim/fib.c data->ipv6.rules.num = 0ULL; rules 228 drivers/net/netdevsim/fib.c data->ipv4.rules.max = (u64)-1; rules 231 drivers/net/netdevsim/fib.c data->ipv6.rules.max = (u64)-1; rules 673 drivers/net/vmxnet3/vmxnet3_ethtool.c u32 *rules) rules 3708 drivers/net/wireless/marvell/mwifiex/cfg80211.c ret = mwifiex_fill_coalesce_rule_info(priv, &coalesce->rules[i], rules 241 include/linux/crush/crush.h struct crush_rule **rules; rules 2739 include/net/cfg80211.h struct cfg80211_coalesce_rules *rules; rules 910 include/net/netfilter/nf_tables.h struct list_head rules; rules 243 include/sound/pcm.h struct snd_pcm_hw_rule *rules; rules 18 kernel/audit_tree.c struct list_head rules; rules 102 kernel/audit_tree.c INIT_LIST_HEAD(&tree->rules); rules 549 kernel/audit_tree.c list_for_each_entry_safe(rule, next, &tree->rules, rlist) { rules 656 kernel/audit_tree.c if (list_empty(&tree->rules) && !tree->goner) { rules 814 kernel/audit_tree.c list_add(&rule->rlist, &tree->rules); rules 820 kernel/audit_tree.c list_add(&rule->rlist, &tree->rules); rules 867 kernel/audit_tree.c list_del_init(&tree->rules); rules 43 kernel/audit_watch.c struct list_head rules; /* anchor for krule->rlist */ rules 109 kernel/audit_watch.c WARN_ON(!list_empty(&watch->rules)); rules 168 kernel/audit_watch.c INIT_LIST_HEAD(&watch->rules); rules 276 kernel/audit_watch.c list_for_each_entry_safe(r, nextr, &owatch->rules, rlist) { rules 297 kernel/audit_watch.c list_add(&nentry->rule.rlist, &nwatch->rules); rules 331 kernel/audit_watch.c list_for_each_entry_safe(r, nextr, &w->rules, rlist) { rules 396 kernel/audit_watch.c list_add(&krule->rlist, &watch->rules); rules 455 kernel/audit_watch.c if (list_empty(&watch->rules)) { rules 123 net/ceph/crush/crush.c if (map->rules) { rules 126 net/ceph/crush/crush.c crush_destroy_rule(map->rules[b]); rules 127 net/ceph/crush/crush.c kfree(map->rules); rules 47 net/ceph/crush/mapper.c if (map->rules[i] && rules 48 net/ceph/crush/mapper.c map->rules[i]->mask.ruleset == ruleset && rules 49 net/ceph/crush/mapper.c map->rules[i]->mask.type == type && rules 50 net/ceph/crush/mapper.c map->rules[i]->mask.min_size <= size && rules 51 net/ceph/crush/mapper.c map->rules[i]->mask.max_size >= size) rules 936 net/ceph/crush/mapper.c rule = map->rules[ruleno]; rules 379 net/ceph/osdmap.c c->rules = kcalloc(c->max_rules, sizeof(*c->rules), GFP_NOFS); rules 380 net/ceph/osdmap.c if (c->rules == NULL) rules 475 net/ceph/osdmap.c dout("rule vec is %p\n", c->rules); rules 484 net/ceph/osdmap.c c->rules[i] = NULL; rules 499 net/ceph/osdmap.c c->rules[i] = r; rules 1163 net/core/fib_rules.c static void attach_rules(struct list_head *rules, struct net_device *dev) rules 1167 net/core/fib_rules.c list_for_each_entry(rule, rules, list) { rules 1177 net/core/fib_rules.c static void detach_rules(struct list_head *rules, struct net_device *dev) rules 1181 net/core/fib_rules.c list_for_each_entry(rule, rules, list) { rules 335 net/netfilter/nf_tables_api.c list_for_each_entry(rule, &ctx->chain->rules, list) { rules 1660 net/netfilter/nf_tables_api.c struct nft_rule **rules; rules 1719 net/netfilter/nf_tables_api.c INIT_LIST_HEAD(&chain->rules); rules 1728 net/netfilter/nf_tables_api.c rules = nf_tables_chain_alloc_rules(chain, 0); rules 1729 net/netfilter/nf_tables_api.c if (!rules) { rules 1734 net/netfilter/nf_tables_api.c *rules = NULL; rules 1735 net/netfilter/nf_tables_api.c rcu_assign_pointer(chain->rules_gen_0, rules); rules 1736 net/netfilter/nf_tables_api.c rcu_assign_pointer(chain->rules_gen_1, rules); rules 2012 net/netfilter/nf_tables_api.c list_for_each_entry(rule, &chain->rules, list) { rules 2308 net/netfilter/nf_tables_api.c list_for_each_entry_rcu(rule, &chain->rules, list) { rules 2447 net/netfilter/nf_tables_api.c list_for_each_entry_rcu(rule, &chain->rules, list) { rules 2669 net/netfilter/nf_tables_api.c list_for_each_entry(rule, &chain->rules, list) { rules 2880 net/netfilter/nf_tables_api.c list_add_tail_rcu(&rule->list, &chain->rules); rules 2885 net/netfilter/nf_tables_api.c list_add_rcu(&rule->list, &chain->rules); rules 6618 net/netfilter/nf_tables_api.c rule = list_entry(&chain->rules, struct nft_rule, list); rules 6621 net/netfilter/nf_tables_api.c list_for_each_entry_continue(rule, &chain->rules, list) { rules 6630 net/netfilter/nf_tables_api.c list_for_each_entry_continue(rule, &chain->rules, list) { rules 6661 net/netfilter/nf_tables_api.c static void nf_tables_commit_chain_free_rules_old(struct nft_rule **rules) rules 6663 net/netfilter/nf_tables_api.c struct nft_rule **r = rules; rules 6671 net/netfilter/nf_tables_api.c old->start = rules; rules 7262 net/netfilter/nf_tables_api.c list_for_each_entry(rule, &chain->rules, list) { rules 7675 net/netfilter/nf_tables_api.c list_for_each_entry_safe(rule, nr, &ctx->chain->rules, list) { rules 7710 net/netfilter/nf_tables_api.c list_for_each_entry_safe(rule, nr, &chain->rules, list) { rules 120 net/netfilter/nf_tables_core.c struct nft_rule *const *rules; rules 153 net/netfilter/nf_tables_core.c struct nft_rule *const *rules; rules 167 net/netfilter/nf_tables_core.c rules = rcu_dereference(chain->rules_gen_1); rules 169 net/netfilter/nf_tables_core.c rules = rcu_dereference(chain->rules_gen_0); rules 172 net/netfilter/nf_tables_core.c rule = *rules; rules 174 net/netfilter/nf_tables_core.c for (; *rules ; rules++) { rules 175 net/netfilter/nf_tables_core.c rule = *rules; rules 214 net/netfilter/nf_tables_core.c jumpstack[stackptr].rules = rules + 1; rules 235 net/netfilter/nf_tables_core.c rules = jumpstack[stackptr].rules; rules 453 net/netfilter/nf_tables_offload.c list_for_each_entry(rule, &chain->rules, list) { rules 11779 net/wireless/nl80211.c rule = &rdev->coalesce->rules[i]; rules 11855 net/wireless/nl80211.c rule = &coalesce->rules[i]; rules 11860 net/wireless/nl80211.c kfree(coalesce->rules); rules 11981 net/wireless/nl80211.c new_coalesce.rules = kcalloc(n_rules, sizeof(new_coalesce.rules[0]), rules 11983 net/wireless/nl80211.c if (!new_coalesce.rules) rules 11992 net/wireless/nl80211.c &new_coalesce.rules[i]); rules 12014 net/wireless/nl80211.c tmp_rule = &new_coalesce.rules[i]; rules 12019 net/wireless/nl80211.c kfree(new_coalesce.rules); rules 170 samples/bpf/cookie_uid_helper_example.c char rules[100]; rules 178 samples/bpf/cookie_uid_helper_example.c sprintf(rules, "iptables -A OUTPUT -m bpf --object-pinned %s -j ACCEPT", rules 180 samples/bpf/cookie_uid_helper_example.c ret = system(rules); rules 204 security/apparmor/include/file.h static inline void aa_free_file_rules(struct aa_file_rules *rules) rules 206 security/apparmor/include/file.h aa_put_dfa(rules->dfa); rules 207 security/apparmor/include/file.h aa_free_domain_entries(&rules->trans); rules 606 security/integrity/ima/ima_policy.c const char * const *rules; rules 615 security/integrity/ima/ima_policy.c for (rules = arch_rules; *rules != NULL; rules++) rules 624 security/integrity/ima/ima_policy.c for (rules = arch_rules, i = 0; *rules != NULL; rules++) { rules 628 security/integrity/ima/ima_policy.c result = strlcpy(rule, *rules, sizeof(rule)); rules 36 security/safesetid/lsm.c hash_for_each_possible(policy->rules, rule, next, __kuid_val(src)) { rules 43 security/safesetid/lsm.h DECLARE_HASHTABLE(rules, SETID_HASH_BITS); rules 68 security/safesetid/securityfs.c hash_for_each_safe(pol->rules, bucket, tmp, rule, next) rules 81 security/safesetid/securityfs.c hash_add(pol->rules, &rule->next, __kuid_val(rule->src_uid)); rules 90 security/safesetid/securityfs.c hash_for_each(pol->rules, bucket, rule, next) { rules 121 security/safesetid/securityfs.c hash_init(pol->rules); rules 992 sound/core/pcm.c kfree(runtime->hw_constraints.rules); rules 1122 sound/core/pcm_lib.c new = krealloc(constrs->rules, new_rules * sizeof(*c), rules 1128 sound/core/pcm_lib.c constrs->rules = new; rules 1131 sound/core/pcm_lib.c c = &constrs->rules[constrs->rules_num]; rules 358 sound/core/pcm_native.c r = &constrs->rules[k]; rules 160 tools/perf/util/strfilter.c struct strfilter *strfilter__new(const char *rules, const char **err) rules 166 tools/perf/util/strfilter.c filter->root = strfilter_node__new(rules, &ep); rules 179 tools/perf/util/strfilter.c const char *rules, const char **err) rules 184 tools/perf/util/strfilter.c if (!filter || !rules) rules 187 tools/perf/util/strfilter.c right = strfilter_node__new(rules, &ep); rules 207 tools/perf/util/strfilter.c int strfilter__or(struct strfilter *filter, const char *rules, const char **err) rules 209 tools/perf/util/strfilter.c return strfilter__append(filter, true, rules, err); rules 212 tools/perf/util/strfilter.c int strfilter__and(struct strfilter *filter, const char *rules, rules 215 tools/perf/util/strfilter.c return strfilter__append(filter, false, rules, err); rules 30 tools/perf/util/strfilter.h struct strfilter *strfilter__new(const char *rules, const char **err); rules 43 tools/perf/util/strfilter.h const char *rules, const char **err); rules 56 tools/perf/util/strfilter.h const char *rules, const char **err);