Home
last modified time | relevance | path

Searched refs:nest (Results 1 – 25 of 77) sorted by relevance

1234

/Linux-v5.4/net/sched/
Dact_api.c220 struct nlattr *nest; in tcf_dump_walker() local
240 nest = nla_nest_start_noflag(skb, n_i); in tcf_dump_walker()
241 if (!nest) { in tcf_dump_walker()
248 nlmsg_trim(skb, nest); in tcf_dump_walker()
251 nla_nest_end(skb, nest); in tcf_dump_walker()
269 nla_nest_cancel(skb, nest); in tcf_dump_walker()
290 struct nlattr *nest; in tcf_del_walker() local
298 nest = nla_nest_start_noflag(skb, 0); in tcf_del_walker()
299 if (nest == NULL) in tcf_del_walker()
319 nla_nest_end(skb, nest); in tcf_del_walker()
[all …]
Dcls_cgroup.c174 struct nlattr *nest; in cls_cgroup_dump() local
178 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in cls_cgroup_dump()
179 if (nest == NULL) in cls_cgroup_dump()
186 nla_nest_end(skb, nest); in cls_cgroup_dump()
194 nla_nest_cancel(skb, nest); in cls_cgroup_dump()
Dsch_ingress.c103 struct nlattr *nest; in ingress_dump() local
105 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in ingress_dump()
106 if (nest == NULL) in ingress_dump()
109 return nla_nest_end(skb, nest); in ingress_dump()
112 nla_nest_cancel(skb, nest); in ingress_dump()
Dsch_mqprio.c346 struct nlattr *nest; in dump_rates() local
350 nest = nla_nest_start_noflag(skb, TCA_MQPRIO_MIN_RATE64); in dump_rates()
351 if (!nest) in dump_rates()
360 nla_nest_end(skb, nest); in dump_rates()
364 nest = nla_nest_start_noflag(skb, TCA_MQPRIO_MAX_RATE64); in dump_rates()
365 if (!nest) in dump_rates()
374 nla_nest_end(skb, nest); in dump_rates()
379 nla_nest_cancel(skb, nest); in dump_rates()
Dcls_basic.c279 struct nlattr *nest; in basic_dump() local
287 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in basic_dump()
288 if (nest == NULL) in basic_dump()
311 nla_nest_end(skb, nest); in basic_dump()
319 nla_nest_cancel(skb, nest); in basic_dump()
Dcls_matchall.c348 struct nlattr *nest; in mall_dump() local
359 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in mall_dump()
360 if (!nest) in mall_dump()
384 nla_nest_end(skb, nest); in mall_dump()
392 nla_nest_cancel(skb, nest); in mall_dump()
Dsch_etf.c469 struct nlattr *nest; in etf_dump() local
471 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in etf_dump()
472 if (!nest) in etf_dump()
489 return nla_nest_end(skb, nest); in etf_dump()
492 nla_nest_cancel(skb, nest); in etf_dump()
Dcls_fw.c380 struct nlattr *nest; in fw_dump() local
390 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in fw_dump()
391 if (nest == NULL) in fw_dump()
410 nla_nest_end(skb, nest); in fw_dump()
418 nla_nest_cancel(skb, nest); in fw_dump()
Dsch_cbs.c445 struct nlattr *nest; in cbs_dump() local
447 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in cbs_dump()
448 if (!nest) in cbs_dump()
460 return nla_nest_end(skb, nest); in cbs_dump()
463 nla_nest_cancel(skb, nest); in cbs_dump()
Dsch_drr.c239 struct nlattr *nest; in drr_dump_class() local
245 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in drr_dump_class()
246 if (nest == NULL) in drr_dump_class()
250 return nla_nest_end(skb, nest); in drr_dump_class()
253 nla_nest_cancel(skb, nest); in drr_dump_class()
Dsch_tbf.c443 struct nlattr *nest; in tbf_dump() local
447 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in tbf_dump()
448 if (nest == NULL) in tbf_dump()
471 return nla_nest_end(skb, nest); in tbf_dump()
474 nla_nest_cancel(skb, nest); in tbf_dump()
Dcls_tcindex.c600 struct nlattr *nest; in tcindex_dump() local
606 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in tcindex_dump()
607 if (nest == NULL) in tcindex_dump()
617 nla_nest_end(skb, nest); in tcindex_dump()
644 nla_nest_end(skb, nest); in tcindex_dump()
653 nla_nest_cancel(skb, nest); in tcindex_dump()
Dcls_route.c599 struct nlattr *nest; in route4_dump() local
607 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in route4_dump()
608 if (nest == NULL) in route4_dump()
632 nla_nest_end(skb, nest); in route4_dump()
640 nla_nest_cancel(skb, nest); in route4_dump()
/Linux-v5.4/net/bridge/
Dbr_mdb.c24 struct nlattr *nest, *port_nest; in br_rports_fill_info() local
29 nest = nla_nest_start_noflag(skb, MDBA_ROUTER); in br_rports_fill_info()
30 if (nest == NULL) in br_rports_fill_info()
50 nla_nest_end(skb, nest); in br_rports_fill_info()
53 nla_nest_cancel(skb, nest); in br_rports_fill_info()
133 struct nlattr *nest, *nest2; in br_mdb_fill_info() local
138 nest = nla_nest_start_noflag(skb, MDBA_MDB); in br_mdb_fill_info()
139 if (nest == NULL) in br_mdb_fill_info()
181 nla_nest_end(skb, nest); in br_mdb_fill_info()
271 struct nlattr *nest, *nest2; in nlmsg_populate_mdb_fill() local
[all …]
/Linux-v5.4/kernel/events/
Dring_buffer.c46 (*(volatile unsigned int *)&rb->nest)++; in perf_output_get_handle()
54 unsigned int nest; in perf_output_put_handle() local
60 nest = READ_ONCE(rb->nest); in perf_output_put_handle()
61 if (nest > 1) { in perf_output_put_handle()
62 WRITE_ONCE(rb->nest, nest - 1); in perf_output_put_handle()
118 WRITE_ONCE(rb->nest, 0); in perf_output_put_handle()
126 WRITE_ONCE(rb->nest, 1); in perf_output_put_handle()
365 unsigned int nest; in perf_aux_output_begin() local
396 nest = READ_ONCE(rb->aux_nest); in perf_aux_output_begin()
401 if (WARN_ON_ONCE(nest)) in perf_aux_output_begin()
[all …]
/Linux-v5.4/net/8021q/
Dvlan_netlink.c214 struct nlattr *nest; in vlan_fill_info() local
227 nest = nla_nest_start_noflag(skb, IFLA_VLAN_INGRESS_QOS); in vlan_fill_info()
228 if (nest == NULL) in vlan_fill_info()
241 nla_nest_end(skb, nest); in vlan_fill_info()
245 nest = nla_nest_start_noflag(skb, IFLA_VLAN_EGRESS_QOS); in vlan_fill_info()
246 if (nest == NULL) in vlan_fill_info()
262 nla_nest_end(skb, nest); in vlan_fill_info()
/Linux-v5.4/net/ipv4/
Dtcp_diag.c88 struct nlattr *nest; in tcp_diag_put_ulp() local
91 nest = nla_nest_start_noflag(skb, INET_DIAG_ULP_INFO); in tcp_diag_put_ulp()
92 if (!nest) in tcp_diag_put_ulp()
104 nla_nest_end(skb, nest); in tcp_diag_put_ulp()
108 nla_nest_cancel(skb, nest); in tcp_diag_put_ulp()
/Linux-v5.4/net/netfilter/
Dnft_tunnel.c438 struct nlattr *nest; in nft_tunnel_ip_dump() local
441 nest = nla_nest_start_noflag(skb, NFTA_TUNNEL_KEY_IP6); in nft_tunnel_ip_dump()
442 if (!nest) in nft_tunnel_ip_dump()
450 nla_nest_end(skb, nest); in nft_tunnel_ip_dump()
452 nest = nla_nest_start_noflag(skb, NFTA_TUNNEL_KEY_IP); in nft_tunnel_ip_dump()
453 if (!nest) in nft_tunnel_ip_dump()
460 nla_nest_end(skb, nest); in nft_tunnel_ip_dump()
470 struct nlattr *nest; in nft_tunnel_opts_dump() local
472 nest = nla_nest_start_noflag(skb, NFTA_TUNNEL_KEY_OPTS); in nft_tunnel_opts_dump()
473 if (!nest) in nft_tunnel_opts_dump()
[all …]
/Linux-v5.4/scripts/kconfig/
Dpreprocess.c351 int nest = 0; in eval_clause() local
385 if (nest == 0 && *p == ',') { in eval_clause()
392 nest++; in eval_clause()
394 nest--; in eval_clause()
457 int nest = 0; in expand_dollar_with_args() local
473 nest++; in expand_dollar_with_args()
475 if (nest-- == 0) in expand_dollar_with_args()
/Linux-v5.4/net/core/
Dlwtunnel.c225 struct nlattr *nest; in lwtunnel_fill_encap() local
235 nest = nla_nest_start_noflag(skb, encap_attr); in lwtunnel_fill_encap()
236 if (!nest) in lwtunnel_fill_encap()
248 nla_nest_end(skb, nest); in lwtunnel_fill_encap()
256 nla_nest_cancel(skb, nest); in lwtunnel_fill_encap()
/Linux-v5.4/drivers/net/bonding/
Dbond_netlink.c655 struct nlattr *nest; in bond_fill_info() local
657 nest = nla_nest_start_noflag(skb, IFLA_BOND_AD_INFO); in bond_fill_info()
658 if (!nest) in bond_fill_info()
678 nla_nest_end(skb, nest); in bond_fill_info()
707 struct nlattr *nest, *nest2; in bond_fill_linkxstats() local
724 nest = nla_nest_start_noflag(skb, LINK_XSTATS_TYPE_BOND); in bond_fill_linkxstats()
725 if (!nest) in bond_fill_linkxstats()
737 nla_nest_end(skb, nest); in bond_fill_linkxstats()
743 nla_nest_end(skb, nest); in bond_fill_linkxstats()
748 nla_nest_end(skb, nest); in bond_fill_linkxstats()
/Linux-v5.4/lib/
Drhashtable.c57 if (unlikely(tbl->nest)) in lockdep_rht_bucket_is_held()
87 unsigned int size = tbl->size >> tbl->nest; in nested_bucket_table_free()
88 unsigned int len = 1 << tbl->nest; in nested_bucket_table_free()
102 if (tbl->nest) in bucket_table_free()
161 tbl->nest = (ilog2(nbuckets) - 1) % shift + 1; in nested_bucket_table_alloc()
226 if (new_tbl->nest) in rhashtable_rehash_one()
414 else if (tbl->nest) in rht_deferred_worker()
1171 unsigned int index = hash & ((1 << tbl->nest) - 1); in __rht_bucket_nested()
1172 unsigned int size = tbl->size >> tbl->nest; in __rht_bucket_nested()
1178 subhash >>= tbl->nest; in __rht_bucket_nested()
[all …]
/Linux-v5.4/net/netlink/
Dgenetlink.c700 struct nlattr *nest; in ctrl_fill_info() local
711 nest = nla_nest_start_noflag(skb, i + 1); in ctrl_fill_info()
712 if (nest == NULL) in ctrl_fill_info()
719 nla_nest_end(skb, nest); in ctrl_fill_info()
734 struct nlattr *nest; in ctrl_fill_info() local
739 nest = nla_nest_start_noflag(skb, i + 1); in ctrl_fill_info()
740 if (nest == NULL) in ctrl_fill_info()
749 nla_nest_end(skb, nest); in ctrl_fill_info()
769 struct nlattr *nest; in ctrl_fill_mcgrp_info() local
783 nest = nla_nest_start_noflag(skb, 1); in ctrl_fill_mcgrp_info()
[all …]
/Linux-v5.4/net/dcb/
Ddcbnl.c221 struct nlattr *data[DCB_PFC_UP_ATTR_MAX + 1], *nest; in dcbnl_getpfccfg() local
239 nest = nla_nest_start_noflag(skb, DCB_ATTR_PFC_CFG); in dcbnl_getpfccfg()
240 if (!nest) in dcbnl_getpfccfg()
254 nla_nest_cancel(skb, nest); in dcbnl_getpfccfg()
258 nla_nest_end(skb, nest); in dcbnl_getpfccfg()
280 struct nlattr *data[DCB_CAP_ATTR_MAX + 1], *nest; in dcbnl_getcap() local
298 nest = nla_nest_start_noflag(skb, DCB_ATTR_CAP); in dcbnl_getcap()
299 if (!nest) in dcbnl_getcap()
312 nla_nest_cancel(skb, nest); in dcbnl_getcap()
317 nla_nest_end(skb, nest); in dcbnl_getcap()
[all …]
/Linux-v5.4/arch/c6x/platforms/
Dpll.c375 dump_clock(struct seq_file *s, unsigned nest, struct clk *parent) in dump_clock() argument
391 memcpy(buf + nest, parent->name, in dump_clock()
392 min(i, (unsigned)(sizeof(buf) - 1 - nest))); in dump_clock()
400 dump_clock(s, nest + NEST_DELTA, clk); in dump_clock()

1234