Home
last modified time | relevance | path

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

12

/drivers/net/ethernet/intel/i40e/
Di40e_dcb.c59 static void i40e_parse_ieee_etscfg_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_parse_ieee_etscfg_tlv() argument
63 u8 *buf = tlv->tlvinfo; in i40e_parse_ieee_etscfg_tlv()
130 static void i40e_parse_ieee_etsrec_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_parse_ieee_etsrec_tlv() argument
133 u8 *buf = tlv->tlvinfo; in i40e_parse_ieee_etsrec_tlv()
185 static void i40e_parse_ieee_pfccfg_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_parse_ieee_pfccfg_tlv() argument
188 u8 *buf = tlv->tlvinfo; in i40e_parse_ieee_pfccfg_tlv()
212 static void i40e_parse_ieee_app_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_parse_ieee_app_tlv() argument
221 typelength = ntohs(tlv->typelength); in i40e_parse_ieee_app_tlv()
224 buf = tlv->tlvinfo; in i40e_parse_ieee_app_tlv()
227 length -= (sizeof(tlv->ouisubtype) + 1); in i40e_parse_ieee_app_tlv()
[all …]
/drivers/net/wireless/mwifiex/
Duap_cmd.c315 u8 *tlv = *tlv_buf; in mwifiex_uap_bss_wpa() local
317 tlv_akmp = (struct host_cmd_tlv_akmp *)tlv; in mwifiex_uap_bss_wpa()
324 tlv += sizeof(struct host_cmd_tlv_akmp); in mwifiex_uap_bss_wpa()
327 pwk_cipher = (struct host_cmd_tlv_pwk_cipher *)tlv; in mwifiex_uap_bss_wpa()
335 tlv += sizeof(struct host_cmd_tlv_pwk_cipher); in mwifiex_uap_bss_wpa()
339 pwk_cipher = (struct host_cmd_tlv_pwk_cipher *)tlv; in mwifiex_uap_bss_wpa()
347 tlv += sizeof(struct host_cmd_tlv_pwk_cipher); in mwifiex_uap_bss_wpa()
351 gwk_cipher = (struct host_cmd_tlv_gwk_cipher *)tlv; in mwifiex_uap_bss_wpa()
358 tlv += sizeof(struct host_cmd_tlv_gwk_cipher); in mwifiex_uap_bss_wpa()
362 passphrase = (struct host_cmd_tlv_passphrase *)tlv; in mwifiex_uap_bss_wpa()
[all …]
Dscan.c1084 struct mwifiex_ie_types_data *tlv, in mwifiex_ret_802_11_scan_get_tlv_ptrs() argument
1093 current_tlv = tlv; in mwifiex_ret_802_11_scan_get_tlv_ptrs()
1105 if (sizeof(tlv->header) + tlv_len > tlv_buf_left) { in mwifiex_ret_802_11_scan_get_tlv_ptrs()
1135 tlv_buf_left -= (sizeof(tlv->header) + tlv_len); in mwifiex_ret_802_11_scan_get_tlv_ptrs()
2025 struct mwifiex_ie_types_data *tlv; in mwifiex_handle_event_ext_scan_report() local
2049 tlv = (struct mwifiex_ie_types_data *)scan_resp; in mwifiex_handle_event_ext_scan_report()
2052 type = le16_to_cpu(tlv->header.type); in mwifiex_handle_event_ext_scan_report()
2053 len = le16_to_cpu(tlv->header.len); in mwifiex_handle_event_ext_scan_report()
2068 bss_info = (u8 *)tlv; in mwifiex_handle_event_ext_scan_report()
2069 scan_rsp_tlv = (struct mwifiex_ie_types_bss_scan_rsp *)tlv; in mwifiex_handle_event_ext_scan_report()
[all …]
Dcmdevt.c1292 u8 *tlv; in mwifiex_cmd_enh_power_mode() local
1311 tlv = (u8 *) cmd + cmd_size; in mwifiex_cmd_enh_power_mode()
1315 (struct mwifiex_ie_types_ps_param *) tlv; in mwifiex_cmd_enh_power_mode()
1321 tlv += sizeof(*ps_tlv); in mwifiex_cmd_enh_power_mode()
1340 (struct mwifiex_ie_types_auto_ds_param *) tlv; in mwifiex_cmd_enh_power_mode()
1349 tlv += sizeof(*auto_ds_tlv); in mwifiex_cmd_enh_power_mode()
1472 struct mwifiex_ie_types_header *tlv; in mwifiex_ret_get_hw_spec() local
1539 tlv = (void *)&hw_spec->tlvs + parsed_len; in mwifiex_ret_get_hw_spec()
1540 switch (le16_to_cpu(tlv->type)) { in mwifiex_ret_get_hw_spec()
1542 api_rev = (struct hw_spec_api_rev *)tlv; in mwifiex_ret_get_hw_spec()
[all …]
Dsta_cmdresp.c276 u16 tlv, tlv_buf_len, tlv_buf_left; in mwifiex_ret_tx_rate_cfg() local
285 tlv = le16_to_cpu(head->type); in mwifiex_ret_tx_rate_cfg()
291 switch (tlv) { in mwifiex_ret_tx_rate_cfg()
/drivers/infiniband/hw/usnic/
Dusnic_fwd.c176 static void fill_tlv(struct filter_tlv *tlv, struct filter *filter, in fill_tlv() argument
179 tlv->type = CLSF_TLV_FILTER; in fill_tlv()
180 tlv->length = sizeof(struct filter); in fill_tlv()
181 *((struct filter *)&tlv->val) = *filter; in fill_tlv()
183 tlv = (struct filter_tlv *)((char *)tlv + sizeof(struct filter_tlv) + in fill_tlv()
185 tlv->type = CLSF_TLV_ACTION; in fill_tlv()
186 tlv->length = sizeof(struct filter_action); in fill_tlv()
187 *((struct filter_action *)&tlv->val) = *action; in fill_tlv()
194 struct filter_tlv *tlv; in usnic_fwd_alloc_flow() local
210 tlv = pci_alloc_consistent(pdev, tlv_size, &tlv_pa); in usnic_fwd_alloc_flow()
[all …]
/drivers/net/wimax/i2400m/
Dcontrol.c124 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()
433 const struct i2400m_tlv_hdr *tlv, in i2400m_report_state_parse_tlv() argument
441 if (0 == i2400m_tlv_match(tlv, I2400M_TLV_SYSTEM_STATE, sizeof(*ss))) { in i2400m_report_state_parse_tlv()
[all …]
/drivers/net/wireless/libertas/
Dcfg.c164 static int lbs_add_ssid_tlv(u8 *tlv, const u8 *ssid, int ssid_len) in lbs_add_ssid_tlv() argument
166 struct mrvl_ie_ssid_param_set *ssid_tlv = (void *)tlv; in lbs_add_ssid_tlv()
189 static int lbs_add_channel_list_tlv(struct lbs_private *priv, u8 *tlv, in lbs_add_channel_list_tlv() argument
195 struct mrvl_ie_header *header = (void *) tlv; in lbs_add_channel_list_tlv()
212 tlv += sizeof(struct mrvl_ie_header); in lbs_add_channel_list_tlv()
216 memset(tlv, 0, chanscanparamsize); in lbs_add_channel_list_tlv()
219 struct chanscanparamset *param = (void *) tlv; in lbs_add_channel_list_tlv()
230 tlv += sizeof(struct chanscanparamset); in lbs_add_channel_list_tlv()
250 static int lbs_add_supported_rates_tlv(u8 *tlv) in lbs_add_supported_rates_tlv() argument
253 struct mrvl_ie_rates_param_set *rate_tlv = (void *)tlv; in lbs_add_supported_rates_tlv()
[all …]
Ddebugfs.c204 static void *lbs_tlv_find(uint16_t tlv_type, const uint8_t *tlv, uint16_t size) in lbs_tlv_find() argument
211 tlv_h = (struct mrvl_ie_header *) tlv; in lbs_tlv_find()
218 tlv += length; in lbs_tlv_find()
255 got = lbs_tlv_find(tlv_type, subscribed->tlv, sizeof(subscribed->tlv)); in lbs_threshold_read()
282 struct mrvl_ie_thresholds *tlv; in lbs_threshold_write() local
326 tlv = (void *)events->tlv; in lbs_threshold_write()
330 tlv->header.type = cpu_to_le16(tlv_type); in lbs_threshold_write()
331 tlv->header.len = cpu_to_le16(sizeof(*tlv) - sizeof(tlv->header)); in lbs_threshold_write()
332 tlv->value = value; in lbs_threshold_write()
334 tlv->freq = freq; in lbs_threshold_write()
[all …]
/drivers/net/ethernet/cisco/enic/
Dvnic_vic.c53 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()
Dvnic_dev.c1070 struct filter_tlv *tlv, *tlv_va; in vnic_dev_classifier() local
1081 tlv = tlv_va; in vnic_dev_classifier()
1084 memset(tlv, 0, tlv_size); in vnic_dev_classifier()
1085 tlv->type = CLSF_TLV_FILTER; in vnic_dev_classifier()
1086 tlv->length = sizeof(struct filter); in vnic_dev_classifier()
1087 *(struct filter *)&tlv->val = *data; in vnic_dev_classifier()
1089 tlv = (struct filter_tlv *)((char *)tlv + in vnic_dev_classifier()
1093 tlv->type = CLSF_TLV_ACTION; in vnic_dev_classifier()
1094 tlv->length = sizeof(struct filter_action); in vnic_dev_classifier()
1095 action = (struct filter_action *)&tlv->val; in vnic_dev_classifier()
Dvnic_vic.h62 } tlv[0]; member
/drivers/net/wireless/ath/
Dspectral_common.h49 struct fft_sample_tlv tlv; member
67 struct fft_sample_tlv tlv; member
95 struct fft_sample_tlv tlv; member
/drivers/net/wireless/ath/ath9k/
Dspectral.c47 struct fft_sample_tlv *tlv; in ath_process_fft() local
136 fft_sample_40.tlv.type = ATH_FFT_SAMPLE_HT20_40; in ath_process_fft()
137 fft_sample_40.tlv.length = __cpu_to_be16(length); in ath_process_fft()
174 tlv = (struct fft_sample_tlv *)&fft_sample_40; in ath_process_fft()
181 fft_sample_20.tlv.type = ATH_FFT_SAMPLE_HT20; in ath_process_fft()
182 fft_sample_20.tlv.length = __cpu_to_be16(length); in ath_process_fft()
199 tlv = (struct fft_sample_tlv *)&fft_sample_20; in ath_process_fft()
202 ath_debug_send_fft_sample(sc, tlv); in ath_process_fft()
/drivers/net/ethernet/intel/fm10k/
Dfm10k_tlv.h58 #define FM10K_TLV_LEN_ALIGN(tlv) \ argument
59 (((tlv) + FM10K_TLV_LEN_ALIGN_MASK) & ~FM10K_TLV_LEN_ALIGN_MASK)
60 #define FM10K_TLV_DWORD_LEN(tlv) \ argument
61 ((u16)((FM10K_TLV_LEN_ALIGN(tlv)) >> (FM10K_TLV_LEN_SHIFT + 2)) + 1)
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_vfpf.c70 struct channel_tlv *tlv = (struct channel_tlv *)tlvs_list; in bnx2x_search_tlv_list() local
73 if (tlv->type == req_tlv) in bnx2x_search_tlv_list()
74 return tlv; in bnx2x_search_tlv_list()
76 if (!tlv->length) { in bnx2x_search_tlv_list()
81 tlvs_list += tlv->length; in bnx2x_search_tlv_list()
82 tlv = (struct channel_tlv *)tlvs_list; in bnx2x_search_tlv_list()
83 } while (tlv->type != CHANNEL_TLV_LIST_END); in bnx2x_search_tlv_list()
94 struct channel_tlv *tlv = (struct channel_tlv *)tlvs_list; in bnx2x_dp_tlv_list() local
96 while (tlv->type != CHANNEL_TLV_LIST_END) { in bnx2x_dp_tlv_list()
99 tlv->type, tlv->length); in bnx2x_dp_tlv_list()
[all …]
Dbnx2x_sriov.h233 enum channel_tlvs tlv);
455 struct vfpf_tpa_tlv *tlv,
Dbnx2x_sriov.c2297 struct vfpf_tpa_tlv *tlv, in bnx2x_vf_tpa_update() argument
2300 aligned_u64 *sge_addr = tlv->tpa_client_info.sge_addr; in bnx2x_vf_tpa_update()
2352 enum channel_tlvs tlv) in bnx2x_lock_vf_pf_channel() argument
2355 if (!bnx2x_tlv_supported(tlv)) { in bnx2x_lock_vf_pf_channel()
2364 vf->op_current = tlv; in bnx2x_lock_vf_pf_channel()
2368 vf->abs_vfid, tlv); in bnx2x_lock_vf_pf_channel()
/drivers/net/wireless/iwlwifi/
Diwl-drv.c568 struct iwl_ucode_tlv *tlv; in iwl_parse_tlv_firmware() local
614 while (len >= sizeof(*tlv)) { in iwl_parse_tlv_firmware()
615 len -= sizeof(*tlv); in iwl_parse_tlv_firmware()
616 tlv = (void *)data; in iwl_parse_tlv_firmware()
618 tlv_len = le32_to_cpu(tlv->length); in iwl_parse_tlv_firmware()
619 tlv_type = le32_to_cpu(tlv->type); in iwl_parse_tlv_firmware()
620 tlv_data = tlv->data; in iwl_parse_tlv_firmware()
628 data += sizeof(*tlv) + ALIGN(tlv_len, 4); in iwl_parse_tlv_firmware()
/drivers/staging/gdm724x/
Dgdm_usb.c372 struct tlv *tlv = (struct tlv *)data; in set_mac_address() local
375 if (tlv->type == MAC_ADDRESS && udev->request_mac_addr) { in set_mac_address()
376 memcpy(mac_address, tlv->data, tlv->len); in set_mac_address()
Dhci_packet.h44 struct tlv { struct
/drivers/net/wireless/ath/ath10k/
Dspectral.c79 fft_sample->tlv.type = ATH_FFT_SAMPLE_ATH10K; in ath10k_spectral_process_fft()
80 fft_sample->tlv.length = __cpu_to_be16(length); in ath10k_spectral_process_fft()
164 send_fft_sample(ar, &fft_sample->tlv); in ath10k_spectral_process_fft()
Dwmi.c1805 struct phyerr_tlv *tlv; in ath10k_wmi_event_dfs() local
1823 if (i + sizeof(*tlv) > buf_len) { in ath10k_wmi_event_dfs()
1829 tlv = (struct phyerr_tlv *)&event->bufp[i]; in ath10k_wmi_event_dfs()
1830 tlv_len = __le16_to_cpu(tlv->len); in ath10k_wmi_event_dfs()
1831 tlv_buf = &event->bufp[i + sizeof(*tlv)]; in ath10k_wmi_event_dfs()
1834 tlv_len, tlv->tag, tlv->sig); in ath10k_wmi_event_dfs()
1836 switch (tlv->tag) { in ath10k_wmi_event_dfs()
1838 if (i + sizeof(*tlv) + sizeof(*rr) > buf_len) { in ath10k_wmi_event_dfs()
1848 if (i + sizeof(*tlv) + sizeof(*fftr) > buf_len) { in ath10k_wmi_event_dfs()
1861 i += sizeof(*tlv) + tlv_len; in ath10k_wmi_event_dfs()
[all …]
/drivers/media/pci/ivtv/
Divtv-alsa-mixer.c146 .tlv.p = snd_ivtv_mixer_tv_vol_db_scale
/drivers/media/pci/cx18/
Dcx18-alsa-mixer.c146 .tlv.p = snd_cx18_mixer_tv_vol_db_scale

12