Home
last modified time | relevance | path

Searched refs:tlv (Results 1 – 25 of 185) sorted by relevance

12345678

/linux/drivers/net/ethernet/mellanox/mlxfw/
H A Dmlxfw_mfa2_tlv_multi.c9 #define MLXFW_MFA2_TLV_TOTAL_SIZE(tlv) \ argument
10 NLA_ALIGN(sizeof(*(tlv)) + be16_to_cpu((tlv)->len))
24 const struct mlxfw_mfa2_tlv *tlv) in mlxfw_mfa2_tlv_next() argument
30 tlv_len = MLXFW_MFA2_TLV_TOTAL_SIZE(tlv); in mlxfw_mfa2_tlv_next()
32 if (tlv->type == MLXFW_MFA2_TLV_MULTI_PART) { in mlxfw_mfa2_tlv_next()
33 multi = mlxfw_mfa2_tlv_multi_get(mfa2_file, tlv); in mlxfw_mfa2_tlv_next()
39 next = (void *) tlv + tlv_len; in mlxfw_mfa2_tlv_next()
47 const struct mlxfw_mfa2_tlv *tlv; in mlxfw_mfa2_tlv_advance() local
50 mlxfw_mfa2_tlv_foreach(mfa2_file, tlv, idx, from_tlv, count) in mlxfw_mfa2_tlv_advance()
51 if (!tlv) in mlxfw_mfa2_tlv_advance()
[all …]
H A Dmlxfw_mfa2_tlv.h28 const struct mlxfw_mfa2_tlv *tlv, u8 payload_type, in mlxfw_mfa2_tlv_payload_get() argument
33 tlv_top = (void *) tlv + be16_to_cpu(tlv->len) - 1; in mlxfw_mfa2_tlv_payload_get()
34 if (!mlxfw_mfa2_valid_ptr(mfa2_file, tlv) || in mlxfw_mfa2_tlv_payload_get()
37 if (tlv->type != payload_type) in mlxfw_mfa2_tlv_payload_get()
39 if (varsize && (be16_to_cpu(tlv->len) < payload_size)) in mlxfw_mfa2_tlv_payload_get()
41 if (!varsize && (be16_to_cpu(tlv->len) != payload_size)) in mlxfw_mfa2_tlv_payload_get()
44 return tlv->data; in mlxfw_mfa2_tlv_payload_get()
50 const struct mlxfw_mfa2_tlv *tlv) \
52 return mlxfw_mfa2_tlv_payload_get(mfa2_file, tlv, \
60 const struct mlxfw_mfa2_tlv *tlv) \
[all …]
H A Dmlxfw_mfa2.c98 const struct mlxfw_mfa2_tlv *tlv; in mlxfw_mfa2_tlv_multi_validate() local
102 mlxfw_mfa2_tlv_multi_foreach(mfa2_file, tlv, idx, multi) { in mlxfw_mfa2_tlv_multi_validate()
103 if (!tlv) { in mlxfw_mfa2_tlv_multi_validate()
119 const struct mlxfw_mfa2_tlv *tlv; in mlxfw_mfa2_file_dev_validate() local
136 tlv = mlxfw_mfa2_tlv_multi_child_find(mfa2_file, multi, in mlxfw_mfa2_file_dev_validate()
138 if (!tlv) { in mlxfw_mfa2_file_dev_validate()
143 psid = mlxfw_mfa2_tlv_psid_get(mfa2_file, tlv); in mlxfw_mfa2_file_dev_validate()
150 psid->psid, be16_to_cpu(tlv->len), true); in mlxfw_mfa2_file_dev_validate()
165 tlv = mlxfw_mfa2_tlv_multi_child_find(mfa2_file, multi, in mlxfw_mfa2_file_dev_validate()
168 if (!tlv) in mlxfw_mfa2_file_dev_validate()
[all …]
H A Dmlxfw_mfa2_tlv_multi.h17 const struct mlxfw_mfa2_tlv *tlv);
33 #define mlxfw_mfa2_tlv_foreach(mfa2_file, tlv, idx, from_tlv, count) \ argument
34 for (idx = 0, tlv = from_tlv; idx < (count); \
35 idx++, tlv = mlxfw_mfa2_tlv_next(mfa2_file, tlv))
37 #define mlxfw_mfa2_tlv_multi_foreach(mfa2_file, tlv, idx, multi) \ argument
38 mlxfw_mfa2_tlv_foreach(mfa2_file, tlv, idx, \
/linux/drivers/net/ethernet/rocker/
H A Drocker_tlv.h29 static inline struct rocker_tlv *rocker_tlv_next(const struct rocker_tlv *tlv, in rocker_tlv_next() argument
32 int totlen = ROCKER_TLV_ALIGN(tlv->len); in rocker_tlv_next()
35 return (struct rocker_tlv *) ((char *) tlv + totlen); in rocker_tlv_next()
38 static inline int rocker_tlv_ok(const struct rocker_tlv *tlv, int remaining) in rocker_tlv_ok() argument
41 tlv->len >= ROCKER_TLV_HDRLEN && in rocker_tlv_ok()
42 tlv->len <= remaining; in rocker_tlv_ok()
50 #define rocker_tlv_for_each_nested(pos, tlv, rem) \ argument
51 rocker_tlv_for_each(pos, rocker_tlv_data(tlv), \
52 rocker_tlv_len(tlv), rem)
69 static inline int rocker_tlv_type(const struct rocker_tlv *tlv) in rocker_tlv_type() argument
[all …]
H A Drocker_tlv.c18 const struct rocker_tlv *tlv; in rocker_tlv_parse() local
24 rocker_tlv_for_each(tlv, head, buf_len, rem) { in rocker_tlv_parse()
25 u32 type = rocker_tlv_type(tlv); in rocker_tlv_parse()
28 tb[type] = tlv; in rocker_tlv_parse()
37 struct rocker_tlv *tlv; in rocker_tlv_put() local
42 tlv = rocker_tlv_start(desc_info); in rocker_tlv_put()
44 tlv->type = attrtype; in rocker_tlv_put()
45 tlv->len = rocker_tlv_attr_size(attrlen); in rocker_tlv_put()
46 memcpy(rocker_tlv_data(tlv), data, attrlen); in rocker_tlv_put()
47 memset((char *) tlv + tlv->len, 0, rocker_tlv_padlen(attrlen)); in rocker_tlv_put()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_dcb.c207 ice_parse_ieee_etscfg_tlv(struct ice_lldp_org_tlv *tlv, in ice_parse_ieee_etscfg_tlv() argument
211 u8 *buf = tlv->tlvinfo; in ice_parse_ieee_etscfg_tlv()
237 ice_parse_ieee_etsrec_tlv(struct ice_lldp_org_tlv *tlv, in ice_parse_ieee_etsrec_tlv() argument
240 u8 *buf = tlv->tlvinfo; in ice_parse_ieee_etsrec_tlv()
254 ice_parse_ieee_pfccfg_tlv(struct ice_lldp_org_tlv *tlv, in ice_parse_ieee_pfccfg_tlv() argument
257 u8 *buf = tlv->tlvinfo; in ice_parse_ieee_pfccfg_tlv()
279 ice_parse_ieee_app_tlv(struct ice_lldp_org_tlv *tlv, in ice_parse_ieee_app_tlv() argument
288 typelen = ntohs(tlv->typelen); in ice_parse_ieee_app_tlv()
290 buf = tlv->tlvinfo; in ice_parse_ieee_app_tlv()
295 len -= (sizeof(tlv->ouisubtype) + 1); in ice_parse_ieee_app_tlv()
[all …]
/linux/drivers/net/wireless/marvell/mwifiex/
H A Duap_cmd.c300 u8 *tlv = *tlv_buf; in mwifiex_uap_bss_wpa() local
302 tlv_akmp = (struct host_cmd_tlv_akmp *)tlv; in mwifiex_uap_bss_wpa()
309 tlv += sizeof(struct host_cmd_tlv_akmp); in mwifiex_uap_bss_wpa()
312 pwk_cipher = (struct host_cmd_tlv_pwk_cipher *)tlv; in mwifiex_uap_bss_wpa()
320 tlv += sizeof(struct host_cmd_tlv_pwk_cipher); in mwifiex_uap_bss_wpa()
324 pwk_cipher = (struct host_cmd_tlv_pwk_cipher *)tlv; in mwifiex_uap_bss_wpa()
332 tlv += sizeof(struct host_cmd_tlv_pwk_cipher); in mwifiex_uap_bss_wpa()
336 gwk_cipher = (struct host_cmd_tlv_gwk_cipher *)tlv; in mwifiex_uap_bss_wpa()
343 tlv += sizeof(struct host_cmd_tlv_gwk_cipher); in mwifiex_uap_bss_wpa()
347 passphrase = (struct host_cmd_tlv_passphrase *)tlv; in mwifiex_uap_bss_wpa()
[all …]
/linux/net/nfc/
H A Dllcp_commands.c32 static u8 llcp_tlv8(const u8 *tlv, u8 type) in llcp_tlv8() argument
34 if (tlv[0] != type || tlv[1] != llcp_tlv_length[tlv[0]]) in llcp_tlv8()
37 return tlv[2]; in llcp_tlv8()
40 static u16 llcp_tlv16(const u8 *tlv, u8 type) in llcp_tlv16() argument
42 if (tlv[0] != type || tlv[1] != llcp_tlv_length[tlv[0]]) in llcp_tlv16()
45 return be16_to_cpu(*((__be16 *)(tlv + 2))); in llcp_tlv16()
49 static u8 llcp_tlv_version(const u8 *tlv) in llcp_tlv_version() argument
51 return llcp_tlv8(tlv, LLCP_TLV_VERSION); in llcp_tlv_version()
54 static u16 llcp_tlv_miux(const u8 *tlv) in llcp_tlv_miux() argument
56 return llcp_tlv16(tlv, LLCP_TLV_MIUX) & 0x7ff; in llcp_tlv_miux()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7925/
H A Dnan.c82 struct tlv *tlv = NULL;
87 tlv = mt76_connac_mcu_add_tlv(skb, NAN_UNI_CMD_SET_MASTER_PREFERENCE, in mt7925_nan_set_disc_beacon()
89 if (!tlv) in mt7925_nan_set_disc_beacon()
92 mp_tlv = (struct mt7925_nan_master_preference_tlv *)tlv; in mt7925_nan_set_rssi_thresholds()
103 struct tlv *tlv = NULL; in mt7925_nan_set_rssi_thresholds()
109 tlv = mt76_connac_mcu_add_tlv(skb, NAN_UNI_CMD_SET_DW_INTERVAL, in mt7925_nan_set_rssi_thresholds()
112 if (!tlv) in mt7925_nan_set_rssi_thresholds()
115 dw_tlv = (struct mt7925_nan_dw_interval_tlv *)tlv; in mt7925_nan_set_scan_params()
246 struct tlv *tlv = NULL; mt7925_nan_mp_tlv() local
270 struct tlv *tlv = NULL; mt7925_nan_dw_tlv() local
308 struct tlv *tlv = NULL; mt7925_nan_cluster_id_tlv() local
330 struct tlv *tlv = NULL; mt7925_nan_sync_rssi_tlv() local
394 mt7925_nan_handle_dw_ind(struct mt792x_dev * dev,struct tlv * tlv) mt7925_nan_handle_dw_ind() argument
443 mt7925_nan_mcu_handle_de_event(struct mt792x_dev * dev,struct tlv * tlv) mt7925_nan_mcu_handle_de_event() argument
495 struct tlv *tlv; mt7925_nan_mcu_event() local
535 struct tlv *tlv; mt7925_nan_avail_ctrl_tlv() local
617 struct tlv *tlv; mt7925_nan_avail_tlv() local
696 struct tlv *tlv; mt7925_nan_peer_rec_tlv() local
739 struct tlv *tlv; mt7925_nan_peer_cap_tlv() local
842 struct tlv *tlv; mt7925_nan_update_crb_tlv() local
994 struct tlv *tlv; mt792x_nan_map_sta_rec() local
[all...]
H A Dmcu.c257 struct mt7925_wow_pattern_tlv *tlv; in mt7925_mcu_set_wow_pattern() local
277 tlv = (struct mt7925_wow_pattern_tlv *)skb_put_zero(skb, tlv_len); in mt7925_mcu_set_wow_pattern()
278 tlv->tag = cpu_to_le16(UNI_SUSPEND_WOW_PATTERN); in mt7925_mcu_set_wow_pattern()
279 tlv->len = cpu_to_le16(tlv_len); in mt7925_mcu_set_wow_pattern()
280 tlv->bss_idx = 0xF; in mt7925_mcu_set_wow_pattern()
281 tlv->data_len = pattern->pattern_len; in mt7925_mcu_set_wow_pattern()
282 tlv->enable = enable; in mt7925_mcu_set_wow_pattern()
283 tlv->index = index; in mt7925_mcu_set_wow_pattern()
284 tlv->offset = 0; in mt7925_mcu_set_wow_pattern()
286 memcpy(tlv in mt7925_mcu_set_wow_pattern()
360 mt7925_mcu_roc_handle_grant(struct mt792x_dev * dev,struct tlv * tlv) mt7925_mcu_roc_handle_grant() argument
385 mt7925_mcu_handle_hif_ctrl_basic(struct mt792x_dev * dev,struct tlv * tlv) mt7925_mcu_handle_hif_ctrl_basic() argument
405 struct tlv *tlv; mt7925_mcu_uni_hif_ctrl_event() local
430 struct tlv *tlv; mt7925_mcu_uni_roc_event() local
477 struct tlv *tlv; mt7925_mcu_tx_done_event() local
547 struct tlv *tlv; mt7925_mcu_rssi_monitor_event() local
645 struct mbmc_conf_tlv *tlv; mt7925_mcu_handle_mbmc_event() local
738 struct tlv *tlv; mt7925_mcu_sta_ba() local
1103 struct tlv *tlv = (struct tlv *)skb->data; mt7925_mcu_get_nic_capability() local
1218 struct tlv *tlv; mt7925_mcu_sta_hdr_trans_tlv() local
1294 struct tlv *tlv; mt7925_mcu_set_tx() local
1332 struct tlv *tlv; mt7925_mcu_sta_key_tlv() local
1784 struct tlv *tlv; mt7925_mcu_sta_he_6g_tlv() local
1801 struct tlv *tlv; mt7925_mcu_sta_eht_tlv() local
1828 struct tlv *tlv; mt7925_mcu_sta_ht_tlv() local
1843 struct tlv *tlv; mt7925_mcu_sta_vht_tlv() local
1864 struct tlv *tlv; mt7925_mcu_sta_amsdu_tlv() local
1905 struct tlv *tlv; mt7925_mcu_sta_phy_tlv() local
1970 struct tlv *tlv; mt7925_mcu_sta_state_v2_tlv() local
1994 struct tlv *tlv; mt7925_mcu_sta_rate_ctrl_tlv() local
2033 struct tlv *tlv; mt7925_mcu_sta_eht_mld_tlv() local
2073 struct tlv *tlv; mt7925_mcu_sta_mld_tlv() local
2116 struct tlv *tlv; mt7925_mcu_sta_remove_tlv() local
2347 } __packed tlv; mt7925_mcu_config_sniffer() member
2476 struct tlv *tlv; mt7925_mcu_bss_rlm_tlv() local
2575 struct tlv *tlv; mt7925_mcu_bss_eht_tlv() local
2709 struct tlv *tlv; mt7925_mcu_bss_basic_tlv() local
2796 struct tlv *tlv; mt7925_mcu_bss_sec_tlv() local
2841 struct tlv *tlv; mt7925_mcu_bss_bmc_tlv() local
2873 struct tlv *tlv; mt7925_mcu_bss_mld_tlv() local
2902 struct tlv *tlv; mt7925_mcu_bss_qos_tlv() local
2914 struct tlv *tlv; mt7925_mcu_bss_mbssid_tlv() local
2936 struct tlv *tlv; mt7925_mcu_bss_he_tlv() local
2963 struct tlv *tlv; mt7925_mcu_bss_color_tlv() local
2981 struct tlv *tlv; mt7925_mcu_bss_ifs_tlv() local
3023 } __packed tlv; mt7925_mcu_del_dev() member
3139 struct tlv *tlv; mt7925_mcu_set_dbdc() local
3171 struct tlv *tlv; mt7925_mcu_build_scan_ie_tlv() local
3232 struct tlv *tlv; mt7925_mcu_hw_scan() local
3364 struct tlv *tlv; mt7925_mcu_sched_scan_req() local
3453 struct tlv *tlv; mt7925_mcu_sched_scan_enable() local
[all...]
/linux/drivers/net/wireless/nxp/nxpwifi/
H A Dutil.h97 #define nxpwifi_for_each_tlv(tlv, buf, buf_len) \
98 for (tlv = (const struct nxpwifi_tlv *)(buf); \
99 (u8 *)(tlv) + sizeof(*tlv) <= (u8 *)(buf) + (buf_len) && \
100 (u8 *)(tlv) + sizeof(*tlv) + le16_to_cpu(tlv->len) <= \
102 tlv = (const struct nxpwifi_tlv *)((u8 *)(tlv) + sizeof(*tlv)
96 nxpwifi_for_each_tlv(tlv,buf,buf_len) global() argument
108 const struct nxpwifi_tlv *tlv; nxpwifi_find_tlv() local
[all...]
H A Duap_cmd.c24 u8 *tlv = *tlv_buf; in nxpwifi_uap_bss_wpa() local
26 tlv_akmp = (struct host_cmd_tlv_akmp *)tlv; in nxpwifi_uap_bss_wpa()
33 tlv += sizeof(struct host_cmd_tlv_akmp); in nxpwifi_uap_bss_wpa()
36 pwk_cipher = (struct host_cmd_tlv_pwk_cipher *)tlv; in nxpwifi_uap_bss_wpa()
44 tlv += sizeof(struct host_cmd_tlv_pwk_cipher); in nxpwifi_uap_bss_wpa()
48 pwk_cipher = (struct host_cmd_tlv_pwk_cipher *)tlv; in nxpwifi_uap_bss_wpa()
56 tlv += sizeof(struct host_cmd_tlv_pwk_cipher); in nxpwifi_uap_bss_wpa()
60 gwk_cipher = (struct host_cmd_tlv_gwk_cipher *)tlv; in nxpwifi_uap_bss_wpa()
67 tlv += sizeof(struct host_cmd_tlv_gwk_cipher); in nxpwifi_uap_bss_wpa()
71 passphrase = (struct host_cmd_tlv_passphrase *)tlv; in nxpwifi_uap_bss_wpa()
[all …]
H A Dsta_event.c500 struct nxpwifi_ie_types_header *tlv) in nxpwifi_process_uap_tx_pause() argument
505 tp = (void *)tlv; in nxpwifi_process_uap_tx_pause()
531 struct nxpwifi_ie_types_header *tlv) in nxpwifi_process_sta_tx_pause() argument
535 tp = (void *)tlv; in nxpwifi_process_sta_tx_pause()
676 struct nxpwifi_ie_types_header *tlv; in nxpwifi_process_multi_chan_event() local
696 tlv = (struct nxpwifi_ie_types_header *)chan_info->tlv_buffer; in nxpwifi_process_multi_chan_event()
699 tlv_type = le16_to_cpu(tlv->type); in nxpwifi_process_multi_chan_event()
700 tlv_len = le16_to_cpu(tlv->len); in nxpwifi_process_multi_chan_event()
713 grp_info = (struct nxpwifi_ie_types_mc_group_info *)tlv; in nxpwifi_process_multi_chan_event()
730 tlv = (void *)((u8 *)tlv + tlv_len + in nxpwifi_process_multi_chan_event()
[all …]
/linux/tools/testing/selftests/bpf/
H A Dxdp_features.c230 struct tlv_hdr *tlv = (struct tlv_hdr *)buf; in dut_echo_thread() local
237 if (n != ntohs(tlv->len)) in dut_echo_thread()
240 if (ntohs(tlv->type) != CMD_ECHO) in dut_echo_thread()
343 struct tlv_hdr *tlv = (struct tlv_hdr *)buf; in recv_msg() local
347 if (len != ntohs(tlv->len) || len < sizeof(*tlv)) in recv_msg()
351 len -= sizeof(*tlv); in recv_msg()
355 memcpy(val, tlv->data, len); in recv_msg()
389 struct tlv_hdr *tlv = (struct tlv_hdr *)buf; in dut_run() local
395 switch (ntohs(tlv->type)) { in dut_run()
410 tlv->type = htons(CMD_ACK); in dut_run()
[all …]
/linux/include/uapi/linux/
H A Dtipc_config.h254 #define TLV_DATA(tlv) ((void *)((char *)(tlv) + TLV_LENGTH(0))) argument
256 static inline int TLV_OK(const void *tlv, __u16 space) in TLV_OK() argument
268 (__be16_to_cpu(((struct tlv_desc *)tlv)->tlv_len) <= space); in TLV_OK()
271 static inline int TLV_CHECK(const void *tlv, __u16 space, __u16 exp_type) in TLV_CHECK() argument
273 return TLV_OK(tlv, space) && in TLV_CHECK()
274 (__be16_to_cpu(((struct tlv_desc *)tlv)->tlv_type) == exp_type); in TLV_CHECK()
277 static inline int TLV_GET_LEN(struct tlv_desc *tlv) in TLV_GET_LEN() argument
279 return __be16_to_cpu(tlv->tlv_len); in TLV_GET_LEN()
282 static inline void TLV_SET_LEN(struct tlv_desc *tlv, __u16 len) in TLV_SET_LEN() argument
284 tlv->tlv_len = __cpu_to_be16(len); in TLV_SET_LEN()
[all …]
/linux/net/ife/
H A Dife.c102 const struct meta_tlvhdr *tlv; in __ife_tlv_meta_valid() local
105 if (unlikely(skbdata + sizeof(*tlv) > ifehdr_end)) in __ife_tlv_meta_valid()
108 tlv = (const struct meta_tlvhdr *)skbdata; in __ife_tlv_meta_valid()
109 tlvlen = ntohs(tlv->len); in __ife_tlv_meta_valid()
130 struct meta_tlvhdr *tlv; in ife_tlv_meta_decode() local
135 tlv = (struct meta_tlvhdr *)skbdata; in ife_tlv_meta_decode()
136 *dlen = ntohs(tlv->len) - NLA_HDRLEN; in ife_tlv_meta_decode()
137 *attrtype = ntohs(tlv->type); in ife_tlv_meta_decode()
148 struct meta_tlvhdr *tlv = (struct meta_tlvhdr *) skbdata; in ife_tlv_meta_next() local
149 u16 tlvlen = ntohs(tlv->len); in ife_tlv_meta_next()
[all …]
/linux/drivers/infiniband/hw/bnxt_re/
H A Dqplib_tlv.h7 struct tlv tlv; member
18 rtlv->tlv.cmd_discr = cpu_to_le16(CMD_DISCR_TLV_ENCAP); in __roce_1st_tlv_prep()
19 rtlv->tlv.tlv_type = cpu_to_le16(TLV_TYPE_ROCE_SP_COMMAND); in __roce_1st_tlv_prep()
20 rtlv->tlv.length = cpu_to_le16(content_bytes); in __roce_1st_tlv_prep()
21 rtlv->tlv.flags = TLV_FLAGS_REQUIRED; in __roce_1st_tlv_prep()
22 rtlv->tlv.flags |= flags ? TLV_FLAGS_MORE : 0; in __roce_1st_tlv_prep()
29 rtlv->tlv.cmd_discr = cpu_to_le16(CMD_DISCR_TLV_ENCAP); in __roce_ext_tlv_prep()
30 rtlv->tlv.tlv_type = cpu_to_le16(tlv_type); in __roce_ext_tlv_prep()
31 rtlv->tlv.length = cpu_to_le16(content_bytes); in __roce_ext_tlv_prep()
32 rtlv->tlv.flags |= more ? TLV_FLAGS_MORE : 0; in __roce_ext_tlv_prep()
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/
H A Diwl-dbg-tlv.c8 #include "iwl-dbg-tlv.h"
48 * @tlv: TLV attach to the timer node
54 struct iwl_ucode_tlv *tlv; member
68 static struct iwl_ucode_tlv *iwl_dbg_tlv_add(const struct iwl_ucode_tlv *tlv, in iwl_dbg_tlv_add() argument
71 u32 len = le32_to_cpu(tlv->length); in iwl_dbg_tlv_add()
74 node = kzalloc_flex(*node, tlv.data, len); in iwl_dbg_tlv_add()
78 memcpy(&node->tlv, tlv, sizeof(node->tlv)); in iwl_dbg_tlv_add()
79 memcpy(node->tlv in iwl_dbg_tlv_add()
85 iwl_dbg_tlv_ver_support(const struct iwl_ucode_tlv * tlv) iwl_dbg_tlv_ver_support() argument
100 iwl_dbg_tlv_alloc_debug_info(struct iwl_trans * trans,const struct iwl_ucode_tlv * tlv) iwl_dbg_tlv_alloc_debug_info() argument
122 iwl_dbg_tlv_alloc_buf_alloc(struct iwl_trans * trans,const struct iwl_ucode_tlv * tlv) iwl_dbg_tlv_alloc_buf_alloc() argument
167 iwl_dbg_tlv_alloc_hcmd(struct iwl_trans * trans,const struct iwl_ucode_tlv * tlv) iwl_dbg_tlv_alloc_hcmd() argument
193 iwl_dbg_tlv_alloc_region(struct iwl_trans * trans,const struct iwl_ucode_tlv * tlv) iwl_dbg_tlv_alloc_region() argument
251 iwl_dbg_tlv_alloc_trigger(struct iwl_trans * trans,const struct iwl_ucode_tlv * tlv) iwl_dbg_tlv_alloc_trigger() argument
288 iwl_dbg_tlv_config_set(struct iwl_trans * trans,const struct iwl_ucode_tlv * tlv) iwl_dbg_tlv_config_set() argument
323 iwl_dbg_tlv_alloc(struct iwl_trans * trans,const struct iwl_ucode_tlv * tlv,bool ext) iwl_dbg_tlv_alloc() argument
476 const struct iwl_ucode_tlv *tlv; iwl_dbg_tlv_parse_bin() local
1186 struct iwl_ucode_tlv *tlv = &node->tlv; iwl_dbg_tlv_gen_active_trig_list() local
[all...]
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_lwt_seg6local.c138 struct sr6_tlv_t tlv; in is_valid_tlv_boundary() local
146 err = bpf_skb_load_bytes(skb, cur_off, &tlv, sizeof(tlv)); in is_valid_tlv_boundary()
150 if (tlv.type == SR6_TLV_PADDING) { in is_valid_tlv_boundary()
151 *pad_size = tlv.len + sizeof(tlv); in is_valid_tlv_boundary()
160 } else if (tlv.type == SR6_TLV_HMAC) { in is_valid_tlv_boundary()
164 cur_off += sizeof(tlv) + tlv.len; in is_valid_tlv_boundary()
231 struct sr6_tlv_t tlv; in delete_tlv() local
240 err = bpf_skb_load_bytes(skb, tlv_off, &tlv, sizeof(tlv)); in delete_tlv()
244 err = bpf_lwt_seg6_adjust_srh(skb, tlv_off, -(sizeof(tlv) + tlv.len)); in delete_tlv()
248 pad_off -= sizeof(tlv) + tlv.len; in delete_tlv()
[all …]
H A Dtest_seg6_loop.c141 struct sr6_tlv_t tlv; in is_valid_tlv_boundary() local
149 err = bpf_skb_load_bytes(skb, cur_off, &tlv, sizeof(tlv)); in is_valid_tlv_boundary()
153 if (tlv.type == SR6_TLV_PADDING) { in is_valid_tlv_boundary()
154 *pad_size = tlv.len + sizeof(tlv); in is_valid_tlv_boundary()
163 } else if (tlv.type == SR6_TLV_HMAC) { in is_valid_tlv_boundary()
167 cur_off += sizeof(tlv) + tlv.len; in is_valid_tlv_boundary()
240 uint8_t tlv[20] = {2, 18, 0, 0, 0xfd, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, in __add_egr_x() local
244 (struct sr6_tlv_t *)&tlv, 20); in __add_egr_x()
/linux/net/ipv6/
H A Dseg6_hmac.c83 struct sr6_tlv_hmac *tlv; in seg6_get_tlv_hmac() local
91 tlv = (struct sr6_tlv_hmac *) in seg6_get_tlv_hmac()
94 if (tlv->tlvhdr.type != SR6_TLV_HMAC || tlv->tlvhdr.len != 38) in seg6_get_tlv_hmac()
97 return tlv; in seg6_get_tlv_hmac()
181 struct sr6_tlv_hmac *tlv; in seg6_hmac_validate_skb() local
189 tlv = seg6_get_tlv_hmac(srh); in seg6_hmac_validate_skb()
192 /* mandatory check but no tlv */ in seg6_hmac_validate_skb()
193 if (require_hmac > 0 && !tlv) in seg6_hmac_validate_skb()
201 if (require_hmac == 0 && !tlv) in seg6_hmac_validate_skb()
286 struct sr6_tlv_hmac *tlv; seg6_push_hmac() local
[all...]
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_dcb.c37 static void i40e_parse_ieee_etscfg_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_parse_ieee_etscfg_tlv() argument
41 u8 *buf = tlv->tlvinfo; in i40e_parse_ieee_etscfg_tlv()
103 static void i40e_parse_ieee_etsrec_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_parse_ieee_etsrec_tlv() argument
106 u8 *buf = tlv->tlvinfo; in i40e_parse_ieee_etsrec_tlv()
156 static void i40e_parse_ieee_pfccfg_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_parse_ieee_pfccfg_tlv() argument
159 u8 *buf = tlv->tlvinfo; in i40e_parse_ieee_pfccfg_tlv()
180 static void i40e_parse_ieee_app_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_parse_ieee_app_tlv() argument
189 typelength = ntohs(tlv->typelength); in i40e_parse_ieee_app_tlv()
191 buf = tlv->tlvinfo; in i40e_parse_ieee_app_tlv()
194 length -= (sizeof(tlv->ouisubtype) + 1); in i40e_parse_ieee_app_tlv()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7996/
H A Dmcu.c487 struct tlv *tlv = (struct tlv *)(data + 4); in mt7996_mcu_ie_countdown() local
503 while (data + sizeof(*tlv) <= tail) { in mt7996_mcu_ie_countdown()
504 u16 tag_len = le16_to_cpu(tlv->len); in mt7996_mcu_ie_countdown()
506 if (tag_len < sizeof(*tlv) + sizeof(*event) || in mt7996_mcu_ie_countdown()
510 event = (struct mt7996_mcu_countdown_notify *)tlv->data; in mt7996_mcu_ie_countdown()
513 switch (le16_to_cpu(tlv->tag)) { in mt7996_mcu_ie_countdown()
529 tlv = (struct tlv *)dat in mt7996_mcu_rx_radar_detected()
576 struct tlv *tlv = (struct tlv *)data; mt7996_mcu_rx_log_message() local
845 struct tlv *tlv; mt7996_mcu_rx_ps_sync() local
980 struct tlv *tlv; mt7996_mcu_bss_rfch_tlv() local
1004 struct tlv *tlv; mt7996_mcu_bss_ra_tlv() local
1021 struct tlv *tlv; mt7996_mcu_bss_he_tlv() local
1048 struct tlv *tlv; mt7996_mcu_bss_mbssid_tlv() local
1071 struct tlv *tlv; mt7996_mcu_bss_bmc_tlv() local
1088 struct tlv *tlv; mt7996_mcu_bss_txcmd_tlv() local
1104 struct tlv *tlv; mt7996_mcu_bss_mld_tlv() local
1125 struct tlv *tlv; mt7996_mcu_bss_sec_tlv() local
1137 struct tlv *tlv; mt7996_mcu_bss_ifs_timing_tlv() local
1171 struct tlv *tlv; mt7996_mcu_bss_basic_tlv() local
1321 struct tlv *tlv; mt7996_mcu_set_protection() local
1375 struct tlv *tlv; mt7996_mcu_set_emlsr_mode() local
1445 struct tlv *tlv; mt7996_mcu_sta_ba() local
1541 struct tlv *tlv; mt7996_mcu_sta_he_tlv() local
1584 struct tlv *tlv; mt7996_mcu_sta_he_6g_tlv() local
1605 struct tlv *tlv; mt7996_mcu_sta_eht_tlv() local
1641 struct tlv *tlv; mt7996_mcu_sta_ht_tlv() local
1660 struct tlv *tlv; mt7996_mcu_sta_vht_tlv() local
1681 struct tlv *tlv; mt7996_mcu_sta_amsdu_tlv() local
1719 struct tlv *tlv; mt7996_mcu_sta_muru_tlv() local
2037 struct tlv *tlv; mt7996_mcu_sta_bfer_tlv() local
2110 struct tlv *tlv; mt7996_mcu_sta_bfee_tlv() local
2147 struct tlv *tlv; mt7996_mcu_sta_tx_proc_tlv() local
2159 struct tlv *tlv; mt7996_mcu_sta_hdrt_tlv() local
2172 struct tlv *tlv; mt7996_mcu_sta_hdr_trans_tlv() local
2225 struct tlv *tlv; mt7996_mcu_set_fixed_rate_ctrl() local
2255 struct tlv *tlv; mt7996_mcu_set_fixed_field() local
2452 struct tlv *tlv; mt7996_mcu_sta_rate_ctrl_tlv() local
2655 struct tlv *tlv; mt7996_mcu_mld_reconf_stop_link() local
2691 struct tlv *tlv; mt7996_mcu_mld_link_oper() local
2724 struct tlv *tlv; mt7996_mcu_sta_mld_setup_tlv() local
2771 struct tlv *tlv; mt7996_mcu_sta_eht_mld_tlv() local
2930 struct tlv *tlv; mt7996_mcu_sta_key_tlv() local
3030 } __packed tlv; mt7996_mcu_add_dev_info() member
3054 struct tlv *tlv; mt7996_mcu_beacon_cntdwn() local
3085 struct tlv *tlv; mt7996_mcu_beacon_mbss() local
3173 struct tlv *tlv; mt7996_mcu_add_beacon() local
3243 struct tlv *tlv; mt7996_mcu_beacon_inband_discov() local
3675 struct tlv *tlv; mt7996_add_rx_airtime_tlv() local
3796 struct tlv *tlv; mt7996_mcu_set_hdr_trans() local
3857 struct tlv *tlv; mt7996_mcu_set_tx() local
4500 struct tlv *tlv = (struct tlv *)buf; mt7996_mcu_get_chip_config() local
4767 struct tlv *tlv; mt7996_mcu_set_txbf() local
5018 struct tlv *tlv; mt7996_mcu_update_bss_color() local
[all...]
/linux/drivers/net/wireless/intel/iwlwifi/fw/
H A Dpnvm.c47 const struct iwl_ucode_tlv *tlv; in iwl_pnvm_handle_section() local
56 while (len >= sizeof(*tlv)) { in iwl_pnvm_handle_section()
59 len -= sizeof(*tlv); in iwl_pnvm_handle_section()
60 tlv = (const void *)data; in iwl_pnvm_handle_section()
62 tlv_len = le32_to_cpu(tlv->length); in iwl_pnvm_handle_section()
63 tlv_type = le32_to_cpu(tlv->type); in iwl_pnvm_handle_section()
71 data += sizeof(*tlv); in iwl_pnvm_handle_section()
181 const struct iwl_ucode_tlv *tlv; in iwl_pnvm_parse() local
185 while (len >= sizeof(*tlv)) { in iwl_pnvm_parse()
189 len -= sizeof(*tlv); in iwl_pnvm_parse()
[all...]

12345678