/linux-master/net/ipv4/ |
H A D | fib_frontend.c | 78 struct fib_table *tb, *alias = NULL; local 83 tb = fib_get_table(net, id); 84 if (tb) 85 return tb; 90 tb = fib_trie_table(id, alias); 91 if (!tb) 96 rcu_assign_pointer(net->ipv4.fib_main, tb); 99 rcu_assign_pointer(net->ipv4.fib_default, tb); 106 hlist_add_head_rcu(&tb->tb_hlist, &net->ipv4.fib_table_hash[h]); 107 return tb; 114 struct fib_table *tb; local 192 struct fib_table *tb; local 633 struct fib_table *tb; local 860 struct fib_table *tb; local 890 struct fib_table *tb; local 915 struct nlattr *tb[RTA_MAX + 1]; local 999 struct fib_table *tb; local 1079 struct fib_table *tb; local 1354 struct fib_table *tb; local 1588 struct fib_table *tb; local [all...] |
/linux-master/drivers/thunderbolt/ |
H A D | switch.c | 19 #include "tb.h" 138 ret = tb_domain_disconnect_all_paths(sw->tb); 221 root_port = pcie_find_root_port(sw->tb->nhi->pdev); 230 root_port = pcie_find_root_port(sw->tb->nhi->pdev); 312 if (!mutex_trylock(&sw->tb->lock)) { 318 mutex_unlock(&sw->tb->lock); 333 if (!mutex_trylock(&sw->tb->lock)) 343 mutex_unlock(&sw->tb->lock); 444 static void tb_dump_port(struct tb *tb, cons argument 1526 tb_dump_switch(const struct tb *tb, const struct tb_switch *sw) argument 2412 tb_switch_alloc(struct tb *tb, struct device *parent, u64 route) argument 2532 tb_switch_alloc_safe_mode(struct tb *tb, struct device *parent, u64 route) argument 2569 struct tb *tb = sw->tb; local 3679 struct tb *tb; member in struct:tb_sw_lookup 3720 tb_switch_find_by_link_depth(struct tb *tb, u8 link, u8 depth) argument 3745 tb_switch_find_by_uuid(struct tb *tb, const uuid_t *uuid) argument 3769 tb_switch_find_by_route(struct tb *tb, u64 route) argument [all...] |
H A D | xdomain.c | 21 #include "tb.h" 58 struct tb *tb; member in struct:xdomain_request_work 168 return __tb_xdomain_response(xd->tb->ctl, response, size, type); 222 return __tb_xdomain_request(xd->tb->ctl, request, request_size, 414 static int tb_xdp_properties_response(struct tb *tb, struct tb_ctl *ctl, argument 537 static int tb_xdp_link_state_status_response(struct tb *tb, struct tb_ctl *ctl, argument 709 queue_delayed_work(xd->tb 732 struct tb *tb = xw->tb; local 854 tb_xdp_schedule_request(struct tb *tb, const struct tb_xdp_header *hdr, size_t size) argument 1197 struct tb *tb = xd->tb; local 1250 struct tb *tb = xd->tb; local 1284 struct tb *tb = xd->tb; local 1385 struct tb *tb = xd->tb; local 1959 tb_xdomain_alloc(struct tb *tb, struct device *parent, u64 route, const uuid_t *local_uuid, const uuid_t *remote_uuid) argument 2339 tb_xdomain_find_by_uuid(struct tb *tb, const uuid_t *uuid) argument 2368 tb_xdomain_find_by_link_depth(struct tb *tb, u8 link, u8 depth) argument 2397 tb_xdomain_find_by_route(struct tb *tb, u64 route) argument 2410 tb_xdomain_handle_request(struct tb *tb, enum tb_cfg_pkg_type type, const void *buf, size_t size) argument [all...] |
/linux-master/include/net/netfilter/ |
H A D | nft_meta.h | 20 const struct nlattr * const tb[]); 24 const struct nlattr * const tb[]);
|
/linux-master/crypto/ |
H A D | ecb.c | 98 struct crypto_template *tmpl, struct rtattr **tb) 106 err = crypto_check_attr_type(tb, CRYPTO_ALG_TYPE_LSKCIPHER, &mask); 116 crypto_attr_alg_name(tb[1]), 0, mask); 149 static int crypto_ecb_create2(struct crypto_template *tmpl, struct rtattr **tb) argument 154 inst = lskcipher_alloc_instance_simple2(tmpl, tb); 171 static int crypto_ecb_create(struct crypto_template *tmpl, struct rtattr **tb) argument 178 inst = lskcipher_alloc_instance_simple(tmpl, tb); 180 err = crypto_ecb_create2(tmpl, tb); 97 lskcipher_alloc_instance_simple2( struct crypto_template *tmpl, struct rtattr **tb) argument
|
/linux-master/net/sched/ |
H A D | act_vlan.c | 123 struct nlattr *tb[TCA_VLAN_MAX + 1]; local 140 err = nla_parse_nested_deprecated(tb, TCA_VLAN_MAX, nla, vlan_policy, 145 if (!tb[TCA_VLAN_PARMS]) 147 parm = nla_data(tb[TCA_VLAN_PARMS]); 161 if (!tb[TCA_VLAN_PUSH_VLAN_ID]) { 168 push_vid = nla_get_u16(tb[TCA_VLAN_PUSH_VLAN_ID]); 177 if (tb[TCA_VLAN_PUSH_VLAN_PROTOCOL]) { 178 push_proto = nla_get_be16(tb[TCA_VLAN_PUSH_VLAN_PROTOCOL]); 194 push_prio_exists = !!tb[TCA_VLAN_PUSH_VLAN_PRIORITY]; 196 push_prio = nla_get_u8(tb[TCA_VLAN_PUSH_VLAN_PRIORIT [all...] |
H A D | cls_fw.c | 202 struct fw_filter *f, struct nlattr **tb, 210 err = tcf_exts_validate(net, tp, tb, tca[TCA_RATE], &f->exts, flags, 215 if (tb[TCA_FW_INDEV]) { 217 ret = tcf_change_indev(net, tb[TCA_FW_INDEV], extack); 224 if (tb[TCA_FW_MASK]) { 225 mask = nla_get_u32(tb[TCA_FW_MASK]); 231 if (tb[TCA_FW_CLASSID]) { 232 f->res.classid = nla_get_u32(tb[TCA_FW_CLASSID]); 247 struct nlattr *tb[TCA_FW_MAX + 1]; local 253 err = nla_parse_nested_deprecated(tb, TCA_FW_MA 201 fw_set_parms(struct net *net, struct tcf_proto *tp, struct fw_filter *f, struct nlattr **tb, struct nlattr **tca, unsigned long base, u32 flags, struct netlink_ext_ack *extack) argument [all...] |
H A D | act_ctinfo.c | 164 struct nlattr *tb[TCA_CTINFO_MAX + 1]; local 177 err = nla_parse_nested(tb, TCA_CTINFO_MAX, nla, ctinfo_policy, extack); 181 if (!tb[TCA_CTINFO_ACT]) { 186 actparm = nla_data(tb[TCA_CTINFO_ACT]); 190 if (tb[TCA_CTINFO_PARMS_DSCP_MASK]) { 191 dscpmask = nla_get_u32(tb[TCA_CTINFO_PARMS_DSCP_MASK]); 196 tb[TCA_CTINFO_PARMS_DSCP_MASK], 200 dscpstatemask = tb[TCA_CTINFO_PARMS_DSCP_STATEMASK] ? 201 nla_get_u32(tb[TCA_CTINFO_PARMS_DSCP_STATEMASK]) : 0; 205 tb[TCA_CTINFO_PARMS_DSCP_STATEMAS [all...] |
H A D | act_skbmod.c | 110 struct nlattr *tb[TCA_SKBMOD_MAX + 1]; local 125 err = nla_parse_nested_deprecated(tb, TCA_SKBMOD_MAX, nla, 130 if (!tb[TCA_SKBMOD_PARMS]) 133 if (tb[TCA_SKBMOD_DMAC]) { 134 daddr = nla_data(tb[TCA_SKBMOD_DMAC]); 138 if (tb[TCA_SKBMOD_SMAC]) { 139 saddr = nla_data(tb[TCA_SKBMOD_SMAC]); 143 if (tb[TCA_SKBMOD_ETYPE]) { 144 eth_type = nla_get_u16(tb[TCA_SKBMOD_ETYPE]); 148 parm = nla_data(tb[TCA_SKBMOD_PARM [all...] |
H A D | cls_route.c | 386 struct nlattr **tb, struct nlattr *est, int new, 395 err = tcf_exts_validate(net, tp, tb, est, &f->exts, flags, extack); 399 if (tb[TCA_ROUTE4_TO]) { 404 to = nla_get_u32(tb[TCA_ROUTE4_TO]); 408 if (tb[TCA_ROUTE4_FROM] && tb[TCA_ROUTE4_IIF]) { 409 NL_SET_ERR_MSG_ATTR(extack, tb[TCA_ROUTE4_FROM], 414 if (tb[TCA_ROUTE4_FROM]) { 415 id = nla_get_u32(tb[TCA_ROUTE4_FROM]); 417 } else if (tb[TCA_ROUTE4_II 383 route4_set_parms(struct net *net, struct tcf_proto *tp, unsigned long base, struct route4_filter *f, u32 handle, struct route4_head *head, struct nlattr **tb, struct nlattr *est, int new, u32 flags, struct netlink_ext_ack *extack) argument 485 struct nlattr *tb[TCA_ROUTE4_MAX + 1]; local [all...] |
/linux-master/drivers/net/ethernet/rocker/ |
H A D | rocker_tlv.h | 109 void rocker_tlv_parse(const struct rocker_tlv **tb, int maxtype, 112 static inline void rocker_tlv_parse_nested(const struct rocker_tlv **tb, argument 116 rocker_tlv_parse(tb, maxtype, rocker_tlv_data(tlv), 121 rocker_tlv_parse_desc(const struct rocker_tlv **tb, int maxtype, argument 124 rocker_tlv_parse(tb, maxtype, desc_info->data,
|
/linux-master/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib_netlink.c | 71 static int ipoib_changelink(struct net_device *dev, struct nlattr *tb[], argument 101 struct nlattr *tb[], struct nlattr *data[], 109 if (!tb[IFLA_LINK]) 112 pdev = __dev_get_by_index(src_net, nla_get_u32(tb[IFLA_LINK])); 141 err = ipoib_changelink(dev, tb, data, extack); 100 ipoib_new_child_link(struct net *src_net, struct net_device *dev, struct nlattr *tb[], struct nlattr *data[], struct netlink_ext_ack *extack) argument
|
/linux-master/net/netfilter/ |
H A D | nft_last.c | 26 const struct nlattr * const tb[]) 37 if (tb[NFTA_LAST_SET]) 38 last->set = ntohl(nla_get_be32(tb[NFTA_LAST_SET])); 40 if (last->set && tb[NFTA_LAST_MSECS]) { 41 err = nf_msecs_to_jiffies64(tb[NFTA_LAST_MSECS], &last_jiffies); 25 nft_last_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) argument
|
H A D | nft_payload.c | 233 const struct nlattr * const tb[]) 237 priv->base = ntohl(nla_get_be32(tb[NFTA_PAYLOAD_BASE])); 238 priv->offset = ntohl(nla_get_be32(tb[NFTA_PAYLOAD_OFFSET])); 239 priv->len = ntohl(nla_get_be32(tb[NFTA_PAYLOAD_LEN])); 241 return nft_parse_register_store(ctx, tb[NFTA_PAYLOAD_DREG], 657 const struct nlattr * const tb[]) 662 base = ntohl(nla_get_be32(tb[NFTA_PAYLOAD_BASE])); 674 priv->offset = ntohl(nla_get_be32(tb[NFTA_PAYLOAD_OFFSET])); 675 priv->len = ntohl(nla_get_be32(tb[NFTA_PAYLOAD_LEN])); 677 return nft_parse_register_store(ctx, tb[NFTA_PAYLOAD_DRE 231 nft_payload_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) argument 655 nft_payload_inner_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) argument 883 nft_payload_set_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) argument 984 nft_payload_select_ops(const struct nft_ctx *ctx, const struct nlattr * const tb[]) argument [all...] |
H A D | nf_conntrack_proto_icmp.c | 274 static int icmp_nlattr_to_tuple(struct nlattr *tb[], argument 279 if (!tb[CTA_PROTO_ICMP_TYPE]) 282 tuple->dst.u.icmp.type = nla_get_u8(tb[CTA_PROTO_ICMP_TYPE]); 289 if (!tb[CTA_PROTO_ICMP_CODE]) 292 tuple->dst.u.icmp.code = nla_get_u8(tb[CTA_PROTO_ICMP_CODE]); 296 if (!tb[CTA_PROTO_ICMP_ID]) 299 tuple->src.u.icmp.id = nla_get_be16(tb[CTA_PROTO_ICMP_ID]); 321 static int icmp_timeout_nlattr_to_obj(struct nlattr *tb[], argument 327 if (tb[CTA_TIMEOUT_ICMP_TIMEOUT]) { 331 ntohl(nla_get_be32(tb[CTA_TIMEOUT_ICMP_TIMEOU [all...] |
H A D | nf_conntrack_proto_icmpv6.c | 249 static int icmpv6_nlattr_to_tuple(struct nlattr *tb[], argument 254 if (!tb[CTA_PROTO_ICMPV6_TYPE]) 257 tuple->dst.u.icmp.type = nla_get_u8(tb[CTA_PROTO_ICMPV6_TYPE]); 265 if (!tb[CTA_PROTO_ICMPV6_CODE]) 268 tuple->dst.u.icmp.code = nla_get_u8(tb[CTA_PROTO_ICMPV6_CODE]); 272 if (!tb[CTA_PROTO_ICMPV6_ID]) 275 tuple->src.u.icmp.id = nla_get_be16(tb[CTA_PROTO_ICMPV6_ID]); 297 static int icmpv6_timeout_nlattr_to_obj(struct nlattr *tb[], argument 305 if (tb[CTA_TIMEOUT_ICMPV6_TIMEOUT]) { 307 ntohl(nla_get_be32(tb[CTA_TIMEOUT_ICMPV6_TIMEOU [all...] |
H A D | nft_tproxy.c | 193 const struct nlattr * const tb[]) 199 if (!tb[NFTA_TPROXY_FAMILY] || 200 (!tb[NFTA_TPROXY_REG_ADDR] && !tb[NFTA_TPROXY_REG_PORT])) 203 priv->family = ntohl(nla_get_be32(tb[NFTA_TPROXY_FAMILY])); 223 if (priv->family == NFPROTO_UNSPEC && tb[NFTA_TPROXY_REG_ADDR]) 256 if (tb[NFTA_TPROXY_REG_ADDR]) { 257 err = nft_parse_register_load(tb[NFTA_TPROXY_REG_ADDR], 263 if (tb[NFTA_TPROXY_REG_PORT]) { 264 err = nft_parse_register_load(tb[NFTA_TPROXY_REG_POR 191 nft_tproxy_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) argument [all...] |
H A D | nft_lookup.c | 99 const struct nlattr * const tb[]) 107 if (tb[NFTA_LOOKUP_SET] == NULL || 108 tb[NFTA_LOOKUP_SREG] == NULL) 111 set = nft_set_lookup_global(ctx->net, ctx->table, tb[NFTA_LOOKUP_SET], 112 tb[NFTA_LOOKUP_SET_ID], genmask); 116 err = nft_parse_register_load(tb[NFTA_LOOKUP_SREG], &priv->sreg, 121 if (tb[NFTA_LOOKUP_FLAGS]) { 122 flags = ntohl(nla_get_be32(tb[NFTA_LOOKUP_FLAGS])); 128 if (tb[NFTA_LOOKUP_DREG] != NULL) { 134 err = nft_parse_register_store(ctx, tb[NFTA_LOOKUP_DRE 97 nft_lookup_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) argument [all...] |
/linux-master/net/ethtool/ |
H A D | module.c | 107 struct nlattr **tb = info->attrs; local 109 if (!tb[ETHTOOL_A_MODULE_POWER_MODE_POLICY]) 114 tb[ETHTOOL_A_MODULE_POWER_MODE_POLICY], 129 struct nlattr **tb = info->attrs; local 134 power_new.policy = nla_get_u8(tb[ETHTOOL_A_MODULE_POWER_MODE_POLICY]);
|
H A D | eee.c | 131 struct nlattr **tb = info->attrs; local 142 tb[ETHTOOL_A_EEE_MODES_OURS], 146 ethnl_update_bool(&eee.eee_enabled, tb[ETHTOOL_A_EEE_ENABLED], &mod); 147 ethnl_update_bool(&eee.tx_lpi_enabled, tb[ETHTOOL_A_EEE_TX_LPI_ENABLED], 149 ethnl_update_u32(&eee.tx_lpi_timer, tb[ETHTOOL_A_EEE_TX_LPI_TIMER],
|
/linux-master/net/phonet/ |
H A D | pn_netlink.c | 55 struct nlattr *tb[IFA_MAX+1]; local 69 err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX, 75 if (tb[IFA_LOCAL] == NULL) 77 pnaddr = nla_get_u8(tb[IFA_LOCAL]); 222 struct nlattr *tb[RTA_MAX+1]; local 236 err = nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX, 244 if (tb[RTA_DST] == NULL || tb[RTA_OIF] == NULL) 246 dst = nla_get_u8(tb[RTA_DST]); 250 dev = __dev_get_by_index(net, nla_get_u32(tb[RTA_OI [all...] |
/linux-master/net/8021q/ |
H A D | vlan_netlink.c | 39 static int vlan_validate(struct nlattr *tb[], struct nlattr *data[], argument 46 if (tb[IFLA_ADDRESS]) { 47 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) { 51 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) { 104 static int vlan_changelink(struct net_device *dev, struct nlattr *tb[], argument 141 struct nlattr *tb[], struct nlattr *data[], 155 if (!tb[IFLA_LINK]) { 160 real_dev = __dev_get_by_index(src_net, nla_get_u32(tb[IFLA_LINK])); 184 if (!tb[IFLA_MTU]) 192 err = vlan_changelink(dev, tb, dat 140 vlan_newlink(struct net *src_net, struct net_device *dev, struct nlattr *tb[], struct nlattr *data[], struct netlink_ext_ack *extack) argument [all...] |
/linux-master/drivers/net/wireless/ath/ath10k/ |
H A D | wmi-tlv.c | 126 const void **tb = data; local 129 tb[tag] = ptr; 134 static int ath10k_wmi_tlv_parse(struct ath10k *ar, const void **tb, argument 138 (void *)tb); 145 const void **tb; local 148 tb = kcalloc(WMI_TLV_TAG_MAX, sizeof(*tb), gfp); 149 if (!tb) 152 ret = ath10k_wmi_tlv_parse(ar, tb, ptr, len); 154 kfree(tb); 172 const void **tb; local 265 const void **tb; local 314 const void **tb; local 377 const void **tb; local 405 const void **tb; local 439 const void **tb; local 505 const void **tb; local 561 const void **tb; local 811 const void **tb; local 843 const void **tb; local 949 const void **tb; local 1001 const void **tb; local 1036 const void **tb; local 1067 const void **tb; local 1214 const void **tb; local 1392 const void **tb; local 1493 const void **tb; local 1632 const void **tb; local 1661 const void **tb; local 1691 const void **tb; local [all...] |
/linux-master/net/bridge/ |
H A D | br_netlink.c | 930 static void br_set_port_flag(struct net_bridge_port *p, struct nlattr *tb[], argument 933 if (!tb[attrtype]) 936 if (nla_get_u8(tb[attrtype])) 943 static int br_setport(struct net_bridge_port *p, struct nlattr *tb[], argument 953 br_set_port_flag(p, tb, IFLA_BRPORT_MODE, BR_HAIRPIN_MODE); 954 br_set_port_flag(p, tb, IFLA_BRPORT_GUARD, BR_BPDU_GUARD); 955 br_set_port_flag(p, tb, IFLA_BRPORT_FAST_LEAVE, 957 br_set_port_flag(p, tb, IFLA_BRPORT_PROTECT, BR_ROOT_BLOCK); 958 br_set_port_flag(p, tb, IFLA_BRPORT_LEARNING, BR_LEARNING); 959 br_set_port_flag(p, tb, IFLA_BRPORT_UNICAST_FLOO 1089 struct nlattr *tb[IFLA_BRPORT_MAX + 1]; local 1171 br_validate(struct nlattr *tb[], struct nlattr *data[], struct netlink_ext_ack *extack) argument 1200 br_port_slave_changelink(struct net_device *brdev, struct net_device *dev, struct nlattr *tb[], struct nlattr *data[], struct netlink_ext_ack *extack) argument 1275 br_changelink(struct net_device *brdev, struct nlattr *tb[], struct nlattr *data[], struct netlink_ext_ack *extack) argument 1556 br_dev_newlink(struct net *src_net, struct net_device *dev, struct nlattr *tb[], struct nlattr *data[], struct netlink_ext_ack *extack) argument [all...] |
/linux-master/net/core/ |
H A D | lwt_bpf.c | 335 struct nlattr *tb[LWT_BPF_PROG_MAX + 1]; local 340 ret = nla_parse_nested_deprecated(tb, LWT_BPF_PROG_MAX, attr, 345 if (!tb[LWT_BPF_PROG_FD] || !tb[LWT_BPF_PROG_NAME]) 348 prog->name = nla_memdup(tb[LWT_BPF_PROG_NAME], GFP_ATOMIC); 352 fd = nla_get_u32(tb[LWT_BPF_PROG_FD]); 374 struct nlattr *tb[LWT_BPF_MAX + 1]; local 382 ret = nla_parse_nested_deprecated(tb, LWT_BPF_MAX, nla, bpf_nl_policy, 387 if (!tb[LWT_BPF_IN] && !tb[LWT_BPF_OU [all...] |