/linux-master/net/netfilter/ |
H A D | nft_numgen.c | 54 const struct nlattr * const tb[]) 59 if (tb[NFTA_NG_OFFSET]) 60 priv->offset = ntohl(nla_get_be32(tb[NFTA_NG_OFFSET])); 62 priv->modulus = ntohl(nla_get_be32(tb[NFTA_NG_MODULUS])); 75 err = nft_parse_register_store(ctx, tb[NFTA_NG_DREG], &priv->dreg, 154 const struct nlattr * const tb[]) 158 if (tb[NFTA_NG_OFFSET]) 159 priv->offset = ntohl(nla_get_be32(tb[NFTA_NG_OFFSET])); 161 priv->modulus = ntohl(nla_get_be32(tb[NFTA_NG_MODULUS])); 168 return nft_parse_register_store(ctx, tb[NFTA_NG_DRE 52 nft_ng_inc_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) argument 152 nft_ng_random_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) argument 212 nft_ng_select_ops(const struct nft_ctx *ctx, const struct nlattr * const tb[]) argument [all...] |
H A D | nft_objref.c | 27 const struct nlattr * const tb[]) 33 if (!tb[NFTA_OBJREF_IMM_NAME] || 34 !tb[NFTA_OBJREF_IMM_TYPE]) 37 objtype = ntohl(nla_get_be32(tb[NFTA_OBJREF_IMM_TYPE])); 39 tb[NFTA_OBJREF_IMM_NAME], objtype, 130 const struct nlattr * const tb[]) 138 tb[NFTA_OBJREF_SET_NAME], 139 tb[NFTA_OBJREF_SET_ID], genmask); 146 err = nft_parse_register_load(tb[NFTA_OBJREF_SET_SREG], &priv->sreg, 215 const struct nlattr * const tb[]) 25 nft_objref_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) argument 128 nft_objref_map_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) argument 214 nft_objref_select_ops(const struct nft_ctx *ctx, const struct nlattr * const tb[]) argument [all...] |
H A D | nft_bitwise.c | 94 const struct nlattr *const tb[]) 108 if (tb[NFTA_BITWISE_DATA]) 111 if (!tb[NFTA_BITWISE_MASK] || 112 !tb[NFTA_BITWISE_XOR]) 115 err = nft_data_init(NULL, &priv->mask, &mask, tb[NFTA_BITWISE_MASK]); 119 err = nft_data_init(NULL, &priv->xor, &xor, tb[NFTA_BITWISE_XOR]); 132 const struct nlattr *const tb[]) 141 if (tb[NFTA_BITWISE_MASK] || 142 tb[NFTA_BITWISE_XOR]) 145 if (!tb[NFTA_BITWISE_DAT 93 nft_bitwise_init_bool(struct nft_bitwise *priv, const struct nlattr *const tb[]) argument 131 nft_bitwise_init_shift(struct nft_bitwise *priv, const struct nlattr *const tb[]) argument 160 nft_bitwise_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) argument 342 nft_bitwise_extract_u32_data(const struct nlattr * const tb, u32 *out) argument 361 nft_bitwise_fast_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) argument 485 nft_bitwise_select_ops(const struct nft_ctx *ctx, const struct nlattr * const tb[]) argument [all...] |
H A D | nft_range.c | 51 const struct nlattr * const tb[]) 65 if (!tb[NFTA_RANGE_SREG] || 66 !tb[NFTA_RANGE_OP] || 67 !tb[NFTA_RANGE_FROM_DATA] || 68 !tb[NFTA_RANGE_TO_DATA]) 72 tb[NFTA_RANGE_FROM_DATA]); 77 tb[NFTA_RANGE_TO_DATA]); 86 err = nft_parse_register_load(tb[NFTA_RANGE_SREG], &priv->sreg, 91 err = nft_parse_u32_check(tb[NFTA_RANGE_OP], U8_MAX, &op); 50 nft_range_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) argument
|
H A D | nft_fwd_netdev.c | 48 const struct nlattr * const tb[]) 52 if (tb[NFTA_FWD_SREG_DEV] == NULL) 55 return nft_parse_register_load(tb[NFTA_FWD_SREG_DEV], &priv->sreg_dev, 157 const struct nlattr * const tb[]) 163 if (!tb[NFTA_FWD_SREG_DEV] || 164 !tb[NFTA_FWD_SREG_ADDR] || 165 !tb[NFTA_FWD_NFPROTO]) 168 priv->nfproto = ntohl(nla_get_be32(tb[NFTA_FWD_NFPROTO])); 181 err = nft_parse_register_load(tb[NFTA_FWD_SREG_DEV], &priv->sreg_dev, 186 return nft_parse_register_load(tb[NFTA_FWD_SREG_ADD 46 nft_fwd_netdev_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) argument 155 nft_fwd_neigh_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) argument 238 nft_fwd_select_ops(const struct nft_ctx *ctx, const struct nlattr * const tb[]) argument [all...] |
H A D | nft_limit.c | 59 const struct nlattr * const tb[], bool pkts) 64 if (tb[NFTA_LIMIT_RATE] == NULL || 65 tb[NFTA_LIMIT_UNIT] == NULL) 68 priv->rate = be64_to_cpu(nla_get_be64(tb[NFTA_LIMIT_RATE])); 72 unit = be64_to_cpu(nla_get_be64(tb[NFTA_LIMIT_UNIT])); 76 if (tb[NFTA_LIMIT_BURST]) 77 priv->burst = ntohl(nla_get_be32(tb[NFTA_LIMIT_BURST])); 103 if (tb[NFTA_LIMIT_FLAGS]) { 104 u32 flags = ntohl(nla_get_be32(tb[NFTA_LIMIT_FLAGS])); 197 const struct nlattr * const tb[]) 58 nft_limit_init(struct nft_limit_priv *priv, const struct nlattr * const tb[], bool pkts) argument 195 nft_limit_pkts_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) argument 259 nft_limit_bytes_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) argument 304 nft_limit_select_ops(const struct nft_ctx *ctx, const struct nlattr * const tb[]) argument 338 nft_limit_obj_pkts_init(const struct nft_ctx *ctx, const struct nlattr * const tb[], struct nft_object *obj) argument 391 nft_limit_obj_bytes_init(const struct nft_ctx *ctx, const struct nlattr * const tb[], struct nft_object *obj) argument 428 nft_limit_obj_select_ops(const struct nft_ctx *ctx, const struct nlattr * const tb[]) argument [all...] |
/linux-master/drivers/thunderbolt/ |
H A D | usb4_port.c | 13 #include "tb.h" 46 struct tb *tb = port->sw->tb; local 49 if (mutex_lock_interruptible(&tb->lock)) 61 mutex_unlock(&tb->lock); 121 struct tb *tb = port->sw->tb; local 131 if (mutex_lock_interruptible(&tb 172 struct tb *tb = port->sw->tb; local [all...] |
/linux-master/net/netfilter/ipset/ |
H A D | ip_set_hash_netnet.c | 166 hash_netnet4_uadt(struct ip_set *set, struct nlattr *tb[], argument 177 if (tb[IPSET_ATTR_LINENO]) 178 *lineno = nla_get_u32(tb[IPSET_ATTR_LINENO]); 181 if (unlikely(!tb[IPSET_ATTR_IP] || !tb[IPSET_ATTR_IP2] || 182 !ip_set_optattr_netorder(tb, IPSET_ATTR_CADT_FLAGS))) 185 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP], &ip); 189 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP2], &ip2_from); 193 ret = ip_set_get_extensions(set, tb, &ext); 197 if (tb[IPSET_ATTR_CID 410 hash_netnet6_uadt(struct ip_set *set, struct nlattr *tb[], enum ipset_adt adt, u32 *lineno, u32 flags, bool retried) argument [all...] |
H A D | ip_set_hash_net.c | 136 hash_net4_uadt(struct ip_set *set, struct nlattr *tb[], argument 146 if (tb[IPSET_ATTR_LINENO]) 147 *lineno = nla_get_u32(tb[IPSET_ATTR_LINENO]); 149 if (unlikely(!tb[IPSET_ATTR_IP] || 150 !ip_set_optattr_netorder(tb, IPSET_ATTR_CADT_FLAGS))) 153 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP], &ip); 157 ret = ip_set_get_extensions(set, tb, &ext); 161 if (tb[IPSET_ATTR_CIDR]) { 162 e.cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); 167 if (tb[IPSET_ATTR_CADT_FLAG 310 hash_net6_uadt(struct ip_set *set, struct nlattr *tb[], enum ipset_adt adt, u32 *lineno, u32 flags, bool retried) argument [all...] |
H A D | ip_set_bitmap_port.c | 153 bitmap_port_uadt(struct ip_set *set, struct nlattr *tb[], argument 164 if (tb[IPSET_ATTR_LINENO]) 165 *lineno = nla_get_u32(tb[IPSET_ATTR_LINENO]); 167 if (unlikely(!ip_set_attr_netorder(tb, IPSET_ATTR_PORT) || 168 !ip_set_optattr_netorder(tb, IPSET_ATTR_PORT_TO))) 171 port = ip_set_get_h16(tb[IPSET_ATTR_PORT]); 174 ret = ip_set_get_extensions(set, tb, &ext); 183 if (tb[IPSET_ATTR_PORT_TO]) { 184 port_to = ip_set_get_h16(tb[IPSET_ATTR_PORT_TO]); 249 bitmap_port_create(struct net *net, struct ip_set *set, struct nlattr *tb[], argument [all...] |
H A D | ip_set_hash_ip.c | 100 hash_ip4_uadt(struct ip_set *set, struct nlattr *tb[], argument 110 if (tb[IPSET_ATTR_LINENO]) 111 *lineno = nla_get_u32(tb[IPSET_ATTR_LINENO]); 113 if (unlikely(!tb[IPSET_ATTR_IP])) 116 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP], &ip); 120 ret = ip_set_get_extensions(set, tb, &ext); 133 if (tb[IPSET_ATTR_IP_TO]) { 134 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); 142 } else if (tb[IPSET_ATTR_CIDR]) { 143 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CID 234 hash_ip6_uadt(struct ip_set *set, struct nlattr *tb[], enum ipset_adt adt, u32 *lineno, u32 flags, bool retried) argument [all...] |
H A D | ip_set_bitmap_ip.c | 130 bitmap_ip_uadt(struct ip_set *set, struct nlattr *tb[], argument 140 if (tb[IPSET_ATTR_LINENO]) 141 *lineno = nla_get_u32(tb[IPSET_ATTR_LINENO]); 143 if (unlikely(!tb[IPSET_ATTR_IP])) 146 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP], &ip); 150 ret = ip_set_get_extensions(set, tb, &ext); 162 if (tb[IPSET_ATTR_IP_TO]) { 163 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); 171 } else if (tb[IPSET_ATTR_CIDR]) { 172 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CID 253 bitmap_ip_create(struct net *net, struct ip_set *set, struct nlattr *tb[], u32 flags) argument [all...] |
/linux-master/drivers/net/wireless/mediatek/mt76/ |
H A D | testmode.c | 413 struct nlattr *tb[NUM_MT76_TM_ATTRS]; local 421 err = nla_parse_deprecated(tb, MT76_TM_ATTR_MAX, data, len, 430 if (tb[MT76_TM_ATTR_RESET]) { 437 if (tb[MT76_TM_ATTR_TX_COUNT]) 438 td->tx_count = nla_get_u32(tb[MT76_TM_ATTR_TX_COUNT]); 440 if (tb[MT76_TM_ATTR_TX_RATE_IDX]) 441 td->tx_rate_idx = nla_get_u8(tb[MT76_TM_ATTR_TX_RATE_IDX]); 443 if (mt76_tm_get_u8(tb[MT76_TM_ATTR_TX_RATE_MODE], &td->tx_rate_mode, 445 mt76_tm_get_u8(tb[MT76_TM_ATTR_TX_RATE_NSS], &td->tx_rate_nss, 447 mt76_tm_get_u8(tb[MT76_TM_ATTR_TX_RATE_SG 576 struct nlattr *tb[NUM_MT76_TM_ATTRS] = {}; local [all...] |
/linux-master/security/keys/trusted-keys/ |
H A D | trusted_tpm1.c | 391 static int osap(struct tpm_buf *tb, struct osapsess *s, argument 405 tpm_buf_reset(tb, TPM_TAG_RQU_COMMAND, TPM_ORD_OSAP); 406 tpm_buf_append_u16(tb, type); 407 tpm_buf_append_u32(tb, handle); 408 tpm_buf_append(tb, ononce, TPM_NONCE_SIZE); 410 ret = trusted_tpm_send(tb->data, MAX_BUF_SIZE); 414 s->handle = LOAD32(tb->data, TPM_DATA_OFFSET); 415 memcpy(s->enonce, &(tb->data[TPM_DATA_OFFSET + sizeof(uint32_t)]), 417 memcpy(enonce, &(tb->data[TPM_DATA_OFFSET + sizeof(uint32_t) + 426 int oiap(struct tpm_buf *tb, uint32_ argument 457 tpm_seal(struct tpm_buf *tb, uint16_t keytype, uint32_t keyhandle, const unsigned char *keyauth, const unsigned char *data, uint32_t datalen, unsigned char *blob, uint32_t *bloblen, const unsigned char *blobauth, const unsigned char *pcrinfo, uint32_t pcrinfosize) argument 575 tpm_unseal(struct tpm_buf *tb, uint32_t keyhandle, const unsigned char *keyauth, const unsigned char *blob, int bloblen, const unsigned char *blobauth, unsigned char *data, unsigned int *datalen) argument 664 struct tpm_buf tb; local 690 struct tpm_buf tb; local [all...] |
/linux-master/net/ipv4/ |
H A D | inet_hashtables.c | 70 struct inet_bind_bucket *tb = kmem_cache_alloc(cachep, GFP_ATOMIC); local 72 if (tb) { 73 write_pnet(&tb->ib_net, net); 74 tb->l3mdev = l3mdev; 75 tb->port = snum; 76 tb->fastreuse = 0; 77 tb->fastreuseport = 0; 78 INIT_HLIST_HEAD(&tb->bhash2); 79 hlist_add_head(&tb->node, &head->chain); 81 return tb; 87 inet_bind_bucket_destroy(struct kmem_cache *cachep, struct inet_bind_bucket *tb) argument 95 inet_bind_bucket_match(const struct inet_bind_bucket *tb, const struct net *net, unsigned short port, int l3mdev) argument 102 inet_bind2_bucket_init(struct inet_bind2_bucket *tb2, struct net *net, struct inet_bind_hashbucket *head, struct inet_bind_bucket *tb, const struct sock *sk) argument 128 inet_bind2_bucket_create(struct kmem_cache *cachep, struct net *net, struct inet_bind_hashbucket *head, struct inet_bind_bucket *tb, const struct sock *sk) argument 143 inet_bind2_bucket_destroy(struct kmem_cache *cachep, struct inet_bind2_bucket *tb) argument 165 inet_bind_hash(struct sock *sk, struct inet_bind_bucket *tb, struct inet_bind2_bucket *tb2, unsigned short port) argument 182 struct inet_bind_bucket *tb; local 225 struct inet_bind_bucket *tb; local 707 struct inet_bind_bucket *tb = inet_csk(sk)->icsk_bind_hash; local 814 inet_bind2_bucket_match(const struct inet_bind2_bucket *tb, const struct net *net, unsigned short port, int l3mdev, const struct sock *sk) argument 825 inet_bind2_bucket_match_addr_any(const struct inet_bind2_bucket *tb, const struct net *net, unsigned short port, int l3mdev, const struct sock *sk) argument 1004 struct inet_bind_bucket *tb; local [all...] |
/linux-master/net/bridge/netfilter/ |
H A D | nft_meta_bridge.c | 74 const struct nlattr * const tb[]) 79 priv->key = ntohl(nla_get_be32(tb[NFTA_META_KEY])); 90 return nft_meta_get_init(ctx, expr, tb); 94 return nft_parse_register_store(ctx, tb[NFTA_META_DREG], &priv->dreg, 129 const struct nlattr * const tb[]) 135 priv->key = ntohl(nla_get_be32(tb[NFTA_META_KEY])); 141 return nft_meta_set_init(ctx, expr, tb); 145 err = nft_parse_register_load(tb[NFTA_META_SREG], &priv->sreg, len); 201 const struct nlattr * const tb[]) 203 if (tb[NFTA_META_KE 72 nft_meta_bridge_get_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) argument 127 nft_meta_bridge_set_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) argument 200 nft_meta_bridge_select_ops(const struct nft_ctx *ctx, const struct nlattr * const tb[]) argument [all...] |
/linux-master/net/ethtool/ |
H A D | eeprom.c | 146 static int eeprom_parse_request(struct ethnl_req_info *req_info, struct nlattr **tb, argument 151 if (!tb[ETHTOOL_A_MODULE_EEPROM_OFFSET] || 152 !tb[ETHTOOL_A_MODULE_EEPROM_LENGTH] || 153 !tb[ETHTOOL_A_MODULE_EEPROM_PAGE] || 154 !tb[ETHTOOL_A_MODULE_EEPROM_I2C_ADDRESS]) 157 request->i2c_address = nla_get_u8(tb[ETHTOOL_A_MODULE_EEPROM_I2C_ADDRESS]); 158 request->offset = nla_get_u32(tb[ETHTOOL_A_MODULE_EEPROM_OFFSET]); 159 request->length = nla_get_u32(tb[ETHTOOL_A_MODULE_EEPROM_LENGTH]); 167 request->page = nla_get_u8(tb[ETHTOOL_A_MODULE_EEPROM_PAGE]); 169 NL_SET_ERR_MSG_ATTR(extack, tb[ETHTOOL_A_MODULE_EEPROM_PAG [all...] |
H A D | linkmodes.c | 214 static int ethnl_check_linkmodes(struct genl_info *info, struct nlattr **tb) argument 218 master_slave_cfg = tb[ETHTOOL_A_LINKMODES_MASTER_SLAVE_CFG]; 226 lanes_cfg = tb[ETHTOOL_A_LINKMODES_LANES]; 236 static int ethnl_update_linkmodes(struct genl_info *info, struct nlattr **tb, argument 245 master_slave_cfg = tb[ETHTOOL_A_LINKMODES_MASTER_SLAVE_CFG]; 255 req_speed = tb[ETHTOOL_A_LINKMODES_SPEED]; 256 req_lanes = tb[ETHTOOL_A_LINKMODES_LANES]; 257 req_duplex = tb[ETHTOOL_A_LINKMODES_DUPLEX]; 259 ethnl_update_u8(&lsettings->autoneg, tb[ETHTOOL_A_LINKMODES_AUTONEG], 262 lanes_cfg = tb[ETHTOOL_A_LINKMODES_LANE 323 struct nlattr **tb = info->attrs; local [all...] |
/linux-master/net/sched/ |
H A D | cls_flower.c | 789 static void fl_set_key_val(struct nlattr **tb, argument 793 if (!tb[val_type]) 795 nla_memcpy(val, tb[val_type], len); 796 if (mask_type == TCA_FLOWER_UNSPEC || !tb[mask_type]) 799 nla_memcpy(mask, tb[mask_type], len); 802 static int fl_set_key_spi(struct nlattr **tb, struct fl_flow_key *key, argument 813 fl_set_key_val(tb, &key->ipsec.spi, 820 static int fl_set_key_port_range(struct nlattr **tb, struct fl_flow_key *key, argument 824 fl_set_key_val(tb, &key->tp_range.tp_min.dst, 827 fl_set_key_val(tb, 872 struct nlattr *tb[TCA_FLOWER_KEY_MPLS_OPT_LSE_MAX + 1]; local 987 fl_set_key_mpls(struct nlattr **tb, struct flow_dissector_key_mpls *key_val, struct flow_dissector_key_mpls *key_mask, struct netlink_ext_ack *extack) argument 1064 fl_set_key_vlan(struct nlattr **tb, __be16 ethertype, int vlan_id_key, int vlan_prio_key, int vlan_next_eth_type_key, struct flow_dissector_key_vlan *key_val, struct flow_dissector_key_vlan *key_mask) argument 1095 fl_set_key_pppoe(struct nlattr **tb, struct flow_dissector_key_pppoe *key_val, struct flow_dissector_key_pppoe *key_mask, struct fl_flow_key *key, struct fl_flow_key *mask) argument 1150 fl_set_key_flags(struct nlattr **tb, u32 *flags_key, u32 *flags_mask, struct netlink_ext_ack *extack) argument 1176 fl_set_key_ip(struct nlattr **tb, bool encap, struct flow_dissector_key_ip *key, struct flow_dissector_key_ip *mask) argument 1193 struct nlattr *tb[TCA_FLOWER_KEY_ENC_OPT_GENEVE_MAX + 1]; local 1281 struct nlattr *tb[TCA_FLOWER_KEY_ENC_OPT_VXLAN_MAX + 1]; local 1318 struct nlattr *tb[TCA_FLOWER_KEY_ENC_OPT_ERSPAN_MAX + 1]; local 1383 struct nlattr *tb[TCA_FLOWER_KEY_ENC_OPT_GTP_MAX + 1]; local 1422 fl_set_enc_opt(struct nlattr **tb, struct fl_flow_key *key, struct fl_flow_key *mask, struct netlink_ext_ack *extack) argument 1596 fl_validate_ct_state(u16 state, struct nlattr *tb, struct netlink_ext_ack *extack) argument 1630 fl_set_key_ct(struct nlattr **tb, struct flow_dissector_key_ct *key, struct flow_dissector_key_ct *mask, struct netlink_ext_ack *extack) argument 1684 is_vlan_key(struct nlattr *tb, __be16 *ethertype, struct fl_flow_key *key, struct fl_flow_key *mask, int vthresh) argument 1704 fl_set_key_cfm_md_level(struct nlattr **tb, struct fl_flow_key *key, struct fl_flow_key *mask, struct netlink_ext_ack *extack) argument 1719 fl_set_key_cfm_opcode(struct nlattr **tb, struct fl_flow_key *key, struct fl_flow_key *mask, struct netlink_ext_ack *extack) argument 1729 fl_set_key_cfm(struct nlattr **tb, struct fl_flow_key *key, struct fl_flow_key *mask, struct netlink_ext_ack *extack) argument 1751 fl_set_key(struct net *net, struct nlattr **tb, struct fl_flow_key *key, struct fl_flow_key *mask, struct netlink_ext_ack *extack) argument 2240 struct nlattr **tb; local 2679 struct nlattr **tb; local [all...] |
H A D | act_tunnel_key.c | 91 struct nlattr *tb[TCA_TUNNEL_KEY_ENC_OPT_GENEVE_MAX + 1]; local 95 err = nla_parse_nested_deprecated(tb, 101 if (!tb[TCA_TUNNEL_KEY_ENC_OPT_GENEVE_CLASS] || 102 !tb[TCA_TUNNEL_KEY_ENC_OPT_GENEVE_TYPE] || 103 !tb[TCA_TUNNEL_KEY_ENC_OPT_GENEVE_DATA]) { 108 data = nla_data(tb[TCA_TUNNEL_KEY_ENC_OPT_GENEVE_DATA]); 109 data_len = nla_len(tb[TCA_TUNNEL_KEY_ENC_OPT_GENEVE_DATA]); 126 nla_get_be16(tb[TCA_TUNNEL_KEY_ENC_OPT_GENEVE_CLASS]); 127 opt->type = nla_get_u8(tb[TCA_TUNNEL_KEY_ENC_OPT_GENEVE_TYPE]); 143 struct nlattr *tb[TCA_TUNNEL_KEY_ENC_OPT_VXLAN_MA local 170 struct nlattr *tb[TCA_TUNNEL_KEY_ENC_OPT_ERSPAN_MAX + 1]; local 364 struct nlattr *tb[TCA_TUNNEL_KEY_MAX + 1]; local [all...] |
/linux-master/drivers/infiniband/core/ |
H A D | nldev.c | 1051 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX]; local 1057 err = nlmsg_parse_deprecated(nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1, 1059 if (err || !tb[RDMA_NLDEV_ATTR_DEV_INDEX]) 1062 index = nla_get_u32(tb[RDMA_NLDEV_ATTR_DEV_INDEX]); 1101 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX]; local 1106 err = nlmsg_parse_deprecated(nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1, 1108 if (err || !tb[RDMA_NLDEV_ATTR_DEV_INDEX]) 1111 index = nla_get_u32(tb[RDMA_NLDEV_ATTR_DEV_INDEX]); 1116 if (tb[RDMA_NLDEV_ATTR_DEV_NAME]) { 1119 nla_strscpy(name, tb[RDMA_NLDEV_ATTR_DEV_NAM 1191 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX]; local 1249 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX]; local 1307 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX]; local 1452 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX]; local 1533 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX]; local 1726 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX]; local 1773 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX]; local 1800 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX]; local 1888 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX]; local 1939 nldev_set_sys_set_netns_doit(struct nlattr *tb[]) argument 1953 nldev_set_sys_set_pqkey_doit(struct nlattr *tb[]) argument 1969 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX]; local 1987 nldev_stat_set_mode_doit(struct sk_buff *msg, struct netlink_ext_ack *extack, struct nlattr *tb[], struct ib_device *device, u32 port) argument 2036 nldev_stat_set_counter_dynamic_doit(struct nlattr *tb[], struct ib_device *device, u32 port) argument 2084 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX]; local 2154 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX]; local 2221 stat_get_doit_default_counter(struct sk_buff *skb, struct nlmsghdr *nlh, struct netlink_ext_ack *extack, struct nlattr *tb[]) argument 2314 stat_get_doit_qp(struct sk_buff *skb, struct nlmsghdr *nlh, struct netlink_ext_ack *extack, struct nlattr *tb[]) argument 2389 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX]; local 2419 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX]; local 2447 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX], *table, *entry; local [all...] |
/linux-master/drivers/block/drbd/ |
H A D | drbd_nla.c | 31 int drbd_nla_parse_nested(struct nlattr *tb[], int maxtype, struct nlattr *nla, argument 38 err = nla_parse_nested_deprecated(tb, maxtype, nla, policy,
|
/linux-master/drivers/net/wireless/mediatek/mt76/mt7921/ |
H A D | testmode.c | 114 struct nlattr *tb[NUM_MT76_TM_ATTRS]; local 123 err = nla_parse_deprecated(tb, MT76_TM_ATTR_MAX, data, len, 128 if (tb[MT76_TM_ATTR_DRV_DATA]) { 132 data = tb[MT76_TM_ATTR_DRV_DATA]; 151 struct nlattr *tb[NUM_MT76_TM_ATTRS]; local 164 err = nla_parse_deprecated(tb, MT76_TM_ATTR_MAX, data, len, 169 if (tb[MT76_TM_ATTR_DRV_DATA]) { 173 data = tb[MT76_TM_ATTR_DRV_DATA];
|
/linux-master/include/net/ |
H A D | rtnetlink.h | 84 struct net_device *(*alloc)(struct nlattr *tb[], 94 int (*validate)(struct nlattr *tb[], 100 struct nlattr *tb[], 104 struct nlattr *tb[], 124 struct nlattr *tb[], 184 struct net *rtnl_link_get_net(struct net *src_net, struct nlattr *tb[]); 188 struct nlattr *tb[], 194 int rtnl_nla_parse_ifinfomsg(struct nlattr **tb, const struct nlattr *nla_peer,
|
/linux-master/include/crypto/internal/ |
H A D | geniv.h | 23 struct rtattr **tb);
|