/linux-6.12.1/net/ethtool/ |
D | cabletest.c | 133 phydev->nest = nla_nest_start(phydev->skb, in ethnl_cable_test_alloc() 135 if (!phydev->nest) { in ethnl_cable_test_alloc() 158 nla_nest_end(phydev->skb, phydev->nest); in ethnl_cable_test_finished() 169 struct nlattr *nest; in ethnl_cable_test_result_with_src() local 172 nest = nla_nest_start(phydev->skb, ETHTOOL_A_CABLE_NEST_RESULT); in ethnl_cable_test_result_with_src() 173 if (!nest) in ethnl_cable_test_result_with_src() 185 nla_nest_end(phydev->skb, nest); in ethnl_cable_test_result_with_src() 189 nla_nest_cancel(phydev->skb, nest); in ethnl_cable_test_result_with_src() 197 struct nlattr *nest; in ethnl_cable_test_fault_length_with_src() local 200 nest = nla_nest_start(phydev->skb, in ethnl_cable_test_fault_length_with_src() [all …]
|
D | strset.c | 160 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() 451 struct nlattr *nest; in strset_fill_reply() local 455 nest = nla_nest_start(skb, ETHTOOL_A_STRSET_STRINGSETS); in strset_fill_reply() 456 if (!nest) in strset_fill_reply() [all …]
|
D | stats.c | 209 struct nlattr *nest; in stat_put() local 227 nest = nla_nest_start(skb, ETHTOOL_A_STATS_GRP_STAT); in stat_put() 228 if (!nest) in stat_put() 233 nla_nest_cancel(skb, nest); in stat_put() 237 nla_nest_end(skb, nest); in stat_put() 317 struct nlattr *nest; in stats_put_rmon_hist() local 329 nest = nla_nest_start(skb, attr); in stats_put_rmon_hist() 330 if (!nest) in stats_put_rmon_hist() 341 nla_nest_end(skb, nest); in stats_put_rmon_hist() 347 nla_nest_cancel(skb, nest); in stats_put_rmon_hist() [all …]
|
D | tsinfo.c | 111 struct nlattr *nest; in tsinfo_put_stats() local 113 nest = nla_nest_start(skb, ETHTOOL_A_TSINFO_STATS); in tsinfo_put_stats() 114 if (!nest) in tsinfo_put_stats() 125 nla_nest_end(skb, nest); in tsinfo_put_stats() 129 nla_nest_cancel(skb, nest); in tsinfo_put_stats()
|
D | pause.c | 121 struct nlattr *nest; in pause_put_stats() local 126 nest = nla_nest_start(skb, ETHTOOL_A_PAUSE_STATS); in pause_put_stats() 127 if (!nest) in pause_put_stats() 136 nla_nest_end(skb, nest); in pause_put_stats() 140 nla_nest_cancel(skb, nest); in pause_put_stats()
|
D | pse-pd.c | 124 struct nlattr *nest; in pse_put_pw_limit_ranges() local 126 nest = nla_nest_start(skb, ETHTOOL_A_C33_PSE_PW_LIMIT_RANGES); in pse_put_pw_limit_ranges() 127 if (!nest) in pse_put_pw_limit_ranges() 134 nla_nest_cancel(skb, nest); in pse_put_pw_limit_ranges() 137 nla_nest_end(skb, nest); in pse_put_pw_limit_ranges()
|
D | mm.c | 96 struct nlattr *nest; in mm_put_stats() local 98 nest = nla_nest_start(skb, ETHTOOL_A_MM_STATS); in mm_put_stats() 99 if (!nest) in mm_put_stats() 116 nla_nest_end(skb, nest); in mm_put_stats() 120 nla_nest_cancel(skb, nest); in mm_put_stats()
|
D | bitset.c | 236 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()
|
D | fec.c | 169 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-6.12.1/net/netfilter/ |
D | nfnetlink_hook.c | 63 struct nlattr *nest = nla_nest_start(nlskb, NFNLA_HOOK_CHAIN_INFO); in nfnl_start_info_type() local 66 if (!nest) in nfnl_start_info_type() 71 return nest; in nfnl_start_info_type() 73 nla_nest_cancel(nlskb, nest); in nfnl_start_info_type() 82 struct nlattr *nest, *nest2; in nfnl_hook_put_bpf_prog_info() local 91 nest = nfnl_start_info_type(nlskb, NFNL_HOOK_TYPE_BPF); in nfnl_hook_put_bpf_prog_info() 92 if (!nest) in nfnl_hook_put_bpf_prog_info() 104 nla_nest_end(nlskb, nest); in nfnl_hook_put_bpf_prog_info() 108 nla_nest_cancel(nlskb, nest); in nfnl_hook_put_bpf_prog_info() 118 struct nlattr *nest, *nest2; in nfnl_hook_put_nft_chain_info() local [all …]
|
D | nft_tunnel.c | 546 struct nlattr *nest; in nft_tunnel_ip_dump() local 549 nest = nla_nest_start_noflag(skb, NFTA_TUNNEL_KEY_IP6); in nft_tunnel_ip_dump() 550 if (!nest) in nft_tunnel_ip_dump() 559 nla_nest_cancel(skb, nest); in nft_tunnel_ip_dump() 563 nla_nest_end(skb, nest); in nft_tunnel_ip_dump() 565 nest = nla_nest_start_noflag(skb, NFTA_TUNNEL_KEY_IP); in nft_tunnel_ip_dump() 566 if (!nest) in nft_tunnel_ip_dump() 573 nla_nest_cancel(skb, nest); in nft_tunnel_ip_dump() 577 nla_nest_end(skb, nest); in nft_tunnel_ip_dump() 587 struct nlattr *nest, *inner; in nft_tunnel_opts_dump() local [all …]
|
/linux-6.12.1/tools/testing/selftests/net/netfilter/ |
D | conntrack_dump_flush.c | 24 struct nlattr *nest, *nest_ip, *nest_proto; in build_cta_tuple_v4() local 26 nest = mnl_attr_nest_start(nlh, type); in build_cta_tuple_v4() 27 if (!nest) in build_cta_tuple_v4() 45 mnl_attr_nest_end(nlh, nest); in build_cta_tuple_v4() 52 struct nlattr *nest, *nest_ip, *nest_proto; in build_cta_tuple_v6() local 54 nest = mnl_attr_nest_start(nlh, type); in build_cta_tuple_v6() 55 if (!nest) in build_cta_tuple_v6() 73 mnl_attr_nest_end(nlh, nest); in build_cta_tuple_v6() 78 struct nlattr *nest, *nest_proto; in build_cta_proto() local 80 nest = mnl_attr_nest_start(nlh, CTA_PROTOINFO); in build_cta_proto() [all …]
|
/linux-6.12.1/net/8021q/ |
D | vlan_netlink.c | 226 struct nlattr *nest; in vlan_fill_info() local 239 nest = nla_nest_start_noflag(skb, IFLA_VLAN_INGRESS_QOS); in vlan_fill_info() 240 if (nest == NULL) in vlan_fill_info() 253 nla_nest_end(skb, nest); in vlan_fill_info() 257 nest = nla_nest_start_noflag(skb, IFLA_VLAN_EGRESS_QOS); in vlan_fill_info() 258 if (nest == NULL) in vlan_fill_info() 274 nla_nest_end(skb, nest); in vlan_fill_info()
|
/linux-6.12.1/tools/testing/selftests/net/mptcp/ |
D | pm_nl_ctl.c | 760 struct rtattr *rta, *nest; in add_addr() local 778 nest = (void *)(data + off); in add_addr() 779 nest->rta_type = NLA_F_NESTED | MPTCP_PM_ATTR_ADDR; in add_addr() 780 nest->rta_len = RTA_LENGTH(0); in add_addr() 781 off += NLMSG_ALIGN(nest->rta_len); in add_addr() 880 nest->rta_len = off - nest_start; in add_addr() 891 struct rtattr *rta, *nest; in del_addr() local 913 nest = (void *)(data + off); in del_addr() 914 nest->rta_type = NLA_F_NESTED | MPTCP_PM_ATTR_ADDR; in del_addr() 915 nest->rta_len = RTA_LENGTH(0); in del_addr() [all …]
|
/linux-6.12.1/kernel/events/ |
D | ring_buffer.c | 50 (*(volatile unsigned int *)&rb->nest)++; in perf_output_get_handle() 58 unsigned int nest; in perf_output_put_handle() local 64 nest = READ_ONCE(rb->nest); in perf_output_put_handle() 65 if (nest > 1) { in perf_output_put_handle() 66 WRITE_ONCE(rb->nest, nest - 1); in perf_output_put_handle() 122 WRITE_ONCE(rb->nest, 0); in perf_output_put_handle() 130 WRITE_ONCE(rb->nest, 1); in perf_output_put_handle() 377 unsigned int nest; in perf_aux_output_begin() local 408 nest = READ_ONCE(rb->aux_nest); in perf_aux_output_begin() 413 if (WARN_ON_ONCE(nest)) in perf_aux_output_begin() [all …]
|
/linux-6.12.1/net/ipv4/ |
D | ip_tunnel_core.c | 741 struct nlattr *nest; in ip_tun_fill_encap_opts_geneve() local 744 nest = nla_nest_start_noflag(skb, LWTUNNEL_IP_OPTS_GENEVE); in ip_tun_fill_encap_opts_geneve() 745 if (!nest) in ip_tun_fill_encap_opts_geneve() 755 nla_nest_cancel(skb, nest); in ip_tun_fill_encap_opts_geneve() 761 nla_nest_end(skb, nest); in ip_tun_fill_encap_opts_geneve() 769 struct nlattr *nest; in ip_tun_fill_encap_opts_vxlan() local 771 nest = nla_nest_start_noflag(skb, LWTUNNEL_IP_OPTS_VXLAN); in ip_tun_fill_encap_opts_vxlan() 772 if (!nest) in ip_tun_fill_encap_opts_vxlan() 777 nla_nest_cancel(skb, nest); in ip_tun_fill_encap_opts_vxlan() 781 nla_nest_end(skb, nest); in ip_tun_fill_encap_opts_vxlan() [all …]
|
D | tcp_diag.c | 88 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-6.12.1/net/sched/ |
D | cls_cgroup.c | 176 struct nlattr *nest; in cls_cgroup_dump() local 180 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in cls_cgroup_dump() 181 if (nest == NULL) in cls_cgroup_dump() 188 nla_nest_end(skb, nest); in cls_cgroup_dump() 196 nla_nest_cancel(skb, nest); in cls_cgroup_dump()
|
D | act_api.c | 513 struct nlattr *nest; in tcf_dump_walker() local 537 nest = nla_nest_start_noflag(skb, n_i); in tcf_dump_walker() 538 if (!nest) { in tcf_dump_walker() 547 nlmsg_trim(skb, nest); in tcf_dump_walker() 550 nla_nest_end(skb, nest); in tcf_dump_walker() 568 nla_nest_cancel(skb, nest); in tcf_dump_walker() 590 struct nlattr *nest; in tcf_del_walker() local 598 nest = nla_nest_start_noflag(skb, 0); in tcf_del_walker() 599 if (nest == NULL) in tcf_del_walker() 627 nla_nest_end(skb, nest); in tcf_del_walker() [all …]
|
D | sch_ets.c | 302 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 758 nest = nla_nest_start(skb, TCA_ETS_QUANTA); in ets_qdisc_dump() 759 if (!nest) in ets_qdisc_dump() 768 nla_nest_end(skb, nest); in ets_qdisc_dump() 771 nest = nla_nest_start(skb, TCA_ETS_PRIOMAP); in ets_qdisc_dump() [all …]
|
/linux-6.12.1/scripts/kconfig/ |
D | preprocess.c | 355 int nest = 0; in eval_clause() local 389 if (nest == 0 && *p == ',') { in eval_clause() 396 nest++; in eval_clause() 398 nest--; in eval_clause() 464 int nest = 0; in expand_dollar_with_args() local 480 nest++; in expand_dollar_with_args() 482 if (nest-- == 0) in expand_dollar_with_args()
|
/linux-6.12.1/net/core/ |
D | page_pool_user.c | 117 struct nlattr *nest; in page_pool_nl_stats_fill() local 127 nest = nla_nest_start(rsp, NETDEV_A_PAGE_POOL_STATS_INFO); in page_pool_nl_stats_fill() 135 nla_nest_end(rsp, nest); in page_pool_nl_stats_fill() 165 nla_nest_cancel(rsp, nest); in page_pool_nl_stats_fill() 179 struct nlattr *nest; in netdev_nl_page_pool_stats_get_doit() local 186 nest = info->attrs[NETDEV_A_PAGE_POOL_STATS_INFO]; in netdev_nl_page_pool_stats_get_doit() 187 err = nla_parse_nested(tb, ARRAY_SIZE(tb) - 1, nest, in netdev_nl_page_pool_stats_get_doit() 193 if (NL_REQ_ATTR_CHECK(info->extack, nest, tb, NETDEV_A_PAGE_POOL_ID)) in netdev_nl_page_pool_stats_get_doit()
|
/linux-6.12.1/net/bridge/ |
D | br_mdb.c | 76 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 …]
|
D | br_vlan_options.c | 15 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() 354 struct nlattr *nest; in br_vlan_global_opts_fill() local 356 nest = nla_nest_start(skb, BRIDGE_VLANDB_GLOBAL_OPTIONS); in br_vlan_global_opts_fill() 357 if (!nest) in br_vlan_global_opts_fill() 434 nla_nest_end(skb, nest); in br_vlan_global_opts_fill() 439 nla_nest_cancel(skb, nest); in br_vlan_global_opts_fill()
|
/linux-6.12.1/drivers/net/can/dev/ |
D | netlink.c | 469 struct nlattr *nest; in can_tdc_fill_info() local 477 nest = nla_nest_start(skb, IFLA_CAN_TDC); in can_tdc_fill_info() 478 if (!nest) in can_tdc_fill_info() 512 nla_nest_end(skb, nest); in can_tdc_fill_info() 516 nla_nest_cancel(skb, nest); in can_tdc_fill_info() 523 struct nlattr *nest; in can_ctrlmode_ext_fill_info() local 525 nest = nla_nest_start(skb, IFLA_CAN_CTRLMODE_EXT); in can_ctrlmode_ext_fill_info() 526 if (!nest) in can_ctrlmode_ext_fill_info() 531 nla_nest_cancel(skb, nest); in can_ctrlmode_ext_fill_info() 535 nla_nest_end(skb, nest); in can_ctrlmode_ext_fill_info()
|