Searched refs:tb (Results 176 - 200 of 468) sorted by relevance

1234567891011>>

/linux-master/tools/lib/bpf/
H A Dnetlink.c26 typedef int (*libbpf_dump_nlmsg_t)(void *cookie, void *msg, struct nlattr **tb);
254 struct nlattr *tb[CTRL_ATTR_FAMILY_ID + 1]; local
257 libbpf_nla_parse(tb, CTRL_ATTR_FAMILY_ID, na,
259 if (!tb[CTRL_ATTR_FAMILY_ID])
262 *id = libbpf_nla_getattr_u16(tb[CTRL_ATTR_FAMILY_ID]);
347 struct nlattr *tb[IFLA_MAX + 1], *attr; local
354 if (libbpf_nla_parse(tb, IFLA_MAX, attr, len, NULL) != 0)
357 return dump_link_nlmsg(cookie, ifi, tb);
360 static int get_xdp_info(void *cookie, void *msg, struct nlattr **tb) argument
370 if (!tb[IFLA_XD
410 struct nlattr *tb[NETDEV_CMD_MAX + 1]; local
656 __get_tc_info(void *cookie, struct tcmsg *tc, struct nlattr **tb, bool unicast) argument
685 struct nlattr *tb[TCA_MAX + 1]; local
[all...]
/linux-master/arch/sparc/include/asm/
H A Dtlbflush_64.h20 void flush_tsb_user(struct tlb_batch *tb);
/linux-master/tools/lib/thermal/
H A Dthermal_nl.c78 struct nlattr *tb[CTRL_ATTR_MAX + 1]; local
83 nla_parse(tb, CTRL_ATTR_MAX, genlmsg_attrdata(gnlh, 0),
86 if (!tb[CTRL_ATTR_MCAST_GROUPS])
89 nla_for_each_nested(mcgrp, tb[CTRL_ATTR_MCAST_GROUPS], rem_mcgrp) {
/linux-master/net/ethtool/
H A Dlinkinfo.c103 struct nlattr **tb = info->attrs; local
114 ethnl_update_u8(&lsettings->port, tb[ETHTOOL_A_LINKINFO_PORT], &mod);
115 ethnl_update_u8(&lsettings->phy_address, tb[ETHTOOL_A_LINKINFO_PHYADDR],
118 tb[ETHTOOL_A_LINKINFO_TP_MDIX_CTRL], &mod);
/linux-master/drivers/net/
H A Ddummy.c124 static int dummy_validate(struct nlattr *tb[], struct nlattr *data[], argument
127 if (tb[IFLA_ADDRESS]) {
128 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN)
130 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS])))
/linux-master/net/sched/
H A Dsch_hhf.c512 struct nlattr *tb[TCA_HHF_MAX + 1]; local
519 err = nla_parse_nested_deprecated(tb, TCA_HHF_MAX, opt, hhf_policy,
524 if (tb[TCA_HHF_QUANTUM])
525 new_quantum = nla_get_u32(tb[TCA_HHF_QUANTUM]);
527 if (tb[TCA_HHF_NON_HH_WEIGHT])
528 new_hhf_non_hh_weight = nla_get_u32(tb[TCA_HHF_NON_HH_WEIGHT]);
536 if (tb[TCA_HHF_BACKLOG_LIMIT])
537 sch->limit = nla_get_u32(tb[TCA_HHF_BACKLOG_LIMIT]);
542 if (tb[TCA_HHF_HH_FLOWS_LIMIT])
543 q->hh_flows_limit = nla_get_u32(tb[TCA_HHF_HH_FLOWS_LIMI
[all...]
H A Dsch_tbf.c355 struct nlattr *tb[TCA_TBF_MAX + 1]; local
365 err = nla_parse_nested_deprecated(tb, TCA_TBF_MAX, opt, tbf_policy,
371 if (tb[TCA_TBF_PARMS] == NULL)
374 qopt = nla_data(tb[TCA_TBF_PARMS]);
377 tb[TCA_TBF_RTAB],
382 tb[TCA_TBF_PTAB],
388 if (tb[TCA_TBF_RATE64])
389 rate64 = nla_get_u64(tb[TCA_TBF_RATE64]);
392 if (tb[TCA_TBF_BURST]) {
393 max_size = nla_get_u32(tb[TCA_TBF_BURS
[all...]
H A Dcls_basic.c149 struct nlattr **tb,
155 err = tcf_exts_validate(net, tp, tb, est, &f->exts, flags, extack);
159 err = tcf_em_tree_validate(tp, tb[TCA_BASIC_EMATCHES], &f->ematches);
163 if (tb[TCA_BASIC_CLASSID]) {
164 f->res.classid = nla_get_u32(tb[TCA_BASIC_CLASSID]);
179 struct nlattr *tb[TCA_BASIC_MAX + 1]; local
186 err = nla_parse_nested_deprecated(tb, TCA_BASIC_MAX, tca[TCA_OPTIONS],
221 err = basic_set_parms(net, tp, fnew, base, tb, tca[TCA_RATE], flags,
147 basic_set_parms(struct net *net, struct tcf_proto *tp, struct basic_filter *f, unsigned long base, struct nlattr **tb, struct nlattr *est, u32 flags, struct netlink_ext_ack *extack) argument
H A Dsch_fq_codel.c371 struct nlattr *tb[TCA_FQ_CODEL_MAX + 1]; local
375 err = nla_parse_nested_deprecated(tb, TCA_FQ_CODEL_MAX, opt,
379 if (tb[TCA_FQ_CODEL_FLOWS]) {
382 q->flows_cnt = nla_get_u32(tb[TCA_FQ_CODEL_FLOWS]);
387 if (tb[TCA_FQ_CODEL_QUANTUM]) {
388 quantum = max(256U, nla_get_u32(tb[TCA_FQ_CODEL_QUANTUM]));
396 if (tb[TCA_FQ_CODEL_TARGET]) {
397 u64 target = nla_get_u32(tb[TCA_FQ_CODEL_TARGET]);
402 if (tb[TCA_FQ_CODEL_CE_THRESHOLD]) {
403 u64 val = nla_get_u32(tb[TCA_FQ_CODEL_CE_THRESHOL
[all...]
H A Dsch_netem.c936 static int parse_attr(struct nlattr *tb[], int maxtype, struct nlattr *nla, argument
947 return nla_parse_deprecated(tb, maxtype,
951 memset(tb, 0, sizeof(struct nlattr *) * (maxtype + 1));
960 struct nlattr *tb[TCA_NETEM_MAX + 1]; local
969 ret = parse_attr(tb, TCA_NETEM_MAX, opt, netem_policy, sizeof(*qopt));
973 if (tb[TCA_NETEM_DELAY_DIST]) {
974 ret = get_dist_table(&delay_dist, tb[TCA_NETEM_DELAY_DIST]);
979 if (tb[TCA_NETEM_SLOT_DIST]) {
980 ret = get_dist_table(&slot_dist, tb[TCA_NETEM_SLOT_DIST]);
990 if (tb[TCA_NETEM_LOS
[all...]
H A Dact_sample.c43 struct nlattr *tb[TCA_SAMPLE_MAX + 1]; local
54 ret = nla_parse_nested_deprecated(tb, TCA_SAMPLE_MAX, nla,
59 if (!tb[TCA_SAMPLE_PARMS])
62 parm = nla_data(tb[TCA_SAMPLE_PARMS]);
84 if (!tb[TCA_SAMPLE_RATE] || !tb[TCA_SAMPLE_PSAMPLE_GROUP]) {
94 rate = nla_get_u32(tb[TCA_SAMPLE_RATE]);
100 psample_group_num = nla_get_u32(tb[TCA_SAMPLE_PSAMPLE_GROUP]);
116 if (tb[TCA_SAMPLE_TRUNC_SIZE]) {
118 s->trunc_size = nla_get_u32(tb[TCA_SAMPLE_TRUNC_SIZ
[all...]
H A Dcls_bpf.c339 static int cls_bpf_prog_from_ops(struct nlattr **tb, struct cls_bpf_prog *prog) argument
347 bpf_num_ops = nla_get_u16(tb[TCA_BPF_OPS_LEN]);
352 if (bpf_size != nla_len(tb[TCA_BPF_OPS]))
355 bpf_ops = kmemdup(nla_data(tb[TCA_BPF_OPS]), bpf_size, GFP_KERNEL);
376 static int cls_bpf_prog_from_efd(struct nlattr **tb, struct cls_bpf_prog *prog, argument
384 bpf_fd = nla_get_u32(tb[TCA_BPF_FD]);
391 if (tb[TCA_BPF_NAME]) {
392 name = nla_memdup(tb[TCA_BPF_NAME], GFP_KERNEL);
418 struct nlattr *tb[TCA_BPF_MAX + 1]; local
427 ret = nla_parse_nested_deprecated(tb, TCA_BPF_MA
[all...]
/linux-master/drivers/thunderbolt/
H A DMakefile4 thunderbolt-objs := nhi.o nhi_ops.o ctl.o tb.o switch.o cap.o path.o tunnel.o eeprom.o
H A Dpath.c14 #include "tb.h"
158 path->tb = src->sw->tb;
169 tb_dbg(path->tb, "discovering %s path starting from %llx:%u\n",
210 tb_dbg(path->tb, "path discovery complete\n");
222 * @tb: Domain pointer
238 struct tb_path *tb_path_alloc(struct tb *tb, struct tb_port *src, int src_hopid, argument
341 path->tb = tb;
[all...]
/linux-master/net/netfilter/
H A Dnft_synproxy.c153 const struct nlattr * const tb[],
160 if (tb[NFTA_SYNPROXY_MSS])
161 priv->info.mss = ntohs(nla_get_be16(tb[NFTA_SYNPROXY_MSS]));
162 if (tb[NFTA_SYNPROXY_WSCALE])
163 priv->info.wscale = nla_get_u8(tb[NFTA_SYNPROXY_WSCALE]);
164 if (tb[NFTA_SYNPROXY_FLAGS]) {
165 flags = ntohl(nla_get_be32(tb[NFTA_SYNPROXY_FLAGS]));
265 const struct nlattr * const tb[])
269 return nft_synproxy_do_init(ctx, tb, priv);
307 const struct nlattr * const tb[],
152 nft_synproxy_do_init(const struct nft_ctx *ctx, const struct nlattr * const tb[], struct nft_synproxy *priv) argument
263 nft_synproxy_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) argument
306 nft_synproxy_obj_init(const struct nft_ctx *ctx, const struct nlattr * const tb[], struct nft_object *obj) argument
[all...]
/linux-master/tools/testing/selftests/netfilter/
H A Dnf-queue.c38 const struct nlattr **tb = data; local
73 tb[type] = attr;
79 struct nlattr *tb[NFQA_MAX+1] = { 0 }; local
85 mnl_attr_parse(nlh, sizeof(struct nfgenmsg), parse_attr_cb, tb);
86 if (tb[NFQA_PACKET_HDR]) {
87 ph = mnl_attr_get_payload(tb[NFQA_PACKET_HDR]);
102 if (tb[NFQA_SKB_INFO])
103 skbinfo = ntohl(mnl_attr_get_u32(tb[NFQA_SKB_INFO]));
/linux-master/net/bridge/
H A Dbr_netlink_tunnel.c225 struct nlattr *tb[IFLA_BRIDGE_VLAN_TUNNEL_MAX + 1]; local
232 err = nla_parse_nested_deprecated(tb, IFLA_BRIDGE_VLAN_TUNNEL_MAX,
237 if (!tb[IFLA_BRIDGE_VLAN_TUNNEL_ID] ||
238 !tb[IFLA_BRIDGE_VLAN_TUNNEL_VID])
241 tun_id = nla_get_u32(tb[IFLA_BRIDGE_VLAN_TUNNEL_ID]);
242 vid = nla_get_u16(tb[IFLA_BRIDGE_VLAN_TUNNEL_VID]);
246 if (tb[IFLA_BRIDGE_VLAN_TUNNEL_FLAGS])
247 flags = nla_get_u16(tb[IFLA_BRIDGE_VLAN_TUNNEL_FLAGS]);
/linux-master/drivers/net/wireless/intel/iwlwifi/queue/
H A Dtx.h145 struct iwl_tfd_tb *tb; local
155 tb = &tfd->tbs[idx];
157 return le16_to_cpu(tb->hi_n_len) >> 4;
164 struct iwl_tfd_tb *tb = &tfd->tbs[idx]; local
167 put_unaligned_le32(addr, &tb->lo);
170 tb->hi_n_len = cpu_to_le16(hi_n_len);
/linux-master/tools/bpf/bpftool/
H A Dnet.c101 typedef int (*dump_nlmsg_t)(void *cookie, void *msg, struct nlattr **tb);
210 struct nlattr *tb[TCA_MAX + 1], *attr; local
216 if (libbpf_nla_parse(tb, TCA_MAX, attr, len, NULL) != 0)
219 return dump_class_nlmsg(cookie, t, tb);
249 struct nlattr *tb[TCA_MAX + 1], *attr; local
255 if (libbpf_nla_parse(tb, TCA_MAX, attr, len, NULL) != 0)
258 return dump_qdisc_nlmsg(cookie, t, tb);
288 struct nlattr *tb[TCA_MAX + 1], *attr; local
294 if (libbpf_nla_parse(tb, TCA_MAX, attr, len, NULL) != 0)
297 return dump_filter_nlmsg(cookie, t, tb);
327 struct nlattr *tb[IFLA_MAX + 1], *attr; local
361 dump_link_nlmsg(void *cookie, void *msg, struct nlattr **tb) argument
390 dump_class_qdisc_nlmsg(void *cookie, void *msg, struct nlattr **tb) argument
424 dump_filter_nlmsg(void *cookie, void *msg, struct nlattr **tb) argument
[all...]
/linux-master/net/netfilter/ipset/
H A Dip_set_core.c282 struct nlattr *tb[IPSET_ATTR_IPADDR_MAX + 1]; local
286 if (nla_parse_nested(tb, IPSET_ATTR_IPADDR_MAX, nla,
289 if (unlikely(!ip_set_attr_netorder(tb, IPSET_ATTR_IPADDR_IPV4)))
292 *ipaddr = nla_get_be32(tb[IPSET_ATTR_IPADDR_IPV4]);
300 struct nlattr *tb[IPSET_ATTR_IPADDR_MAX + 1]; local
305 if (nla_parse_nested(tb, IPSET_ATTR_IPADDR_MAX, nla,
308 if (unlikely(!ip_set_attr_netorder(tb, IPSET_ATTR_IPADDR_IPV6)))
311 memcpy(ipaddr, nla_data(tb[IPSET_ATTR_IPADDR_IPV6]),
331 ip_set_comment_uget(struct nlattr *tb) argument
333 return nla_data(tb);
426 add_extension(enum ip_set_ext_id id, u32 flags, struct nlattr *tb[]) argument
434 ip_set_elem_len(struct ip_set *set, struct nlattr *tb[], size_t len, size_t align) argument
461 ip_set_get_extensions(struct ip_set *set, struct nlattr *tb[], struct ip_set_ext *ext) argument
942 protocol(const struct nlattr * const tb[]) argument
948 protocol_failed(const struct nlattr * const tb[]) argument
954 protocol_min_failed(const struct nlattr * const tb[]) argument
1049 struct nlattr *tb[IPSET_ATTR_CREATE_MAX + 1] = {}; local
1711 call_ad(struct net *net, struct sock *ctnl, struct sk_buff *skb, struct ip_set *set, struct nlattr *tb[], enum ipset_adt adt, u32 flags, bool use_lineno) argument
1792 struct nlattr *tb[IPSET_ATTR_ADT_MAX + 1] = {}; local
1858 struct nlattr *tb[IPSET_ATTR_ADT_MAX + 1] = {}; local
[all...]
/linux-master/arch/sparc/mm/
H A Dtsb.c83 static void __flush_tsb_one(struct tlb_batch *tb, unsigned long hash_shift, argument
88 for (i = 0; i < tb->tlb_nr; i++)
89 __flush_tsb_one_entry(tsb, tb->vaddrs[i], hash_shift, nentries);
107 static void __flush_huge_tsb_one(struct tlb_batch *tb, unsigned long hash_shift, argument
113 for (i = 0; i < tb->tlb_nr; i++)
114 __flush_huge_tsb_one_entry(tsb, tb->vaddrs[i], hash_shift,
119 void flush_tsb_user(struct tlb_batch *tb) argument
121 struct mm_struct *mm = tb->mm;
126 if (tb->hugepage_shift < REAL_HPAGE_SHIFT) {
131 if (tb
[all...]
/linux-master/drivers/media/platform/nvidia/tegra-vde/
H A Dv4l2.c128 struct tegra_m2m_buffer *tb = vb_to_tegra_buf(vb); local
131 if (tb->a[i]) {
132 tegra_vde_dmabuf_cache_unmap(ctx->vde, tb->a[i], true);
133 tb->a[i] = NULL;
136 if (tb->iova[i]) {
137 tegra_vde_iommu_unmap(ctx->vde, tb->iova[i]);
138 tb->iova[i] = NULL;
142 if (tb->aux) {
143 tegra_vde_free_bo(tb->aux);
144 tb
152 struct tegra_m2m_buffer *tb = vb_to_tegra_buf(vb); local
221 struct tegra_m2m_buffer *tb = vb_to_tegra_buf(vb); local
[all...]
/linux-master/net/ipv4/
H A Dfib_rules.c222 struct nlattr **tb,
261 rule4->src = nla_get_in_addr(tb[FRA_SRC]);
264 rule4->dst = nla_get_in_addr(tb[FRA_DST]);
267 if (tb[FRA_FLOW]) {
268 rule4->tclassid = nla_get_u32(tb[FRA_FLOW]);
313 struct nlattr **tb)
327 if (tb[FRA_FLOW] && (rule4->tclassid != nla_get_u32(tb[FRA_FLOW])))
331 if (frh->src_len && (rule4->src != nla_get_in_addr(tb[FRA_SRC])))
334 if (frh->dst_len && (rule4->dst != nla_get_in_addr(tb[FRA_DS
220 fib4_rule_configure(struct fib_rule *rule, struct sk_buff *skb, struct fib_rule_hdr *frh, struct nlattr **tb, struct netlink_ext_ack *extack) argument
312 fib4_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, struct nlattr **tb) argument
[all...]
/linux-master/drivers/pinctrl/mediatek/
H A Dpinctrl-mtk-common-v2.c971 const struct mtk_drive_desc *tb; local
974 tb = &mtk_drive[desc->drv_n];
980 if ((arg >= tb->min && arg <= tb->max) && !(arg % tb->step)) {
981 arg = (arg / tb->step - 1) * tb->scal;
1000 const struct mtk_drive_desc *tb; local
1003 tb = &mtk_drive[desc->drv_n];
1016 *val = (((val2 << 1) + val1) / tb
1026 const struct mtk_drive_desc *tb; local
1047 const struct mtk_drive_desc *tb; local
[all...]
/linux-master/net/ipv6/
H A Daddrlabel.c389 struct nlattr *tb[IFAL_MAX+1]; local
394 err = nlmsg_parse_deprecated(nlh, sizeof(*ifal), tb, IFAL_MAX,
405 if (!tb[IFAL_ADDRESS])
407 pfx = nla_data(tb[IFAL_ADDRESS]);
409 if (!tb[IFAL_LABEL])
411 label = nla_get_u32(tb[IFAL_LABEL]);
537 struct nlattr **tb,
549 return nlmsg_parse_deprecated(nlh, sizeof(*ifal), tb,
558 err = nlmsg_parse_deprecated_strict(nlh, sizeof(*ifal), tb, IFAL_MAX,
564 if (!tb[
535 ip6addrlbl_valid_get_req(struct sk_buff *skb, const struct nlmsghdr *nlh, struct nlattr **tb, struct netlink_ext_ack *extack) argument
584 struct nlattr *tb[IFAL_MAX+1]; local
[all...]

Completed in 233 milliseconds

1234567891011>>