Home
last modified time | relevance | path

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

12345

/Linux-v6.1/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 …]
Dstats.c183 struct nlattr *nest; in stat_put() local
201 nest = nla_nest_start(skb, ETHTOOL_A_STATS_GRP_STAT); in stat_put()
202 if (!nest) in stat_put()
207 nla_nest_cancel(skb, nest); in stat_put()
211 nla_nest_end(skb, nest); in stat_put()
291 struct nlattr *nest; in stats_put_rmon_hist() local
303 nest = nla_nest_start(skb, attr); in stats_put_rmon_hist()
304 if (!nest) in stats_put_rmon_hist()
315 nla_nest_end(skb, nest); in stats_put_rmon_hist()
321 nla_nest_cancel(skb, nest); in stats_put_rmon_hist()
[all …]
Dstrset.c160 static int strset_get_id(const struct nlattr *nest, u32 *val, in strset_get_id() argument
166 ret = nla_parse_nested(tb, ARRAY_SIZE(get_stringset_policy) - 1, nest, in strset_get_id()
170 if (NL_REQ_ATTR_CHECK(extack, nest, tb, ETHTOOL_A_STRINGSET_ID)) in strset_get_id()
186 struct nlattr *nest = tb[ETHTOOL_A_STRSET_STRINGSETS]; in strset_parse_request() local
190 if (!nest) in strset_parse_request()
192 ret = nla_validate_nested(nest, in strset_parse_request()
199 nla_for_each_nested(attr, nest, rem) { in strset_parse_request()
442 struct nlattr *nest; in strset_fill_reply() local
446 nest = nla_nest_start(skb, ETHTOOL_A_STRSET_STRINGSETS); in strset_fill_reply()
447 if (!nest) in strset_fill_reply()
[all …]
Dpause.c78 struct nlattr *nest; in pause_put_stats() local
80 nest = nla_nest_start(skb, ETHTOOL_A_PAUSE_STATS); in pause_put_stats()
81 if (!nest) in pause_put_stats()
90 nla_nest_end(skb, nest); in pause_put_stats()
94 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()
Dfec.c169 struct nlattr *nest; in fec_put_stats() local
171 nest = nla_nest_start(skb, ETHTOOL_A_FEC_STATS); in fec_put_stats()
172 if (!nest) in fec_put_stats()
186 nla_nest_end(skb, nest); in fec_put_stats()
190 nla_nest_cancel(skb, nest); in fec_put_stats()
/Linux-v6.1/net/bridge/
Dbr_mdb.c76 struct nlattr *nest, *port_nest; in br_rports_fill_info() local
82 nest = nla_nest_start_noflag(skb, MDBA_ROUTER); in br_rports_fill_info()
83 if (nest == NULL) in br_rports_fill_info()
128 nla_nest_end(skb, nest); in br_rports_fill_info()
131 nla_nest_cancel(skb, nest); in br_rports_fill_info()
178 struct nlattr *nest, *nest_ent; in __mdb_fill_srcs() local
183 nest = nla_nest_start(skb, MDBA_MDB_EATTR_SRC_LIST); in __mdb_fill_srcs()
184 if (!nest) in __mdb_fill_srcs()
221 nla_nest_end(skb, nest); in __mdb_fill_srcs()
226 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()
311 struct nlattr *nest; in br_vlan_global_opts_fill() local
313 nest = nla_nest_start(skb, BRIDGE_VLANDB_GLOBAL_OPTIONS); in br_vlan_global_opts_fill()
314 if (!nest) in br_vlan_global_opts_fill()
391 nla_nest_end(skb, nest); in br_vlan_global_opts_fill()
396 nla_nest_cancel(skb, nest); in br_vlan_global_opts_fill()
/Linux-v6.1/net/8021q/
Dvlan_netlink.c224 struct nlattr *nest; in vlan_fill_info() local
237 nest = nla_nest_start_noflag(skb, IFLA_VLAN_INGRESS_QOS); in vlan_fill_info()
238 if (nest == NULL) in vlan_fill_info()
251 nla_nest_end(skb, nest); in vlan_fill_info()
255 nest = nla_nest_start_noflag(skb, IFLA_VLAN_EGRESS_QOS); in vlan_fill_info()
256 if (nest == NULL) in vlan_fill_info()
272 nla_nest_end(skb, nest); in vlan_fill_info()
/Linux-v6.1/tools/testing/selftests/net/mptcp/
Dpm_nl_ctl.c747 struct rtattr *rta, *nest; in add_addr() local
765 nest = (void *)(data + off); in add_addr()
766 nest->rta_type = NLA_F_NESTED | MPTCP_PM_ATTR_ADDR; in add_addr()
767 nest->rta_len = RTA_LENGTH(0); in add_addr()
768 off += NLMSG_ALIGN(nest->rta_len); in add_addr()
867 nest->rta_len = off - nest_start; in add_addr()
878 struct rtattr *rta, *nest; in del_addr() local
900 nest = (void *)(data + off); in del_addr()
901 nest->rta_type = NLA_F_NESTED | MPTCP_PM_ATTR_ADDR; in del_addr()
902 nest->rta_len = RTA_LENGTH(0); in del_addr()
[all …]
/Linux-v6.1/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 …]
/Linux-v6.1/net/sched/
Dact_api.c519 struct nlattr *nest; in tcf_dump_walker() local
541 nest = nla_nest_start_noflag(skb, n_i); in tcf_dump_walker()
542 if (!nest) { in tcf_dump_walker()
551 nlmsg_trim(skb, nest); in tcf_dump_walker()
554 nla_nest_end(skb, nest); in tcf_dump_walker()
572 nla_nest_cancel(skb, nest); in tcf_dump_walker()
594 struct nlattr *nest; in tcf_del_walker() local
602 nest = nla_nest_start_noflag(skb, 0); in tcf_del_walker()
603 if (nest == NULL) in tcf_del_walker()
631 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_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()
735 struct nlattr *nest; in ets_qdisc_dump() local
756 nest = nla_nest_start(skb, TCA_ETS_QUANTA); in ets_qdisc_dump()
757 if (!nest) in ets_qdisc_dump()
766 nla_nest_end(skb, nest); in ets_qdisc_dump()
769 nest = nla_nest_start(skb, TCA_ETS_PRIOMAP); in ets_qdisc_dump()
[all …]
Dsch_ingress.c110 struct nlattr *nest; in ingress_dump() local
112 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in ingress_dump()
113 if (nest == NULL) in ingress_dump()
116 return nla_nest_end(skb, nest); in ingress_dump()
119 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()
/Linux-v6.1/net/ipv4/
Dip_tunnel_core.c734 struct nlattr *nest; in ip_tun_fill_encap_opts_geneve() local
737 nest = nla_nest_start_noflag(skb, LWTUNNEL_IP_OPTS_GENEVE); in ip_tun_fill_encap_opts_geneve()
738 if (!nest) in ip_tun_fill_encap_opts_geneve()
748 nla_nest_cancel(skb, nest); in ip_tun_fill_encap_opts_geneve()
754 nla_nest_end(skb, nest); in ip_tun_fill_encap_opts_geneve()
762 struct nlattr *nest; in ip_tun_fill_encap_opts_vxlan() local
764 nest = nla_nest_start_noflag(skb, LWTUNNEL_IP_OPTS_VXLAN); in ip_tun_fill_encap_opts_vxlan()
765 if (!nest) in ip_tun_fill_encap_opts_vxlan()
770 nla_nest_cancel(skb, nest); in ip_tun_fill_encap_opts_vxlan()
774 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()
/Linux-v6.1/net/netfilter/
Dnft_tunnel.c539 struct nlattr *nest; in nft_tunnel_ip_dump() local
542 nest = nla_nest_start_noflag(skb, NFTA_TUNNEL_KEY_IP6); in nft_tunnel_ip_dump()
543 if (!nest) in nft_tunnel_ip_dump()
552 nla_nest_cancel(skb, nest); in nft_tunnel_ip_dump()
556 nla_nest_end(skb, nest); in nft_tunnel_ip_dump()
558 nest = nla_nest_start_noflag(skb, NFTA_TUNNEL_KEY_IP); in nft_tunnel_ip_dump()
559 if (!nest) in nft_tunnel_ip_dump()
566 nla_nest_cancel(skb, nest); in nft_tunnel_ip_dump()
570 nla_nest_end(skb, nest); in nft_tunnel_ip_dump()
580 struct nlattr *nest, *inner; in nft_tunnel_opts_dump() local
[all …]
/Linux-v6.1/drivers/net/can/dev/
Dnetlink.c434 struct nlattr *nest; in can_tdc_fill_info() local
442 nest = nla_nest_start(skb, IFLA_CAN_TDC); in can_tdc_fill_info()
443 if (!nest) in can_tdc_fill_info()
477 nla_nest_end(skb, nest); in can_tdc_fill_info()
481 nla_nest_cancel(skb, nest); in can_tdc_fill_info()
488 struct nlattr *nest; in can_ctrlmode_ext_fill_info() local
490 nest = nla_nest_start(skb, IFLA_CAN_CTRLMODE_EXT); in can_ctrlmode_ext_fill_info()
491 if (!nest) in can_ctrlmode_ext_fill_info()
496 nla_nest_cancel(skb, nest); in can_ctrlmode_ext_fill_info()
500 nla_nest_end(skb, nest); in can_ctrlmode_ext_fill_info()
/Linux-v6.1/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-v6.1/fs/btrfs/
Dlocking.c127 void __btrfs_tree_read_lock(struct extent_buffer *eb, enum btrfs_lock_nesting nest) in __btrfs_tree_read_lock() argument
134 down_read_nested(&eb->lock, nest); in __btrfs_tree_read_lock()
188 void __btrfs_tree_lock(struct extent_buffer *eb, enum btrfs_lock_nesting nest) in __btrfs_tree_lock() argument
196 down_write_nested(&eb->lock, nest); in __btrfs_tree_lock()
/Linux-v6.1/net/core/
Dlwtunnel.c239 struct nlattr *nest; in lwtunnel_fill_encap() local
249 nest = nla_nest_start_noflag(skb, encap_attr); in lwtunnel_fill_encap()
250 if (!nest) in lwtunnel_fill_encap()
262 nla_nest_end(skb, nest); in lwtunnel_fill_encap()
270 nla_nest_cancel(skb, nest); in lwtunnel_fill_encap()
/Linux-v6.1/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 …]
/Linux-v6.1/net/netlink/
Dgenetlink.c896 struct nlattr *nest; in ctrl_fill_info() local
909 nest = nla_nest_start_noflag(skb, i + 1); in ctrl_fill_info()
910 if (nest == NULL) in ctrl_fill_info()
917 nla_nest_end(skb, nest); in ctrl_fill_info()
932 struct nlattr *nest; in ctrl_fill_info() local
937 nest = nla_nest_start_noflag(skb, i + 1); in ctrl_fill_info()
938 if (nest == NULL) in ctrl_fill_info()
947 nla_nest_end(skb, nest); in ctrl_fill_info()
967 struct nlattr *nest; in ctrl_fill_mcgrp_info() local
981 nest = nla_nest_start_noflag(skb, 1); in ctrl_fill_mcgrp_info()
[all …]

12345