/linux-master/net/ethtool/ |
H A D | rings.c | 140 struct nlattr **tb = info->attrs; local 142 if (tb[ETHTOOL_A_RINGS_RX_BUF_LEN] && 145 tb[ETHTOOL_A_RINGS_RX_BUF_LEN], 150 if (tb[ETHTOOL_A_RINGS_TCP_DATA_SPLIT] && 153 tb[ETHTOOL_A_RINGS_TCP_DATA_SPLIT], 158 if (tb[ETHTOOL_A_RINGS_CQE_SIZE] && 161 tb[ETHTOOL_A_RINGS_CQE_SIZE], 166 if (tb[ETHTOOL_A_RINGS_TX_PUSH] && 169 tb[ETHTOOL_A_RINGS_TX_PUSH], 174 if (tb[ETHTOOL_A_RINGS_RX_PUS 199 struct nlattr **tb = info->attrs; local [all...] |
H A D | coalesce.c | 237 struct nlattr **tb = info->attrs; local 247 if (tb[a] && !(supported_params & attr_to_mask(a))) { 248 NL_SET_ERR_MSG_ATTR(info->extack, tb[a], 264 struct nlattr **tb = info->attrs; local 274 tb[ETHTOOL_A_COALESCE_RX_USECS], &mod); 276 tb[ETHTOOL_A_COALESCE_RX_MAX_FRAMES], &mod); 278 tb[ETHTOOL_A_COALESCE_RX_USECS_IRQ], &mod); 280 tb[ETHTOOL_A_COALESCE_RX_MAX_FRAMES_IRQ], &mod); 282 tb[ETHTOOL_A_COALESCE_TX_USECS], &mod); 284 tb[ETHTOOL_A_COALESCE_TX_MAX_FRAME [all...] |
H A D | cabletest.c | 60 struct nlattr **tb = info->attrs; local 65 tb[ETHTOOL_A_CABLE_TEST_HEADER], 232 struct nlattr *tb[ARRAY_SIZE(cable_test_tdr_act_cfg_policy)]; local 243 ret = nla_parse_nested(tb, 250 if (tb[ETHTOOL_A_CABLE_TEST_TDR_CFG_FIRST]) 252 tb[ETHTOOL_A_CABLE_TEST_TDR_CFG_FIRST]); 254 if (tb[ETHTOOL_A_CABLE_TEST_TDR_CFG_LAST]) 255 cfg->last = nla_get_u32(tb[ETHTOOL_A_CABLE_TEST_TDR_CFG_LAST]); 257 if (tb[ETHTOOL_A_CABLE_TEST_TDR_CFG_STEP]) 258 cfg->step = nla_get_u32(tb[ETHTOOL_A_CABLE_TEST_TDR_CFG_STE 311 struct nlattr **tb = info->attrs; local [all...] |
/linux-master/fs/reiserfs/ |
H A D | prints.c | 640 void store_print_tb(struct tree_balance *tb) argument 646 if (!tb) 654 REISERFS_SB(tb->tb_sb)->s_do_balance, 655 tb->tb_mode, PATH_LAST_POSITION(tb->tb_path), 656 tb->tb_path->pos_in_item); 658 for (h = 0; h < ARRAY_SIZE(tb->insert_size); h++) { 659 if (PATH_H_PATH_OFFSET(tb->tb_path, h) <= 660 tb->tb_path->path_length 661 && PATH_H_PATH_OFFSET(tb [all...] |
H A D | lbalance.c | 392 do_balance_mark_leaf_dirty(dest_bi->tb, dest, 0); 405 do_balance_mark_internal_dirty(dest_bi->tb, dest_bi->bi_parent, 629 static void leaf_define_dest_src_infos(int shift_mode, struct tree_balance *tb, argument 641 src_bi->tb = tb; 642 src_bi->bi_bh = PATH_PLAST_BUFFER(tb->tb_path); 643 src_bi->bi_parent = PATH_H_PPARENT(tb->tb_path, 0); 646 src_bi->bi_position = PATH_H_B_ITEM_ORDER(tb->tb_path, 0); 647 dest_bi->tb = tb; 715 leaf_move_items(int shift_mode, struct tree_balance *tb, int mov_num, int mov_bytes, struct buffer_head *Snew) argument 741 leaf_shift_left(struct tree_balance *tb, int shift_num, int shift_bytes) argument 794 leaf_shift_right(struct tree_balance *tb, int shift_num, int shift_bytes) argument [all...] |
/linux-master/net/sched/ |
H A D | em_ipt.c | 30 int (*validate_match_data)(struct nlattr **tb, u8 mrev); 60 static int policy_validate_match_data(struct nlattr **tb, u8 mrev) argument 67 if (nla_get_u32(tb[TCA_EM_IPT_HOOK]) != NF_INET_PRE_ROUTING) { 75 static int addrtype_validate_match_data(struct nlattr **tb, u8 mrev) argument 97 static struct xt_match *get_xt_match(struct nlattr **tb) argument 104 mname_attr = tb[TCA_EM_IPT_MATCH_NAME]; 115 if (tb[TCA_EM_IPT_MATCH_REVISION]) 116 mrev = nla_get_u8(tb[TCA_EM_IPT_MATCH_REVISION]); 118 ret = m->validate_match_data(tb, mrev); 122 nfproto = nla_get_u8(tb[TCA_EM_IPT_NFPROT 129 struct nlattr *tb[TCA_EM_IPT_MAX + 1]; local [all...] |
/linux-master/net/netfilter/ipset/ |
H A D | ip_set_hash_ipportnet.c | 160 hash_ipportnet4_uadt(struct ip_set *set, struct nlattr *tb[], argument 173 if (tb[IPSET_ATTR_LINENO]) 174 *lineno = nla_get_u32(tb[IPSET_ATTR_LINENO]); 176 if (unlikely(!tb[IPSET_ATTR_IP] || !tb[IPSET_ATTR_IP2] || 177 !ip_set_attr_netorder(tb, IPSET_ATTR_PORT) || 178 !ip_set_optattr_netorder(tb, IPSET_ATTR_PORT_TO) || 179 !ip_set_optattr_netorder(tb, IPSET_ATTR_CADT_FLAGS))) 182 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP], &ip); 186 ret = ip_set_get_extensions(set, tb, 417 hash_ipportnet6_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_netportnet.c | 188 hash_netportnet4_uadt(struct ip_set *set, struct nlattr *tb[], argument 200 if (tb[IPSET_ATTR_LINENO]) 201 *lineno = nla_get_u32(tb[IPSET_ATTR_LINENO]); 204 if (unlikely(!tb[IPSET_ATTR_IP] || !tb[IPSET_ATTR_IP2] || 205 !ip_set_attr_netorder(tb, IPSET_ATTR_PORT) || 206 !ip_set_optattr_netorder(tb, IPSET_ATTR_PORT_TO) || 207 !ip_set_optattr_netorder(tb, IPSET_ATTR_CADT_FLAGS))) 210 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP], &ip); 214 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP 473 hash_netportnet6_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_ipport.c | 112 hash_ipport4_uadt(struct ip_set *set, struct nlattr *tb[], argument 123 if (tb[IPSET_ATTR_LINENO]) 124 *lineno = nla_get_u32(tb[IPSET_ATTR_LINENO]); 126 if (unlikely(!tb[IPSET_ATTR_IP] || 127 !ip_set_attr_netorder(tb, IPSET_ATTR_PORT) || 128 !ip_set_optattr_netorder(tb, IPSET_ATTR_PORT_TO))) 131 ret = ip_set_get_ipaddr4(tb[IPSET_ATTR_IP], &e.ip); 135 ret = ip_set_get_extensions(set, tb, &ext); 143 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); 145 if (tb[IPSET_ATTR_PROT 283 hash_ipport6_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_ipmark.c | 97 hash_ipmark4_uadt(struct ip_set *set, struct nlattr *tb[], argument 107 if (tb[IPSET_ATTR_LINENO]) 108 *lineno = nla_get_u32(tb[IPSET_ATTR_LINENO]); 110 if (unlikely(!tb[IPSET_ATTR_IP] || 111 !ip_set_attr_netorder(tb, IPSET_ATTR_MARK))) 114 ret = ip_set_get_ipaddr4(tb[IPSET_ATTR_IP], &e.ip); 118 ret = ip_set_get_extensions(set, tb, &ext); 122 e.mark = ntohl(nla_get_be32(tb[IPSET_ATTR_MARK])); 128 !(tb[IPSET_ATTR_IP_TO] || tb[IPSET_ATTR_CID 232 hash_ipmark6_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_netport.c | 154 hash_netport4_uadt(struct ip_set *set, struct nlattr *tb[], argument 166 if (tb[IPSET_ATTR_LINENO]) 167 *lineno = nla_get_u32(tb[IPSET_ATTR_LINENO]); 169 if (unlikely(!tb[IPSET_ATTR_IP] || 170 !ip_set_attr_netorder(tb, IPSET_ATTR_PORT) || 171 !ip_set_optattr_netorder(tb, IPSET_ATTR_PORT_TO) || 172 !ip_set_optattr_netorder(tb, IPSET_ATTR_CADT_FLAGS))) 175 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP], &ip); 179 ret = ip_set_get_extensions(set, tb, &ext); 183 if (tb[IPSET_ATTR_CID 374 hash_netport6_uadt(struct ip_set *set, struct nlattr *tb[], enum ipset_adt adt, u32 *lineno, u32 flags, bool retried) argument [all...] |
/linux-master/drivers/thunderbolt/ |
H A D | nhi_ops.c | 14 #include "tb.h" 27 struct tb *tb = pci_get_drvdata(nhi->pdev); local 30 ret = device_for_each_child(&tb->root_switch->dev, NULL, 124 struct tb *tb = pci_get_drvdata(nhi->pdev); local 130 if (tb_switch_is_icm(tb->root_switch)) { 147 struct tb *tb = pci_get_drvdata(nhi->pdev); local 153 if (!tb_switch_is_icm(tb [all...] |
H A D | debugfs.c | 14 #include "tb.h" 131 struct tb *tb = sw->tb; local 142 if (mutex_lock_interruptible(&tb->lock)) { 160 mutex_unlock(&tb->lock); 268 struct tb *tb = port->sw->tb; local 273 if (mutex_lock_interruptible(&tb 333 struct tb *tb = port->sw->tb; local 413 struct tb *tb = port->sw->tb; local 453 struct tb *tb = port->sw->tb; local 486 struct tb *tb = port->sw->tb; local 526 struct tb *tb = port->sw->tb; local 560 struct tb *tb = sw->tb; local 637 struct tb *tb = port->sw->tb; local 681 struct tb *tb = port->sw->tb; local 750 struct tb *tb = port->sw->tb; local 783 struct tb *tb = port->sw->tb; local 809 struct tb *tb = port->sw->tb; local 851 struct tb *tb = port->sw->tb; local 1052 struct tb *tb = port->sw->tb; local 1260 struct tb *tb = sw->tb; local 1364 struct tb *tb = sw->tb; local 1416 struct tb *tb = sw->tb; local 1479 struct tb *tb = sw->tb; local [all...] |
/linux-master/drivers/net/wireless/ath/wcn36xx/ |
H A D | testmode.c | 44 struct nlattr *tb[]) 51 if (!tb[WCN36XX_TM_ATTR_DATA]) 54 buf = nla_data(tb[WCN36XX_TM_ATTR_DATA]); 55 buf_len = nla_len(tb[WCN36XX_TM_ATTR_DATA]); 130 struct nlattr *tb[WCN36XX_TM_ATTR_MAX + 1]; local 135 ret = nla_parse_deprecated(tb, WCN36XX_TM_ATTR_MAX, data, len, 140 if (!tb[WCN36XX_TM_ATTR_CMD]) 143 attr = nla_get_u16(tb[WCN36XX_TM_ATTR_CMD]); 148 return wcn36xx_tm_cmd_ptt(wcn, vif, tb); 43 wcn36xx_tm_cmd_ptt(struct wcn36xx *wcn, struct ieee80211_vif *vif, struct nlattr *tb[]) argument
|
/linux-master/net/bridge/ |
H A D | br_vlan_options.c | 138 struct nlattr **tb, 156 attr = tb[BRIDGE_VLANDB_ENTRY_TUNNEL_INFO]; 176 vinfo = nla_data(tb[BRIDGE_VLANDB_ENTRY_INFO]); 197 struct nlattr **tb, 204 if (tb[BRIDGE_VLANDB_ENTRY_STATE]) { 205 u8 state = nla_get_u8(tb[BRIDGE_VLANDB_ENTRY_STATE]); 211 if (tb[BRIDGE_VLANDB_ENTRY_TUNNEL_INFO]) { 212 err = br_vlan_modify_tunnel(p, v, tb, changed, extack); 218 if (tb[BRIDGE_VLANDB_ENTRY_MCAST_ROUTER]) { 221 val = nla_get_u8(tb[BRIDGE_VLANDB_ENTRY_MCAST_ROUTE 136 br_vlan_modify_tunnel(const struct net_bridge_port *p, struct net_bridge_vlan *v, struct nlattr **tb, bool *changed, struct netlink_ext_ack *extack) argument 193 br_vlan_process_one_opts(const struct net_bridge *br, const struct net_bridge_port *p, struct net_bridge_vlan_group *vg, struct net_bridge_vlan *v, struct nlattr **tb, bool *changed, struct netlink_ext_ack *extack) argument 263 br_vlan_process_options(const struct net_bridge *br, const struct net_bridge_port *p, struct net_bridge_vlan *range_start, struct net_bridge_vlan *range_end, struct nlattr **tb, struct netlink_ext_ack *extack) argument 511 br_vlan_process_global_one_opts(const struct net_bridge *br, struct net_bridge_vlan_group *vg, struct net_bridge_vlan *v, struct nlattr **tb, bool *changed, struct netlink_ext_ack *extack) argument 652 struct nlattr *tb[BRIDGE_VLANDB_GOPTS_MAX + 1]; local [all...] |
/linux-master/arch/powerpc/kernel/ |
H A D | smp-tbsync.c | 25 volatile u64 tb; member in struct:__anon778 48 u64 tb; local 63 tb = tbsync->tb; 72 set_tb(tb >> 32, tb & 0xfffffffful); 81 u64 tb; local 88 tb = get_tb() + 400; 89 tbsync->tb = tb [all...] |
H A D | watchdog.c | 149 u64 tb = get_tb(); local 153 cpu, tb, per_cpu(wd_timer_tb, cpu), 154 tb_to_ns(tb - per_cpu(wd_timer_tb, cpu)) / 1000000); 204 u64 tb, last_reset; local 209 tb = get_tb(); 211 if ((s64)(tb - last_reset) < (s64)wd_smp_panic_timeout_tb) 236 cpu, tb, last_reset, tb_to_ns(tb - last_reset) / 1000000); 348 u64 tb = get_tb(); local 350 per_cpu(wd_timer_tb, cpu) = tb; 373 u64 tb; local 458 u64 tb; local [all...] |
/linux-master/drivers/acpi/ |
H A D | spcr.c | 50 static bool xgene_8250_erratum_present(struct acpi_table_spcr *tb) argument 54 if (tb->interface_type != ACPI_DBG2_16550_COMPATIBLE) 57 if (memcmp(tb->header.oem_id, "APMC0D", ACPI_OEM_ID_SIZE) && 58 memcmp(tb->header.oem_id, "HPE ", ACPI_OEM_ID_SIZE)) 61 if (!memcmp(tb->header.oem_table_id, "XGENESPC", 62 ACPI_OEM_TABLE_ID_SIZE) && tb->header.oem_revision == 0) 65 if (!memcmp(tb->header.oem_table_id, "ProLiant", 66 ACPI_OEM_TABLE_ID_SIZE) && tb->header.oem_revision == 1)
|
/linux-master/net/netfilter/ |
H A D | nft_hash.c | 71 const struct nlattr * const tb[]) 77 if (!tb[NFTA_HASH_SREG] || 78 !tb[NFTA_HASH_DREG] || 79 !tb[NFTA_HASH_LEN] || 80 !tb[NFTA_HASH_MODULUS]) 83 if (tb[NFTA_HASH_OFFSET]) 84 priv->offset = ntohl(nla_get_be32(tb[NFTA_HASH_OFFSET])); 86 err = nft_parse_u32_check(tb[NFTA_HASH_LEN], U8_MAX, &len); 94 err = nft_parse_register_load(tb[NFTA_HASH_SREG], &priv->sreg, len); 98 priv->modulus = ntohl(nla_get_be32(tb[NFTA_HASH_MODULU 69 nft_jhash_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) argument 116 nft_symhash_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) argument 242 nft_hash_select_ops(const struct nft_ctx *ctx, const struct nlattr * const tb[]) argument [all...] |
H A D | nft_tunnel.c | 76 const struct nlattr * const tb[]) 81 if (!tb[NFTA_TUNNEL_KEY] || 82 !tb[NFTA_TUNNEL_DREG]) 85 priv->key = ntohl(nla_get_be32(tb[NFTA_TUNNEL_KEY])); 97 if (tb[NFTA_TUNNEL_MODE]) { 98 priv->mode = ntohl(nla_get_be32(tb[NFTA_TUNNEL_MODE])); 106 return nft_parse_register_store(ctx, tb[NFTA_TUNNEL_DREG], &priv->dreg, 195 struct nlattr *tb[NFTA_TUNNEL_KEY_IP_MAX + 1]; local 198 err = nla_parse_nested_deprecated(tb, NFTA_TUNNEL_KEY_IP_MAX, attr, 203 if (!tb[NFTA_TUNNEL_KEY_IP_DS 74 nft_tunnel_get_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) argument 224 struct nlattr *tb[NFTA_TUNNEL_KEY_IP6_MAX + 1]; local 260 struct nlattr *tb[NFTA_TUNNEL_KEY_VXLAN_MAX + 1]; local 289 struct nlattr *tb[NFTA_TUNNEL_KEY_ERSPAN_MAX + 1]; local 343 struct nlattr *tb[NFTA_TUNNEL_KEY_GENEVE_MAX + 1]; local 442 nft_tunnel_obj_init(const struct nft_ctx *ctx, const struct nlattr * const tb[], struct nft_object *obj) argument [all...] |
H A D | nft_queue.c | 105 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...] |
/linux-master/drivers/net/wireless/ti/wlcore/ |
H A D | vendor_cmd.c | 33 struct nlattr *tb[NUM_WLCORE_VENDOR_ATTR]; local 41 ret = nla_parse_deprecated(tb, MAX_WLCORE_VENDOR_ATTR, data, data_len, 46 if (!tb[WLCORE_VENDOR_ATTR_GROUP_ID]) 61 nla_get_u32(tb[WLCORE_VENDOR_ATTR_GROUP_ID])); 110 struct nlattr *tb[NUM_WLCORE_VENDOR_ATTR]; local 118 ret = nla_parse_deprecated(tb, MAX_WLCORE_VENDOR_ATTR, data, data_len, 123 if (!tb[WLCORE_VENDOR_ATTR_GROUP_ID] || 124 !tb[WLCORE_VENDOR_ATTR_GROUP_KEY]) 139 nla_get_u32(tb[WLCORE_VENDOR_ATTR_GROUP_ID]), 140 nla_len(tb[WLCORE_VENDOR_ATTR_GROUP_KE [all...] |
/linux-master/net/wireless/ |
H A D | pmsr.c | 16 struct nlattr *tb[NL80211_PMSR_FTM_REQ_ATTR_MAX + 1]; local 26 nla_parse_nested_deprecated(tb, NL80211_PMSR_FTM_REQ_ATTR_MAX, ftmreq, 29 if (tb[NL80211_PMSR_FTM_REQ_ATTR_PREAMBLE]) 30 preamble = nla_get_u32(tb[NL80211_PMSR_FTM_REQ_ATTR_PREAMBLE]); 40 if (!tb[NL80211_PMSR_FTM_REQ_ATTR_PREAMBLE]) { 49 tb[NL80211_PMSR_FTM_REQ_ATTR_PREAMBLE], 57 if (tb[NL80211_PMSR_FTM_REQ_ATTR_BURST_PERIOD]) 59 nla_get_u32(tb[NL80211_PMSR_FTM_REQ_ATTR_BURST_PERIOD]); 61 out->ftm.asap = !!tb[NL80211_PMSR_FTM_REQ_ATTR_ASAP]; 64 tb[NL80211_PMSR_FTM_REQ_ATTR_ASA 189 struct nlattr *tb[NL80211_PMSR_PEER_ATTR_MAX + 1]; local [all...] |
/linux-master/tools/lib/bpf/ |
H A D | nlattr.c | 88 * @arg tb Index array to be filled (maxtype+1 elements). 104 int libbpf_nla_parse(struct nlattr *tb[], int maxtype, struct nlattr *head, argument 110 memset(tb, 0, sizeof(struct nlattr *) * (maxtype + 1)); 124 if (tb[type]) 128 tb[type] = nla; 138 * @arg tb Index array to be filled (maxtype+1 elements). 149 int libbpf_nla_parse_nested(struct nlattr *tb[], int maxtype, argument 153 return libbpf_nla_parse(tb, maxtype, libbpf_nla_data(nla), 164 struct nlattr *tb[NLMSGERR_ATTR_MAX + 1], *attr; local 183 if (libbpf_nla_parse(tb, NLMSGERR_ATTR_MA [all...] |
/linux-master/drivers/net/wireless/ath/ath11k/ |
H A D | testmode.c | 196 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...] |