Searched refs:tb (Results 51 - 75 of 473) sorted by relevance

1234567891011>>

/linux-master/drivers/net/wireless/ath/ath11k/
H A Dtestmode.c196 const void **tb; local
201 tb = ath11k_wmi_tlv_parse_alloc(ab, skb, GFP_ATOMIC);
202 if (IS_ERR(tb)) {
203 ret = PTR_ERR(tb);
208 ev = tb[WMI_TAG_ARRAY_BYTE];
211 kfree(tb);
220 kfree(tb);
231 static int ath11k_tm_cmd_get_version(struct ath11k *ar, struct nlattr *tb[]) argument
263 static int ath11k_tm_cmd_testmode_start(struct ath11k *ar, struct nlattr *tb[]) argument
300 static int ath11k_tm_cmd_wmi(struct ath11k *ar, struct nlattr *tb[], argument
390 ath11k_tm_cmd_wmi_ftm(struct ath11k *ar, struct nlattr *tb[]) argument
479 struct nlattr *tb[ATH11K_TM_ATTR_MAX + 1]; local
[all...]
/linux-master/net/netfilter/
H A Dnft_queue.c105 const struct nlattr * const tb[])
110 priv->queuenum = ntohs(nla_get_be16(tb[NFTA_QUEUE_NUM]));
112 if (tb[NFTA_QUEUE_TOTAL])
113 priv->queues_total = ntohs(nla_get_be16(tb[NFTA_QUEUE_TOTAL]));
124 if (tb[NFTA_QUEUE_FLAGS]) {
125 priv->flags = ntohs(nla_get_be16(tb[NFTA_QUEUE_FLAGS]));
134 const struct nlattr * const tb[])
139 err = nft_parse_register_load(tb[NFTA_QUEUE_SREG_QNUM],
144 if (tb[NFTA_QUEUE_FLAGS]) {
145 priv->flags = ntohs(nla_get_be16(tb[NFTA_QUEUE_FLAG
103 nft_queue_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) argument
132 nft_queue_sreg_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) argument
209 nft_queue_select_ops(const struct nft_ctx *ctx, const struct nlattr * const tb[]) argument
[all...]
H A Dnft_numgen.c54 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 Dnft_objref.c27 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 Dnft_bitwise.c94 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 Dnft_range.c51 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 Dnft_fwd_netdev.c48 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 Dnft_limit.c59 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
260 nft_limit_bytes_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) argument
306 nft_limit_select_ops(const struct nft_ctx *ctx, const struct nlattr * const tb[]) argument
340 nft_limit_obj_pkts_init(const struct nft_ctx *ctx, const struct nlattr * const tb[], struct nft_object *obj) argument
393 nft_limit_obj_bytes_init(const struct nft_ctx *ctx, const struct nlattr * const tb[], struct nft_object *obj) argument
430 nft_limit_obj_select_ops(const struct nft_ctx *ctx, const struct nlattr * const tb[]) argument
[all...]
/linux-master/drivers/thunderbolt/
H A Dusb4_port.c13 #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 Dip_set_hash_netnet.c166 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 Dip_set_hash_net.c136 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 Dip_set_bitmap_port.c153 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 Dip_set_hash_ip.c100 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 Dip_set_bitmap_ip.c130 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 Dtestmode.c413 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/net/sched/
H A Dcls_flower.c797 static void fl_set_key_val(struct nlattr **tb, argument
801 if (!tb[val_type])
803 nla_memcpy(val, tb[val_type], len);
804 if (mask_type == TCA_FLOWER_UNSPEC || !tb[mask_type])
807 nla_memcpy(mask, tb[mask_type], len);
810 static int fl_set_key_spi(struct nlattr **tb, struct fl_flow_key *key, argument
821 fl_set_key_val(tb, &key->ipsec.spi,
828 static int fl_set_key_port_range(struct nlattr **tb, struct fl_flow_key *key, argument
832 fl_set_key_val(tb, &key->tp_range.tp_min.dst,
835 fl_set_key_val(tb,
880 struct nlattr *tb[TCA_FLOWER_KEY_MPLS_OPT_LSE_MAX + 1]; local
995 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
1072 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
1103 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
1158 fl_set_key_flags(struct nlattr **tb, u32 *flags_key, u32 *flags_mask, struct netlink_ext_ack *extack) argument
1184 fl_set_key_ip(struct nlattr **tb, bool encap, struct flow_dissector_key_ip *key, struct flow_dissector_key_ip *mask) argument
1201 struct nlattr *tb[TCA_FLOWER_KEY_ENC_OPT_GENEVE_MAX + 1]; local
1289 struct nlattr *tb[TCA_FLOWER_KEY_ENC_OPT_VXLAN_MAX + 1]; local
1326 struct nlattr *tb[TCA_FLOWER_KEY_ENC_OPT_ERSPAN_MAX + 1]; local
1391 struct nlattr *tb[TCA_FLOWER_KEY_ENC_OPT_GTP_MAX + 1]; local
1434 struct nlattr *tb[TCA_FLOWER_KEY_ENC_OPT_PFCP_MAX + 1]; local
1468 fl_set_enc_opt(struct nlattr **tb, struct fl_flow_key *key, struct fl_flow_key *mask, struct netlink_ext_ack *extack) argument
1673 fl_validate_ct_state(u16 state, struct nlattr *tb, struct netlink_ext_ack *extack) argument
1707 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
1761 is_vlan_key(struct nlattr *tb, __be16 *ethertype, struct fl_flow_key *key, struct fl_flow_key *mask, int vthresh) argument
1781 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
1796 fl_set_key_cfm_opcode(struct nlattr **tb, struct fl_flow_key *key, struct fl_flow_key *mask, struct netlink_ext_ack *extack) argument
1806 fl_set_key_cfm(struct nlattr **tb, struct fl_flow_key *key, struct fl_flow_key *mask, struct netlink_ext_ack *extack) argument
1828 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
2317 struct nlattr **tb; local
2756 struct nlattr **tb; local
[all...]
H A Dact_tunnel_key.c91 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/net/ipv4/
H A Dinet_hashtables.c70 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
708 struct inet_bind_bucket *tb = inet_csk(sk)->icsk_bind_hash; local
815 inet_bind2_bucket_match(const struct inet_bind2_bucket *tb, const struct net *net, unsigned short port, int l3mdev, const struct sock *sk) argument
826 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
1005 struct inet_bind_bucket *tb; local
[all...]
/linux-master/net/bridge/netfilter/
H A Dnft_meta_bridge.c74 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 Deeprom.c146 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 Dpse-pd.c139 struct nlattr **tb = info->attrs; local
153 if (tb[ETHTOOL_A_PODL_PSE_ADMIN_CONTROL] &&
156 tb[ETHTOOL_A_PODL_PSE_ADMIN_CONTROL],
160 if (tb[ETHTOOL_A_C33_PSE_ADMIN_CONTROL] &&
163 tb[ETHTOOL_A_C33_PSE_ADMIN_CONTROL],
176 struct nlattr **tb = info->attrs; local
182 config.podl_admin_control = nla_get_u32(tb[ETHTOOL_A_PODL_PSE_ADMIN_CONTROL]);
184 config.c33_admin_control = nla_get_u32(tb[ETHTOOL_A_C33_PSE_ADMIN_CONTROL]);
/linux-master/drivers/infiniband/core/
H A Dnldev.c1055 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX]; local
1061 err = nlmsg_parse_deprecated(nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1,
1063 if (err || !tb[RDMA_NLDEV_ATTR_DEV_INDEX])
1066 index = nla_get_u32(tb[RDMA_NLDEV_ATTR_DEV_INDEX]);
1105 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX]; local
1110 err = nlmsg_parse_deprecated(nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1,
1112 if (err || !tb[RDMA_NLDEV_ATTR_DEV_INDEX])
1115 index = nla_get_u32(tb[RDMA_NLDEV_ATTR_DEV_INDEX]);
1120 if (tb[RDMA_NLDEV_ATTR_DEV_NAME]) {
1123 nla_strscpy(name, tb[RDMA_NLDEV_ATTR_DEV_NAM
1195 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX]; local
1253 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX]; local
1311 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX]; local
1460 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX]; local
1541 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX]; local
1741 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX]; local
1788 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX]; local
1815 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX]; local
1903 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX]; local
1954 nldev_set_sys_set_netns_doit(struct nlattr *tb[]) argument
1968 nldev_set_sys_set_pqkey_doit(struct nlattr *tb[]) argument
1984 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX]; local
2002 nldev_stat_set_mode_doit(struct sk_buff *msg, struct netlink_ext_ack *extack, struct nlattr *tb[], struct ib_device *device, u32 port) argument
2051 nldev_stat_set_counter_dynamic_doit(struct nlattr *tb[], struct ib_device *device, u32 port) argument
2099 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX]; local
2169 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX]; local
2236 stat_get_doit_default_counter(struct sk_buff *skb, struct nlmsghdr *nlh, struct netlink_ext_ack *extack, struct nlattr *tb[]) argument
2329 stat_get_doit_qp(struct sk_buff *skb, struct nlmsghdr *nlh, struct netlink_ext_ack *extack, struct nlattr *tb[]) argument
2404 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX]; local
2434 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX]; local
2462 struct nlattr *tb[RDMA_NLDEV_ATTR_MAX], *table, *entry; local
[all...]
/linux-master/drivers/block/drbd/
H A Ddrbd_nla.c31 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 Dtestmode.c114 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 Drtnetlink.h85 struct net_device *(*alloc)(struct nlattr *tb[],
95 int (*validate)(struct nlattr *tb[],
101 struct nlattr *tb[],
105 struct nlattr *tb[],
125 struct nlattr *tb[],
185 struct net *rtnl_link_get_net(struct net *src_net, struct nlattr *tb[]);
189 struct nlattr *tb[],
195 int rtnl_nla_parse_ifinfomsg(struct nlattr **tb, const struct nlattr *nla_peer,

Completed in 213 milliseconds

1234567891011>>