| /linux/net/netfilter/ |
| H A D | nfnetlink_hook.c | 62 struct nlattr *nest = nla_nest_start(nlskb, NFNLA_HOOK_CHAIN_INFO); in nfnl_start_info_type() 65 if (!nest) in nfnl_start_info_type() 70 return nest; in nfnl_start_info_type() 72 nla_nest_cancel(nlskb, nest); in nfnl_start_info_type() 81 struct nlattr *nest, *nest2; in nfnl_hook_put_bpf_prog_info() 90 nest = nfnl_start_info_type(nlskb, NFNL_HOOK_TYPE_BPF); in nfnl_hook_put_bpf_prog_info() 91 if (!nest) in nfnl_hook_put_bpf_prog_info() 103 nla_nest_end(nlskb, nest); in nfnl_hook_put_bpf_prog_info() 107 nla_nest_cancel(nlskb, nest); in nfnl_hook_put_bpf_prog_info() 114 struct nlattr *nest; in nfnl_hook_put_nft_info_desc() 63 struct nlattr *nest = nla_nest_start(nlskb, NFNLA_HOOK_CHAIN_INFO); nfnl_start_info_type() local 82 struct nlattr *nest, *nest2; nfnl_hook_put_bpf_prog_info() local 115 struct nlattr *nest; nfnl_hook_put_nft_info_desc() local 135 struct nlattr *nest; nfnl_hook_put_nft_chain_info() local 167 struct nlattr *nest; nfnl_hook_put_nft_ft_info() local [all...] |
| /linux/net/ethtool/ |
| H A D | strset.c | 176 static int strset_get_id(const struct nlattr *nest, u32 *val, in strset_get_id() 182 ret = nla_parse_nested(tb, ARRAY_SIZE(get_stringset_policy) - 1, nest, in strset_get_id() 186 if (NL_REQ_ATTR_CHECK(extack, nest, tb, ETHTOOL_A_STRINGSET_ID)) in strset_get_id() 203 struct nlattr *nest = tb[ETHTOOL_A_STRSET_STRINGSETS]; in strset_parse_request() 207 if (!nest) in strset_parse_request() 209 ret = nla_validate_nested(nest, in strset_parse_request() 216 nla_for_each_nested(attr, nest, rem) { in strset_parse_request() 349 /* calculate size of ETHTOOL_A_STRSET_STRINGSET nest for one string set */ in strset_set_size() 363 /* ETHTOOL_A_STRING_INDEX, ETHTOOL_A_STRING_VALUE, nest */ in strset_set_size() 469 struct nlattr *nest; in strset_fill_reply() 171 strset_get_id(const struct nlattr * nest,u32 * val,struct netlink_ext_ack * extack) strset_get_id() argument 198 struct nlattr *nest = tb[ETHTOOL_A_STRSET_STRINGSETS]; strset_parse_request() local 464 struct nlattr *nest; strset_fill_reply() local [all...] |
| H A D | pse-pd.c | 131 struct nlattr *nest; in pse_put_pw_limit_ranges() local 133 nest = nla_nest_start(skb, ETHTOOL_A_C33_PSE_PW_LIMIT_RANGES); in pse_put_pw_limit_ranges() 134 if (!nest) in pse_put_pw_limit_ranges() 141 nla_nest_cancel(skb, nest); in pse_put_pw_limit_ranges() 144 nla_nest_end(skb, nest); in pse_put_pw_limit_ranges()
|
| H A D | bitset.c | 206 /* bit nest */ in ethnl_bitset32_size() 209 /* bits nest */ in ethnl_bitset32_size() 213 /* outermost nest */ in ethnl_bitset32_size() 218 * ethnl_put_bitset32() - Put a bitset nest into a message 220 * @attrtype: attribute type for the bitset nest 237 struct nlattr *nest; in ethnl_put_bitset32() local 240 nest = nla_nest_start(skb, attrtype); in ethnl_put_bitset32() 241 if (!nest) in ethnl_put_bitset32() 298 nla_nest_end(skb, nest); in ethnl_put_bitset32() 302 nla_nest_cancel(skb, nest); in ethnl_put_bitset32() 522 ethnl_compact_sanity_checks(unsigned int nbits,const struct nlattr * nest,struct nlattr ** tb,struct netlink_ext_ack * extack) ethnl_compact_sanity_checks() argument [all...] |
| /linux/tools/testing/selftests/net/netfilter/ |
| H A 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() 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 in build_cta_proto() [all...] |
| /linux/tools/testing/selftests/net/mptcp/ |
| H A D | pm_nl_ctl.c | 774 struct rtattr *rta, *nest; in add_addr() 792 nest = (void *)(data + off); in add_addr() 793 nest->rta_type = NLA_F_NESTED | MPTCP_PM_ATTR_ADDR; in add_addr() 794 nest->rta_len = RTA_LENGTH(0); in add_addr() 795 off += NLMSG_ALIGN(nest->rta_len); in add_addr() 898 nest->rta_len = off - nest_start; in add_addr() 909 struct rtattr *rta, *nest; in del_addr() 931 nest = (void *)(data + off); in del_addr() 932 nest->rta_type = NLA_F_NESTED | MPTCP_PM_ATTR_ADDR; in del_addr() 933 nest in del_addr() 776 struct rtattr *rta, *nest; add_addr() local 911 struct rtattr *rta, *nest; del_addr() local 1116 struct rtattr *rta, *nest; get_addr() local 1355 struct rtattr *rta, *nest; set_flags() local [all...] |
| /linux/kernel/events/ |
| H A 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() 74 * incremented @rb->nest. in perf_output_put_handle() 117 * We must publish the head before decrementing the nest count, in perf_output_put_handle() 122 WRITE_ONCE(rb->nest, in perf_output_put_handle() 379 unsigned int nest; perf_aux_output_begin() local [all...] |
| /linux/net/ipv4/ |
| H A D | ip_tunnel_core.c | 790 struct nlattr *nest; in ip_tun_fill_encap_opts_geneve() 793 nest = nla_nest_start_noflag(skb, LWTUNNEL_IP_OPTS_GENEVE); in ip_tun_fill_encap_opts_geneve() 794 if (!nest) in ip_tun_fill_encap_opts_geneve() 804 nla_nest_cancel(skb, nest); in ip_tun_fill_encap_opts_geneve() 810 nla_nest_end(skb, nest); in ip_tun_fill_encap_opts_vxlan() local 818 struct nlattr *nest; in ip_tun_fill_encap_opts_vxlan() 820 nest = nla_nest_start_noflag(skb, LWTUNNEL_IP_OPTS_VXLAN); in ip_tun_fill_encap_opts_vxlan() 821 if (!nest) in ip_tun_fill_encap_opts_vxlan() 826 nla_nest_cancel(skb, nest); in ip_tun_fill_encap_opts_erspan() 830 nla_nest_end(skb, nest); in ip_tun_fill_encap_opts_erspan() local 782 struct nlattr *nest; ip_tun_fill_encap_opts_geneve() local 860 struct nlattr *nest; ip_tun_fill_encap_opts() local [all...] |
| /linux/net/sched/ |
| H A D | act_api.c | 527 struct nlattr *nest; in tcf_action_dump_1() 553 nest = nla_nest_start_noflag(skb, TCA_ACT_OPTIONS); in tcf_action_dump_1() 554 if (nest == NULL) in tcf_action_dump_1() 558 if (nla_nest_end_safe(skb, nest) < 0) in tcf_action_dump_1() 574 struct nlattr *nest; in tcf_dump_walker() 598 nest = nla_nest_start_noflag(skb, n_i); in tcf_dump_walker() 599 if (!nest) in tcf_dump_walker() 606 nla_nest_end(skb, nest); in tcf_dump_walker() 631 nla_nest_cancel(skb, nest); in tcf_idr_release_unsafe() 657 struct nlattr *nest; in tcf_del_walker() 520 struct nlattr *nest; tcf_action_dump_1() local 566 struct nlattr *nest; tcf_dump_walker() local 643 struct nlattr *nest; tcf_del_walker() local 1262 struct nlattr *nest; tcf_action_dump() local 1665 struct nlattr *nest; tca_get_fill() local 1770 struct nlattr *nest; tca_action_flush() local 2225 struct nlattr *nest; tc_dump_action() local [all...] |
| H A 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 if (nla_nest_end_safe(skb, nest) < 0) in cls_cgroup_dump() 197 nla_nest_cancel(skb, nest); in cls_cgroup_dump()
|
| H A D | sch_ets.c | 307 struct nlattr *nest; in ets_class_dump() local 313 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in ets_class_dump() 314 if (!nest) in ets_class_dump() 320 return nla_nest_end(skb, nest); in ets_class_dump() 323 nla_nest_cancel(skb, nest); in ets_class_dump() 745 struct nlattr *nest; in ets_qdisc_dump() local 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 = nla_nest_start(skb, TCA_ETS_PRIOMAP); in ets_qdisc_dump() [all …]
|
| H A D | cls_flower.c | 3202 struct nlattr *nest; in fl_dump_key_vxlan_opt() 3205 nest = nla_nest_start_noflag(skb, TCA_FLOWER_KEY_ENC_OPTS_GENEVE); in fl_dump_key_vxlan_opt() 3206 if (!nest) in fl_dump_key_vxlan_opt() 3224 nla_nest_end(skb, nest); in fl_dump_key_erspan_opt() 3228 nla_nest_cancel(skb, nest); in fl_dump_key_erspan_opt() 3236 struct nlattr *nest; in fl_dump_key_erspan_opt() 3238 nest = nla_nest_start_noflag(skb, TCA_FLOWER_KEY_ENC_OPTS_VXLAN); in fl_dump_key_erspan_opt() 3239 if (!nest) in fl_dump_key_erspan_opt() 3246 nla_nest_end(skb, nest); in fl_dump_key_erspan_opt() 3250 nla_nest_cancel(skb, nest); in fl_dump_key_erspan_opt() 3167 struct nlattr *nest; fl_dump_key_geneve_opt() local 3201 struct nlattr *nest; fl_dump_key_vxlan_opt() local 3223 struct nlattr *nest; fl_dump_key_erspan_opt() local 3257 struct nlattr *nest; fl_dump_key_gtp_opt() local 3284 struct nlattr *nest; fl_dump_key_pfcp_opt() local 3380 struct nlattr *nest; fl_dump_key_options() local 3693 struct nlattr *nest; fl_dump() local 3751 struct nlattr *nest; fl_terse_dump() local 3793 struct nlattr *nest; fl_tmplt_dump() local [all...] |
| H A D | sch_ingress.c | 137 struct nlattr *nest; in ingress_dump() local 139 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in ingress_dump() 140 if (nest == NULL) in ingress_dump() 143 return nla_nest_end(skb, nest); in ingress_dump() 146 nla_nest_cancel(skb, nest); in ingress_dump()
|
| H A D | cls_basic.c | 276 struct nlattr *nest; in basic_dump() local 284 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in basic_dump() 285 if (nest == NULL) in basic_dump() 308 if (nla_nest_end_safe(skb, nest) < 0) in basic_dump() 317 nla_nest_cancel(skb, nest); in basic_dump()
|
| /linux/scripts/kconfig/ |
| H A 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/net/bridge/ |
| H A 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() 180 struct nlattr *nest, *nest_ent; in __mdb_fill_srcs() local 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() 326 struct nlattr *nest, *nest2; br_mdb_fill_info() local 423 struct nlattr *nest, *nest2; nlmsg_populate_mdb_fill() local 570 struct nlattr *nest, *port_nest; nlmsg_populate_rtr_fill() local [all...] |
| H A 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() 389 struct nlattr *nest; in br_vlan_global_opts_fill() 391 nest = nla_nest_start(skb, BRIDGE_VLANDB_GLOBAL_OPTIONS); in br_vlan_global_opts_fill() 392 if (!nest) in br_vlan_global_opts_fill() 469 nla_nest_end(skb, nest); in br_vlan_global_opts_fill() 474 nla_nest_cancel(skb, nest); in br_vlan_global_opts_fill() 393 struct nlattr *nest; br_vlan_global_opts_fill() local [all...] |
| H A D | br_mst.c | 274 struct nlattr *nest; in br_mst_fill_info() 281 nest = nla_nest_start_noflag(skb, IFLA_BRIDGE_MST_ENTRY); in br_mst_fill_info() 282 if (!nest || in br_mst_fill_info() 289 nla_nest_end(skb, nest); in br_mst_fill_info() 277 struct nlattr *nest; br_mst_fill_info() local
|
| /linux/drivers/net/can/dev/ |
| H A D | netlink.c | 741 size = nla_total_size(0); /* nest IFLA_CAN_TDC */ in can_tdc_get_size() 785 return nla_total_size(0) + /* nest IFLA_CAN_CTRLMODE_EXT */ in can_pwm_get_size() 797 size = nla_total_size(0); /* nest IFLA_CAN_PWM */ in can_pwm_get_size() 885 struct nlattr *nest; in can_tdc_fill_info() 903 nest = nla_nest_start(skb, ifla_can_tdc); in can_tdc_fill_info() 904 if (!nest) in can_tdc_fill_info() 938 nla_nest_end(skb, nest); in can_pwm_fill_info() 942 nla_nest_cancel(skb, nest); in can_pwm_fill_info() 950 struct nlattr *nest; in can_pwm_fill_info() 955 nest in can_pwm_fill_info() 872 struct nlattr *nest; can_tdc_fill_info() local 937 struct nlattr *nest; can_pwm_fill_info() local 972 struct nlattr *nest; can_ctrlmode_ext_fill_info() local [all...] |
| /linux/net/psp/ |
| H A D | psp_nl.c | 248 struct nlattr *nest; in psp_nl_fill_assoc_dev_list() local 265 nest = nla_nest_start(rsp, PSP_A_DEV_ASSOC_LIST); in psp_nl_fill_assoc_dev_list() 266 if (!nest) in psp_nl_fill_assoc_dev_list() 272 nla_nest_cancel(rsp, nest); in psp_nl_fill_assoc_dev_list() 276 nla_nest_end(rsp, nest); in psp_nl_fill_assoc_dev_list() 750 struct nlattr *nest = info->attrs[attr]; 755 err = nla_parse_nested(tb, ARRAY_SIZE(tb) - 1, nest, in psp_nl_put_key() local 760 if (NL_REQ_ATTR_CHECK(info->extack, nest, tb, PSP_A_KEYS_KEY) || in psp_nl_put_key() 761 NL_REQ_ATTR_CHECK(info->extack, nest, tb, PSP_A_KEYS_SPI)) in psp_nl_put_key() 788 void *nest; in psp_nl_rx_assoc_doit() 717 struct nlattr *nest = info->attrs[attr]; psp_nl_parse_key() local [all...] |
| /linux/lib/ |
| H A D | rhashtable.c | 59 if (unlikely(tbl->nest)) in lockdep_rht_bucket_is_held() 72 * because it's set at the same time as tbl->nest. in nested_table_top() 98 unsigned int size = tbl->size >> tbl->nest; in nested_bucket_table_free() 99 unsigned int len = 1 << tbl->nest; in nested_bucket_table_free() 113 if (tbl->nest) in bucket_table_free() 121 if (tbl->nest) in bucket_table_free_atomic() 182 tbl->nest = (ilog2(nbuckets) - 1) % shift + 1; in nested_bucket_table_alloc() 251 if (new_tbl->nest) in rhashtable_rehash_one() 443 else if (tbl->nest) in rht_deferred_worker() 1301 unsigned int index = hash & ((1 << tbl->nest) in rhashtable_free_and_destroy() [all...] |
| /linux/drivers/dpll/ |
| H A D | dpll_netlink.c | 487 struct nlattr *nest; in dpll_msg_add_pin_freq() local 501 nest = nla_nest_start(msg, DPLL_A_PIN_FREQUENCY_SUPPORTED); in dpll_msg_add_pin_freq() 502 if (!nest) in dpll_msg_add_pin_freq() 507 nla_nest_cancel(msg, nest); in dpll_msg_add_pin_freq() 513 nla_nest_cancel(msg, nest); in dpll_msg_add_pin_freq() 516 nla_nest_end(msg, nest); in dpll_msg_add_pin_freq() 529 struct nlattr *nest; in dpll_msg_add_pin_esync() local 546 nest = nla_nest_start(msg, in dpll_msg_add_pin_esync() 548 if (!nest) in dpll_msg_add_pin_esync() 558 nla_nest_end(msg, nest); in dpll_msg_add_pin_esync() 577 struct nlattr *nest; dpll_msg_add_pin_ref_sync() local 630 struct nlattr *nest; dpll_msg_add_pin_parents() local 1264 dpll_pin_ref_sync_set(struct dpll_pin * pin,struct nlattr * nest,struct netlink_ext_ack * extack) dpll_pin_ref_sync_set() argument [all...] |
| /linux/tools/testing/selftests/bpf/ |
| H A D | netlink_helpers.c | 348 struct rtattr *nest = NLMSG_TAIL(n); in addattr_nest() local 351 return nest; in addattr_nest() 354 int addattr_nest_end(struct nlmsghdr *n, struct rtattr *nest) in addattr_nest_end() argument 356 nest->rta_len = (void *)NLMSG_TAIL(n) - (void *)nest; in addattr_nest_end()
|
| /linux/net/core/ |
| H A D | lwtunnel.c | 233 struct nlattr *nest; in lwtunnel_fill_encap() local 253 nest = nla_nest_start_noflag(skb, encap_attr); in lwtunnel_fill_encap() 254 if (!nest) { in lwtunnel_fill_encap() 261 nla_nest_cancel(skb, nest); in lwtunnel_fill_encap() 263 nla_nest_end(skb, nest); in lwtunnel_fill_encap()
|
| /linux/drivers/net/vxlan/ |
| H A D | vxlan_mdb.c | 130 struct nlattr *nest; in vxlan_mdb_entry_info_fill_srcs() local 135 nest = nla_nest_start(skb, MDBA_MDB_EATTR_SRC_LIST); in vxlan_mdb_entry_info_fill_srcs() 136 if (!nest) in vxlan_mdb_entry_info_fill_srcs() 154 nla_nest_end(skb, nest); in vxlan_mdb_entry_info_fill_srcs() 159 nla_nest_cancel(skb, nest); in vxlan_mdb_entry_info_fill_srcs() 171 struct nlattr *nest; in vxlan_mdb_entry_info_fill() 173 nest = nla_nest_start_noflag(skb, MDBA_MDB_ENTRY_INFO); in vxlan_mdb_entry_info_fill() 174 if (!nest) in vxlan_mdb_entry_info_fill() 211 nla_nest_end(skb, nest); in vxlan_mdb_entry_info_fill() 216 nla_nest_cancel(skb, nest); in vxlan_mdb_entry_info_fill() 170 struct nlattr *nest; vxlan_mdb_entry_info_fill() local 226 struct nlattr *nest; vxlan_mdb_entry_fill() local 254 struct nlattr *nest; vxlan_mdb_fill() local [all...] |