/linux-master/net/ipv4/ |
H A D | nexthop.c | 1262 struct nlattr *tb[], size_t tb_size, 1265 unsigned int len = nla_len(tb[NHA_GROUP]); 1280 nhg = nla_data(tb[NHA_GROUP]); 1298 if (tb[NHA_FDB]) 1300 nhg = nla_data(tb[NHA_GROUP]); 1322 if (!tb[i]) 2968 struct nlattr *tb[ARRAY_SIZE(rtm_nh_res_policy_new)] = {}; local 2972 err = nla_parse_nested(tb, 2979 if (tb[NHA_RES_GROUP_BUCKETS]) { 2981 nla_get_u16(tb[NHA_RES_GROUP_BUCKET 1261 nh_check_attr_group(struct net *net, struct nlattr *tb[], size_t tb_size, u16 nh_grp_type, struct netlink_ext_ack *extack) argument 3009 struct nlattr *tb[ARRAY_SIZE(rtm_nh_policy_new)]; local 3214 nh_valid_get_del_req(const struct nlmsghdr *nlh, struct nlattr **tb, u32 *id, u32 *op_flags, struct netlink_ext_ack *extack) argument 3250 struct nlattr *tb[ARRAY_SIZE(rtm_nh_policy_del)]; local 3284 struct nlattr *tb[ARRAY_SIZE(rtm_nh_policy_get)]; local 3374 __nh_valid_dump_req(const struct nlmsghdr *nlh, struct nlattr **tb, struct nh_dump_filter *filter, struct netlink_ext_ack *extack) argument 3413 struct nlattr *tb[ARRAY_SIZE(rtm_nh_policy_dump)]; local 3557 struct nlattr *tb[ARRAY_SIZE(rtm_nh_policy_dump_bucket)]; local 3705 struct nlattr *tb[ARRAY_SIZE(rtm_nh_res_bucket_policy_get)]; local 3726 struct nlattr *tb[ARRAY_SIZE(rtm_nh_policy_get_bucket)]; local [all...] |
H A D | devinet.c | 652 struct nlattr *tb[IFA_MAX+1]; local 660 err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX, 675 if (tb[IFA_LOCAL] && 676 ifa->ifa_local != nla_get_in_addr(tb[IFA_LOCAL])) 679 if (tb[IFA_LABEL] && nla_strcmp(tb[IFA_LABEL], ifa->ifa_label)) 682 if (tb[IFA_ADDRESS] && 684 !inet_ifa_match(nla_get_in_addr(tb[IFA_ADDRESS]), ifa))) 836 struct nlattr *tb[IFA_MAX+1]; local 843 err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MA 1756 struct nlattr *tb[IFA_MAX+1]; local 1981 struct nlattr *a, *tb[IFLA_INET_MAX+1]; local 2011 struct nlattr *a, *tb[IFLA_INET_MAX+1]; local 2147 inet_netconf_valid_get_req(struct sk_buff *skb, const struct nlmsghdr *nlh, struct nlattr **tb, struct netlink_ext_ack *extack) argument 2191 struct nlattr *tb[NETCONFA_MAX + 1]; local [all...] |
/linux-master/drivers/thunderbolt/ |
H A D | dma_port.c | 181 ret = dma_port_read(sw->tb->ctl, &type, tb_route(sw), ports[i], 249 ret = dma_port_read(sw->tb->ctl, &in, tb_route(sw), dma->port, 285 ret = dma_port_write(sw->tb->ctl, &in, tb_route(sw), dma->port, 294 ret = dma_port_read(sw->tb->ctl, &out, tb_route(sw), dma->port, 320 return dma_port_read(sw->tb->ctl, buf, tb_route(sw), dma->port, 333 ret = dma_port_write(sw->tb->ctl, buf, tb_route(sw), dma->port, 426 ret = dma_port_read(sw->tb->ctl, &out, tb_route(sw), dma->port,
|
H A D | tunnel.c | 16 #include "tb.h" 147 static struct tb_tunnel *tb_tunnel_alloc(struct tb *tb, size_t npaths, argument 163 tunnel->tb = tb; 286 * @tb: Pointer to the domain structure 294 struct tb_tunnel *tb_tunnel_discover_pci(struct tb *tb, struct tb_port *down, argument 303 tunnel = tb_tunnel_alloc(tb, 2, TB_TUNNEL_PCI); 365 * @tb 374 tb_tunnel_alloc_pci(struct tb *tb, struct tb_port *up, struct tb_port *down) argument 858 struct tb *tb = in->sw->tb; local 1354 tb_tunnel_discover_dp(struct tb *tb, struct tb_port *in, bool alloc_hopid) argument 1448 tb_tunnel_alloc_dp(struct tb *tb, struct tb_port *in, struct tb_port *out, int link_nr, int max_up, int max_down) argument 1656 tb_tunnel_alloc_dma(struct tb *tb, struct tb_port *nhi, struct tb_port *dst, int transmit_path, int transmit_ring, int receive_path, int receive_ring) argument 1956 tb_tunnel_discover_usb3(struct tb *tb, struct tb_port *down, bool alloc_hopid) argument 2061 tb_tunnel_alloc_usb3(struct tb *tb, struct tb_port *up, struct tb_port *down, int max_up, int max_down) argument [all...] |
/linux-master/drivers/media/rc/ |
H A D | meson-ir-tx.c | 115 unsigned int tb = IRB_TB_MOD_CLK; local 120 return ((IRB_WRITE_FIFO | IRB_MOD_ENABLE) | tb | delay); 126 unsigned int tb = IRB_TB_100US; local 130 tb = IRB_TB_1US; 133 tb = IRB_TB_10US; 136 tb = IRB_TB_100US; 142 return ((IRB_WRITE_FIFO & ~IRB_MOD_ENABLE) | tb | delay);
|
/linux-master/net/sched/ |
H A D | act_gact.c | 60 struct nlattr *tb[TCA_GACT_MAX + 1]; local 74 err = nla_parse_nested_deprecated(tb, TCA_GACT_MAX, nla, gact_policy, 79 if (tb[TCA_GACT_PARMS] == NULL) 81 parm = nla_data(tb[TCA_GACT_PARMS]); 85 if (tb[TCA_GACT_PROB] != NULL) 88 if (tb[TCA_GACT_PROB]) { 89 p_parm = nla_data(tb[TCA_GACT_PROB]);
|
H A D | act_ife.c | 439 static int load_metalist(struct nlattr **tb, bool rtnl_held) argument 444 if (tb[i]) { 445 void *val = nla_data(tb[i]); 446 int len = nla_len(tb[i]); 458 static int populate_metalist(struct tcf_ife_info *ife, struct nlattr **tb, argument 467 if (tb[i]) { 468 val = nla_data(tb[i]); 469 len = nla_len(tb[i]); 487 struct nlattr *tb[TCA_IFE_MAX + 1]; local 506 err = nla_parse_nested_deprecated(tb, TCA_IFE_MA [all...] |
H A D | act_ct.c | 1122 struct nlattr **tb, 1145 if (tb[TCA_CT_NAT_IPV4_MIN]) { 1146 struct nlattr *max_attr = tb[TCA_CT_NAT_IPV4_MAX]; 1151 nla_get_in_addr(tb[TCA_CT_NAT_IPV4_MIN]); 1156 } else if (tb[TCA_CT_NAT_IPV6_MIN]) { 1157 struct nlattr *max_attr = tb[TCA_CT_NAT_IPV6_MAX]; 1162 nla_get_in6_addr(tb[TCA_CT_NAT_IPV6_MIN]); 1169 if (tb[TCA_CT_NAT_PORT_MIN]) { 1171 range->min_proto.all = nla_get_be16(tb[TCA_CT_NAT_PORT_MIN]); 1173 range->max_proto.all = tb[TCA_CT_NAT_PORT_MA 1120 tcf_ct_fill_params_nat(struct tcf_ct_params *p, struct tc_ct *parm, struct nlattr **tb, struct netlink_ext_ack *extack) argument 1181 tcf_ct_set_key_val(struct nlattr **tb, void *val, int val_type, void *mask, int mask_type, int len) argument 1199 tcf_ct_fill_params(struct net *net, struct tcf_ct_params *p, struct tc_ct *parm, struct nlattr **tb, struct netlink_ext_ack *extack) argument 1316 struct nlattr *tb[TCA_CT_MAX + 1]; local [all...] |
H A D | sch_mqprio.c | 174 struct nlattr *tb[TCA_MQPRIO_TC_ENTRY_MAX + 1]; local 177 err = nla_parse_nested(tb, TCA_MQPRIO_TC_ENTRY_MAX, opt, 182 if (NL_REQ_ATTR_CHECK(extack, opt, tb, TCA_MQPRIO_TC_ENTRY_INDEX)) { 187 tc = nla_get_u32(tb[TCA_MQPRIO_TC_ENTRY_INDEX]); 189 NL_SET_ERR_MSG_ATTR(extack, tb[TCA_MQPRIO_TC_ENTRY_INDEX], 196 if (tb[TCA_MQPRIO_TC_ENTRY_FP]) 197 fp[tc] = nla_get_u32(tb[TCA_MQPRIO_TC_ENTRY_FP]); 251 struct nlattr *tb[TCA_MQPRIO_MAX + 1] = {}; local 256 err = nla_parse_deprecated(tb, TCA_MQPRIO_MAX, nlattr_opt, 269 if (tb[TCA_MQPRIO_MOD [all...] |
/linux-master/net/netfilter/ipset/ |
H A D | ip_set_list_set.c | 346 list_set_uadt(struct ip_set *set, struct nlattr *tb[], argument 356 if (tb[IPSET_ATTR_LINENO]) 357 *lineno = nla_get_u32(tb[IPSET_ATTR_LINENO]); 359 if (unlikely(!tb[IPSET_ATTR_NAME] || 360 !ip_set_optattr_netorder(tb, IPSET_ATTR_CADT_FLAGS))) 363 ret = ip_set_get_extensions(set, tb, &ext); 366 e.id = ip_set_get_byname(map->net, nla_data(tb[IPSET_ATTR_NAME]), &s); 375 if (tb[IPSET_ATTR_CADT_FLAGS]) { 376 u32 f = ip_set_get_h32(tb[IPSET_ATTR_CADT_FLAGS]); 381 if (e.before && !tb[IPSET_ATTR_NAMERE 614 list_set_create(struct net *net, struct ip_set *set, struct nlattr *tb[], u32 flags) argument [all...] |
/linux-master/net/netfilter/ |
H A D | nf_conntrack_proto_tcp.c | 1404 struct nlattr *tb[CTA_PROTOINFO_TCP_MAX+1]; local 1412 err = nla_parse_nested_deprecated(tb, CTA_PROTOINFO_TCP_MAX, pattr, 1417 if (tb[CTA_PROTOINFO_TCP_STATE] && 1418 nla_get_u8(tb[CTA_PROTOINFO_TCP_STATE]) >= TCP_CONNTRACK_MAX) 1422 if (tb[CTA_PROTOINFO_TCP_STATE]) 1423 ct->proto.tcp.state = nla_get_u8(tb[CTA_PROTOINFO_TCP_STATE]); 1425 if (tb[CTA_PROTOINFO_TCP_FLAGS_ORIGINAL]) { 1427 nla_data(tb[CTA_PROTOINFO_TCP_FLAGS_ORIGINAL]); 1432 if (tb[CTA_PROTOINFO_TCP_FLAGS_REPLY]) { 1434 nla_data(tb[CTA_PROTOINFO_TCP_FLAGS_REPL 1469 tcp_timeout_nlattr_to_obj(struct nlattr *tb[], struct net *net, void *data) argument [all...] |
H A D | nf_conntrack_proto_dccp.c | 688 struct nlattr *tb[CTA_PROTOINFO_DCCP_MAX + 1]; local 694 err = nla_parse_nested_deprecated(tb, CTA_PROTOINFO_DCCP_MAX, attr, 699 if (!tb[CTA_PROTOINFO_DCCP_STATE] || 700 !tb[CTA_PROTOINFO_DCCP_ROLE] || 701 nla_get_u8(tb[CTA_PROTOINFO_DCCP_ROLE]) > CT_DCCP_ROLE_MAX || 702 nla_get_u8(tb[CTA_PROTOINFO_DCCP_STATE]) >= CT_DCCP_IGNORE) { 707 ct->proto.dccp.state = nla_get_u8(tb[CTA_PROTOINFO_DCCP_STATE]); 708 if (nla_get_u8(tb[CTA_PROTOINFO_DCCP_ROLE]) == CT_DCCP_ROLE_CLIENT) { 715 if (tb[CTA_PROTOINFO_DCCP_HANDSHAKE_SEQ]) { 717 be64_to_cpu(nla_get_be64(tb[CTA_PROTOINFO_DCCP_HANDSHAKE_SE 729 dccp_timeout_nlattr_to_obj(struct nlattr *tb[], struct net *net, void *data) argument [all...] |
H A D | nf_conntrack_proto_udp.c | 222 static int udp_timeout_nlattr_to_obj(struct nlattr *tb[], argument 235 if (tb[CTA_TIMEOUT_UDP_UNREPLIED]) { 237 ntohl(nla_get_be32(tb[CTA_TIMEOUT_UDP_UNREPLIED])) * HZ; 239 if (tb[CTA_TIMEOUT_UDP_REPLIED]) { 241 ntohl(nla_get_be32(tb[CTA_TIMEOUT_UDP_REPLIED])) * HZ;
|
H A D | nft_rt.c | 112 const struct nlattr * const tb[]) 117 if (tb[NFTA_RT_KEY] == NULL || 118 tb[NFTA_RT_DREG] == NULL) 121 priv->key = ntohl(nla_get_be32(tb[NFTA_RT_KEY])); 144 return nft_parse_register_store(ctx, tb[NFTA_RT_DREG], &priv->dreg, 110 nft_rt_get_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) argument
|
H A D | nft_immediate.c | 48 const struct nlattr * const tb[]) 56 if (tb[NFTA_IMMEDIATE_DREG] == NULL || 57 tb[NFTA_IMMEDIATE_DATA] == NULL) 60 desc.type = nft_reg_to_type(tb[NFTA_IMMEDIATE_DREG]); 61 err = nft_data_init(ctx, &priv->data, &desc, tb[NFTA_IMMEDIATE_DATA]); 67 err = nft_parse_register_store(ctx, tb[NFTA_IMMEDIATE_DREG], 46 nft_immediate_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) argument
|
/linux-master/drivers/net/fddi/skfp/ |
H A D | fplustm.c | 1057 struct s_fpmc *tb ; local 1072 for (i = 0, tb = smc->hw.fp.mc.table ; i < FPMAX_MULTICAST ; i++, tb++){ 1073 if (!tb->n) { /* not used */ 1075 slot = tb ; 1078 if (!ether_addr_equal((char *)&tb->a, (char *)own)) 1080 return tb; 1098 struct s_fpmc *tb ; local 1103 for (i = 0, tb = smc->hw.fp.mc.table ; i < FPMAX_MULTICAST ; i++, tb 1141 struct s_fpmc *tb ; local 1194 struct s_fpmc *tb ; local [all...] |
/linux-master/include/net/ |
H A D | ip_fib.h | 274 int fib_table_lookup(struct fib_table *tb, const struct flowi4 *flp, 285 void fib_free_table(struct fib_table *tb); 314 struct fib_table *tb; local 319 tb = fib_get_table(net, RT_TABLE_MAIN); 320 if (tb) 321 err = fib_table_lookup(tb, flp, res, flags | FIB_LOOKUP_NOREF); 372 struct fib_table *tb; local 383 tb = rcu_dereference_rtnl(net->ipv4.fib_main); 384 if (tb) 385 err = fib_table_lookup(tb, fl [all...] |
H A D | netlink.h | 527 int __nla_parse(struct nlattr **tb, int maxtype, const struct nlattr *head, 658 * nla_parse - Parse a stream of attributes into a tb buffer 659 * @tb: destination array with maxtype+1 elements 667 * the tb array accessible via the attribute type. Attributes with a type 673 static inline int nla_parse(struct nlattr **tb, int maxtype, argument 678 return __nla_parse(tb, maxtype, head, len, policy, 683 * nla_parse_deprecated - Parse a stream of attributes into a tb buffer 684 * @tb: destination array with maxtype+1 elements 692 * the tb array accessible via the attribute type. Attributes with a type 698 static inline int nla_parse_deprecated(struct nlattr **tb, in argument 723 nla_parse_deprecated_strict(struct nlattr **tb, int maxtype, const struct nlattr *head, int len, const struct nla_policy *policy, struct netlink_ext_ack *extack) argument 745 __nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], int maxtype, const struct nla_policy *policy, unsigned int validate, struct netlink_ext_ack *extack) argument 772 nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) argument 792 nlmsg_parse_deprecated(const struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) argument 813 nlmsg_parse_deprecated_strict(const struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) argument 1296 nla_parse_nested(struct nlattr *tb[], int maxtype, const struct nlattr *nla, const struct nla_policy *policy, struct netlink_ext_ack *extack) argument 1320 nla_parse_nested_deprecated(struct nlattr *tb[], int maxtype, const struct nlattr *nla, const struct nla_policy *policy, struct netlink_ext_ack *extack) argument [all...] |
/linux-master/crypto/ |
H A D | dh.c | 552 struct crypto_template *tmpl, struct rtattr **tb, 562 err = crypto_check_attr_type(tb, CRYPTO_ALG_TYPE_KPP, &mask); 566 dh_name = crypto_attr_alg_name(tb[1]); 834 struct rtattr **tb) 836 return __dh_safe_prime_create(tmpl, tb, &ffdhe2048_prime); 840 struct rtattr **tb) 842 return __dh_safe_prime_create(tmpl, tb, &ffdhe3072_prime); 846 struct rtattr **tb) 848 return __dh_safe_prime_create(tmpl, tb, &ffdhe4096_prime); 852 struct rtattr **tb) 551 __dh_safe_prime_create( struct crypto_template *tmpl, struct rtattr **tb, const struct dh_safe_prime *safe_prime) argument 833 dh_ffdhe2048_create(struct crypto_template *tmpl, struct rtattr **tb) argument 839 dh_ffdhe3072_create(struct crypto_template *tmpl, struct rtattr **tb) argument 845 dh_ffdhe4096_create(struct crypto_template *tmpl, struct rtattr **tb) argument 851 dh_ffdhe6144_create(struct crypto_template *tmpl, struct rtattr **tb) argument 857 dh_ffdhe8192_create(struct crypto_template *tmpl, struct rtattr **tb) argument [all...] |
H A D | algboss.c | 24 struct rtattr *tb[CRYPTO_MAX_ATTRS + 2]; member in struct:cryptomgr_param 61 err = tmpl->create(tmpl, param->tb); 128 param->tb[i + 1] = ¶m->attrs[i].attr; 144 param->tb[i + 1] = NULL; 150 param->tb[0] = ¶m->type.attr;
|
H A D | geniv.c | 42 struct rtattr **tb) 52 err = crypto_check_attr_type(tb, CRYPTO_ALG_TYPE_AEAD, &mask); 63 crypto_attr_alg_name(tb[1]), 0, mask); 41 aead_geniv_alloc(struct crypto_template *tmpl, struct rtattr **tb) argument
|
/linux-master/drivers/net/wireless/ath/ath11k/ |
H A D | wmi.c | 226 const void **tb = data; local 229 tb[tag] = ptr; 234 static int ath11k_wmi_tlv_parse(struct ath11k_base *ar, const void **tb, argument 238 (void *)tb); 244 const void **tb; local 247 tb = kcalloc(WMI_TAG_MAX, sizeof(*tb), gfp); 248 if (!tb) 251 ret = ath11k_wmi_tlv_parse(ab, tb, skb->data, skb->len); 253 kfree(tb); 3992 const void **tb; local 5074 const void **tb; local 5170 const void **tb; local 5343 const void **tb; local 5706 const void **tb; local 5738 const void **tb; local 5766 const void **tb; local 5794 const void **tb; local 5948 const void **tb; local 6124 const void **tb; local 6157 const void **tb; local 6184 const void **tb; local 6232 const void **tb; local 6271 const void **tb; local 6311 const void **tb; local 6342 const void **tb; local 7068 const void **tb; local 7374 const void **tb; local 8174 const void **tb; local 8238 const void **tb; local 8272 const void **tb; local 8327 const void **tb; local 8367 const void **tb; local 8399 const void **tb; local 8525 const void **tb; local 8559 const void **tb; local [all...] |
/linux-master/net/ethtool/ |
H A D | privflags.c | 149 struct nlattr **tb = info->attrs; local 156 ret = ethnl_bitset_is_compact(tb[ETHTOOL_A_PRIVFLAGS_FLAGS], &compact); 166 tb[ETHTOOL_A_PRIVFLAGS_FLAGS], names,
|
H A D | rss.c | 33 rss_parse_request(struct ethnl_req_info *req_info, struct nlattr **tb, argument 38 if (tb[ETHTOOL_A_RSS_CONTEXT]) 39 request->rss_context = nla_get_u32(tb[ETHTOOL_A_RSS_CONTEXT]);
|
/linux-master/net/bridge/ |
H A D | br_mst.c | 299 struct nlattr *tb[IFLA_BRIDGE_MST_ENTRY_MAX + 1]; local 304 err = nla_parse_nested(tb, IFLA_BRIDGE_MST_ENTRY_MAX, attr, 309 if (!tb[IFLA_BRIDGE_MST_ENTRY_MSTI]) { 314 if (!tb[IFLA_BRIDGE_MST_ENTRY_STATE]) { 319 msti = nla_get_u16(tb[IFLA_BRIDGE_MST_ENTRY_MSTI]); 320 state = nla_get_u8(tb[IFLA_BRIDGE_MST_ENTRY_STATE]);
|