Home
last modified time | relevance | path

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

12345

/kernel/linux/linux-5.10/net/ethtool/
Dcabletest.c130 phydev->nest = nla_nest_start(phydev->skb, in ethnl_cable_test_alloc()
132 if (!phydev->nest) { in ethnl_cable_test_alloc()
155 nla_nest_end(phydev->skb, phydev->nest); in ethnl_cable_test_finished()
165 struct nlattr *nest; in ethnl_cable_test_result() local
168 nest = nla_nest_start(phydev->skb, ETHTOOL_A_CABLE_NEST_RESULT); in ethnl_cable_test_result()
169 if (!nest) in ethnl_cable_test_result()
177 nla_nest_end(phydev->skb, nest); in ethnl_cable_test_result()
181 nla_nest_cancel(phydev->skb, nest); in ethnl_cable_test_result()
188 struct nlattr *nest; in ethnl_cable_test_fault_length() local
191 nest = nla_nest_start(phydev->skb, in ethnl_cable_test_fault_length()
[all …]
Dstrset.c135 static int strset_get_id(const struct nlattr *nest, u32 *val, in strset_get_id() argument
141 ret = nla_parse_nested(tb, ARRAY_SIZE(get_stringset_policy) - 1, nest, in strset_get_id()
161 struct nlattr *nest = tb[ETHTOOL_A_STRSET_STRINGSETS]; in strset_parse_request() local
165 if (!nest) in strset_parse_request()
167 ret = nla_validate_nested(nest, in strset_parse_request()
174 nla_for_each_nested(attr, nest, rem) { in strset_parse_request()
417 struct nlattr *nest; in strset_fill_reply() local
421 nest = nla_nest_start(skb, ETHTOOL_A_STRSET_STRINGSETS); in strset_fill_reply()
422 if (!nest) in strset_fill_reply()
434 nla_nest_end(skb, nest); in strset_fill_reply()
[all …]
Dpause.c84 struct nlattr *nest; in pause_put_stats() local
86 nest = nla_nest_start(skb, ETHTOOL_A_PAUSE_STATS); in pause_put_stats()
87 if (!nest) in pause_put_stats()
96 nla_nest_end(skb, nest); in pause_put_stats()
100 nla_nest_cancel(skb, nest); in pause_put_stats()
Dbitset.c236 struct nlattr *nest; in ethnl_put_bitset32() local
239 nest = nla_nest_start(skb, attrtype); in ethnl_put_bitset32()
240 if (!nest) in ethnl_put_bitset32()
297 nla_nest_end(skb, nest); in ethnl_put_bitset32()
301 nla_nest_cancel(skb, nest); in ethnl_put_bitset32()
481 const struct nlattr *nest, in ethnl_compact_sanity_checks() argument
495 NL_SET_ERR_MSG_ATTR(extack, nest, in ethnl_compact_sanity_checks()
500 NL_SET_ERR_MSG_ATTR(extack, nest, in ethnl_compact_sanity_checks()
505 NL_SET_ERR_MSG_ATTR(extack, nest, in ethnl_compact_sanity_checks()
/kernel/linux/linux-5.10/tools/testing/selftests/net/mptcp/
Dpm_nl_ctl.c177 struct rtattr *rta, *nest; in add_addr() local
195 nest = (void *)(data + off); in add_addr()
196 nest->rta_type = NLA_F_NESTED | MPTCP_PM_ATTR_ADDR; in add_addr()
197 nest->rta_len = RTA_LENGTH(0); in add_addr()
198 off += NLMSG_ALIGN(nest->rta_len); in add_addr()
277 nest->rta_len = off - nest_start; in add_addr()
288 struct rtattr *rta, *nest; in del_addr() local
306 nest = (void *)(data + off); in del_addr()
307 nest->rta_type = NLA_F_NESTED | MPTCP_PM_ATTR_ADDR; in del_addr()
308 nest->rta_len = RTA_LENGTH(0); in del_addr()
[all …]
/kernel/linux/linux-5.10/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()
98 struct nlattr *nest, *nest_ent; in __mdb_fill_srcs() local
103 nest = nla_nest_start(skb, MDBA_MDB_EATTR_SRC_LIST); in __mdb_fill_srcs()
104 if (!nest) in __mdb_fill_srcs()
141 nla_nest_end(skb, nest); in __mdb_fill_srcs()
146 nla_nest_cancel(skb, nest); in __mdb_fill_srcs()
[all …]
Dbr_vlan_options.c15 struct nlattr *nest; in __vlan_tun_put() local
20 nest = nla_nest_start(skb, BRIDGE_VLANDB_ENTRY_TUNNEL_INFO); in __vlan_tun_put()
21 if (!nest) in __vlan_tun_put()
24 nla_nest_cancel(skb, nest); in __vlan_tun_put()
27 nla_nest_end(skb, nest); in __vlan_tun_put()
/kernel/linux/linux-5.10/net/sched/
Dact_api.c235 struct nlattr *nest; in tcf_dump_walker() local
257 nest = nla_nest_start_noflag(skb, n_i); in tcf_dump_walker()
258 if (!nest) { in tcf_dump_walker()
265 nlmsg_trim(skb, nest); in tcf_dump_walker()
268 nla_nest_end(skb, nest); in tcf_dump_walker()
286 nla_nest_cancel(skb, nest); in tcf_dump_walker()
308 struct nlattr *nest; in tcf_del_walker() local
316 nest = nla_nest_start_noflag(skb, 0); in tcf_del_walker()
317 if (nest == NULL) in tcf_del_walker()
345 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.c116 struct nlattr *nest; in ingress_dump() local
118 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in ingress_dump()
119 if (nest == NULL) in ingress_dump()
122 return nla_nest_end(skb, nest); in ingress_dump()
125 nla_nest_cancel(skb, nest); in ingress_dump()
Dsch_ets.c302 struct nlattr *nest; in ets_class_dump() local
308 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in ets_class_dump()
309 if (!nest) in ets_class_dump()
315 return nla_nest_end(skb, nest); in ets_class_dump()
318 nla_nest_cancel(skb, nest); in ets_class_dump()
742 struct nlattr *nest; in ets_qdisc_dump() local
763 nest = nla_nest_start(skb, TCA_ETS_QUANTA); in ets_qdisc_dump()
764 if (!nest) in ets_qdisc_dump()
773 nla_nest_end(skb, nest); in ets_qdisc_dump()
776 nest = nla_nest_start(skb, TCA_ETS_PRIOMAP); in ets_qdisc_dump()
[all …]
Dcls_basic.c284 struct nlattr *nest; in basic_dump() local
292 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in basic_dump()
293 if (nest == NULL) in basic_dump()
316 nla_nest_end(skb, nest); in basic_dump()
324 nla_nest_cancel(skb, nest); in basic_dump()
Dsch_mqprio.c410 struct nlattr *nest; in dump_rates() local
414 nest = nla_nest_start_noflag(skb, TCA_MQPRIO_MIN_RATE64); in dump_rates()
415 if (!nest) in dump_rates()
424 nla_nest_end(skb, nest); in dump_rates()
428 nest = nla_nest_start_noflag(skb, TCA_MQPRIO_MAX_RATE64); in dump_rates()
429 if (!nest) in dump_rates()
438 nla_nest_end(skb, nest); in dump_rates()
443 nla_nest_cancel(skb, nest); in dump_rates()
Dcls_flower.c2675 struct nlattr *nest; in fl_dump_key_geneve_opt() local
2678 nest = nla_nest_start_noflag(skb, TCA_FLOWER_KEY_ENC_OPTS_GENEVE); in fl_dump_key_geneve_opt()
2679 if (!nest) in fl_dump_key_geneve_opt()
2697 nla_nest_end(skb, nest); in fl_dump_key_geneve_opt()
2701 nla_nest_cancel(skb, nest); in fl_dump_key_geneve_opt()
2709 struct nlattr *nest; in fl_dump_key_vxlan_opt() local
2711 nest = nla_nest_start_noflag(skb, TCA_FLOWER_KEY_ENC_OPTS_VXLAN); in fl_dump_key_vxlan_opt()
2712 if (!nest) in fl_dump_key_vxlan_opt()
2719 nla_nest_end(skb, nest); in fl_dump_key_vxlan_opt()
2723 nla_nest_cancel(skb, nest); in fl_dump_key_vxlan_opt()
[all …]
/kernel/linux/linux-5.10/net/8021q/
Dvlan_netlink.c219 struct nlattr *nest; in vlan_fill_info() local
232 nest = nla_nest_start_noflag(skb, IFLA_VLAN_INGRESS_QOS); in vlan_fill_info()
233 if (nest == NULL) in vlan_fill_info()
246 nla_nest_end(skb, nest); in vlan_fill_info()
250 nest = nla_nest_start_noflag(skb, IFLA_VLAN_EGRESS_QOS); in vlan_fill_info()
251 if (nest == NULL) in vlan_fill_info()
267 nla_nest_end(skb, nest); in vlan_fill_info()
/kernel/linux/linux-5.10/net/netfilter/
Dnft_tunnel.c510 struct nlattr *nest; in nft_tunnel_ip_dump() local
513 nest = nla_nest_start_noflag(skb, NFTA_TUNNEL_KEY_IP6); in nft_tunnel_ip_dump()
514 if (!nest) in nft_tunnel_ip_dump()
523 nla_nest_cancel(skb, nest); in nft_tunnel_ip_dump()
527 nla_nest_end(skb, nest); in nft_tunnel_ip_dump()
529 nest = nla_nest_start_noflag(skb, NFTA_TUNNEL_KEY_IP); in nft_tunnel_ip_dump()
530 if (!nest) in nft_tunnel_ip_dump()
537 nla_nest_cancel(skb, nest); in nft_tunnel_ip_dump()
541 nla_nest_end(skb, nest); in nft_tunnel_ip_dump()
551 struct nlattr *nest, *inner; in nft_tunnel_opts_dump() local
[all …]
/kernel/linux/linux-5.10/net/ipv4/
Dip_tunnel_core.c742 struct nlattr *nest; in ip_tun_fill_encap_opts_geneve() local
745 nest = nla_nest_start_noflag(skb, LWTUNNEL_IP_OPTS_GENEVE); in ip_tun_fill_encap_opts_geneve()
746 if (!nest) in ip_tun_fill_encap_opts_geneve()
756 nla_nest_cancel(skb, nest); in ip_tun_fill_encap_opts_geneve()
762 nla_nest_end(skb, nest); in ip_tun_fill_encap_opts_geneve()
770 struct nlattr *nest; in ip_tun_fill_encap_opts_vxlan() local
772 nest = nla_nest_start_noflag(skb, LWTUNNEL_IP_OPTS_VXLAN); in ip_tun_fill_encap_opts_vxlan()
773 if (!nest) in ip_tun_fill_encap_opts_vxlan()
778 nla_nest_cancel(skb, nest); in ip_tun_fill_encap_opts_vxlan()
782 nla_nest_end(skb, nest); in ip_tun_fill_encap_opts_vxlan()
[all …]
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()
/kernel/linux/linux-5.10/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()
370 unsigned int nest; in perf_aux_output_begin() local
401 nest = READ_ONCE(rb->aux_nest); in perf_aux_output_begin()
406 if (WARN_ON_ONCE(nest)) in perf_aux_output_begin()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/net/core/
Dlwtunnel.c231 struct nlattr *nest; in lwtunnel_fill_encap() local
241 nest = nla_nest_start_noflag(skb, encap_attr); in lwtunnel_fill_encap()
242 if (!nest) in lwtunnel_fill_encap()
254 nla_nest_end(skb, nest); in lwtunnel_fill_encap()
262 nla_nest_cancel(skb, nest); in lwtunnel_fill_encap()
/kernel/linux/linux-5.10/drivers/net/bonding/
Dbond_netlink.c654 struct nlattr *nest; in bond_fill_info() local
656 nest = nla_nest_start_noflag(skb, IFLA_BOND_AD_INFO); in bond_fill_info()
657 if (!nest) in bond_fill_info()
677 nla_nest_end(skb, nest); in bond_fill_info()
706 struct nlattr *nest, *nest2; in bond_fill_linkxstats() local
723 nest = nla_nest_start_noflag(skb, LINK_XSTATS_TYPE_BOND); in bond_fill_linkxstats()
724 if (!nest) in bond_fill_linkxstats()
736 nla_nest_end(skb, nest); in bond_fill_linkxstats()
742 nla_nest_end(skb, nest); in bond_fill_linkxstats()
747 nla_nest_end(skb, nest); in bond_fill_linkxstats()
/kernel/linux/linux-5.10/lib/
Drhashtable.c57 if (unlikely(tbl->nest)) in lockdep_rht_bucket_is_held()
96 unsigned int size = tbl->size >> tbl->nest; in nested_bucket_table_free()
97 unsigned int len = 1 << tbl->nest; in nested_bucket_table_free()
111 if (tbl->nest) in bucket_table_free()
170 tbl->nest = (ilog2(nbuckets) - 1) % shift + 1; in nested_bucket_table_alloc()
235 if (new_tbl->nest) in rhashtable_rehash_one()
423 else if (tbl->nest) in rht_deferred_worker()
1178 unsigned int index = hash & ((1 << tbl->nest) - 1); in __rht_bucket_nested()
1179 unsigned int size = tbl->size >> tbl->nest; in __rht_bucket_nested()
1185 subhash >>= tbl->nest; in __rht_bucket_nested()
[all …]
/kernel/linux/linux-5.10/net/netlink/
Dgenetlink.c846 struct nlattr *nest; in ctrl_fill_info() local
859 nest = nla_nest_start_noflag(skb, i + 1); in ctrl_fill_info()
860 if (nest == NULL) in ctrl_fill_info()
867 nla_nest_end(skb, nest); in ctrl_fill_info()
882 struct nlattr *nest; in ctrl_fill_info() local
887 nest = nla_nest_start_noflag(skb, i + 1); in ctrl_fill_info()
888 if (nest == NULL) in ctrl_fill_info()
897 nla_nest_end(skb, nest); in ctrl_fill_info()
917 struct nlattr *nest; in ctrl_fill_mcgrp_info() local
931 nest = nla_nest_start_noflag(skb, 1); in ctrl_fill_mcgrp_info()
[all …]
/kernel/linux/linux-5.10/fs/btrfs/
Dlocking.h88 void __btrfs_tree_lock(struct extent_buffer *eb, enum btrfs_lock_nesting nest);
92 void __btrfs_tree_read_lock(struct extent_buffer *eb, enum btrfs_lock_nesting nest,

12345