/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() 1554 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_pdev_suspend() local 1557 skb = ath10k_wmi_alloc_skb(ar, sizeof(*tlv) + sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_pdev_suspend() [all …]
|
/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, \
|
/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()
|
/drivers/net/ethernet/intel/ice/ |
D | ice_dcb.c | 242 ice_parse_ieee_etscfg_tlv(struct ice_lldp_org_tlv *tlv, in ice_parse_ieee_etscfg_tlv() argument 246 u8 *buf = tlv->tlvinfo; in ice_parse_ieee_etscfg_tlv() 274 ice_parse_ieee_etsrec_tlv(struct ice_lldp_org_tlv *tlv, in ice_parse_ieee_etsrec_tlv() argument 277 u8 *buf = tlv->tlvinfo; in ice_parse_ieee_etsrec_tlv() 291 ice_parse_ieee_pfccfg_tlv(struct ice_lldp_org_tlv *tlv, in ice_parse_ieee_pfccfg_tlv() argument 294 u8 *buf = tlv->tlvinfo; in ice_parse_ieee_pfccfg_tlv() 318 ice_parse_ieee_app_tlv(struct ice_lldp_org_tlv *tlv, in ice_parse_ieee_app_tlv() argument 327 typelen = ntohs(tlv->typelen); in ice_parse_ieee_app_tlv() 329 buf = tlv->tlvinfo; in ice_parse_ieee_app_tlv() 334 len -= (sizeof(tlv->ouisubtype) + 1); in ice_parse_ieee_app_tlv() [all …]
|
/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 …]
|
D | sta_event.c | 344 struct mwifiex_ie_types_header *tlv) in mwifiex_process_uap_tx_pause() argument 349 tp = (void *)tlv; in mwifiex_process_uap_tx_pause() 375 struct mwifiex_ie_types_header *tlv) in mwifiex_process_sta_tx_pause() argument 381 tp = (void *)tlv; in mwifiex_process_sta_tx_pause() 417 struct mwifiex_ie_types_header *tlv; in mwifiex_process_multi_chan_event() local 437 tlv = (struct mwifiex_ie_types_header *)chan_info->tlv_buffer; in mwifiex_process_multi_chan_event() 440 tlv_type = le16_to_cpu(tlv->type); in mwifiex_process_multi_chan_event() 441 tlv_len = le16_to_cpu(tlv->len); in mwifiex_process_multi_chan_event() 454 grp_info = (struct mwifiex_ie_types_mc_group_info *)tlv; in mwifiex_process_multi_chan_event() 479 tlv = (void *)((u8 *)tlv + tlv_len + in mwifiex_process_multi_chan_event() [all …]
|
D | scan.c | 1142 struct mwifiex_ie_types_data *tlv, in mwifiex_ret_802_11_scan_get_tlv_ptrs() argument 1151 current_tlv = tlv; in mwifiex_ret_802_11_scan_get_tlv_ptrs() 1164 if (sizeof(tlv->header) + tlv_len > tlv_buf_left) { in mwifiex_ret_802_11_scan_get_tlv_ptrs() 1199 tlv_buf_left -= (sizeof(tlv->header) + tlv_len); in mwifiex_ret_802_11_scan_get_tlv_ptrs() 2292 u8 *tlv_pos = bgscan_config->tlv; in mwifiex_cmd_802_11_bg_scan_config() 2470 le16_unaligned_add_cpu(&cmd->size, tlv_pos - bgscan_config->tlv); in mwifiex_cmd_802_11_bg_scan_config() 2553 struct mwifiex_ie_types_header *tlv; in mwifiex_ret_802_11_scan_ext() local 2565 tlv = (void *)ext_scan_resp->tlv_buffer; in mwifiex_ret_802_11_scan_ext() 2570 type = le16_to_cpu(tlv->type); in mwifiex_ret_802_11_scan_ext() 2571 len = le16_to_cpu(tlv->len); in mwifiex_ret_802_11_scan_ext() [all …]
|
/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-dbg-tlv.c | 107 static bool iwl_dbg_tlv_ver_support(struct iwl_ucode_tlv *tlv) in iwl_dbg_tlv_ver_support() argument 109 struct iwl_fw_ini_header *hdr = (void *)&tlv->data[0]; in iwl_dbg_tlv_ver_support() 110 u32 type = le32_to_cpu(tlv->type); in iwl_dbg_tlv_ver_support() 121 void iwl_dbg_tlv_alloc(struct iwl_trans *trans, struct iwl_ucode_tlv *tlv, in iwl_dbg_tlv_alloc() argument 124 struct iwl_fw_ini_header *hdr = (void *)&tlv->data[0]; in iwl_dbg_tlv_alloc() 125 u32 type = le32_to_cpu(tlv->type); in iwl_dbg_tlv_alloc() 139 if (!iwl_dbg_tlv_ver_support(tlv)) { in iwl_dbg_tlv_alloc() 168 struct iwl_ucode_tlv *tlv; in iwl_dbg_tlv_parse_bin() local 171 while (len >= sizeof(*tlv)) { in iwl_dbg_tlv_parse_bin() 172 len -= sizeof(*tlv); in iwl_dbg_tlv_parse_bin() [all …]
|
D | iwl-dbg-tlv.h | 74 struct iwl_ucode_tlv tlv; member 90 void iwl_dbg_tlv_alloc(struct iwl_trans *trans, struct iwl_ucode_tlv *tlv,
|
/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 …]
|
/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) + len); in qtnf_cmd_tlv_ie_set_add() 179 tlv->hdr.type = cpu_to_le16(QTN_TLV_ID_IE_SET); in qtnf_cmd_tlv_ie_set_add() 180 tlv->hdr.len = cpu_to_le16(len + sizeof(*tlv) - sizeof(tlv->hdr)); in qtnf_cmd_tlv_ie_set_add() 181 tlv->type = frame_type; in qtnf_cmd_tlv_ie_set_add() 182 tlv->flags = 0; in qtnf_cmd_tlv_ie_set_add() 185 memcpy(tlv->ie_data, buf, len); in qtnf_cmd_tlv_ie_set_add() 295 struct qlink_tlv_hdr *tlv = (struct qlink_tlv_hdr *) in qtnf_cmd_send_start_ap() local 296 skb_put(cmd_skb, sizeof(*tlv) + sizeof(*s->ht_cap)); in qtnf_cmd_send_start_ap() 298 tlv->type = cpu_to_le16(WLAN_EID_HT_CAPABILITY); in qtnf_cmd_send_start_ap() [all …]
|
D | event.c | 29 const struct qlink_tlv_hdr *tlv; in qtnf_event_handle_sta_assoc() local 61 tlv = (const struct qlink_tlv_hdr *)sta_assoc->ies; in qtnf_event_handle_sta_assoc() 63 while (payload_len >= sizeof(*tlv)) { in qtnf_event_handle_sta_assoc() 64 tlv_type = le16_to_cpu(tlv->type); in qtnf_event_handle_sta_assoc() 65 tlv_value_len = le16_to_cpu(tlv->len); in qtnf_event_handle_sta_assoc() 82 ie_set = (const struct qlink_tlv_ie_set *)tlv; in qtnf_event_handle_sta_assoc() 93 tlv = (struct qlink_tlv_hdr *)(tlv->val + tlv_value_len); in qtnf_event_handle_sta_assoc() 157 const struct qlink_tlv_hdr *tlv; in qtnf_event_handle_bss_join() local 238 tlv = (struct qlink_tlv_hdr *)join_info->ies; in qtnf_event_handle_bss_join() 241 tlv_type = le16_to_cpu(tlv->type); in qtnf_event_handle_bss_join() [all …]
|
D | qlink_util.c | 291 const struct qlink_tlv_reg_rule *tlv) in qlink_utils_regrule_q2nl() argument 293 rule->freq_range.start_freq_khz = le32_to_cpu(tlv->start_freq_khz); in qlink_utils_regrule_q2nl() 294 rule->freq_range.end_freq_khz = le32_to_cpu(tlv->end_freq_khz); in qlink_utils_regrule_q2nl() 296 le32_to_cpu(tlv->max_bandwidth_khz); in qlink_utils_regrule_q2nl() 297 rule->power_rule.max_antenna_gain = le32_to_cpu(tlv->max_antenna_gain); in qlink_utils_regrule_q2nl() 298 rule->power_rule.max_eirp = le32_to_cpu(tlv->max_eirp); in qlink_utils_regrule_q2nl() 299 rule->dfs_cac_ms = le32_to_cpu(tlv->dfs_cac_ms); in qlink_utils_regrule_q2nl() 300 rule->flags = qtnf_reg_rule_flags_parse(le32_to_cpu(tlv->flags)); in qlink_utils_regrule_q2nl()
|
/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 = pci_alloc_consistent(pdev, tlv_size, &tlv_pa); in usnic_fwd_alloc_flow() [all …]
|
/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 …]
|
D | debugfs.c | 197 static void *lbs_tlv_find(uint16_t tlv_type, const uint8_t *tlv, uint16_t size) in lbs_tlv_find() argument 204 tlv_h = (struct mrvl_ie_header *) tlv; in lbs_tlv_find() 211 tlv += length; in lbs_tlv_find() 248 got = lbs_tlv_find(tlv_type, subscribed->tlv, sizeof(subscribed->tlv)); in lbs_threshold_read() 275 struct mrvl_ie_thresholds *tlv; in lbs_threshold_write() local 313 tlv = (void *)events->tlv; in lbs_threshold_write() 317 tlv->header.type = cpu_to_le16(tlv_type); in lbs_threshold_write() 318 tlv->header.len = cpu_to_le16(sizeof(*tlv) - sizeof(tlv->header)); in lbs_threshold_write() 319 tlv->value = value; in lbs_threshold_write() 321 tlv->freq = freq; in lbs_threshold_write() [all …]
|
/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 …]
|
/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()
|
/drivers/net/ethernet/qlogic/qed/ |
D | qed_mng_tlv.c | 1182 struct qed_drv_tlv_hdr tlv; in qed_mfw_update_tlvs() local 1196 memset(&tlv, 0, sizeof(tlv)); in qed_mfw_update_tlvs() 1198 offset += sizeof(tlv) + sizeof(u32) * tlv.tlv_length) { in qed_mfw_update_tlvs() 1200 tlv.tlv_type = TLV_TYPE(p_tlv); in qed_mfw_update_tlvs() 1201 tlv.tlv_length = TLV_LENGTH(p_tlv); in qed_mfw_update_tlvs() 1202 tlv.tlv_flags = TLV_FLAGS(p_tlv); in qed_mfw_update_tlvs() 1205 "Type %d length = %d flags = 0x%x\n", tlv.tlv_type, in qed_mfw_update_tlvs() 1206 tlv.tlv_length, tlv.tlv_flags); in qed_mfw_update_tlvs() 1209 len = qed_mfw_get_gen_tlv_value(&tlv, in qed_mfw_update_tlvs() 1213 len = qed_mfw_get_eth_tlv_value(&tlv, in qed_mfw_update_tlvs() [all …]
|
/drivers/net/wireless/ath/ |
D | spectral_common.h | 49 struct fft_sample_tlv tlv; member 67 struct fft_sample_tlv tlv; member 95 struct fft_sample_tlv tlv; member
|
/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_tlv.h | 41 #define FM10K_TLV_LEN_ALIGN(tlv) \ argument 42 (((tlv) + FM10K_TLV_LEN_ALIGN_MASK) & ~FM10K_TLV_LEN_ALIGN_MASK) 43 #define FM10K_TLV_DWORD_LEN(tlv) \ argument 44 ((u16)((FM10K_TLV_LEN_ALIGN(tlv)) >> (FM10K_TLV_LEN_SHIFT + 2)) + 1)
|