/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath10k/ |
D | wmi-tlv.c | 76 const struct wmi_tlv *tlv; in ath10k_wmi_tlv_iter() local 81 if (len < sizeof(*tlv)) { in ath10k_wmi_tlv_iter() 84 ptr - begin, len, sizeof(*tlv)); in ath10k_wmi_tlv_iter() 88 tlv = ptr; in ath10k_wmi_tlv_iter() 89 tlv_tag = __le16_to_cpu(tlv->tag); in ath10k_wmi_tlv_iter() 90 tlv_len = __le16_to_cpu(tlv->len); in ath10k_wmi_tlv_iter() 91 ptr += sizeof(*tlv); in ath10k_wmi_tlv_iter() 92 len -= sizeof(*tlv); in ath10k_wmi_tlv_iter() 1706 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_pdev_suspend() local 1709 skb = ath10k_wmi_alloc_skb(ar, sizeof(*tlv) + sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_pdev_suspend() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxfw/ |
D | mlxfw_mfa2_tlv_multi.c | 9 #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() 37 next = (void *) tlv + tlv_len; in mlxfw_mfa2_tlv_next() 45 const struct mlxfw_mfa2_tlv *tlv; in mlxfw_mfa2_tlv_advance() local 48 mlxfw_mfa2_tlv_foreach(mfa2_file, tlv, idx, from_tlv, count) in mlxfw_mfa2_tlv_advance() 49 if (!tlv) in mlxfw_mfa2_tlv_advance() [all …]
|
D | mlxfw_mfa2_tlv.h | 28 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 …]
|
D | mlxfw_mfa2.c | 98 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 …]
|
D | mlxfw_mfa2_tlv_multi.h | 17 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, \
|
/kernel/linux/linux-5.10/drivers/net/ethernet/rocker/ |
D | rocker_tlv.h | 29 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 …]
|
D | rocker_tlv.c | 18 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()
|
/kernel/linux/linux-5.10/net/nfc/ |
D | llcp_commands.c | 32 static u8 llcp_tlv8(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(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(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(u8 *tlv) in llcp_tlv_miux() argument 56 return llcp_tlv16(tlv, LLCP_TLV_MIUX) & 0x7ff; in llcp_tlv_miux() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/ |
D | ice_dcb.c | 209 ice_parse_ieee_etscfg_tlv(struct ice_lldp_org_tlv *tlv, in ice_parse_ieee_etscfg_tlv() argument 213 u8 *buf = tlv->tlvinfo; in ice_parse_ieee_etscfg_tlv() 241 ice_parse_ieee_etsrec_tlv(struct ice_lldp_org_tlv *tlv, in ice_parse_ieee_etsrec_tlv() argument 244 u8 *buf = tlv->tlvinfo; in ice_parse_ieee_etsrec_tlv() 258 ice_parse_ieee_pfccfg_tlv(struct ice_lldp_org_tlv *tlv, in ice_parse_ieee_pfccfg_tlv() argument 261 u8 *buf = tlv->tlvinfo; in ice_parse_ieee_pfccfg_tlv() 285 ice_parse_ieee_app_tlv(struct ice_lldp_org_tlv *tlv, in ice_parse_ieee_app_tlv() argument 294 typelen = ntohs(tlv->typelen); in ice_parse_ieee_app_tlv() 296 buf = tlv->tlvinfo; in ice_parse_ieee_app_tlv() 301 len -= (sizeof(tlv->ouisubtype) + 1); in ice_parse_ieee_app_tlv() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/mwifiex/ |
D | uap_cmd.c | 316 u8 *tlv = *tlv_buf; in mwifiex_uap_bss_wpa() local 318 tlv_akmp = (struct host_cmd_tlv_akmp *)tlv; in mwifiex_uap_bss_wpa() 325 tlv += sizeof(struct host_cmd_tlv_akmp); in mwifiex_uap_bss_wpa() 328 pwk_cipher = (struct host_cmd_tlv_pwk_cipher *)tlv; in mwifiex_uap_bss_wpa() 336 tlv += sizeof(struct host_cmd_tlv_pwk_cipher); in mwifiex_uap_bss_wpa() 340 pwk_cipher = (struct host_cmd_tlv_pwk_cipher *)tlv; in mwifiex_uap_bss_wpa() 348 tlv += sizeof(struct host_cmd_tlv_pwk_cipher); in mwifiex_uap_bss_wpa() 352 gwk_cipher = (struct host_cmd_tlv_gwk_cipher *)tlv; in mwifiex_uap_bss_wpa() 359 tlv += sizeof(struct host_cmd_tlv_gwk_cipher); in mwifiex_uap_bss_wpa() 363 passphrase = (struct host_cmd_tlv_passphrase *)tlv; in mwifiex_uap_bss_wpa() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-dbg-tlv.c | 109 struct iwl_ucode_tlv *tlv; member 121 static int iwl_dbg_tlv_add(struct iwl_ucode_tlv *tlv, struct list_head *list) in iwl_dbg_tlv_add() argument 123 u32 len = le32_to_cpu(tlv->length); in iwl_dbg_tlv_add() 130 memcpy(&node->tlv, tlv, sizeof(node->tlv) + len); in iwl_dbg_tlv_add() 136 static bool iwl_dbg_tlv_ver_support(struct iwl_ucode_tlv *tlv) in iwl_dbg_tlv_ver_support() argument 138 struct iwl_fw_ini_header *hdr = (void *)&tlv->data[0]; in iwl_dbg_tlv_ver_support() 139 u32 type = le32_to_cpu(tlv->type); in iwl_dbg_tlv_ver_support() 151 struct iwl_ucode_tlv *tlv) in iwl_dbg_tlv_alloc_debug_info() argument 153 struct iwl_fw_ini_debug_info_tlv *debug_info = (void *)tlv->data; in iwl_dbg_tlv_alloc_debug_info() 155 if (le32_to_cpu(tlv->length) != sizeof(*debug_info)) in iwl_dbg_tlv_alloc_debug_info() [all …]
|
/kernel/linux/linux-5.10/net/ife/ |
D | ife.c | 101 const struct meta_tlvhdr *tlv; in __ife_tlv_meta_valid() local 104 if (unlikely(skbdata + sizeof(*tlv) > ifehdr_end)) in __ife_tlv_meta_valid() 107 tlv = (const struct meta_tlvhdr *)skbdata; in __ife_tlv_meta_valid() 108 tlvlen = ntohs(tlv->len); in __ife_tlv_meta_valid() 129 struct meta_tlvhdr *tlv; in ife_tlv_meta_decode() local 134 tlv = (struct meta_tlvhdr *)skbdata; in ife_tlv_meta_decode() 135 *dlen = ntohs(tlv->len) - NLA_HDRLEN; in ife_tlv_meta_decode() 136 *attrtype = ntohs(tlv->type); in ife_tlv_meta_decode() 147 struct meta_tlvhdr *tlv = (struct meta_tlvhdr *) skbdata; in ife_tlv_meta_next() local 148 u16 tlvlen = ntohs(tlv->len); in ife_tlv_meta_next() [all …]
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
D | tipc_config.h | 258 #define TLV_DATA(tlv) ((void *)((char *)(tlv) + TLV_LENGTH(0))) argument 260 static inline int TLV_OK(const void *tlv, __u16 space) in TLV_OK() argument 272 (ntohs(((struct tlv_desc *)tlv)->tlv_len) <= space); in TLV_OK() 275 static inline int TLV_CHECK(const void *tlv, __u16 space, __u16 exp_type) in TLV_CHECK() argument 277 return TLV_OK(tlv, space) && in TLV_CHECK() 278 (ntohs(((struct tlv_desc *)tlv)->tlv_type) == exp_type); in TLV_CHECK() 281 static inline int TLV_GET_LEN(struct tlv_desc *tlv) in TLV_GET_LEN() argument 283 return ntohs(tlv->tlv_len); in TLV_GET_LEN() 286 static inline void TLV_SET_LEN(struct tlv_desc *tlv, __u16 len) in TLV_SET_LEN() argument 288 tlv->tlv_len = htons(len); in TLV_SET_LEN() [all …]
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
D | tipc_config.h | 122 #define TLV_DATA(tlv) ((void *)((char *)(tlv) + TLV_LENGTH(0))) argument 123 static inline int TLV_OK(const void *tlv, __u16 space) in TLV_OK() argument 127 (ntohs(((struct tlv_desc *)tlv)->tlv_len) <= space); in TLV_OK() 129 static inline int TLV_CHECK(const void *tlv, __u16 space, __u16 exp_type) in TLV_CHECK() argument 131 return TLV_OK(tlv, space) && in TLV_CHECK() 132 (ntohs(((struct tlv_desc *)tlv)->tlv_type) == exp_type); in TLV_CHECK() 134 static inline int TLV_GET_LEN(struct tlv_desc *tlv) in TLV_GET_LEN() argument 136 return ntohs(tlv->tlv_len); in TLV_GET_LEN() 138 static inline void TLV_SET_LEN(struct tlv_desc *tlv, __u16 len) in TLV_SET_LEN() argument 140 tlv->tlv_len = htons(len); in TLV_SET_LEN() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/fw/ |
D | pnvm.c | 37 struct iwl_ucode_tlv *tlv; in iwl_pnvm_handle_section() local 47 while (len >= sizeof(*tlv)) { in iwl_pnvm_handle_section() 50 len -= sizeof(*tlv); in iwl_pnvm_handle_section() 51 tlv = (void *)data; in iwl_pnvm_handle_section() 53 tlv_len = le32_to_cpu(tlv->length); in iwl_pnvm_handle_section() 54 tlv_type = le32_to_cpu(tlv->type); in iwl_pnvm_handle_section() 63 data += sizeof(*tlv); in iwl_pnvm_handle_section() 177 struct iwl_ucode_tlv *tlv; in iwl_pnvm_parse() local 181 while (len >= sizeof(*tlv)) { in iwl_pnvm_parse() 184 len -= sizeof(*tlv); in iwl_pnvm_parse() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
D | test_lwt_seg6local.c | 136 struct sr6_tlv_t tlv; in is_valid_tlv_boundary() local 144 err = bpf_skb_load_bytes(skb, cur_off, &tlv, sizeof(tlv)); in is_valid_tlv_boundary() 148 if (tlv.type == SR6_TLV_PADDING) { in is_valid_tlv_boundary() 149 *pad_size = tlv.len + sizeof(tlv); in is_valid_tlv_boundary() 158 } else if (tlv.type == SR6_TLV_HMAC) { in is_valid_tlv_boundary() 162 cur_off += sizeof(tlv) + tlv.len; in is_valid_tlv_boundary() 229 struct sr6_tlv_t tlv; in delete_tlv() local 238 err = bpf_skb_load_bytes(skb, tlv_off, &tlv, sizeof(tlv)); in delete_tlv() 242 err = bpf_lwt_seg6_adjust_srh(skb, tlv_off, -(sizeof(tlv) + tlv.len)); in delete_tlv() 246 pad_off -= sizeof(tlv) + tlv.len; in delete_tlv() [all …]
|
D | test_seg6_loop.c | 139 struct sr6_tlv_t tlv; in is_valid_tlv_boundary() local 147 err = bpf_skb_load_bytes(skb, cur_off, &tlv, sizeof(tlv)); in is_valid_tlv_boundary() 151 if (tlv.type == SR6_TLV_PADDING) { in is_valid_tlv_boundary() 152 *pad_size = tlv.len + sizeof(tlv); in is_valid_tlv_boundary() 161 } else if (tlv.type == SR6_TLV_HMAC) { in is_valid_tlv_boundary() 165 cur_off += sizeof(tlv) + tlv.len; in is_valid_tlv_boundary() 238 uint8_t tlv[20] = {2, 18, 0, 0, 0xfd, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, in __add_egr_x() local 242 (struct sr6_tlv_t *)&tlv, 20); in __add_egr_x()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/ |
D | i40e_dcb.c | 36 static void i40e_parse_ieee_etscfg_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_parse_ieee_etscfg_tlv() argument 40 u8 *buf = tlv->tlvinfo; in i40e_parse_ieee_etscfg_tlv() 107 static void i40e_parse_ieee_etsrec_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_parse_ieee_etsrec_tlv() argument 110 u8 *buf = tlv->tlvinfo; in i40e_parse_ieee_etsrec_tlv() 162 static void i40e_parse_ieee_pfccfg_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_parse_ieee_pfccfg_tlv() argument 165 u8 *buf = tlv->tlvinfo; in i40e_parse_ieee_pfccfg_tlv() 189 static void i40e_parse_ieee_app_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_parse_ieee_app_tlv() argument 198 typelength = ntohs(tlv->typelength); in i40e_parse_ieee_app_tlv() 201 buf = tlv->tlvinfo; in i40e_parse_ieee_app_tlv() 204 length -= (sizeof(tlv->ouisubtype) + 1); in i40e_parse_ieee_app_tlv() [all …]
|
/kernel/linux/linux-5.10/net/ipv6/ |
D | seg6_hmac.c | 87 struct sr6_tlv_hmac *tlv; in seg6_get_tlv_hmac() local 95 tlv = (struct sr6_tlv_hmac *) in seg6_get_tlv_hmac() 98 if (tlv->tlvhdr.type != SR6_TLV_HMAC || tlv->tlvhdr.len != 38) in seg6_get_tlv_hmac() 101 return tlv; in seg6_get_tlv_hmac() 242 struct sr6_tlv_hmac *tlv; in seg6_hmac_validate_skb() local 250 tlv = seg6_get_tlv_hmac(srh); in seg6_hmac_validate_skb() 253 if (idev->cnf.seg6_require_hmac > 0 && !tlv) in seg6_hmac_validate_skb() 261 if (idev->cnf.seg6_require_hmac == 0 && !tlv) in seg6_hmac_validate_skb() 266 hinfo = seg6_hmac_info_lookup(net, be32_to_cpu(tlv->hmackeyid)); in seg6_hmac_validate_skb() 273 if (memcmp(hmac_output, tlv->hmac, SEG6_HMAC_FIELD_LEN) != 0) in seg6_hmac_validate_skb() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7915/ |
D | mcu.c | 652 struct tlv *sta_hdr = sta_wtbl; in mt7915_mcu_alloc_wtbl_req() 675 static struct tlv * 680 struct tlv *sta_hdr = sta_wtbl; in mt7915_mcu_add_nested_tlv() 681 struct tlv *ptlv, tlv = { in mt7915_mcu_add_nested_tlv() local 688 memcpy(ptlv, &tlv, sizeof(tlv)); in mt7915_mcu_add_nested_tlv() 702 static struct tlv * 708 static struct tlv * 712 struct tlv *ptlv, tlv = { in mt7915_mcu_add_nested_subtlv() local 718 memcpy(ptlv, &tlv, sizeof(tlv)); in mt7915_mcu_add_nested_subtlv() 737 struct tlv *tlv; in mt7915_mcu_bss_basic_tlv() local [all …]
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/usnic/ |
D | usnic_fwd.c | 183 static void fill_tlv(struct filter_tlv *tlv, struct filter *filter, in fill_tlv() argument 186 tlv->type = CLSF_TLV_FILTER; in fill_tlv() 187 tlv->length = sizeof(struct filter); in fill_tlv() 188 *((struct filter *)&tlv->val) = *filter; in fill_tlv() 190 tlv = (struct filter_tlv *)((char *)tlv + sizeof(struct filter_tlv) + in fill_tlv() 192 tlv->type = CLSF_TLV_ACTION; in fill_tlv() 193 tlv->length = sizeof(struct filter_action); in fill_tlv() 194 *((struct filter_action *)&tlv->val) = *action; in fill_tlv() 201 struct filter_tlv *tlv; in usnic_fwd_alloc_flow() local 217 tlv = dma_alloc_coherent(&pdev->dev, tlv_size, &tlv_pa, GFP_ATOMIC); in usnic_fwd_alloc_flow() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/cisco/enic/ |
D | vnic_vic.c | 53 struct vic_provinfo_tlv *tlv; in vic_provinfo_add_tlv() local 62 tlv = (struct vic_provinfo_tlv *)((u8 *)vp->tlv + in vic_provinfo_add_tlv() 65 tlv->type = htons(type); in vic_provinfo_add_tlv() 66 tlv->length = htons(length); in vic_provinfo_add_tlv() 67 memcpy(tlv->value, value, length); in vic_provinfo_add_tlv()
|
/kernel/linux/linux-5.10/drivers/net/wireless/quantenna/qtnfmac/ |
D | commands.c | 176 struct qlink_tlv_ie_set *tlv; in qtnf_cmd_tlv_ie_set_add() local 178 tlv = (struct qlink_tlv_ie_set *)skb_put(cmd_skb, sizeof(*tlv) + in qtnf_cmd_tlv_ie_set_add() 180 tlv->hdr.type = cpu_to_le16(QTN_TLV_ID_IE_SET); in qtnf_cmd_tlv_ie_set_add() 181 tlv->hdr.len = cpu_to_le16(len + sizeof(*tlv) - sizeof(tlv->hdr)); in qtnf_cmd_tlv_ie_set_add() 182 tlv->type = frame_type; in qtnf_cmd_tlv_ie_set_add() 183 tlv->flags = 0; in qtnf_cmd_tlv_ie_set_add() 186 memcpy(tlv->ie_data, buf, len); in qtnf_cmd_tlv_ie_set_add() 225 struct qlink_tlv_ext_ie *tlv; in qtnf_cmd_tlv_ie_ext_add() local 227 tlv = (struct qlink_tlv_ext_ie *)skb_put(cmd_skb, sizeof(*tlv) + len); in qtnf_cmd_tlv_ie_ext_add() 228 tlv->hdr.type = cpu_to_le16(WLAN_EID_EXTENSION); in qtnf_cmd_tlv_ie_ext_add() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wimax/i2400m/ |
D | control.c | 124 ssize_t i2400m_tlv_match(const struct i2400m_tlv_hdr *tlv, in i2400m_tlv_match() argument 127 if (le16_to_cpu(tlv->type) != tlv_type) /* Not our type? skip */ in i2400m_tlv_match() 130 && le16_to_cpu(tlv->length) + sizeof(*tlv) != tlv_size) { in i2400m_tlv_match() 131 size_t size = le16_to_cpu(tlv->length) + sizeof(*tlv); in i2400m_tlv_match() 231 const struct i2400m_tlv_hdr *tlv = NULL; in i2400m_tlv_find() local 232 while ((tlv = i2400m_tlv_buffer_walk(i2400m, tlv_hdr, size, tlv))) { in i2400m_tlv_find() 233 match = i2400m_tlv_match(tlv, tlv_type, tlv_size); in i2400m_tlv_find() 241 return tlv; in i2400m_tlv_find() 434 const struct i2400m_tlv_hdr *tlv, in i2400m_report_state_parse_tlv() argument 442 if (0 == i2400m_tlv_match(tlv, I2400M_TLV_SYSTEM_STATE, sizeof(*ss))) { in i2400m_report_state_parse_tlv() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/libertas/ |
D | cfg.c | 165 static int lbs_add_ssid_tlv(u8 *tlv, const u8 *ssid, int ssid_len) in lbs_add_ssid_tlv() argument 167 struct mrvl_ie_ssid_param_set *ssid_tlv = (void *)tlv; in lbs_add_ssid_tlv() 190 static int lbs_add_channel_list_tlv(struct lbs_private *priv, u8 *tlv, in lbs_add_channel_list_tlv() argument 196 struct mrvl_ie_header *header = (void *) tlv; in lbs_add_channel_list_tlv() 213 tlv += sizeof(struct mrvl_ie_header); in lbs_add_channel_list_tlv() 217 memset(tlv, 0, chanscanparamsize); in lbs_add_channel_list_tlv() 220 struct chanscanparamset *param = (void *) tlv; in lbs_add_channel_list_tlv() 231 tlv += sizeof(struct chanscanparamset); in lbs_add_channel_list_tlv() 251 static int lbs_add_supported_rates_tlv(u8 *tlv) in lbs_add_supported_rates_tlv() argument 254 struct mrvl_ie_rates_param_set *rate_tlv = (void *)tlv; in lbs_add_supported_rates_tlv() [all …]
|