Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/net/wireless/ath/ath10k/
Dwmi-tlv.c74 const struct wmi_tlv *tlv; in ath10k_wmi_tlv_iter() local
79 if (len < sizeof(*tlv)) { in ath10k_wmi_tlv_iter()
82 ptr - begin, len, sizeof(*tlv)); in ath10k_wmi_tlv_iter()
86 tlv = ptr; in ath10k_wmi_tlv_iter()
87 tlv_tag = __le16_to_cpu(tlv->tag); in ath10k_wmi_tlv_iter()
88 tlv_len = __le16_to_cpu(tlv->len); in ath10k_wmi_tlv_iter()
89 ptr += sizeof(*tlv); in ath10k_wmi_tlv_iter()
90 len -= sizeof(*tlv); in ath10k_wmi_tlv_iter()
1019 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_pdev_suspend() local
1022 skb = ath10k_wmi_alloc_skb(ar, sizeof(*tlv) + sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_pdev_suspend()
[all …]
DMakefile11 wmi-tlv.o \
Dspectral.c80 fft_sample->tlv.type = ATH_FFT_SAMPLE_ATH10K; in ath10k_spectral_process_fft()
81 fft_sample->tlv.length = __cpu_to_be16(length); in ath10k_spectral_process_fft()
151 send_fft_sample(ar, &fft_sample->tlv); in ath10k_spectral_process_fft()
Dwmi.c2674 const struct phyerr_tlv *tlv; in ath10k_wmi_event_dfs() local
2692 if (i + sizeof(*tlv) > buf_len) { in ath10k_wmi_event_dfs()
2698 tlv = (struct phyerr_tlv *)&phyerr->buf[i]; in ath10k_wmi_event_dfs()
2699 tlv_len = __le16_to_cpu(tlv->len); in ath10k_wmi_event_dfs()
2700 tlv_buf = &phyerr->buf[i + sizeof(*tlv)]; in ath10k_wmi_event_dfs()
2703 tlv_len, tlv->tag, tlv->sig); in ath10k_wmi_event_dfs()
2705 switch (tlv->tag) { in ath10k_wmi_event_dfs()
2707 if (i + sizeof(*tlv) + sizeof(*rr) > buf_len) { in ath10k_wmi_event_dfs()
2717 if (i + sizeof(*tlv) + sizeof(*fftr) > buf_len) { in ath10k_wmi_event_dfs()
2730 i += sizeof(*tlv) + tlv_len; in ath10k_wmi_event_dfs()
[all …]
/linux-4.1.27/net/nfc/
Dllcp_commands.c44 static u8 llcp_tlv8(u8 *tlv, u8 type) in llcp_tlv8() argument
46 if (tlv[0] != type || tlv[1] != llcp_tlv_length[tlv[0]]) in llcp_tlv8()
49 return tlv[2]; in llcp_tlv8()
52 static u16 llcp_tlv16(u8 *tlv, u8 type) in llcp_tlv16() argument
54 if (tlv[0] != type || tlv[1] != llcp_tlv_length[tlv[0]]) in llcp_tlv16()
57 return be16_to_cpu(*((__be16 *)(tlv + 2))); in llcp_tlv16()
61 static u8 llcp_tlv_version(u8 *tlv) in llcp_tlv_version() argument
63 return llcp_tlv8(tlv, LLCP_TLV_VERSION); in llcp_tlv_version()
66 static u16 llcp_tlv_miux(u8 *tlv) in llcp_tlv_miux() argument
68 return llcp_tlv16(tlv, LLCP_TLV_MIUX) & 0x7ff; in llcp_tlv_miux()
[all …]
Dllcp_core.c817 u8 *tlv = &skb->data[2], type, length; in nfc_llcp_connect_sn() local
821 type = tlv[0]; in nfc_llcp_connect_sn()
822 length = tlv[1]; in nfc_llcp_connect_sn()
828 return &tlv[2]; in nfc_llcp_connect_sn()
832 tlv += length + 2; in nfc_llcp_connect_sn()
1229 u8 dsap, ssap, *tlv, type, length, tid, sap; in nfc_llcp_recv_snl() local
1248 tlv = &skb->data[LLCP_HEADER_SIZE]; in nfc_llcp_recv_snl()
1254 type = tlv[0]; in nfc_llcp_recv_snl()
1255 length = tlv[1]; in nfc_llcp_recv_snl()
1259 tid = tlv[2]; in nfc_llcp_recv_snl()
[all …]
Dllcp.h51 u8 *tlv; member
/linux-4.1.27/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()
2029 struct mwifiex_ie_types_header *tlv; in mwifiex_ret_802_11_scan_ext() local
2042 tlv = (void *)ext_scan_resp->tlv_buffer; in mwifiex_ret_802_11_scan_ext()
2047 type = le16_to_cpu(tlv->type); in mwifiex_ret_802_11_scan_ext()
2048 len = le16_to_cpu(tlv->len); in mwifiex_ret_802_11_scan_ext()
2058 tlv_stat = (void *)tlv; in mwifiex_ret_802_11_scan_ext()
2066 tlv = (void *)((u8 *)tlv + len + in mwifiex_ret_802_11_scan_ext()
[all …]
Dcmdevt.c1278 u8 *tlv; in mwifiex_cmd_enh_power_mode() local
1297 tlv = (u8 *) cmd + cmd_size; in mwifiex_cmd_enh_power_mode()
1301 (struct mwifiex_ie_types_ps_param *) tlv; in mwifiex_cmd_enh_power_mode()
1307 tlv += sizeof(*ps_tlv); in mwifiex_cmd_enh_power_mode()
1326 (struct mwifiex_ie_types_auto_ds_param *) tlv; in mwifiex_cmd_enh_power_mode()
1335 tlv += sizeof(*auto_ds_tlv); in mwifiex_cmd_enh_power_mode()
1458 struct mwifiex_ie_types_header *tlv; in mwifiex_ret_get_hw_spec() local
1525 tlv = (void *)&hw_spec->tlvs + parsed_len; in mwifiex_ret_get_hw_spec()
1526 switch (le16_to_cpu(tlv->type)) { in mwifiex_ret_get_hw_spec()
1528 api_rev = (struct hw_spec_api_rev *)tlv; in mwifiex_ret_get_hw_spec()
[all …]
Dsta_cmdresp.c282 u16 tlv, tlv_buf_len, tlv_buf_left; in mwifiex_ret_tx_rate_cfg() local
291 tlv = le16_to_cpu(head->type); in mwifiex_ret_tx_rate_cfg()
297 switch (tlv) { in mwifiex_ret_tx_rate_cfg()
Dfw.h1631 u8 tlv[0]; member
/linux-4.1.27/include/uapi/linux/
Dtipc_config.h252 #define TLV_DATA(tlv) ((void *)((char *)(tlv) + TLV_LENGTH(0))) argument
254 static inline int TLV_OK(const void *tlv, __u16 space) in TLV_OK() argument
266 (ntohs(((struct tlv_desc *)tlv)->tlv_len) <= space); in TLV_OK()
269 static inline int TLV_CHECK(const void *tlv, __u16 space, __u16 exp_type) in TLV_CHECK() argument
271 return TLV_OK(tlv, space) && in TLV_CHECK()
272 (ntohs(((struct tlv_desc *)tlv)->tlv_type) == exp_type); in TLV_CHECK()
275 static inline int TLV_GET_LEN(struct tlv_desc *tlv) in TLV_GET_LEN() argument
277 return ntohs(tlv->tlv_len); in TLV_GET_LEN()
280 static inline void TLV_SET_LEN(struct tlv_desc *tlv, __u16 len) in TLV_SET_LEN() argument
282 tlv->tlv_len = htons(len); in TLV_SET_LEN()
[all …]
/linux-4.1.27/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 …]
/linux-4.1.27/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 …]
/linux-4.1.27/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
/linux-4.1.27/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 …]
/linux-4.1.27/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 …]
Dhost.h451 uint8_t tlv[128]; member
/linux-4.1.27/sound/core/
Dvmaster.c39 unsigned int tlv[4]; member
224 unsigned int __user *tlv) in slave_tlv_cmd() argument
228 return slave->slave.tlv.c(&slave->slave, op_flag, size, tlv); in slave_tlv_cmd()
274 slave->tlv.c = slave_tlv_cmd; in _snd_ctl_add_slave()
393 const unsigned int *tlv) in snd_ctl_make_virtual_master() argument
421 if (tlv && in snd_ctl_make_virtual_master()
422 (tlv[0] == SNDRV_CTL_TLVT_DB_SCALE || in snd_ctl_make_virtual_master()
423 tlv[0] == SNDRV_CTL_TLVT_DB_MINMAX || in snd_ctl_make_virtual_master()
424 tlv[0] == SNDRV_CTL_TLVT_DB_MINMAX_MUTE)) { in snd_ctl_make_virtual_master()
426 memcpy(master->tlv, tlv, sizeof(master->tlv)); in snd_ctl_make_virtual_master()
[all …]
Dcontrol.c287 kctl->tlv.p = ncontrol->tlv.p; in snd_ctl_new1()
1111 unsigned int __user *tlv) in snd_ctl_elem_user_tlv() argument
1121 new_data = memdup_user(tlv, size); in snd_ctl_elem_user_tlv()
1144 if (copy_to_user(tlv, ue->tlv_data, ue->tlv_data_size)) in snd_ctl_elem_user_tlv()
1320 kctl->tlv.c = snd_ctl_elem_user_tlv; in snd_ctl_elem_add()
1398 struct snd_ctl_tlv tlv; in snd_ctl_tlv_ioctl() local
1404 if (copy_from_user(&tlv, _tlv, sizeof(tlv))) in snd_ctl_tlv_ioctl()
1406 if (tlv.length < sizeof(unsigned int) * 2) in snd_ctl_tlv_ioctl()
1408 if (!tlv.numid) in snd_ctl_tlv_ioctl()
1411 kctl = snd_ctl_find_numid(card, tlv.numid); in snd_ctl_tlv_ioctl()
[all …]
Dpcm_lib.c2521 unsigned int size, unsigned int __user *tlv) in pcm_chmap_ctl_tlv() argument
2532 if (put_user(SNDRV_CTL_TLVT_CONTAINER, tlv)) in pcm_chmap_ctl_tlv()
2535 dst = tlv + 2; in pcm_chmap_ctl_tlv()
2558 if (put_user(count, tlv + 1)) in pcm_chmap_ctl_tlv()
2596 .tlv.c = pcm_chmap_ctl_tlv, in snd_pcm_add_chmap_ctls()
/linux-4.1.27/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
/linux-4.1.27/sound/pci/ice1712/
Dwm8776.c150 .tlv = wm8776_dac_tlv,
176 .tlv = wm8776_hp_tlv,
237 .tlv = wm8776_adc_tlv,
296 .tlv = wm8776_lct_tlv,
336 .tlv = wm8776_maxatten_lim_tlv,
346 .tlv = wm8776_lct_tlv,
377 .tlv = wm8776_maxgain_tlv,
387 .tlv = wm8776_maxatten_alc_tlv,
416 .tlv = wm8776_ngth_tlv,
577 cont.tlv.p = NULL; in snd_wm8776_add_control()
[all …]
Dwm8766.c47 .tlv = wm8766_tlv,
58 .tlv = wm8766_tlv,
69 .tlv = wm8766_tlv,
303 cont.tlv.p = NULL; in snd_wm8766_add_control()
311 cont.tlv.p = wm->ctl[num].tlv; in snd_wm8766_add_control()
Daureon.c1422 .tlv = { .p = db_scale_wm_dac }
1441 .tlv = { .p = db_scale_wm_dac }
1460 .tlv = { .p = db_scale_wm_dac }
1479 .tlv = { .p = db_scale_wm_dac }
1498 .tlv = { .p = db_scale_wm_dac }
1517 .tlv = { .p = db_scale_wm_dac }
1537 .tlv = { .p = db_scale_wm_pcm }
1554 .tlv = { .p = db_scale_wm_adc }
1605 .tlv = { .p = db_scale_ac97_master }
1624 .tlv = { .p = db_scale_ac97_gain }
[all …]
Dphase.c778 .tlv = { .p = db_scale_wm_dac }
797 .tlv = { .p = db_scale_wm_dac }
816 .tlv = { .p = db_scale_wm_dac }
835 .tlv = { .p = db_scale_wm_dac }
854 .tlv = { .p = db_scale_wm_dac }
873 .tlv = { .p = db_scale_wm_dac }
893 .tlv = { .p = db_scale_wm_pcm }
Dprodigy_hifi.c310 .tlv = { .p = ak4396_db_scale },
786 .tlv = { .p = db_scale_wm_dac }
796 .tlv = { .p = db_scale_wm_dac },
807 .tlv = { .p = db_scale_wm_dac },
818 .tlv = { .p = db_scale_wm_dac }
829 .tlv = { .p = db_scale_wm_dac }
840 .tlv = { .p = db_scale_wm_dac },
850 .tlv = { .p = db_scale_wm_dac },
Dprodigy192.c371 .tlv = { .p = db_scale_dac }
382 .tlv = { .p = db_scale_dac }
401 .tlv = { .p = db_scale_dac }
421 .tlv = { .p = db_scale_adc }
Dse.c607 cont.tlv.p = NULL; in se200pci_add_controls()
616 cont.tlv.p = db_scale_gain1; in se200pci_add_controls()
618 cont.tlv.p = db_scale_gain2; in se200pci_add_controls()
Dwm8766.h137 const unsigned int *tlv; member
Dwtm.c504 .tlv = { .p = db_scale_dac }
541 .tlv = { .p = db_scale_dac }
561 .tlv = { .p = db_scale_adc }
Dmaya44.c450 .tlv = { .p = db_scale_hp },
462 .tlv = { .p = db_scale_dac },
474 .tlv = { .p = db_scale_adc },
Dwm8776.h193 const unsigned int *tlv; member
Dpontis.c555 .tlv = { .p = db_scale_volume },
565 .tlv = { .p = db_scale_volume },
Dice1712.c1400 .tlv = { .p = db_scale_playback }
1432 .tlv = { .p = db_scale_playback }
/linux-4.1.27/include/sound/
Dcontrol.h36 unsigned int __user *tlv);
58 } tlv; member
77 } tlv; member
191 const unsigned int *tlv);
Dsoc.h79 .tlv.p = (tlv_array), \
87 .tlv.p = (tlv_array),\
99 .tlv.p = (tlv_array), \
129 .tlv.p = (tlv_array), \
138 .tlv.p = (tlv_array), \
148 .tlv.p = (tlv_array), \
157 .tlv.p = (tlv_array), \
169 .tlv.p = (tlv_array), \
178 .tlv.p = (tlv_array), \
220 .tlv.p = (tlv_array), \
[all …]
Dwss.h212 .tlv = { .p = (xtlv) } }
225 .tlv = { .p = (xtlv) } }
Dsoc-dapm.h281 .tlv.p = (tlv_array), \
288 .tlv.p = (tlv_array), \
/linux-4.1.27/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)
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
Dcommon-spectral.c48 struct fft_sample_tlv *tlv; in ath_cmn_process_fft() local
137 fft_sample_40.tlv.type = ATH_FFT_SAMPLE_HT20_40; in ath_cmn_process_fft()
138 fft_sample_40.tlv.length = __cpu_to_be16(length); in ath_cmn_process_fft()
175 tlv = (struct fft_sample_tlv *)&fft_sample_40; in ath_cmn_process_fft()
182 fft_sample_20.tlv.type = ATH_FFT_SAMPLE_HT20; in ath_cmn_process_fft()
183 fft_sample_20.tlv.length = __cpu_to_be16(length); in ath_cmn_process_fft()
200 tlv = (struct fft_sample_tlv *)&fft_sample_20; in ath_cmn_process_fft()
203 ath_debug_send_fft_sample(spec_priv, tlv); in ath_cmn_process_fft()
/linux-4.1.27/sound/pci/hda/
Dhda_local.h54 .tlv = { .c = snd_hda_mixer_amp_tlv }, \
116 unsigned int size, unsigned int __user *tlv);
141 unsigned int *tlv);
145 unsigned int *tlv, const char * const *slaves,
148 #define snd_hda_add_vmaster(codec, name, tlv, slaves, suffix) \ argument
149 __snd_hda_add_vmaster(codec, name, tlv, slaves, suffix, true, NULL)
203 snd_kcontrol_tlv_rw_t *tlv; member
221 unsigned int size, unsigned int __user *tlv);
232 .tlv = { .c = snd_hda_mixer_bind_tlv },\
Dhda_codec.c1669 unsigned int *tlv) in snd_hda_set_vmaster_tlv() argument
1678 tlv[0] = SNDRV_CTL_TLVT_DB_SCALE; in snd_hda_set_vmaster_tlv()
1679 tlv[1] = 2 * sizeof(unsigned int); in snd_hda_set_vmaster_tlv()
1680 tlv[2] = -nums * step; in snd_hda_set_vmaster_tlv()
1681 tlv[3] = step; in snd_hda_set_vmaster_tlv()
1942 const int *tlv = NULL; in get_kctl_0dB_offset() local
1949 if (!kctl->tlv.c(kctl, 0, sizeof(_tlv), _tlv)) in get_kctl_0dB_offset()
1950 tlv = _tlv; in get_kctl_0dB_offset()
1953 tlv = kctl->tlv.p; in get_kctl_0dB_offset()
1954 if (tlv && tlv[0] == SNDRV_CTL_TLVT_DB_SCALE) { in get_kctl_0dB_offset()
[all …]
Dpatch_ca0132.c2821 .tlv = { .c = ca0132_volume_tlv }, \
3054 knew.tlv.c = 0; in add_tuning_control()
3055 knew.tlv.p = 0; in add_tuning_control()
3061 knew.tlv.p = voice_focus_db_scale; in add_tuning_control()
3072 knew.tlv.p = eq_db_scale; in add_tuning_control()
3845 unsigned int size, unsigned int __user *tlv) in ca0132_volume_tlv() argument
3862 err = snd_hda_mixer_amp_tlv(kcontrol, op_flag, size, tlv); in ca0132_volume_tlv()
3872 err = snd_hda_mixer_amp_tlv(kcontrol, op_flag, size, tlv); in ca0132_volume_tlv()
3877 err = snd_hda_mixer_amp_tlv(kcontrol, op_flag, size, tlv); in ca0132_volume_tlv()
Dpatch_hdmi.c1936 unsigned int size, unsigned int __user *tlv) in hdmi_chmap_ctl_tlv() argument
1946 if (put_user(SNDRV_CTL_TLVT_CONTAINER, tlv)) in hdmi_chmap_ctl_tlv()
1949 dst = tlv + 2; in hdmi_chmap_ctl_tlv()
1979 if (put_user(count, tlv + 1)) in hdmi_chmap_ctl_tlv()
2146 kctl->tlv.c = hdmi_chmap_ctl_tlv; in generic_hdmi_build_controls()
Dpatch_cirrus.c982 .tlv = { .p = cs421x_speaker_boost_db_scale },
Dhda_generic.c3474 .tlv = { .c = cap_vol_tlv },
/linux-4.1.27/net/tipc/
Dnetlink_compat.c90 struct tlv_desc *tlv = (struct tlv_desc *)skb_tail_pointer(skb); in tipc_add_tlv() local
96 tlv->tlv_type = htons(type); in tipc_add_tlv()
97 tlv->tlv_len = htons(TLV_LENGTH(len)); in tipc_add_tlv()
99 memcpy(TLV_DATA(tlv), data, len); in tipc_add_tlv()
106 struct tlv_desc *tlv = (struct tlv_desc *)skb->data; in tipc_tlv_init() local
108 TLV_SET_LEN(tlv, 0); in tipc_tlv_init()
109 TLV_SET_TYPE(tlv, type); in tipc_tlv_init()
119 struct tlv_desc *tlv; in tipc_tlv_sprintf() local
124 tlv = (struct tlv_desc *)skb->data; in tipc_tlv_sprintf()
125 len = TLV_GET_LEN(tlv); in tipc_tlv_sprintf()
[all …]
/linux-4.1.27/sound/i2c/other/
Dak4xxx-adda.c672 knew.tlv.p = db_scale_vol_datt; in build_dac_controls()
679 knew.tlv.p = db_scale_vol_datt; in build_dac_controls()
686 knew.tlv.p = db_scale_8bit; in build_dac_controls()
692 knew.tlv.p = db_scale_8bit; in build_dac_controls()
699 knew.tlv.p = db_scale_7bit; in build_dac_controls()
706 knew.tlv.p = db_scale_linear; in build_dac_controls()
712 knew.tlv.p = db_scale_linear; in build_dac_controls()
767 knew.tlv.p = db_scale_vol_datt; in build_adc_controls()
Dpt2258.c205 knew.tlv.p = pt2258_db_scale; in snd_pt2258_build_controls()
/linux-4.1.27/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.h235 enum channel_tlvs tlv);
457 struct vfpf_tpa_tlv *tlv,
Dbnx2x_sriov.c2300 struct vfpf_tpa_tlv *tlv, in bnx2x_vf_tpa_update() argument
2303 aligned_u64 *sge_addr = tlv->tpa_client_info.sge_addr; in bnx2x_vf_tpa_update()
2355 enum channel_tlvs tlv) in bnx2x_lock_vf_pf_channel() argument
2358 if (!bnx2x_tlv_supported(tlv)) { in bnx2x_lock_vf_pf_channel()
2367 vf->op_current = tlv; in bnx2x_lock_vf_pf_channel()
2371 vf->abs_vfid, tlv); in bnx2x_lock_vf_pf_channel()
/linux-4.1.27/net/atm/
Dmpc.c1340 uint8_t tlv[4 + 1 + 1 + 1 + ATM_ESA_LEN]; in set_mpc_ctrl_addr_rcvd() local
1342 tlv[0] = 00; tlv[1] = 0xa0; tlv[2] = 0x3e; tlv[3] = 0x2a; /* type */ in set_mpc_ctrl_addr_rcvd()
1343 tlv[4] = 1 + 1 + ATM_ESA_LEN; /* length */ in set_mpc_ctrl_addr_rcvd()
1344 tlv[5] = 0x02; /* MPOA client */ in set_mpc_ctrl_addr_rcvd()
1345 tlv[6] = 0x00; /* number of MPS MAC addresses */ in set_mpc_ctrl_addr_rcvd()
1347 memcpy(&tlv[7], mesg->MPS_ctrl, ATM_ESA_LEN); /* MPC ctrl ATM addr */ in set_mpc_ctrl_addr_rcvd()
1352 for (i = 7; i < sizeof(tlv); i++) in set_mpc_ctrl_addr_rcvd()
1353 dprintk_cont(" %02x", tlv[i]); in set_mpc_ctrl_addr_rcvd()
1360 tlv, sizeof(tlv)); in set_mpc_ctrl_addr_rcvd()
Dlec_arpc.h57 struct tlv { struct
/linux-4.1.27/drivers/net/ethernet/rocker/
Drocker.c603 static struct rocker_tlv *rocker_tlv_next(const struct rocker_tlv *tlv, in rocker_tlv_next() argument
606 int totlen = ROCKER_TLV_ALIGN(tlv->len); in rocker_tlv_next()
609 return (struct rocker_tlv *) ((char *) tlv + totlen); in rocker_tlv_next()
612 static int rocker_tlv_ok(const struct rocker_tlv *tlv, int remaining) in rocker_tlv_ok() argument
615 tlv->len >= ROCKER_TLV_HDRLEN && in rocker_tlv_ok()
616 tlv->len <= remaining; in rocker_tlv_ok()
624 #define rocker_tlv_for_each_nested(pos, tlv, rem) \ argument
625 rocker_tlv_for_each(pos, rocker_tlv_data(tlv), \
626 rocker_tlv_len(tlv), rem)
643 static int rocker_tlv_type(const struct rocker_tlv *tlv) in rocker_tlv_type() argument
[all …]
/linux-4.1.27/sound/pci/lola/
Dlola_mixer.c556 unsigned int size, unsigned int __user *tlv) in lola_analog_vol_tlv() argument
572 if (put_user(SNDRV_CTL_TLVT_DB_SCALE, tlv)) in lola_analog_vol_tlv()
574 if (put_user(2 * sizeof(unsigned int), tlv + 1)) in lola_analog_vol_tlv()
576 if (put_user(val1, tlv + 2)) in lola_analog_vol_tlv()
578 if (put_user(val2, tlv + 3)) in lola_analog_vol_tlv()
591 .tlv.c = lola_analog_vol_tlv,
737 .tlv.p = lola_src_gain_tlv,
824 .tlv.p = lola_dest_gain_tlv,
/linux-4.1.27/sound/usb/
Dstream.c140 unsigned int size, unsigned int __user *tlv) in usb_chmap_ctl_tlv() argument
150 if (put_user(SNDRV_CTL_TLVT_CONTAINER, tlv)) in usb_chmap_ctl_tlv()
153 dst = tlv + 2; in usb_chmap_ctl_tlv()
177 if (put_user(count, tlv + 1)) in usb_chmap_ctl_tlv()
226 kctl->tlv.c = usb_chmap_ctl_tlv; in add_chmap()
Dmixer_scarlett.c499 .tlv = { .p = db_scale_scarlett_gain }
511 .tlv = { .p = db_scale_scarlett_gain }
Dmixer_quirks.c108 kctl->tlv.c = tlv_callback; in snd_create_std_mono_ctl_offset()
1852 kctl->tlv.p = scale; in snd_dragonfly_quirk_db_scale()
Dmixer.c1344 kctl->tlv.c = snd_usb_mixer_vol_tlv; in build_feature_ctl()
/linux-4.1.27/Documentation/fmc/
Dfmc-write-eeprom.txt26 * If the file name ends with `.tlv' it is interpreted as
45 spusa.root# od -t x1 -Ax /lib/firmware/try.tlv
48 spusa.root# insmod /tmp/fmc-write-eeprom.ko busid=0x0200 file=try.tlv
/linux-4.1.27/sound/pci/oxygen/
Doxygen_mixer.c758 .tlv = { .p = ac97_db_scale, }, \
887 .tlv = { .p = monitor_db_scale, },
912 .tlv = { .p = monitor_db_scale, },
939 .tlv = { .p = monitor_db_scale, },
966 .tlv = { .p = monitor_db_scale, },
991 .tlv = { .p = monitor_db_scale, },
1026 .tlv = { .p = ac97_rec_db_scale, },
1080 template.tlv.p = chip->model.dac_tlv; in add_controls()
Dxonar_dg_mixer.c375 .tlv = { .p = pga_db_scale }, \
396 .tlv = { .p = hp_db_scale, },
Dxonar_wm87x6.c1009 .tlv = { .p = tlv_p }, \
1028 .tlv = { .p = wm8776_hp_db_scale },
1038 .tlv = { .p = wm8776_adc_db_scale },
1091 .tlv = { .p = wm8776_hp_db_scale },
1101 .tlv = { .p = wm8776_adc_db_scale },
/linux-4.1.27/sound/usb/6fire/
Dcontrol.c415 .tlv = { .p = tlv_output }
427 .tlv = { .p = tlv_output }
439 .tlv = { .p = tlv_output }
515 .tlv = { .p = tlv_input }
/linux-4.1.27/drivers/staging/gdm724x/
Dhci_packet.h44 struct tlv { struct
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()
/linux-4.1.27/net/sched/
Dem_meta.c673 static int meta_var_dump(struct sk_buff *skb, struct meta_value *v, int tlv) in meta_var_dump() argument
676 nla_put(skb, tlv, v->len, (void *) v->val)) in meta_var_dump()
725 static int meta_int_dump(struct sk_buff *skb, struct meta_value *v, int tlv) in meta_int_dump() argument
728 if (nla_put(skb, tlv, sizeof(unsigned long), &v->val)) in meta_int_dump()
731 if (nla_put_u32(skb, tlv, v->val)) in meta_int_dump()
Dematch.c436 int tcf_em_tree_dump(struct sk_buff *skb, struct tcf_ematch_tree *tree, int tlv) in tcf_em_tree_dump() argument
443 top_start = nla_nest_start(skb, tlv); in tcf_em_tree_dump()
/linux-4.1.27/drivers/net/wireless/iwlwifi/
Diwl-drv.c560 struct iwl_ucode_tlv *tlv; in iwl_parse_tlv_firmware() local
608 while (len >= sizeof(*tlv)) { in iwl_parse_tlv_firmware()
609 len -= sizeof(*tlv); in iwl_parse_tlv_firmware()
610 tlv = (void *)data; in iwl_parse_tlv_firmware()
612 tlv_len = le32_to_cpu(tlv->length); in iwl_parse_tlv_firmware()
613 tlv_type = le32_to_cpu(tlv->type); in iwl_parse_tlv_firmware()
614 tlv_data = tlv->data; in iwl_parse_tlv_firmware()
622 data += sizeof(*tlv) + ALIGN(tlv_len, 4); in iwl_parse_tlv_firmware()
/linux-4.1.27/Documentation/DocBook/media/
Dvbi_hsync.gif.b6431 st8+9NaFHx/x1Jff5GFz0Z9/+Dc3c9EnSK4ryfLG1z89GaY6AjwQARvnQLfBr24XpFrizGSk+tlv
/linux-4.1.27/sound/pci/pcxhr/
Dpcxhr_mixer.c422 .tlv = { .p = db_scale_digital },
520 .tlv = { .p = db_scale_digital },
1133 temp.tlv.p = db_scale_a_hr222_playback; in pcxhr_create_mixer()
1135 temp.tlv.p = db_scale_analog_playback; in pcxhr_create_mixer()
1181 temp.tlv.p = db_scale_a_hr222_capture; in pcxhr_create_mixer()
1183 temp.tlv.p = db_scale_analog_capture; in pcxhr_create_mixer()
Dpcxhr_mix22.c755 .tlv = { .p = db_scale_mic_hr222 },
805 .tlv = { .p = db_scale_micboost_hr222 },
/linux-4.1.27/sound/pci/emu10k1/
Demufx.c671 unsigned int *tlv; in copy_tlv() local
679 tlv = kmalloc(data[1] + sizeof(data), GFP_KERNEL); in copy_tlv()
680 if (!tlv) in copy_tlv()
682 memcpy(tlv, data, sizeof(data)); in copy_tlv()
683 if (copy_from_user(tlv + 2, _tlv + 2, data[1])) { in copy_tlv()
684 kfree(tlv); in copy_tlv()
687 return tlv; in copy_tlv()
702 gctl->tlv = NULL; in copy_gctl()
780 kfree(kctl->tlv.p); in snd_emu10k1_ctl_private_free()
824 knew.tlv.p = copy_tlv(gctl->tlv); in snd_emu10k1_add_controls()
[all …]
Dp16v.c836 .tlv = { .p = snd_p16v_db_scale1 }, \
Demumixer.c1063 .tlv = { .p = snd_audigy_db_scale2 }, \
/linux-4.1.27/drivers/media/pci/ivtv/
Divtv-alsa-mixer.c146 .tlv.p = snd_ivtv_mixer_tv_vol_db_scale
/linux-4.1.27/drivers/media/pci/cx18/
Dcx18-alsa-mixer.c146 .tlv.p = snd_cx18_mixer_tv_vol_db_scale
/linux-4.1.27/sound/pcmcia/vx/
Dvxp_mixer.c80 .tlv = { .p = db_scale_mic },
/linux-4.1.27/sound/isa/cs423x/
Dcs4236_lib.c406 .tlv = { .p = (xtlv) } }
519 .tlv = { .p = (xtlv) } }
606 .tlv = { .p = (xtlv) } }
667 .tlv = { .p = (xtlv) } }
711 .tlv = { .p = (xtlv) } }
/linux-4.1.27/sound/pci/mixart/
Dmixart_mixer.c415 .tlv = { .p = db_scale_analog },
910 .tlv = { .p = db_scale_digital },
1035 .tlv = { .p = db_scale_digital },
/linux-4.1.27/sound/soc/
Dsoc-ops.c773 unsigned int size, unsigned int __user *tlv) in snd_soc_bytes_tlv_callback() argument
782 ret = params->get(tlv, count); in snd_soc_bytes_tlv_callback()
786 ret = params->put(tlv, count); in snd_soc_bytes_tlv_callback()
/linux-4.1.27/include/uapi/sound/
Demu10k1.h285 const unsigned int *tlv; member
Dasound.h942 unsigned int tlv[0]; /* first TLV */ member
/linux-4.1.27/include/net/
Dpkt_cls.h305 #define tcf_em_tree_dump(skb, t, tlv) (0) argument
/linux-4.1.27/sound/pci/
Dak4531_codec.c77 .tlv = { .p = (xtlv) } }
144 .tlv = { .p = (xtlv) } }
Des1938.c1164 .tlv = { .p = xtlv } }
1225 .tlv = { .p = xtlv } }
1351 .tlv = { .p = db_scale_master },
Dcs4281.c1066 .tlv = { .p = db_scale_dsp },
1077 .tlv = { .p = db_scale_dsp },
Dvia82xx.c1783 .tlv = { .p = db_scale_dxs }
1797 .tlv = { .p = db_scale_dxs }
Dfm801.c887 .tlv = { .p = (xtlv) } }
/linux-4.1.27/sound/pci/echoaudio/
Dechoaudio.c1050 .tlv = {.p = db_scale_output_gain},
1060 .tlv = {.p = db_scale_output_gain},
1130 .tlv = {.p = db_scale_input_gain},
1330 .tlv = {.p = db_scale_output_gain},
1398 .tlv = {.p = db_scale_output_gain},
1762 .tlv = {.p = db_scale_output_gain},
/linux-4.1.27/sound/pci/ac97/
Dac97_patch.c36 const unsigned int *tlv,
55 const unsigned int *tlv) in reset_tlv() argument
63 if (kctl && kctl->tlv.p) in reset_tlv()
64 kctl->tlv.p = tlv; in reset_tlv()
3420 const unsigned int *tlv, in snd_ac97_add_vmaster() argument
3427 kctl = snd_ctl_make_virtual_master(name, tlv); in snd_ac97_add_vmaster()
3469 kctl->tlv.p, slave_vols_vt1616); in patch_vt1616_specific()
Dac97_codec.c1247 static void set_tlv_db_scale(struct snd_kcontrol *kctl, const unsigned int *tlv) in set_tlv_db_scale() argument
1249 kctl->tlv.p = tlv; in set_tlv_db_scale()
1250 if (tlv) in set_tlv_db_scale()
/linux-4.1.27/sound/drivers/vx/
Dvx_mixer.c728 .tlv = { .p = db_scale_audio_gain },
745 .tlv = { .p = db_scale_audio_gain },
925 temp.tlv.p = chip->hw->output_level_db_scale; in snd_vx_mixer_new()
/linux-4.1.27/sound/pci/vx222/
Dvx222_ops.c956 .tlv = { .p = db_scale_mic },
967 .tlv = { .p = db_scale_mic },
/linux-4.1.27/sound/pci/ca0106/
Dca0106_mixer.c563 .tlv = { .p = snd_ca0106_db_scale1 }, \
644 .tlv = { .p = snd_ca0106_db_scale2 }, \
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/
Dfwsignal.c2120 u32 tlv = BRCMF_FWS_FLAGS_RSSI_SIGNALS; in brcmf_fws_init() local
2155 tlv |= BRCMF_FWS_FLAGS_XONXOFF_SIGNALS | in brcmf_fws_init()
2179 if (brcmf_fil_iovar_int_set(drvr->iflist[0], "tlv", tlv)) { in brcmf_fws_init()
2211 fws->fw_signals ? "enabled" : "disabled", tlv); in brcmf_fws_init()
/linux-4.1.27/sound/isa/ad1816a/
Dad1816a_lib.c776 .tlv = { .p = (xtlv) } }
840 .tlv = { .p = (xtlv) } }
/linux-4.1.27/sound/isa/
Dopl3sa2.c353 .tlv = { .p = (xtlv) } }
408 .tlv = { .p = (xtlv) } }
/linux-4.1.27/Documentation/sound/alsa/
DChannel-Mapping-API.txt72 These new TLV types are defined in sound/tlv.h.
/linux-4.1.27/sound/pci/au88x0/
Dau88x0_pcm.c610 .tlv = { .p = vortex_pcm_vol_db_scale },
/linux-4.1.27/sound/firewire/
Disight.c587 ctl->tlv.p = isight->gain_tlv; in isight_create_mixer()
/linux-4.1.27/sound/pci/trident/
Dtrident_main.c2633 .tlv = { .p = db_scale_gvol },
2644 .tlv = { .p = db_scale_gvol },
2833 .tlv = { .p = db_scale_crvol },
2889 .tlv = { .p = db_scale_crvol },
/linux-4.1.27/drivers/media/pci/cx88/
Dcx88-alsa.c730 .tlv.p = snd_cx88_db_scale,
/linux-4.1.27/drivers/media/usb/em28xx/
Dem28xx-audio.c684 tmp.tlv.p = em28xx_db_scale, in em28xx_cvol_new()
/linux-4.1.27/sound/soc/intel/atom/
Dsst-atom-controls.h718 .tlv.p = (tlv_array), \
/linux-4.1.27/sound/drivers/
Ddummy.c731 .tlv = { .p = db_scale_dummy } }
/linux-4.1.27/sound/pci/ctxfi/
Dctmixer.c411 .tlv = { .p = ct_vol_db_scale },
/linux-4.1.27/sound/pci/ymfpci/
Dymfpci_main.c1515 .tlv = { .p = db_scale_native } }
1631 .tlv = { .p = db_scale_native },
/linux-4.1.27/sound/pci/asihpi/
Dasihpi.c1601 snd_control.tlv.p = db_scale_100; in snd_asihpi_volume_add()
1696 snd_control.tlv.p = db_scale_level; in snd_asihpi_level_add()