Home
last modified time | relevance | path

Searched refs:rule (Results 1 – 182 of 182) sorted by relevance

/linux-4.1.27/net/core/
Dfib_rules.c49 struct fib_rule *rule; in fib_default_rule_pref() local
54 rule = list_entry(pos->next, struct fib_rule, list); in fib_default_rule_pref()
55 if (rule->pref) in fib_default_rule_pref()
56 return rule->pref - 1; in fib_default_rule_pref()
64 static void notify_rule_change(int event, struct fib_rule *rule,
152 struct fib_rule *rule, *tmp; in fib_rules_cleanup_ops() local
154 list_for_each_entry_safe(rule, tmp, &ops->rules_list, list) { in fib_rules_cleanup_ops()
155 list_del_rcu(&rule->list); in fib_rules_cleanup_ops()
157 ops->delete(rule); in fib_rules_cleanup_ops()
158 fib_rule_put(rule); in fib_rules_cleanup_ops()
[all …]
/linux-4.1.27/drivers/pnp/
Dmanager.c22 unsigned char rule, in pnp_find_resource() argument
31 res->flags |= rule & IORESOURCE_BITS; in pnp_find_resource()
37 static int pnp_assign_port(struct pnp_dev *dev, struct pnp_port *rule, int idx) in pnp_assign_port() argument
41 res = pnp_find_resource(dev, rule->flags, IORESOURCE_IO, idx); in pnp_assign_port()
50 res->flags = rule->flags | IORESOURCE_AUTO; in pnp_assign_port()
54 if (!rule->size) { in pnp_assign_port()
60 res->start = rule->min; in pnp_assign_port()
61 res->end = res->start + rule->size - 1; in pnp_assign_port()
64 res->start += rule->align; in pnp_assign_port()
65 res->end = res->start + rule->size - 1; in pnp_assign_port()
[all …]
/linux-4.1.27/kernel/
Dauditfilter.c95 struct audit_krule *erule = &e->rule; in audit_free_rule()
129 entry->rule.fields = fields; in audit_init_entry()
221 struct audit_field *arch = entry->rule.arch_f; in audit_match_signal()
227 entry->rule.mask) && in audit_match_signal()
229 entry->rule.mask)); in audit_match_signal()
235 entry->rule.mask)); in audit_match_signal()
238 entry->rule.mask)); in audit_match_signal()
246 static inline struct audit_entry *audit_to_entry_common(struct audit_rule_data *rule) in audit_to_entry_common() argument
253 listnr = rule->flags & ~AUDIT_FILTER_PREPEND; in audit_to_entry_common()
259 if (rule->action == AUDIT_ALWAYS) in audit_to_entry_common()
[all …]
Daudit_tree.c454 static void audit_tree_log_remove_rule(struct audit_krule *rule) in audit_tree_log_remove_rule() argument
464 audit_log_untrustedstring(ab, rule->tree->pathname); in audit_tree_log_remove_rule()
465 audit_log_key(ab, rule->filterkey); in audit_tree_log_remove_rule()
466 audit_log_format(ab, " list=%d res=1", rule->listnr); in audit_tree_log_remove_rule()
472 struct audit_krule *rule, *next; in kill_rules() local
475 list_for_each_entry_safe(rule, next, &tree->rules, rlist) { in kill_rules()
476 entry = container_of(rule, struct audit_entry, rule); in kill_rules()
478 list_del_init(&rule->rlist); in kill_rules()
479 if (rule->tree) { in kill_rules()
481 audit_tree_log_remove_rule(rule); in kill_rules()
[all …]
Daudit_watch.c292 oentry = container_of(r, struct audit_entry, rule); in audit_update_watch()
293 list_del(&oentry->rule.rlist); in audit_update_watch()
296 nentry = audit_dupe_rule(&oentry->rule); in audit_update_watch()
298 list_del(&oentry->rule.list); in audit_update_watch()
308 audit_put_watch(nentry->rule.watch); in audit_update_watch()
310 nentry->rule.watch = nwatch; in audit_update_watch()
311 list_add(&nentry->rule.rlist, &nwatch->rules); in audit_update_watch()
313 list_replace(&oentry->rule.list, in audit_update_watch()
314 &nentry->rule.list); in audit_update_watch()
344 e = container_of(r, struct audit_entry, rule); in audit_remove_parent_watches()
Daudit.h59 struct audit_krule rule; member
296 #define audit_remove_tree_rule(rule) BUG() argument
297 #define audit_add_tree_rule(rule) -EINVAL argument
298 #define audit_make_tree(rule, str, op) -EINVAL argument
302 #define audit_tree_path(rule) "" /* never called */ argument
Dauditsc.c439 struct audit_krule *rule, in audit_filter_rules() argument
451 for (i = 0; i < rule->field_count; i++) { in audit_filter_rules()
452 struct audit_field *f = &rule->fields[i]; in audit_filter_rules()
595 result = audit_watch_compare(rule->watch, name->ino, name->dev); in audit_filter_rules()
599 result = match_tree_refs(ctx, rule->tree); in audit_filter_rules()
688 if (rule->prio <= ctx->prio) in audit_filter_rules()
690 if (rule->filterkey) { in audit_filter_rules()
692 ctx->filterkey = kstrdup(rule->filterkey, GFP_ATOMIC); in audit_filter_rules()
694 ctx->prio = rule->prio; in audit_filter_rules()
696 switch (rule->action) { in audit_filter_rules()
[all …]
/linux-4.1.27/net/ipv4/
Dfib_rules.c60 if (arg.rule) in __fib_lookup()
61 res->tclassid = ((struct fib4_rule *)arg.rule)->tclassid; in __fib_lookup()
73 static int fib4_rule_action(struct fib_rule *rule, struct flowi *flp, in fib4_rule_action() argument
79 switch (rule->action) { in fib4_rule_action()
96 tbl = fib_get_table(rule->fr_net, rule->table); in fib4_rule_action()
106 static bool fib4_rule_suppress(struct fib_rule *rule, struct fib_lookup_arg *arg) in fib4_rule_suppress() argument
117 if (result->prefixlen <= rule->suppress_prefixlen) in fib4_rule_suppress()
123 if (rule->suppress_ifgroup != -1 && dev && dev->group == rule->suppress_ifgroup) in fib4_rule_suppress()
134 static int fib4_rule_match(struct fib_rule *rule, struct flowi *fl, int flags) in fib4_rule_match() argument
136 struct fib4_rule *r = (struct fib4_rule *) rule; in fib4_rule_match()
[all …]
Dipmr.c173 static int ipmr_rule_action(struct fib_rule *rule, struct flowi *flp, in ipmr_rule_action() argument
179 switch (rule->action) { in ipmr_rule_action()
191 mrt = ipmr_get_table(rule->fr_net, rule->table); in ipmr_rule_action()
198 static int ipmr_rule_match(struct fib_rule *rule, struct flowi *fl, int flags) in ipmr_rule_match() argument
207 static int ipmr_rule_configure(struct fib_rule *rule, struct sk_buff *skb, in ipmr_rule_configure() argument
213 static int ipmr_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, in ipmr_rule_compare() argument
219 static int ipmr_rule_fill(struct fib_rule *rule, struct sk_buff *skb, in ipmr_rule_fill() argument
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/
Dsec_config.c170 static void sptlrpc_rule_init(struct sptlrpc_rule *rule) in sptlrpc_rule_init() argument
172 rule->sr_netid = LNET_NIDNET(LNET_NID_ANY); in sptlrpc_rule_init()
173 rule->sr_from = LUSTRE_SP_ANY; in sptlrpc_rule_init()
174 rule->sr_to = LUSTRE_SP_ANY; in sptlrpc_rule_init()
175 rule->sr_padding = 0; in sptlrpc_rule_init()
177 get_default_flavor(&rule->sr_flvr); in sptlrpc_rule_init()
183 int sptlrpc_parse_rule(char *param, struct sptlrpc_rule *rule) in sptlrpc_parse_rule() argument
188 sptlrpc_rule_init(rule); in sptlrpc_parse_rule()
203 rule->sr_netid = libcfs_str2net(param); in sptlrpc_parse_rule()
204 if (rule->sr_netid == LNET_NIDNET(LNET_NID_ANY)) { in sptlrpc_parse_rule()
[all …]
/linux-4.1.27/net/ipv6/
Dfib6_rules.c50 static int fib6_rule_action(struct fib_rule *rule, struct flowi *flp, in fib6_rule_action() argument
56 struct net *net = rule->fr_net; in fib6_rule_action()
60 switch (rule->action) { in fib6_rule_action()
78 table = fib6_get_table(net, rule->table); in fib6_rule_action()
86 struct fib6_rule *r = (struct fib6_rule *)rule; in fib6_rule_action()
92 if ((rule->flags & FIB_RULE_FIND_SADDR) && in fib6_rule_action()
123 static bool fib6_rule_suppress(struct fib_rule *rule, struct fib_lookup_arg *arg) in fib6_rule_suppress() argument
134 if (rt->rt6i_dst.plen <= rule->suppress_prefixlen) in fib6_rule_suppress()
140 if (rule->suppress_ifgroup != -1 && dev && dev->group == rule->suppress_ifgroup) in fib6_rule_suppress()
150 static int fib6_rule_match(struct fib_rule *rule, struct flowi *fl, int flags) in fib6_rule_match() argument
[all …]
Dip6mr.c157 static int ip6mr_rule_action(struct fib_rule *rule, struct flowi *flp, in ip6mr_rule_action() argument
163 switch (rule->action) { in ip6mr_rule_action()
175 mrt = ip6mr_get_table(rule->fr_net, rule->table); in ip6mr_rule_action()
182 static int ip6mr_rule_match(struct fib_rule *rule, struct flowi *flp, int flags) in ip6mr_rule_match() argument
191 static int ip6mr_rule_configure(struct fib_rule *rule, struct sk_buff *skb, in ip6mr_rule_configure() argument
197 static int ip6mr_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, in ip6mr_rule_compare() argument
203 static int ip6mr_rule_fill(struct fib_rule *rule, struct sk_buff *skb, in ip6mr_rule_fill() argument
Daddrconf.c1204 int rule; member
1243 if (i <= score->rule) { in ipv6_get_saddr_eval()
1365 score->rule = i; in ipv6_get_saddr_eval()
1387 hiscore->rule = -1; in ipv6_dev_get_saddr()
1443 score->rule = -1; in ipv6_dev_get_saddr()
/linux-4.1.27/security/integrity/ima/
Dima_policy.c60 void *rule; /* LSM file metadata specific */ member
190 if (!entry->lsm[i].rule) in ima_lsm_update_rules()
195 &entry->lsm[i].rule); in ima_lsm_update_rules()
196 BUG_ON(!entry->lsm[i].rule); in ima_lsm_update_rules()
211 static bool ima_match_rules(struct ima_rule_entry *rule, in ima_match_rules() argument
218 if ((rule->flags & IMA_FUNC) && in ima_match_rules()
219 (rule->func != func && func != POST_SETATTR)) in ima_match_rules()
221 if ((rule->flags & IMA_MASK) && in ima_match_rules()
222 (rule->mask != mask && func != POST_SETATTR)) in ima_match_rules()
224 if ((rule->flags & IMA_INMASK) && in ima_match_rules()
[all …]
/linux-4.1.27/net/decnet/
Ddn_rules.c62 res->r = arg.rule; in dn_fib_lookup()
67 static int dn_fib_rule_action(struct fib_rule *rule, struct flowi *flp, in dn_fib_rule_action() argument
74 switch(rule->action) { in dn_fib_rule_action()
92 tbl = dn_fib_get_table(rule->table, 0); in dn_fib_rule_action()
107 static int dn_fib_rule_match(struct fib_rule *rule, struct flowi *fl, int flags) in dn_fib_rule_match() argument
109 struct dn_fib_rule *r = (struct dn_fib_rule *)rule; in dn_fib_rule_match()
121 static int dn_fib_rule_configure(struct fib_rule *rule, struct sk_buff *skb, in dn_fib_rule_configure() argument
126 struct dn_fib_rule *r = (struct dn_fib_rule *)rule; in dn_fib_rule_configure()
131 if (rule->table == RT_TABLE_UNSPEC) { in dn_fib_rule_configure()
132 if (rule->action == FR_ACT_TO_TBL) { in dn_fib_rule_configure()
[all …]
/linux-4.1.27/Documentation/RCU/
DlistRCU.txt37 if (audit_filter_rules(tsk, &e->rule, NULL, &state)) {
61 if (audit_filter_rules(tsk, &e->rule, NULL, &state)) {
78 static inline int audit_del_rule(struct audit_rule *rule,
85 if (!audit_compare_rule(rule, &e->rule)) {
92 return -EFAULT; /* No matching rule */
99 if (entry->rule.flags & AUDIT_PREPEND) {
100 entry->rule.flags &= ~AUDIT_PREPEND;
111 static inline int audit_del_rule(struct audit_rule *rule,
119 if (!audit_compare_rule(rule, &e->rule)) {
125 return -EFAULT; /* No matching rule */
[all …]
Dchecklist.txt52 As a rough rule of thumb, any dereference of an RCU-protected
175 any sort of irq context. The same rule applies for
216 One exception to this rule: rcu_read_lock() and rcu_read_unlock()
Drcubarrier.txt169 module is an exception to this rule, and therefore needs to set this
Drcu_dereference.txt201 There is one exception to this rule: Value-speculation
/linux-4.1.27/arch/tile/gxio/
Dmpipe.c267 gxio_mpipe_rules_rule_t *rule = in gxio_mpipe_rules_begin() local
284 if (head + pad + sizeof(*rule) >= sizeof(list->rules)) in gxio_mpipe_rules_begin()
292 rule->size += pad; in gxio_mpipe_rules_begin()
297 rule = (gxio_mpipe_rules_rule_t *) (list->rules + list->head); in gxio_mpipe_rules_begin()
300 rule->headroom = 2; in gxio_mpipe_rules_begin()
301 rule->tailroom = 0; in gxio_mpipe_rules_begin()
302 rule->capacity = 16384; in gxio_mpipe_rules_begin()
305 rule->bucket_mask = num_buckets - 1; in gxio_mpipe_rules_begin()
306 rule->bucket_first = bucket; in gxio_mpipe_rules_begin()
314 rule->stacks.stacks[i] = stack; in gxio_mpipe_rules_begin()
[all …]
/linux-4.1.27/drivers/isdn/divert/
Disdn_divert.c39 divert_rule rule; /* used rule */ member
281 ds->rule = *newrule; /* set rule */ in insertrule()
374 return (&ds->rule); in getruleptr()
397 if (((dv->rule.callopt == 1) && (ic->command == ISDN_STAT_ICALLW)) || in isdn_divert_icall()
398 ((dv->rule.callopt == 2) && (ic->command == ISDN_STAT_ICALL))) in isdn_divert_icall()
400 if (!(dv->rule.drvid & (1L << ic->driver))) in isdn_divert_icall()
402 if ((dv->rule.si1) && (dv->rule.si1 != ic->parm.setup.si1)) in isdn_divert_icall()
404 if ((dv->rule.si2) && (dv->rule.si2 != ic->parm.setup.si2)) in isdn_divert_icall()
407 p = dv->rule.my_msn; in isdn_divert_icall()
423 if ((strcmp(dv->rule.caller, "0")) || in isdn_divert_icall()
[all …]
Ddivert_procfs.c216 dioctl.getsetrule.rule = *rulep; /* copy data */ in isdn_divert_ioctl_unlocked()
223 *rulep = dioctl.getsetrule.rule; /* copy data */ in isdn_divert_ioctl_unlocked()
229 return (insertrule(dioctl.getsetrule.ruleidx, &dioctl.getsetrule.rule)); in isdn_divert_ioctl_unlocked()
Disdn_divert.h76 divert_rule rule; /* rule parms */ member
/linux-4.1.27/net/netfilter/
Dnf_tables_core.c109 const struct nft_rule *rule; member
119 const struct nft_rule *rule; in nft_do_chain() local
134 rule = list_entry(&chain->rules, struct nft_rule, list); in nft_do_chain()
137 list_for_each_entry_continue_rcu(rule, &chain->rules, list) { in nft_do_chain()
140 if (unlikely(rule->genmask & (1 << gencursor))) in nft_do_chain()
145 nft_rule_for_each_expr(expr, last, rule) { in nft_do_chain()
179 jumpstack[stackptr].rule = rule; in nft_do_chain()
201 rule = jumpstack[stackptr].rule; in nft_do_chain()
Dnf_tables_api.c199 nft_rule_is_active(struct net *net, const struct nft_rule *rule) in nft_rule_is_active() argument
201 return (rule->genmask & nft_genmask_cur(net)) == 0; in nft_rule_is_active()
205 nft_rule_is_active_next(struct net *net, const struct nft_rule *rule) in nft_rule_is_active_next() argument
207 return (rule->genmask & nft_genmask_next(net)) == 0; in nft_rule_is_active_next()
211 nft_rule_activate_next(struct net *net, struct nft_rule *rule) in nft_rule_activate_next() argument
214 rule->genmask = nft_genmask_cur(net); in nft_rule_activate_next()
218 nft_rule_deactivate_next(struct net *net, struct nft_rule *rule) in nft_rule_deactivate_next() argument
220 rule->genmask = nft_genmask_next(net); in nft_rule_deactivate_next()
223 static inline void nft_rule_clear(struct net *net, struct nft_rule *rule) in nft_rule_clear() argument
225 rule->genmask &= ~nft_genmask_next(net); in nft_rule_clear()
[all …]
DKconfig435 rule-set. It also comes with the generic set infrastructure that
486 include packet and byte counters in a rule.
498 ratelimit rule matchings.
732 resets the timer associated with label specified when the rule is
887 will log every rule which match the packets as those traverse
922 Workaround: activate this option and add a rule to your firewall
1128 with a single rule.
1200 limit matching allows you to control the rate at which a rule can be
1229 a series of source or destination ports: normally a rule can only
/linux-4.1.27/include/net/
Dfib_rules.h37 struct fib_rule *rule; member
93 static inline void fib_rule_get(struct fib_rule *rule) in fib_rule_get() argument
95 atomic_inc(&rule->refcnt); in fib_rule_get()
98 static inline void fib_rule_put(struct fib_rule *rule) in fib_rule_put() argument
100 if (atomic_dec_and_test(&rule->refcnt)) in fib_rule_put()
101 kfree_rcu(rule, rcu); in fib_rule_put()
/linux-4.1.27/drivers/net/ethernet/sfc/
Dethtool.c790 struct ethtool_rx_flow_spec *rule) in efx_ethtool_get_class_rule() argument
792 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec; in efx_ethtool_get_class_rule()
793 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in efx_ethtool_get_class_rule()
794 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in efx_ethtool_get_class_rule()
795 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in efx_ethtool_get_class_rule()
800 rule->location, &spec); in efx_ethtool_get_class_rule()
805 rule->ring_cookie = RX_CLS_FLOW_DISC; in efx_ethtool_get_class_rule()
807 rule->ring_cookie = spec.dmaq_id; in efx_ethtool_get_class_rule()
818 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in efx_ethtool_get_class_rule()
840 rule->flow_type = ETHER_FLOW; in efx_ethtool_get_class_rule()
[all …]
/linux-4.1.27/security/selinux/include/
Daudit.h32 int selinux_audit_rule_init(u32 field, u32 op, char *rulestr, void **rule);
41 void selinux_audit_rule_free(void *rule);
54 int selinux_audit_rule_match(u32 sid, u32 field, u32 op, void *rule,
/linux-4.1.27/security/smack/
Dsmackfs.c346 struct smack_parsed_rule *rule, int import, in smk_fill_rule() argument
353 rule->smk_subject = smk_import_entry(subject, len); in smk_fill_rule()
354 if (rule->smk_subject == NULL) in smk_fill_rule()
357 rule->smk_object = smk_import_entry(object, len); in smk_fill_rule()
358 if (rule->smk_object == NULL) in smk_fill_rule()
368 rule->smk_subject = skp; in smk_fill_rule()
377 rule->smk_object = skp; in smk_fill_rule()
380 rule->smk_access1 = smk_perm_from_str(access1); in smk_fill_rule()
382 rule->smk_access2 = smk_perm_from_str(access2); in smk_fill_rule()
384 rule->smk_access2 = ~rule->smk_access1; in smk_fill_rule()
[all …]
DKconfig21 When access is granted by a rule with the "b" mode a
28 access rule set once the behavior is well understood.
Dsmack_lsm.c4096 char **rule = (char **)vrule; in smack_audit_rule_init() local
4097 *rule = NULL; in smack_audit_rule_init()
4107 *rule = skp->smk_known; in smack_audit_rule_init()
4150 char *rule = vrule; in smack_audit_rule_match() local
4152 if (unlikely(!rule)) { in smack_audit_rule_match()
4168 return (rule == skp->smk_known); in smack_audit_rule_match()
4170 return (rule != skp->smk_known); in smack_audit_rule_match()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Dmcg.c900 struct mlx4_net_trans_rule *rule) in mlx4_err_rule() argument
910 rule->port, rule->priority, rule->qpn); in mlx4_err_rule()
912 list_for_each_entry(cur, &rule->list, list) { in mlx4_err_rule()
977 struct mlx4_net_trans_rule *rule, u64 *reg_id) in mlx4_flow_attach() argument
988 trans_rule_ctrl_to_hw(rule, mailbox->buf); in mlx4_flow_attach()
992 list_for_each_entry(cur, &rule->list, list) { in mlx4_flow_attach()
1005 rule); in mlx4_flow_attach()
1012 rule); in mlx4_flow_attach()
1017 rule); in mlx4_flow_attach()
1020 mlx4_err_rule(dev, "Fail to register network rule.\n", rule); in mlx4_flow_attach()
[all …]
Den_ethtool.c1485 struct mlx4_net_trans_rule rule = { in mlx4_en_flow_replace() local
1492 rule.port = priv->port; in mlx4_en_flow_replace()
1493 rule.priority = MLX4_DOMAIN_ETHTOOL | cmd->fs.location; in mlx4_en_flow_replace()
1494 INIT_LIST_HEAD(&rule.list); in mlx4_en_flow_replace()
1514 rule.qpn = qpn; in mlx4_en_flow_replace()
1515 err = mlx4_en_ethtool_to_net_trans_rule(dev, cmd, &rule.list); in mlx4_en_flow_replace()
1532 err = mlx4_flow_attach(priv->mdev->dev, &rule, &reg_id); in mlx4_en_flow_replace()
1544 list_for_each_entry_safe(spec, tmp_spec, &rule.list, list) { in mlx4_en_flow_replace()
1555 struct ethtool_flow_id *rule; in mlx4_en_flow_detach() local
1561 rule = &priv->ethtool_rules[cmd->fs.location]; in mlx4_en_flow_detach()
[all …]
Den_netdev.c168 struct mlx4_net_trans_rule rule = { in mlx4_en_filter_work() local
169 .list = LIST_HEAD_INIT(rule.list), in mlx4_en_filter_work()
185 list_add_tail(&spec_eth.list, &rule.list); in mlx4_en_filter_work()
186 list_add_tail(&spec_ip.list, &rule.list); in mlx4_en_filter_work()
187 list_add_tail(&spec_tcp_udp.list, &rule.list); in mlx4_en_filter_work()
189 rule.qpn = priv->rss_map.qps[filter->rxq_index].qpn; in mlx4_en_filter_work()
201 rc = mlx4_flow_attach(priv->mdev->dev, &rule, &filter->reg_id); in mlx4_en_filter_work()
516 struct mlx4_net_trans_rule rule = { in mlx4_en_uc_steer_add() local
524 rule.port = priv->port; in mlx4_en_uc_steer_add()
525 rule.qpn = *qpn; in mlx4_en_uc_steer_add()
[all …]
/linux-4.1.27/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c1132 static inline u32 vlan_tci_vid(struct ethtool_rx_flow_spec *rule) in vlan_tci_vid() argument
1134 return be16_to_cpu(rule->h_ext.vlan_tci) & VLAN_VID_MASK; in vlan_tci_vid()
1137 static inline u32 vlan_tci_vidm(struct ethtool_rx_flow_spec *rule) in vlan_tci_vidm() argument
1139 return be16_to_cpu(rule->m_ext.vlan_tci) & VLAN_VID_MASK; in vlan_tci_vidm()
1142 static inline u32 vlan_tci_cfi(struct ethtool_rx_flow_spec *rule) in vlan_tci_cfi() argument
1144 return be16_to_cpu(rule->h_ext.vlan_tci) & VLAN_CFI_MASK; in vlan_tci_cfi()
1147 static inline u32 vlan_tci_cfim(struct ethtool_rx_flow_spec *rule) in vlan_tci_cfim() argument
1149 return be16_to_cpu(rule->m_ext.vlan_tci) & VLAN_CFI_MASK; in vlan_tci_cfim()
1152 static inline u32 vlan_tci_prio(struct ethtool_rx_flow_spec *rule) in vlan_tci_prio() argument
1154 return (be16_to_cpu(rule->h_ext.vlan_tci) & VLAN_PRIO_MASK) >> in vlan_tci_prio()
[all …]
/linux-4.1.27/include/net/netfilter/
Dnf_tables.h688 static inline struct nft_expr *nft_expr_first(const struct nft_rule *rule) in nft_expr_first() argument
690 return (struct nft_expr *)&rule->data[0]; in nft_expr_first()
698 static inline struct nft_expr *nft_expr_last(const struct nft_rule *rule) in nft_expr_last() argument
700 return (struct nft_expr *)&rule->data[rule->dlen]; in nft_expr_last()
703 static inline struct nft_userdata *nft_userdata(const struct nft_rule *rule) in nft_userdata() argument
705 return (void *)&rule->data[rule->dlen]; in nft_userdata()
713 #define nft_rule_for_each_expr(expr, last, rule) \ argument
714 for ((expr) = nft_expr_first(rule), (last) = nft_expr_last(rule); \
981 struct nft_rule *rule; member
985 (((struct nft_trans_rule *)trans->data)->rule)
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c1848 struct i40e_fdir_filter *rule; in i40e_get_ethtool_fdir_all() local
1855 hlist_for_each_entry_safe(rule, node2, in i40e_get_ethtool_fdir_all()
1860 rule_locs[cnt] = rule->fd_id; in i40e_get_ethtool_fdir_all()
1884 struct i40e_fdir_filter *rule = NULL; in i40e_get_ethtool_fdir_entry() local
1887 hlist_for_each_entry_safe(rule, node2, in i40e_get_ethtool_fdir_entry()
1889 if (fsp->location <= rule->fd_id) in i40e_get_ethtool_fdir_entry()
1893 if (!rule || fsp->location != rule->fd_id) in i40e_get_ethtool_fdir_entry()
1896 fsp->flow_type = rule->flow_type; in i40e_get_ethtool_fdir_entry()
1906 fsp->h_u.tcp_ip4_spec.psrc = rule->dst_port; in i40e_get_ethtool_fdir_entry()
1907 fsp->h_u.tcp_ip4_spec.pdst = rule->src_port; in i40e_get_ethtool_fdir_entry()
[all …]
/linux-4.1.27/Documentation/dvb/
Dudev.txt31 1. You need to create a proper udev rule that will create the device nodes
33 directory for rule files. The main udev configuration file /etc/udev/udev.conf
36 Create a new rule file in that directory called "dvb.rule" and add the following line:
/linux-4.1.27/drivers/net/wireless/iwlwifi/
Diwl-nvm-parse.c730 struct ieee80211_reg_rule *rule; in iwl_parse_nvm_mcc_info() local
781 rule = &regd->reg_rules[valid_rules - 1]; in iwl_parse_nvm_mcc_info()
784 rule->freq_range.start_freq_khz = in iwl_parse_nvm_mcc_info()
787 rule->freq_range.end_freq_khz = MHZ_TO_KHZ(center_freq + 10); in iwl_parse_nvm_mcc_info()
790 rule->power_rule.max_antenna_gain = DBI_TO_MBI(6); in iwl_parse_nvm_mcc_info()
791 rule->power_rule.max_eirp = in iwl_parse_nvm_mcc_info()
794 rule->flags = iwl_nvm_get_regdom_bw_flags(nvm_chan, ch_idx, in iwl_parse_nvm_mcc_info()
798 rule->flags |= NL80211_RRF_AUTO_BW; in iwl_parse_nvm_mcc_info()
799 rule->freq_range.max_bandwidth_khz = 0; in iwl_parse_nvm_mcc_info()
/linux-4.1.27/security/selinux/ss/
Dservices.c2845 struct selinux_audit_rule *rule = vrule; in selinux_audit_rule_free() local
2847 if (rule) { in selinux_audit_rule_free()
2848 context_destroy(&rule->au_ctxt); in selinux_audit_rule_free()
2849 kfree(rule); in selinux_audit_rule_free()
2859 struct selinux_audit_rule **rule = (struct selinux_audit_rule **)vrule; in selinux_audit_rule_init() local
2862 *rule = NULL; in selinux_audit_rule_init()
2944 *rule = tmprule; in selinux_audit_rule_init()
2950 int selinux_audit_rule_known(struct audit_krule *rule) in selinux_audit_rule_known() argument
2954 for (i = 0; i < rule->field_count; i++) { in selinux_audit_rule_known()
2955 struct audit_field *f = &rule->fields[i]; in selinux_audit_rule_known()
[all …]
/linux-4.1.27/drivers/s390/crypto/
Dzcrypt_msgtype6.h134 char rule[8]; in rng_type6CPRB_msgX() member
162 memcpy(msg->rule, "RANDOM ", 8); in rng_type6CPRB_msgX()
/linux-4.1.27/Documentation/isdn/
DREADME.diversion57 compared to the mechanism of ipfwadm or ipchains. If a given rule matches
58 the checking process is finished and the rule matching will be applied
61 number and subaddress, callers number and subaddress and whether the rule
64 Actions that may be invoked by a rule are ignore, proceed, reject,
66 All incoming calls matching a rule except the ignore rule a reported and
/linux-4.1.27/sound/core/
Dpcm_lib.c1278 struct snd_pcm_hw_rule *rule) in snd_pcm_hw_rule_list() argument
1280 struct snd_pcm_hw_constraint_list *list = rule->private; in snd_pcm_hw_rule_list()
1281 …return snd_interval_list(hw_param_interval(params, rule->var), list->count, list->list, list->mask… in snd_pcm_hw_rule_list()
1309 struct snd_pcm_hw_rule *rule) in snd_pcm_hw_rule_ranges() argument
1311 struct snd_pcm_hw_constraint_ranges *r = rule->private; in snd_pcm_hw_rule_ranges()
1312 return snd_interval_ranges(hw_param_interval(params, rule->var), in snd_pcm_hw_rule_ranges()
1340 struct snd_pcm_hw_rule *rule) in snd_pcm_hw_rule_ratnums() argument
1342 struct snd_pcm_hw_constraint_ratnums *r = rule->private; in snd_pcm_hw_rule_ratnums()
1345 err = snd_interval_ratnum(hw_param_interval(params, rule->var), in snd_pcm_hw_rule_ratnums()
1347 if (err >= 0 && den && rule->var == SNDRV_PCM_HW_PARAM_RATE) { in snd_pcm_hw_rule_ratnums()
[all …]
Dpcm_native.c1904 struct snd_pcm_hw_rule *rule) in snd_pcm_hw_rule_mul() argument
1907 snd_interval_mul(hw_param_interval_c(params, rule->deps[0]), in snd_pcm_hw_rule_mul()
1908 hw_param_interval_c(params, rule->deps[1]), &t); in snd_pcm_hw_rule_mul()
1909 return snd_interval_refine(hw_param_interval(params, rule->var), &t); in snd_pcm_hw_rule_mul()
1913 struct snd_pcm_hw_rule *rule) in snd_pcm_hw_rule_div() argument
1916 snd_interval_div(hw_param_interval_c(params, rule->deps[0]), in snd_pcm_hw_rule_div()
1917 hw_param_interval_c(params, rule->deps[1]), &t); in snd_pcm_hw_rule_div()
1918 return snd_interval_refine(hw_param_interval(params, rule->var), &t); in snd_pcm_hw_rule_div()
1922 struct snd_pcm_hw_rule *rule) in snd_pcm_hw_rule_muldivk() argument
1925 snd_interval_muldivk(hw_param_interval_c(params, rule->deps[0]), in snd_pcm_hw_rule_muldivk()
[all …]
/linux-4.1.27/drivers/net/wireless/mwifiex/
Dsta_cmd.c1492 struct coalesce_receive_filt_rule *rule; in mwifiex_cmd_coalesce_cfg() local
1499 rule = coalesce_cfg->rule; in mwifiex_cmd_coalesce_cfg()
1502 rule->header.type = cpu_to_le16(TLV_TYPE_COALESCE_RULE); in mwifiex_cmd_coalesce_cfg()
1503 rule->max_coalescing_delay = in mwifiex_cmd_coalesce_cfg()
1504 cpu_to_le16(cfg->rule[cnt].max_coalescing_delay); in mwifiex_cmd_coalesce_cfg()
1505 rule->pkt_type = cfg->rule[cnt].pkt_type; in mwifiex_cmd_coalesce_cfg()
1506 rule->num_of_fields = cfg->rule[cnt].num_of_fields; in mwifiex_cmd_coalesce_cfg()
1510 param = rule->params; in mwifiex_cmd_coalesce_cfg()
1511 for (idx = 0; idx < cfg->rule[cnt].num_of_fields; idx++) { in mwifiex_cmd_coalesce_cfg()
1512 param->operation = cfg->rule[cnt].params[idx].operation; in mwifiex_cmd_coalesce_cfg()
[all …]
Dioctl.h448 struct mwifiex_coalesce_rule rule[MWIFIEX_COALESCE_MAX_RULES]; member
Dfw.h1908 struct coalesce_receive_filt_rule rule[0]; member
Dcfg80211.c3106 &coalesce_cfg.rule[i]); in mwifiex_cfg80211_set_coalesce()
/linux-4.1.27/net/ceph/crush/
Dcrush.c140 void crush_destroy_rule(struct crush_rule *rule) in crush_destroy_rule() argument
142 kfree(rule); in crush_destroy_rule()
Dmapper.c757 struct crush_rule *rule; in crush_do_rule() local
782 rule = map->rules[ruleno]; in crush_do_rule()
787 for (step = 0; step < rule->len; step++) { in crush_do_rule()
789 struct crush_rule_step *curstep = &rule->steps[step]; in crush_do_rule()
/linux-4.1.27/scripts/coccinelle/iterators/
Dlist_entry_update.cocci3 /// The first rule finds such a reassignment and the second rule checks
/linux-4.1.27/fs/ceph/
Dlocks.c68 req->r_args.filelock_change.rule = lock_type; in ceph_lock_message()
115 if (req->r_args.filelock_change.rule == CEPH_LOCK_FCNTL) in ceph_lock_wait_for_completion()
117 else if (req->r_args.filelock_change.rule == CEPH_LOCK_FLOCK) in ceph_lock_wait_for_completion()
140 intr_req->r_args.filelock_change.rule = lock_type; in ceph_lock_wait_for_completion()
/linux-4.1.27/sound/firewire/fireworks/
Dfireworks_pcm.c65 hw_rule_rate(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) in hw_rule_rate() argument
67 unsigned int *pcm_channels = rule->private; in hw_rule_rate()
90 hw_rule_channels(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) in hw_rule_channels() argument
92 unsigned int *pcm_channels = rule->private; in hw_rule_channels()
/linux-4.1.27/sound/firewire/bebob/
Dbebob_pcm.c12 hw_rule_rate(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) in hw_rule_rate() argument
14 struct snd_bebob_stream_formation *formations = rule->private; in hw_rule_rate()
40 hw_rule_channels(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) in hw_rule_channels() argument
42 struct snd_bebob_stream_formation *formations = rule->private; in hw_rule_channels()
/linux-4.1.27/net/wireless/
Dreg.c599 const struct ieee80211_reg_rule *rule) in reg_get_max_bandwidth_from_range() argument
601 const struct ieee80211_freq_range *freq_range = &rule->freq_range; in reg_get_max_bandwidth_from_range()
607 if (rule == &rd->reg_rules[idx]) in reg_get_max_bandwidth_from_range()
629 freq_range = &rule->freq_range; in reg_get_max_bandwidth_from_range()
648 const struct ieee80211_reg_rule *rule) in reg_get_max_bandwidth() argument
650 unsigned int bw = reg_get_max_bandwidth_from_range(rd, rule); in reg_get_max_bandwidth()
652 if (rule->flags & NL80211_RRF_NO_160MHZ) in reg_get_max_bandwidth()
654 if (rule->flags & NL80211_RRF_NO_80MHZ) in reg_get_max_bandwidth()
661 if (rule->flags & NL80211_RRF_NO_HT40MINUS && in reg_get_max_bandwidth()
662 rule->flags & NL80211_RRF_NO_HT40PLUS) in reg_get_max_bandwidth()
[all …]
Dreg.h58 const struct ieee80211_reg_rule *rule);
Dnl80211.c1111 struct nl80211_coalesce_rule_support rule; in nl80211_send_coalesce() local
1116 rule.max_rules = rdev->wiphy.coalesce->n_rules; in nl80211_send_coalesce()
1117 rule.max_delay = rdev->wiphy.coalesce->max_delay; in nl80211_send_coalesce()
1118 rule.pat.max_patterns = rdev->wiphy.coalesce->n_patterns; in nl80211_send_coalesce()
1119 rule.pat.min_pattern_len = rdev->wiphy.coalesce->pattern_min_len; in nl80211_send_coalesce()
1120 rule.pat.max_pattern_len = rdev->wiphy.coalesce->pattern_max_len; in nl80211_send_coalesce()
1121 rule.pat.max_pkt_offset = rdev->wiphy.coalesce->max_pkt_offset; in nl80211_send_coalesce()
1123 if (nla_put(msg, NL80211_ATTR_COALESCE_RULE, sizeof(rule), &rule)) in nl80211_send_coalesce()
9328 struct cfg80211_coalesce_rules *rule; in nl80211_send_coalesce_rules() local
9342 rule = &rdev->coalesce->rules[i]; in nl80211_send_coalesce_rules()
[all …]
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ethtool.c2333 struct ixgbe_fdir_filter *rule = NULL; in ixgbe_get_ethtool_fdir_entry() local
2338 hlist_for_each_entry_safe(rule, node2, in ixgbe_get_ethtool_fdir_entry()
2340 if (fsp->location <= rule->sw_idx) in ixgbe_get_ethtool_fdir_entry()
2344 if (!rule || fsp->location != rule->sw_idx) in ixgbe_get_ethtool_fdir_entry()
2350 switch (rule->filter.formatted.flow_type) { in ixgbe_get_ethtool_fdir_entry()
2370 fsp->h_u.tcp_ip4_spec.psrc = rule->filter.formatted.src_port; in ixgbe_get_ethtool_fdir_entry()
2372 fsp->h_u.tcp_ip4_spec.pdst = rule->filter.formatted.dst_port; in ixgbe_get_ethtool_fdir_entry()
2374 fsp->h_u.tcp_ip4_spec.ip4src = rule->filter.formatted.src_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2376 fsp->h_u.tcp_ip4_spec.ip4dst = rule->filter.formatted.dst_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2378 fsp->h_ext.vlan_tci = rule->filter.formatted.vlan_id; in ixgbe_get_ethtool_fdir_entry()
[all …]
/linux-4.1.27/sound/firewire/dice/
Ddice-pcm.c13 struct snd_pcm_hw_rule *rule) in dice_rate_constraint() argument
15 struct snd_pcm_substream *substream = rule->private; in dice_rate_constraint()
48 struct snd_pcm_hw_rule *rule) in dice_channels_constraint() argument
50 struct snd_pcm_substream *substream = rule->private; in dice_channels_constraint()
/linux-4.1.27/sound/firewire/oxfw/
Doxfw-pcm.c11 struct snd_pcm_hw_rule *rule) in hw_rule_rate() argument
13 u8 **formats = rule->private; in hw_rule_rate()
42 struct snd_pcm_hw_rule *rule) in hw_rule_channels() argument
44 u8 **formats = rule->private; in hw_rule_channels()
/linux-4.1.27/sound/drivers/
Daloop.c621 struct snd_pcm_hw_rule *rule) in rule_format() argument
624 struct snd_pcm_hardware *hw = rule->private; in rule_format()
625 struct snd_mask *maskp = hw_param_mask(params, rule->var); in rule_format()
636 struct snd_pcm_hw_rule *rule) in rule_rate() argument
638 struct snd_pcm_hardware *hw = rule->private; in rule_rate()
645 return snd_interval_refine(hw_param_interval(params, rule->var), &t); in rule_rate()
649 struct snd_pcm_hw_rule *rule) in rule_channels() argument
651 struct snd_pcm_hardware *hw = rule->private; in rule_channels()
658 return snd_interval_refine(hw_param_interval(params, rule->var), &t); in rule_channels()
/linux-4.1.27/Documentation/infiniband/
Duser_verbs.txt59 udev, a rule like
69 appropriate MODE or GROUP to the udev rule.
Duser_mad.txt134 udev, a rule like
/linux-4.1.27/sound/ppc/
Dpmac.c554 struct snd_pcm_hw_rule *rule)
556 struct snd_pmac *chip = rule->private;
557 struct pmac_stream *rec = snd_pmac_get_stream(chip, rule->deps[0]);
568 return snd_interval_list(hw_param_interval(params, rule->var),
573 struct snd_pcm_hw_rule *rule)
575 struct snd_pmac *chip = rule->private;
576 struct pmac_stream *rec = snd_pmac_get_stream(chip, rule->deps[0]);
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmsmac/
Dchannel.c666 const struct ieee80211_reg_rule *rule; in brcms_reg_apply_beaconing_flags() local
682 rule = freq_reg_info(wiphy, in brcms_reg_apply_beaconing_flags()
684 if (IS_ERR(rule)) in brcms_reg_apply_beaconing_flags()
687 if (!(rule->flags & NL80211_RRF_NO_IR)) in brcms_reg_apply_beaconing_flags()
/linux-4.1.27/Documentation/
Dkref.txt105 Note that the "before" in rule 1 is very important. You should never
139 The last rule (rule 3) is the nastiest one to handle. Say, for
142 and kref_get() it. That violates rule 3 because you are not already
Dmd-cluster.txt162 (Steps 4,5 could be a udev rule)
DCodingStyle340 Maybe there are other cases too, but the rule should basically be to NEVER
759 A reasonable rule of thumb is to not put inline at functions that have more
760 than 3 lines of code in them. An exception to this rule are the cases where
803 this rule. Generally they indicate failure by returning some out-of-range
Dxillybus.txt346 PCIe packets, the following rule applies: If a buffer is smaller than 4kB,
358 the IDT. The driver relies on a rule that the pipes are sorted with decreasing
Dclk.txt251 To better enforce this policy, always follow this simple rule: any
Dunaligned-memory-access.txt30 The rule mentioned above forms what we refer to as natural alignment:
Ddynamic-debug-howto.txt111 A another way is to use wildcard. The match rule support '*' (matches
DManagementStyle149 (2) learn how to apologize when you forgot rule (1)
Datomic_ops.txt544 The rule to follow is simple:
DDMA-API-HOWTO.txt129 This rule also means that you may use neither kernel image addresses
DSubmittingPatches459 rule (c), you should ask the submitter to rediff, but this is a totally
Dmemory-barriers.txt1905 the more strongly ordered systems may rule out some of the above orders.
/linux-4.1.27/scripts/kconfig/
Dzconf.lex.c_shipped152 /* Action number for EOF rule of a given start state. */
918 /* Copy whatever the last rule matched to the standard output. */
977 /* Code executed at the beginning of each rule, after zconftext and zconfleng
984 /* Code executed at the end of each rule. */
1058 /* rule 1 can match eol */
1060 /* rule 2 can match eol */
1106 /* rule 8 can match eol */
1152 /* rule 17 can match eol */
1178 /* rule 21 can match eol */
1193 /* rule 23 can match eol */
[all …]
Dzconf.tab.c_shipped474 /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
532 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */
587 /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
604 /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
696 positive, shift that token. If negative, reduce the rule which
1022 YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
1461 /* The number of symbols on the RHS of the reduced rule.
1643 /* yyn is the number of a rule to reduce with. */
2082 that goes to, based on the state we popped back to and the rule
2181 /* Do not reclaim the symbols of the rule which action triggered
[all …]
/linux-4.1.27/Documentation/security/
DSmack.txt83 the Smack rule (more below) that permitted the write access
113 specified Smack label. Write a fixed format access rule to
120 specified Smack label. Write a long format access rule to
127 change-rule
134 "rwxat-". If a rule for a given subject and object exists it will be
136 those in the fourth string. If there is no such rule it will be
241 object with objectlabel. If there is no rule no access is allowed.
381 rule set is permitted.
396 The format of an access rule is:
409 t: indicates that the rule requests transmutation.
[all …]
Dcredentials.txt138 subject label, the object label and the action and look for a rule
/linux-4.1.27/sound/usb/
Dpcm.c882 struct snd_pcm_hw_rule *rule) in hw_rule_rate() argument
884 struct snd_usb_substream *subs = rule->private; in hw_rule_rate()
934 struct snd_pcm_hw_rule *rule) in hw_rule_channels() argument
936 struct snd_usb_substream *subs = rule->private; in hw_rule_channels()
985 struct snd_pcm_hw_rule *rule) in hw_rule_format() argument
987 struct snd_usb_substream *subs = rule->private; in hw_rule_format()
1016 struct snd_pcm_hw_rule *rule) in hw_rule_period_time() argument
1018 struct snd_usb_substream *subs = rule->private; in hw_rule_period_time()
/linux-4.1.27/sound/soc/davinci/
Ddavinci-mcasp.c1021 struct snd_pcm_hw_rule *rule) in davinci_mcasp_hw_rule_rate() argument
1023 struct davinci_mcasp_ruledata *rd = rule->private; in davinci_mcasp_hw_rule_rate()
1050 return snd_interval_list(hw_param_interval(params, rule->var), in davinci_mcasp_hw_rule_rate()
1055 struct snd_pcm_hw_rule *rule) in davinci_mcasp_hw_rule_format() argument
1057 struct davinci_mcasp_ruledata *rd = rule->private; in davinci_mcasp_hw_rule_format()
1089 struct snd_pcm_hw_rule *rule) in davinci_mcasp_hw_rule_channels() argument
1091 struct davinci_mcasp_ruledata *rd = rule->private; in davinci_mcasp_hw_rule_channels()
1123 return snd_interval_list(hw_param_interval(params, rule->var), in davinci_mcasp_hw_rule_channels()
/linux-4.1.27/net/bridge/netfilter/
DKconfig116 the rate at which a rule can be matched. This match is the
208 This option adds the log watcher, that you can use in any rule
222 This option adds the nflog watcher, that you can use in any rule
/linux-4.1.27/Documentation/networking/
Dpolicy-routing.txt67 We scan rules list, and if a rule is matched, apply it.
84 tables. Every rule is supplied with its own gateway, device
Dxfrm_proc.txt41 e.g. Inbound SAs are correct but SP rule is wrong
Dregulatory.txt32 it needs a new regulatory domain. A udev rule can be put in place
36 Below is an example udev rule which can be used:
Dtproxy.txt21 # ip rule add fwmark 1 lookup 100
Dopenvswitch.txt147 Basic rule for evolving flow keys
154 The basic rule is obvious:
162 This rule does have less-obvious consequences so it is worth working
Dnetdevices.txt33 Segmentation Offload (GSO, TSO) is an exception to this rule. The
Dradiotap-headers.txt73 rule is applied dealing with a u16, NOT dealing with a 4-byte single entity.
/linux-4.1.27/Documentation/vm/
Dactive_mm.txt40 The rule is that for a process with a real address space (ie tsk->mm is
61 Also, a new rule is that _nobody_ ever has "init_mm" as a real MM any
/linux-4.1.27/sound/soc/atmel/
Datmel_ssc_dai.c208 struct snd_pcm_hw_rule *rule) in atmel_ssc_hw_rule_rate() argument
210 struct atmel_ssc_info *ssc_p = rule->private; in atmel_ssc_hw_rule_rate()
212 struct snd_interval *i = hw_param_interval(params, rule->var); in atmel_ssc_hw_rule_rate()
256 if (ret >= 0 && den && rule->var == SNDRV_PCM_HW_PARAM_RATE) { in atmel_ssc_hw_rule_rate()
/linux-4.1.27/Documentation/arm64/
Dtagged-pointers.txt25 One exception to this rule is for signals raised in response
/linux-4.1.27/scripts/coccinelle/free/
Ddevm_free.cocci12 /// false positives. There is no rule for the request_region and
/linux-4.1.27/scripts/coccinelle/api/alloc/
Dkzalloc-simple.cocci5 /// Note in particular that there are no ...s in the rule, so all of the
/linux-4.1.27/drivers/acpi/acpica/
Dacinterp.h463 void acpi_ex_acquire_global_lock(u32 rule);
465 void acpi_ex_release_global_lock(u32 rule);
/linux-4.1.27/Documentation/filesystems/
Dvfat.txt100 emulate the Windows 95 rule for create.
101 win95: emulate the Windows 95 rule for display/create.
102 winnt: emulate the Windows NT rule for display/create.
103 mixed: emulate the Windows NT rule for display,
104 emulate the Windows 95 rule for create.
Dseq_file.txt74 example, could interpret position N as the Nth rule in the chain.
Dproc.txt729 The general rule is that the contents, or even the existence of these
/linux-4.1.27/Documentation/hwmon/
Dk8temp54 70 degrees C. The rule of the thumb -> CPU temperature should not cross
Df71805f137 fan model. As a rule of thumb, lower frequencies seem to give better
Dit87244 temperature, based on this simple rule: if the temperature value is
Dpmbus-core136 As mentioned above, an exception to this rule applies to virtual commands,
/linux-4.1.27/scripts/dtc/
Ddtc-lexer.lex.c_shipped135 /* Action number for EOF rule of a given start state. */
754 /* Copy whatever the last rule matched to the standard output. */
829 /* Code executed at the beginning of each rule, after yytext and yyleng
836 /* Code executed at the end of each rule. */
938 /* rule 1 can match eol */
948 /* rule 2 can match eol */
985 /* rule 3 can match eol */
1063 /* rule 11 can match eol */
1130 /* rule 18 can match eol */
1136 /* rule 19 can match eol */
[all …]
Ddtc-parser.tab.c_shipped484 /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
530 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */
578 /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
591 /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
665 positive, shift that token. If negative, reduce the rule which
925 YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
1327 /* The number of symbols on the RHS of the reduced rule.
1502 /* yyn is the number of a rule to reduce with. */
2095 that goes to, based on the state we popped back to and the rule
2194 /* Do not reclaim the symbols of the rule which action triggered
[all …]
/linux-4.1.27/scripts/genksyms/
Dparse.tab.c_shipped484 /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
545 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */
614 /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
633 /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
725 positive, shift that token. If negative, reduce the rule which
1097 YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
1506 /* The number of symbols on the RHS of the reduced rule.
1688 /* yyn is the number of a rule to reduce with. */
2193 that goes to, based on the state we popped back to and the rule
2292 /* Do not reclaim the symbols of the rule which action triggered
[all …]
Dlex.lex.c_shipped133 /* Action number for EOF rule of a given start state. */
658 /* Copy whatever the last rule matched to the standard output. */
733 /* Code executed at the beginning of each rule, after yytext and yyleng
740 /* Code executed at the end of each rule. */
844 /* rule 1 can match eol */
849 /* rule 2 can match eol */
854 /* rule 3 can match eol */
864 /* rule 5 can match eol */
869 /* rule 6 can match eol */
/linux-4.1.27/Documentation/scheduler/
Dsched-nice-design.txt15 rule so that nice +19 level would be _exactly_ 1 jiffy. To better
36 bigger hit than the normal linear rule would do. (The solution of
/linux-4.1.27/Documentation/ABI/testing/
Dima_policy18 rule format: action [condition ...]
/linux-4.1.27/tools/build/
DBuild.include75 # C flags to be used in rule definitions, includes:
/linux-4.1.27/Documentation/devicetree/
Dof_unittest.txt35 When the kernel is build with OF_SELFTEST enabled, then the following make rule
43 After that, using the following rule the binary blob above is wrapped as an
Dbooting-without-of.txt704 The general rule is documented in the various Open Firmware
821 lowercase. The fact that vendors like Apple don't respect this rule is
/linux-4.1.27/Documentation/kbuild/
Dmakefiles.txt395 This is a special rule, following the normal syntax
403 echoing information to user in a rule is often a good practice
609 This can be done in two ways. Either add the dependency in a rule,
703 (1) List the prerequisite explicitly in a special rule.
716 When there is no suitable special rule, and the host program
726 any rule.
965 The archheaders: rule is used to generate header files that
978 The archprepare: rule is used to list prerequisites that need to be
1105 When the rule is evaluated, it is checked to see if any files
1166 A central rule exists to create $(obj)/%.dtb from $(src)/%.dts;
[all …]
Dmodules.txt304 according to the following rule:
313 NOTE: There are two notable exceptions to this rule: larger
/linux-4.1.27/Documentation/devicetree/bindings/
Dsubmitting-patches.txt23 in Documentation/devicetree/bindings. This rule applies even if
/linux-4.1.27/Documentation/arm/
Duefi.txt7 source code. As a rule, anything new uses 'UEFI', whereas 'EFI' refers
DSetup10 through the kernel initialisation process. As a general rule, it
Dvlocks.txt73 priority rule to act as a tie-breaker, or any counters which could
/linux-4.1.27/sound/arm/
Daaci.c384 struct snd_pcm_hw_rule *rule) in aaci_rule_channels() argument
387 struct aaci *aaci = rule->private; in aaci_rule_channels()
398 return snd_interval_list(hw_param_interval(p, rule->var), in aaci_rule_channels()
/linux-4.1.27/drivers/staging/lustre/lustre/include/
Dlustre_sec.h336 struct sptlrpc_rule *rule);
1052 int sptlrpc_parse_rule(char *param, struct sptlrpc_rule *rule);
/linux-4.1.27/sound/pci/ac97/
Dac97_pcm.c699 struct snd_pcm_hw_rule *rule) in double_rate_hw_constraint_rate() argument
714 struct snd_pcm_hw_rule *rule) in double_rate_hw_constraint_channels() argument
/linux-4.1.27/sound/isa/sb/
Dsb8_main.c77 struct snd_pcm_hw_rule *rule) in snd_sb8_hw_constraint_rate_channels() argument
94 struct snd_pcm_hw_rule *rule) in snd_sb8_hw_constraint_channels_rate() argument
/linux-4.1.27/security/keys/
DKconfig34 LSMs gets to rule on which admin-level processes get to access the
/linux-4.1.27/sound/soc/omap/
Domap-mcbsp.c93 struct snd_pcm_hw_rule *rule) in omap_mcbsp_hwrule_min_buffersize() argument
99 struct omap_mcbsp *mcbsp = rule->private; in omap_mcbsp_hwrule_min_buffersize()
DKconfig65 a simple rule like this one should do the trick (it does for me):
/linux-4.1.27/sound/pci/echoaudio/
Dechoaudio.c119 struct snd_pcm_hw_rule *rule) in hw_rule_capture_format_by_channels() argument
147 struct snd_pcm_hw_rule *rule) in hw_rule_capture_channels_by_format() argument
181 struct snd_pcm_hw_rule *rule) in hw_rule_playback_format_by_channels() argument
216 struct snd_pcm_hw_rule *rule) in hw_rule_playback_channels_by_format() argument
254 struct snd_pcm_hw_rule *rule) in hw_rule_sample_rate() argument
258 struct echoaudio *chip = rule->private; in hw_rule_sample_rate()
/linux-4.1.27/sound/pci/rme9652/
Drme9652.c2205 struct snd_pcm_hw_rule *rule) in snd_rme9652_hw_rule_channels() argument
2207 struct snd_rme9652 *rme9652 = rule->private; in snd_rme9652_hw_rule_channels()
2214 struct snd_pcm_hw_rule *rule) in snd_rme9652_hw_rule_channels_rate() argument
2216 struct snd_rme9652 *rme9652 = rule->private; in snd_rme9652_hw_rule_channels_rate()
2238 struct snd_pcm_hw_rule *rule) in snd_rme9652_hw_rule_rate_channels() argument
2240 struct snd_rme9652 *rme9652 = rule->private; in snd_rme9652_hw_rule_rate_channels()
Dhdsp.c4258 struct snd_pcm_hw_rule *rule) in snd_hdsp_hw_rule_in_channels() argument
4260 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_in_channels()
4277 struct snd_pcm_hw_rule *rule) in snd_hdsp_hw_rule_out_channels() argument
4280 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_out_channels()
4295 struct snd_pcm_hw_rule *rule) in snd_hdsp_hw_rule_in_channels_rate() argument
4297 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_in_channels_rate()
4326 struct snd_pcm_hw_rule *rule) in snd_hdsp_hw_rule_out_channels_rate() argument
4328 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_out_channels_rate()
4357 struct snd_pcm_hw_rule *rule) in snd_hdsp_hw_rule_rate_out_channels() argument
4359 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_rate_out_channels()
[all …]
Dhdspm.c5876 struct snd_pcm_hw_rule *rule) in snd_hdspm_hw_rule_in_channels_rate() argument
5878 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_in_channels_rate()
5911 struct snd_pcm_hw_rule * rule) in snd_hdspm_hw_rule_out_channels_rate() argument
5913 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_out_channels_rate()
5946 struct snd_pcm_hw_rule * rule) in snd_hdspm_hw_rule_rate_in_channels() argument
5948 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_rate_in_channels()
5980 struct snd_pcm_hw_rule *rule) in snd_hdspm_hw_rule_rate_out_channels() argument
5982 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_rate_out_channels()
6015 struct snd_pcm_hw_rule *rule) in snd_hdspm_hw_rule_in_channels() argument
6018 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_in_channels()
[all …]
/linux-4.1.27/scripts/coccinelle/null/
Dbadzero.cocci119 // This rule may lead to inconsistent path problems, if E is defined in two
Dderef_null.cocci213 // It is need because the previous rule as already made a "change".
/linux-4.1.27/Documentation/devicetree/bindings/reset/
Dreset.txt6 are likely to be exceptions to this rule.
/linux-4.1.27/Documentation/locking/
Dlockdep-design.txt100 The first rule comes from the fact the a hardirq-safe lock could be
108 any rule violation between the new lock and any of the held locks.
145 automatically detect this natural ordering, as the locking rule behind
/linux-4.1.27/tools/perf/Documentation/
Dperf-probe.txt182 …" for specifying filter-out rule. You also can give several rules combined with "&" or "|", and fo…
/linux-4.1.27/tools/build/Documentation/
DBuild.txt103 It's possible to include special rule if needed (like we do for flex or bison
/linux-4.1.27/Documentation/cpu-freq/
Dcpufreq-stats.txt119 - trans_table goes against the traditional /sysfs rule of one value per
/linux-4.1.27/Documentation/arm/Atmel/
DREADME124 to this rule (sama5d3[13456]ek.dts, usb_a9g20.dts or animeo_ip.dts for example).
/linux-4.1.27/scripts/
DKbuild.include47 # The rule defined shall write to stdout the content of the new file.
221 # if_changed_rule - as if_changed but execute rule instead
/linux-4.1.27/sound/soc/codecs/
Dpcm512x.c492 struct snd_pcm_hw_rule *rule) in pcm512x_hw_rule_rate() argument
494 struct pcm512x_priv *pcm512x = rule->private; in pcm512x_hw_rule_rate()
521 return snd_interval_ranges(hw_param_interval(params, rule->var), in pcm512x_hw_rule_rate()
/linux-4.1.27/Documentation/driver-model/
Dplatform.txt69 As a rule, platform specific (and often board-specific) setup code will
76 The general rule is to register only those devices that actually exist,
/linux-4.1.27/drivers/net/wireless/ti/wl12xx/
Dmain.c224 .rule = CONF_BCN_RULE_PASS_ON_APPEARANCE,
228 .rule = CONF_BCN_RULE_PASS_ON_CHANGE,
232 .rule = CONF_BCN_RULE_PASS_ON_CHANGE,
/linux-4.1.27/Documentation/i2c/
Dfunctionality113 i2c_smbus_read_word_data() and i2c_smbus_write_word_data(). As a rule of
Dwriting-clients6 guide, not as a rule book!
/linux-4.1.27/Documentation/scsi/
D53c700.txt48 asynchronous dividers for the chip. As a general rule of thumb,
DChangeLog.lpfc1296 * Redo lpfc_sysfs_params_[show|store] to one value per attribute rule
1597 * Separated install rule so that BUILD_IPFC has to be set when
1598 make is called in order for the install rule to attempt to
1600 occurs because the install rule by default attempted to
1601 install lpfndd.o, whereas the default make rule did not by
/linux-4.1.27/Documentation/development-process/
D7.AdvancedTopics82 for those developers. So a simple rule of thumb applies here: history
87 changes should not be rewritten. Git will attempt to enforce this rule if
D4.Coding101 sprinkled liberally with #ifdef blocks. As a general rule, #ifdef use
124 slow execution dramatically. Inline functions, as a rule, should be quite
219 Code submitted for review should, as a rule, not produce any compiler
313 Documentation has often been more the exception than the rule with kernel
D5.Posting51 As a general rule, putting in some extra thought before posting code almost
62 general rule, a patch should be based on the current mainline as found in
D2.Process56 As a general rule, if you miss the merge window for a given feature, the
229 that, sometimes, he looks quite closely. But, as a general rule, Linus
D1.Intro155 result of a simple rule requiring any developer who makes an API change
/linux-4.1.27/drivers/net/wireless/ti/wlcore/
Dconf.h752 u8 rule; member
Dacx.c417 ie_table->table[idx++] = r->rule; in wl1271_acx_beacon_filter_table()
/linux-4.1.27/tools/perf/config/
Dutilities.mak109 # within the context of a command line of a makefile rule
/linux-4.1.27/drivers/net/wireless/ti/wl18xx/
Dmain.c354 .rule = CONF_BCN_RULE_PASS_ON_APPEARANCE,
358 .rule = CONF_BCN_RULE_PASS_ON_CHANGE,
362 .rule = CONF_BCN_RULE_PASS_ON_CHANGE,
/linux-4.1.27/include/linux/ceph/
Dceph_fs.h388 __u8 rule; /* currently fcntl or flock */ member
/linux-4.1.27/Documentation/usb/
Derror-codes.txt7 device drivers only see through usbcore. As a rule, all the HCDs should
Dpower-management.txt598 attached child-devices will disconnect. A good rule of thumb is that if the
/linux-4.1.27/Documentation/devicetree/bindings/iommu/
Diommu.txt81 device's parent node it will be ignored. An exception to this rule is if the
/linux-4.1.27/Documentation/hid/
Dhidraw.txt31 and udev rule-dependent, applications should use libudev to locate hidraw
/linux-4.1.27/drivers/net/wireless/libertas/
Dhost.h842 struct host_wol_rule rule[MAX_WOL_RULES]; member
/linux-4.1.27/Documentation/video4linux/
DREADME.ivtv89 video16, the second card will still use video17. The simple rule is 'add
Dvideobuf83 check it for rationality and adjust it if need be. As a practical rule, a
180 a general rule, it is necessary to support both to ensure that all
Dv4l2-controls.txt659 control. The rule is to have one control for each hardware 'knob' that you
/linux-4.1.27/Documentation/fb/
Dudlfb.txt130 by a udev rule), then udlfb will use this EDID as a
/linux-4.1.27/Documentation/devicetree/bindings/thermal/
Dthermal.txt485 the hypothetical extrapolation rule would be:
489 consider the hotspot extrapolation rule below:
/linux-4.1.27/
DREPORTING-BUGS166 The exceptions to this rule are regressions, kernel crashes, security holes,
/linux-4.1.27/net/ipv6/netfilter/
DKconfig232 The REJECT target allows a filtering rule to specify that an ICMPv6
/linux-4.1.27/Documentation/input/
Dinput-programming.txt302 isn't a rule), and thus must not sleep, and must not take too long to finish.
/linux-4.1.27/Documentation/acpi/
Dnamespace.txt258 rule of the struct acpi_device object:
/linux-4.1.27/net/ipv4/netfilter/
DKconfig232 The REJECT target allows a filtering rule to specify that an ICMP
/linux-4.1.27/Documentation/power/
Dbasic-pm-debugging.txt96 the "platform" test will fail as well and so on. Thus, as a rule of thumb, you
Dswsusp.txt303 As a rule of thumb use encrypted swap to protect your data while your
/linux-4.1.27/include/sound/
Dpcm.h223 struct snd_pcm_hw_rule *rule);
/linux-4.1.27/sound/sparc/
Ddbri.c1999 struct snd_pcm_hw_rule *rule) in snd_hw_rule_format() argument
2015 struct snd_pcm_hw_rule *rule) in snd_hw_rule_channels() argument
/linux-4.1.27/include/linux/mlx4/
Ddevice.h1353 struct mlx4_net_trans_rule *rule, u64 *reg_id);
/linux-4.1.27/Documentation/cgroups/
Dblkio-controller.txt147 on all the devices until and unless overridden by per device rule.
/linux-4.1.27/Documentation/filesystems/caching/
Dcachefiles.txt349 based on a rule of this form in the policy.
/linux-4.1.27/sound/pci/
Dsonicvibes.c558 struct snd_pcm_hw_rule *rule) in snd_sonicvibes_hw_constraint_dac_rate() argument
/linux-4.1.27/Documentation/mtd/
Dnand_ecc.txt71 for rp4 the rule is cover 4 bytes, skip 4 bytes, cover 4 bytes, skip 4 etc.
/linux-4.1.27/Documentation/virtual/uml/
DUserModeLinux-HOWTO.txt3933 to create a static rule to enable it: