Home
last modified time | relevance | path

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

1234

/linux/net/ethtool/
H A Dcabletest.c136 phydev->nest = nla_nest_start(phydev->skb, in ethnl_cable_test_alloc()
138 if (!phydev->nest) { in ethnl_cable_test_alloc()
161 nla_nest_end(phydev->skb, phydev->nest); in ethnl_cable_test_finished()
172 struct nlattr *nest; in ethnl_cable_test_result_with_src() local
175 nest = nla_nest_start(phydev->skb, ETHTOOL_A_CABLE_NEST_RESULT); in ethnl_cable_test_result_with_src()
176 if (!nest) in ethnl_cable_test_result_with_src()
188 nla_nest_end(phydev->skb, nest); in ethnl_cable_test_result_with_src()
192 nla_nest_cancel(phydev->skb, nest); in ethnl_cable_test_result_with_src()
200 struct nlattr *nest; in ethnl_cable_test_fault_length_with_src() local
203 nest = nla_nest_start(phydev->skb, in ethnl_cable_test_fault_length_with_src()
[all …]
H A Dtsinfo.c41 int ts_parse_hwtst_provider(const struct nlattr *nest, in ts_parse_hwtst_provider() argument
51 nest, in ts_parse_hwtst_provider()
56 if (NL_REQ_ATTR_CHECK(extack, nest, tb, in ts_parse_hwtst_provider()
58 NL_REQ_ATTR_CHECK(extack, nest, tb, in ts_parse_hwtst_provider()
188 struct nlattr *nest; in tsinfo_put_stats()
190 nest = nla_nest_start(skb, ETHTOOL_A_TSINFO_STATS); in tsinfo_put_stats()
191 if (!nest) in tsinfo_put_stats()
204 nla_nest_end(skb, nest); in tsinfo_put_stats()
208 nla_nest_cancel(skb, nest); in tsinfo_fill_reply()
246 struct nlattr *nest; in tsinfo_fill_reply()
182 struct nlattr *nest; tsinfo_put_stats() local
240 struct nlattr *nest; tsinfo_fill_reply() local
[all...]
H A Dstrset.c170 static int strset_get_id(const struct nlattr *nest, u32 *val, in strset_get_id() argument
176 ret = nla_parse_nested(tb, ARRAY_SIZE(get_stringset_policy) - 1, nest, in strset_get_id()
180 if (NL_REQ_ATTR_CHECK(extack, nest, tb, ETHTOOL_A_STRINGSET_ID)) in strset_get_id()
196 struct nlattr *nest = tb[ETHTOOL_A_STRSET_STRINGSETS]; in strset_parse_request() local
200 if (!nest) in strset_parse_request()
202 ret = nla_validate_nested(nest, in strset_parse_request()
209 nla_for_each_nested(attr, nest, rem) { in strset_parse_request()
461 struct nlattr *nest; in strset_fill_reply() local
465 nest = nla_nest_start(skb, ETHTOOL_A_STRSET_STRINGSETS); in strset_fill_reply()
466 if (!nest) in strset_fill_reply()
[all …]
H A Dstats.c242 struct nlattr *nest; in stat_put() local
260 nest = nla_nest_start(skb, ETHTOOL_A_STATS_GRP_STAT); in stat_put()
261 if (!nest) in stat_put()
266 nla_nest_cancel(skb, nest); in stat_put()
270 nla_nest_end(skb, nest); in stat_put()
369 struct nlattr *nest; in stats_put_rmon_hist() local
381 nest = nla_nest_start(skb, attr); in stats_put_rmon_hist()
382 if (!nest) in stats_put_rmon_hist()
393 nla_nest_end(skb, nest); in stats_put_rmon_hist()
399 nla_nest_cancel(skb, nest); in stats_put_rmon_hist()
[all …]
H A Dpause.c121 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()
H A Dpse-pd.c130 struct nlattr *nest; in pse_put_pw_limit_ranges() local
132 nest = nla_nest_start(skb, ETHTOOL_A_C33_PSE_PW_LIMIT_RANGES); in pse_put_pw_limit_ranges()
133 if (!nest) in pse_put_pw_limit_ranges()
140 nla_nest_cancel(skb, nest); in pse_put_pw_limit_ranges()
143 nla_nest_end(skb, nest); in pse_put_pw_limit_ranges()
H A 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()
521 const struct nlattr *nest, in ethnl_compact_sanity_checks() argument
535 NL_SET_ERR_MSG_ATTR(extack, nest, in ethnl_compact_sanity_checks()
540 NL_SET_ERR_MSG_ATTR(extack, nest, in ethnl_compact_sanity_checks()
545 NL_SET_ERR_MSG_ATTR(extack, nest, in ethnl_compact_sanity_checks()
/linux/net/netfilter/
H A Dnfnetlink_hook.c63 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()
115 struct nlattr *nest; in nfnl_hook_put_nft_info_desc() local
[all …]
H A Dnft_tunnel.c543 struct nlattr *nest; in nft_tunnel_ip_dump() local
546 nest = nla_nest_start_noflag(skb, NFTA_TUNNEL_KEY_IP6); in nft_tunnel_ip_dump()
547 if (!nest) in nft_tunnel_ip_dump()
556 nla_nest_cancel(skb, nest); in nft_tunnel_ip_dump()
560 nla_nest_end(skb, nest); in nft_tunnel_ip_dump()
562 nest = nla_nest_start_noflag(skb, NFTA_TUNNEL_KEY_IP); in nft_tunnel_ip_dump()
563 if (!nest) in nft_tunnel_ip_dump()
570 nla_nest_cancel(skb, nest); in nft_tunnel_ip_dump()
574 nla_nest_end(skb, nest); in nft_tunnel_ip_dump()
584 struct nlattr *nest, *inne in nft_tunnel_opts_dump() local
[all...]
/linux/tools/testing/selftests/net/netfilter/
H A Dconntrack_dump_flush.c24 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()
54 struct nlattr *nest, *nest_ip, *nest_proto; in build_cta_tuple_v6() local
56 nest = mnl_attr_nest_start(nlh, type); in build_cta_tuple_v6()
57 if (!nest) in build_cta_tuple_v6()
75 mnl_attr_nest_end(nlh, nest); in build_cta_tuple_v6()
82 struct nlattr *nest, *nest_proto; in build_cta_proto() local
84 nest = mnl_attr_nest_start(nlh, CTA_PROTOINFO); in build_cta_proto()
[all …]
/linux/net/8021q/
H A Dvlan_netlink.c227 struct nlattr *nest; in vlan_fill_info() local
240 nest = nla_nest_start_noflag(skb, IFLA_VLAN_INGRESS_QOS); in vlan_fill_info()
241 if (nest == NULL) in vlan_fill_info()
254 nla_nest_end(skb, nest); in vlan_fill_info()
258 nest = nla_nest_start_noflag(skb, IFLA_VLAN_EGRESS_QOS); in vlan_fill_info()
259 if (nest == NULL) in vlan_fill_info()
275 nla_nest_end(skb, nest); in vlan_fill_info()
/linux/tools/testing/selftests/net/mptcp/
H A Dpm_nl_ctl.c776 struct rtattr *rta, *nest; in add_addr()
794 nest = (void *)(data + off); in add_addr()
795 nest->rta_type = NLA_F_NESTED | MPTCP_PM_ATTR_ADDR; in add_addr()
796 nest->rta_len = RTA_LENGTH(0); in add_addr()
797 off += NLMSG_ALIGN(nest->rta_len); in add_addr()
900 nest->rta_len = off - nest_start; in add_addr()
911 struct rtattr *rta, *nest; in del_addr()
933 nest = (void *)(data + off); in del_addr()
934 nest->rta_type = NLA_F_NESTED | MPTCP_PM_ATTR_ADDR; in del_addr()
935 nest in del_addr()
774 struct rtattr *rta, *nest; add_addr() local
907 struct rtattr *rta, *nest; del_addr() local
1105 struct rtattr *rta, *nest; get_addr() local
1344 struct rtattr *rta, *nest; set_flags() local
[all...]
/linux/kernel/events/
H A Dring_buffer.c50 (*(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()
378 unsigned int nest; in perf_aux_output_begin() local
409 nest = READ_ONCE(rb->aux_nest); in perf_aux_output_begin()
414 if (WARN_ON_ONCE(nest)) in perf_aux_output_begin()
[all …]
/linux/net/ipv4/
H A Dip_tunnel_core.c749 struct nlattr *nest; in ip_tun_fill_encap_opts_geneve() local
752 nest = nla_nest_start_noflag(skb, LWTUNNEL_IP_OPTS_GENEVE); in ip_tun_fill_encap_opts_geneve()
753 if (!nest) in ip_tun_fill_encap_opts_geneve()
763 nla_nest_cancel(skb, nest); in ip_tun_fill_encap_opts_geneve()
769 nla_nest_end(skb, nest); in ip_tun_fill_encap_opts_geneve()
777 struct nlattr *nest; in ip_tun_fill_encap_opts_vxlan() local
779 nest = nla_nest_start_noflag(skb, LWTUNNEL_IP_OPTS_VXLAN); in ip_tun_fill_encap_opts_vxlan()
780 if (!nest) in ip_tun_fill_encap_opts_vxlan()
785 nla_nest_cancel(skb, nest); in ip_tun_fill_encap_opts_vxlan()
789 nla_nest_end(skb, nest); in ip_tun_fill_encap_opts_vxlan()
[all …]
/linux/net/sched/
H A Dcls_cgroup.c176 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()
H A Dsch_ets.c309 struct nlattr *nest; in ets_class_dump() local
315 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in ets_class_dump()
316 if (!nest) in ets_class_dump()
322 return nla_nest_end(skb, nest); in ets_class_dump()
325 nla_nest_cancel(skb, nest); in ets_class_dump()
745 struct nlattr *nest; in ets_qdisc_dump()
768 nest = nla_nest_start(skb, TCA_ETS_QUANTA); in ets_qdisc_dump()
769 if (!nest) in ets_qdisc_dump()
778 nla_nest_end(skb, nest); in ets_qdisc_dump()
781 nest in ets_qdisc_dump()
741 struct nlattr *nest; ets_qdisc_dump() local
[all...]
H A Dsch_ingress.c136 struct nlattr *nest; in ingress_dump() local
138 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in ingress_dump()
139 if (nest == NULL) in ingress_dump()
142 return nla_nest_end(skb, nest); in ingress_dump()
145 nla_nest_cancel(skb, nest); in ingress_dump()
/linux/scripts/kconfig/
H A Dpreprocess.c355 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/net/core/
H A Dpage_pool_user.c119 struct nlattr *nest; in page_pool_nl_stats_fill() local
129 nest = nla_nest_start(rsp, NETDEV_A_PAGE_POOL_STATS_INFO); in page_pool_nl_stats_fill()
137 nla_nest_end(rsp, nest); in page_pool_nl_stats_fill()
167 nla_nest_cancel(rsp, nest); in page_pool_nl_stats_fill()
181 struct nlattr *nest; in netdev_nl_page_pool_stats_get_doit() local
188 nest = info->attrs[NETDEV_A_PAGE_POOL_STATS_INFO]; in netdev_nl_page_pool_stats_get_doit()
189 err = nla_parse_nested(tb, ARRAY_SIZE(tb) - 1, nest, in netdev_nl_page_pool_stats_get_doit()
195 if (NL_REQ_ATTR_CHECK(info->extack, nest, tb, NETDEV_A_PAGE_POOL_ID)) in netdev_nl_page_pool_stats_get_doit()
H A Dlwtunnel.c233 struct nlattr *nest; in lwtunnel_fill_encap() local
243 nest = nla_nest_start_noflag(skb, encap_attr); in lwtunnel_fill_encap()
244 if (!nest) in lwtunnel_fill_encap()
256 nla_nest_end(skb, nest); in lwtunnel_fill_encap()
264 nla_nest_cancel(skb, nest); in lwtunnel_fill_encap()
/linux/net/bridge/
H A 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()
180 struct nlattr *nest, *nest_ent; in __mdb_fill_srcs()
185 nest = nla_nest_start(skb, MDBA_MDB_EATTR_SRC_LIST); in __mdb_fill_srcs()
186 if (!nest) in __mdb_fill_srcs()
223 nla_nest_end(skb, nest); in __mdb_fill_srcs()
228 nla_nest_cancel(skb, nest); in __mdb_fill_srcs()
178 struct nlattr *nest, *nest_ent; __mdb_fill_srcs() local
324 struct nlattr *nest, *nest2; br_mdb_fill_info() local
421 struct nlattr *nest, *nest2; nlmsg_populate_mdb_fill() local
552 struct nlattr *nest, *port_nest; nlmsg_populate_rtr_fill() local
[all...]
H A 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()
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/drivers/net/can/dev/
H A Dnetlink.c869 struct nlattr *nest; in can_tdc_fill_info() local
887 nest = nla_nest_start(skb, ifla_can_tdc); in can_tdc_fill_info()
888 if (!nest) in can_tdc_fill_info()
922 nla_nest_end(skb, nest); in can_tdc_fill_info()
926 nla_nest_cancel(skb, nest); in can_tdc_fill_info()
934 struct nlattr *nest; in can_pwm_fill_info() local
939 nest = nla_nest_start(skb, IFLA_CAN_XL_PWM); in can_pwm_fill_info()
940 if (!nest) in can_pwm_fill_info()
958 nla_nest_end(skb, nest); in can_pwm_fill_info()
962 nla_nest_cancel(skb, nest); in can_pwm_fill_info()
[all …]
/linux/fs/btrfs/
H A Dlocking.c138 void btrfs_tree_read_lock_nested(struct extent_buffer *eb, enum btrfs_lock_nesting nest) in btrfs_tree_read_lock_nested() argument
145 down_read_nested(&eb->lock, nest); in btrfs_tree_read_lock_nested()
180 void btrfs_tree_lock_nested(struct extent_buffer *eb, enum btrfs_lock_nesting nest) in btrfs_tree_lock_nested() argument
188 down_write_nested(&eb->lock, nest); in btrfs_tree_lock_nested()
/linux/drivers/dpll/
H A Ddpll_netlink.c390 struct nlattr *nest; in dpll_msg_add_pin_freq() local
404 nest = nla_nest_start(msg, DPLL_A_PIN_FREQUENCY_SUPPORTED); in dpll_msg_add_pin_freq()
405 if (!nest) in dpll_msg_add_pin_freq()
410 nla_nest_cancel(msg, nest); in dpll_msg_add_pin_freq()
416 nla_nest_cancel(msg, nest); in dpll_msg_add_pin_freq()
419 nla_nest_end(msg, nest); in dpll_msg_add_pin_freq()
432 struct nlattr *nest; in dpll_msg_add_pin_esync() local
449 nest = nla_nest_start(msg, in dpll_msg_add_pin_esync()
451 if (!nest) in dpll_msg_add_pin_esync()
461 nla_nest_end(msg, nest); in dpll_msg_add_pin_esync()
[all …]

1234