Home
last modified time | relevance | path

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

123

/Linux-v4.19/net/bridge/
Dbr_mdb.c24 struct nlattr *nest, *port_nest; in br_rports_fill_info() local
29 nest = nla_nest_start(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()
83 struct nlattr *nest, *nest2; in br_mdb_fill_info() local
94 nest = nla_nest_start(skb, MDBA_MDB); in br_mdb_fill_info()
95 if (nest == NULL) in br_mdb_fill_info()
161 nla_nest_end(skb, nest); in br_mdb_fill_info()
222 struct nlattr *nest, *nest2; in nlmsg_populate_mdb_fill() local
[all …]
/Linux-v4.19/net/sched/
Dact_api.c197 struct nlattr *nest; in tcf_dump_walker() local
216 nest = nla_nest_start(skb, n_i); in tcf_dump_walker()
217 if (!nest) { in tcf_dump_walker()
224 nlmsg_trim(skb, nest); in tcf_dump_walker()
227 nla_nest_end(skb, nest); in tcf_dump_walker()
245 nla_nest_cancel(skb, nest); in tcf_dump_walker()
252 struct nlattr *nest; in tcf_del_walker() local
259 nest = nla_nest_start(skb, 0); in tcf_del_walker()
260 if (nest == NULL) in tcf_del_walker()
276 nla_nest_end(skb, nest); in tcf_del_walker()
[all …]
Dcls_cgroup.c172 struct nlattr *nest; in cls_cgroup_dump() local
176 nest = nla_nest_start(skb, TCA_OPTIONS); in cls_cgroup_dump()
177 if (nest == NULL) in cls_cgroup_dump()
184 nla_nest_end(skb, nest); in cls_cgroup_dump()
192 nla_nest_cancel(skb, nest); in cls_cgroup_dump()
Dsch_ingress.c107 struct nlattr *nest; in ingress_dump() local
109 nest = nla_nest_start(skb, TCA_OPTIONS); in ingress_dump()
110 if (nest == NULL) in ingress_dump()
113 return nla_nest_end(skb, nest); in ingress_dump()
116 nla_nest_cancel(skb, nest); in ingress_dump()
Dcls_basic.c269 struct nlattr *nest; in basic_dump() local
276 nest = nla_nest_start(skb, TCA_OPTIONS); in basic_dump()
277 if (nest == NULL) in basic_dump()
288 nla_nest_end(skb, nest); in basic_dump()
296 nla_nest_cancel(skb, nest); in basic_dump()
Dcls_matchall.c275 struct nlattr *nest; in mall_dump() local
282 nest = nla_nest_start(skb, TCA_OPTIONS); in mall_dump()
283 if (!nest) in mall_dump()
296 nla_nest_end(skb, nest); in mall_dump()
304 nla_nest_cancel(skb, nest); in mall_dump()
Dsch_mqprio.c348 struct nlattr *nest; in dump_rates() local
352 nest = nla_nest_start(skb, TCA_MQPRIO_MIN_RATE64); in dump_rates()
353 if (!nest) in dump_rates()
362 nla_nest_end(skb, nest); in dump_rates()
366 nest = nla_nest_start(skb, TCA_MQPRIO_MAX_RATE64); in dump_rates()
367 if (!nest) in dump_rates()
376 nla_nest_end(skb, nest); in dump_rates()
381 nla_nest_cancel(skb, nest); in dump_rates()
Dsch_etf.c436 struct nlattr *nest; in etf_dump() local
438 nest = nla_nest_start(skb, TCA_OPTIONS); in etf_dump()
439 if (!nest) in etf_dump()
453 return nla_nest_end(skb, nest); in etf_dump()
456 nla_nest_cancel(skb, nest); in etf_dump()
Dsch_cbs.c389 struct nlattr *nest; in cbs_dump() local
391 nest = nla_nest_start(skb, TCA_OPTIONS); in cbs_dump()
392 if (!nest) in cbs_dump()
404 return nla_nest_end(skb, nest); in cbs_dump()
407 nla_nest_cancel(skb, nest); in cbs_dump()
Dcls_fw.c391 struct nlattr *nest; in fw_dump() local
401 nest = nla_nest_start(skb, TCA_OPTIONS); in fw_dump()
402 if (nest == NULL) in fw_dump()
423 nla_nest_end(skb, nest); in fw_dump()
431 nla_nest_cancel(skb, nest); in fw_dump()
Dsch_tbf.c447 struct nlattr *nest; in tbf_dump() local
451 nest = nla_nest_start(skb, TCA_OPTIONS); in tbf_dump()
452 if (nest == NULL) in tbf_dump()
475 return nla_nest_end(skb, nest); in tbf_dump()
478 nla_nest_cancel(skb, nest); in tbf_dump()
Dsch_drr.c250 struct nlattr *nest; in drr_dump_class() local
256 nest = nla_nest_start(skb, TCA_OPTIONS); in drr_dump_class()
257 if (nest == NULL) in drr_dump_class()
261 return nla_nest_end(skb, nest); in drr_dump_class()
264 nla_nest_cancel(skb, nest); in drr_dump_class()
Dcls_flower.c1585 struct nlattr *nest; in fl_dump_key_geneve_opt() local
1588 nest = nla_nest_start(skb, TCA_FLOWER_KEY_ENC_OPTS_GENEVE); in fl_dump_key_geneve_opt()
1589 if (!nest) in fl_dump_key_geneve_opt()
1607 nla_nest_end(skb, nest); in fl_dump_key_geneve_opt()
1611 nla_nest_cancel(skb, nest); in fl_dump_key_geneve_opt()
1618 struct nlattr *nest; in fl_dump_key_options() local
1624 nest = nla_nest_start(skb, enc_opt_type); in fl_dump_key_options()
1625 if (!nest) in fl_dump_key_options()
1637 nla_nest_end(skb, nest); in fl_dump_key_options()
1641 nla_nest_cancel(skb, nest); in fl_dump_key_options()
[all …]
Dcls_tcindex.c582 struct nlattr *nest; in tcindex_dump() local
588 nest = nla_nest_start(skb, TCA_OPTIONS); in tcindex_dump()
589 if (nest == NULL) in tcindex_dump()
599 nla_nest_end(skb, nest); in tcindex_dump()
626 nla_nest_end(skb, nest); in tcindex_dump()
635 nla_nest_cancel(skb, nest); in tcindex_dump()
/Linux-v4.19/net/8021q/
Dvlan_netlink.c216 struct nlattr *nest; in vlan_fill_info() local
229 nest = nla_nest_start(skb, IFLA_VLAN_INGRESS_QOS); in vlan_fill_info()
230 if (nest == NULL) in vlan_fill_info()
243 nla_nest_end(skb, nest); in vlan_fill_info()
247 nest = nla_nest_start(skb, IFLA_VLAN_EGRESS_QOS); in vlan_fill_info()
248 if (nest == NULL) in vlan_fill_info()
264 nla_nest_end(skb, nest); in vlan_fill_info()
/Linux-v4.19/net/netfilter/
Dnft_tunnel.c400 struct nlattr *nest; in nft_tunnel_ip_dump() local
403 nest = nla_nest_start(skb, NFTA_TUNNEL_KEY_IP6); in nft_tunnel_ip_dump()
404 if (!nest) in nft_tunnel_ip_dump()
412 nla_nest_end(skb, nest); in nft_tunnel_ip_dump()
414 nest = nla_nest_start(skb, NFTA_TUNNEL_KEY_IP); in nft_tunnel_ip_dump()
415 if (!nest) in nft_tunnel_ip_dump()
422 nla_nest_end(skb, nest); in nft_tunnel_ip_dump()
432 struct nlattr *nest; in nft_tunnel_opts_dump() local
434 nest = nla_nest_start(skb, NFTA_TUNNEL_KEY_OPTS); in nft_tunnel_opts_dump()
435 if (!nest) in nft_tunnel_opts_dump()
[all …]
/Linux-v4.19/scripts/kconfig/
Dpreprocess.c348 int nest = 0; in eval_clause() local
382 if (nest == 0 && *p == ',') { in eval_clause()
389 nest++; in eval_clause()
391 nest--; in eval_clause()
454 int nest = 0; in expand_dollar_with_args() local
470 nest++; in expand_dollar_with_args()
472 if (nest-- == 0) in expand_dollar_with_args()
/Linux-v4.19/lib/
Drhashtable.c89 unsigned int size = tbl->size >> tbl->nest; in nested_bucket_table_free()
90 unsigned int len = 1 << tbl->nest; in nested_bucket_table_free()
104 if (tbl->nest) in bucket_table_free()
162 tbl->nest = (ilog2(nbuckets) - 1) % shift + 1; in nested_bucket_table_alloc()
191 if (tbl->nest) in bucket_table_alloc()
192 max_locks = min_t(size_t, max_locks, 1U << tbl->nest); in bucket_table_alloc()
233 if (new_tbl->nest) in rhashtable_rehash_one()
416 else if (tbl->nest) in rht_deferred_worker()
1184 unsigned int index = hash & ((1 << tbl->nest) - 1); in rht_bucket_nested()
1185 unsigned int size = tbl->size >> tbl->nest; in rht_bucket_nested()
[all …]
/Linux-v4.19/net/core/
Dlwtunnel.c229 struct nlattr *nest; in lwtunnel_fill_encap() local
239 nest = nla_nest_start(skb, RTA_ENCAP); in lwtunnel_fill_encap()
240 if (!nest) in lwtunnel_fill_encap()
252 nla_nest_end(skb, nest); in lwtunnel_fill_encap()
260 nla_nest_cancel(skb, nest); in lwtunnel_fill_encap()
Dlwt_bpf.c315 struct nlattr *nest; in bpf_fill_lwt_prog() local
320 nest = nla_nest_start(skb, attr); in bpf_fill_lwt_prog()
321 if (!nest) in bpf_fill_lwt_prog()
328 return nla_nest_end(skb, nest); in bpf_fill_lwt_prog()
/Linux-v4.19/net/netlink/
Dgenetlink.c672 struct nlattr *nest; in ctrl_fill_info() local
683 nest = nla_nest_start(skb, i + 1); in ctrl_fill_info()
684 if (nest == NULL) in ctrl_fill_info()
691 nla_nest_end(skb, nest); in ctrl_fill_info()
706 struct nlattr *nest; in ctrl_fill_info() local
711 nest = nla_nest_start(skb, i + 1); in ctrl_fill_info()
712 if (nest == NULL) in ctrl_fill_info()
721 nla_nest_end(skb, nest); in ctrl_fill_info()
741 struct nlattr *nest; in ctrl_fill_mcgrp_info() local
755 nest = nla_nest_start(skb, 1); in ctrl_fill_mcgrp_info()
[all …]
/Linux-v4.19/net/ncsi/
Dncsi-netlink.c97 struct nlattr *pnest, *cnest, *nest; in ncsi_write_package_info() local
124 nest = nla_nest_start(skb, NCSI_CHANNEL_ATTR); in ncsi_write_package_info()
125 if (!nest) { in ncsi_write_package_info()
132 nla_nest_cancel(skb, nest); in ncsi_write_package_info()
137 nla_nest_end(skb, nest); in ncsi_write_package_info()
/Linux-v4.19/net/dcb/
Ddcbnl.c232 struct nlattr *data[DCB_PFC_UP_ATTR_MAX + 1], *nest; in dcbnl_getpfccfg() local
249 nest = nla_nest_start(skb, DCB_ATTR_PFC_CFG); in dcbnl_getpfccfg()
250 if (!nest) in dcbnl_getpfccfg()
264 nla_nest_cancel(skb, nest); in dcbnl_getpfccfg()
268 nla_nest_end(skb, nest); in dcbnl_getpfccfg()
290 struct nlattr *data[DCB_CAP_ATTR_MAX + 1], *nest; in dcbnl_getcap() local
307 nest = nla_nest_start(skb, DCB_ATTR_CAP); in dcbnl_getcap()
308 if (!nest) in dcbnl_getcap()
321 nla_nest_cancel(skb, nest); in dcbnl_getcap()
326 nla_nest_end(skb, nest); in dcbnl_getcap()
[all …]
/Linux-v4.19/arch/c6x/platforms/
Dpll.c379 dump_clock(struct seq_file *s, unsigned nest, struct clk *parent) in dump_clock() argument
395 memcpy(buf + nest, parent->name, in dump_clock()
396 min(i, (unsigned)(sizeof(buf) - 1 - nest))); in dump_clock()
404 dump_clock(s, nest + NEST_DELTA, clk); in dump_clock()
/Linux-v4.19/kernel/locking/
Drwsem.c168 void _down_write_nest_lock(struct rw_semaphore *sem, struct lockdep_map *nest) in _down_write_nest_lock() argument
171 rwsem_acquire_nest(&sem->dep_map, 0, 0, nest, _RET_IP_); in _down_write_nest_lock()

123