/third_party/lwip/src/apps/snmp/ |
H A D | snmp_msg.c | 769 struct snmp_asn1_tlv tlv; in snmp_parse_inbound_frame() local 781 IF_PARSE_EXEC(snmp_asn1_dec_tlv(&pbuf_stream, &tlv)); in snmp_parse_inbound_frame() 782 IF_PARSE_ASSERT((tlv.type == SNMP_ASN1_TYPE_SEQUENCE) && (tlv.value_len == pbuf_stream.length)); in snmp_parse_inbound_frame() 783 parent_tlv_value_len = tlv.value_len; in snmp_parse_inbound_frame() 786 IF_PARSE_EXEC(snmp_asn1_dec_tlv(&pbuf_stream, &tlv)); in snmp_parse_inbound_frame() 787 IF_PARSE_ASSERT(tlv.type == SNMP_ASN1_TYPE_INTEGER); in snmp_parse_inbound_frame() 788 parent_tlv_value_len -= SNMP_ASN1_TLV_LENGTH(tlv); in snmp_parse_inbound_frame() 791 IF_PARSE_EXEC(snmp_asn1_dec_s32t(&pbuf_stream, tlv.value_len, &s32_value)); in snmp_parse_inbound_frame() 821 IF_PARSE_EXEC(snmp_asn1_dec_tlv(&pbuf_stream, &tlv)); in snmp_parse_inbound_frame() 1270 struct snmp_asn1_tlv tlv; snmp_prepare_outbound_frame() local 1534 struct snmp_asn1_tlv tlv; snmp_append_outbound_varbind() local 1604 struct snmp_asn1_tlv tlv; snmp_complete_outbound_frame() local 1866 struct snmp_asn1_tlv tlv; snmp_vb_enumerator_get_next() local [all...] |
H A D | snmp_traps.c | 372 struct snmp_asn1_tlv tlv; in snmp_trap_varbind_enc() local 377 SNMP_ASN1_SET_TLV_PARAMS(tlv, SNMP_ASN1_TYPE_SEQUENCE, 0, trap->vbseqlen); in snmp_trap_varbind_enc() 378 BUILD_EXEC( snmp_ans1_enc_tlv(pbuf_stream, &tlv) ); in snmp_trap_varbind_enc() 395 struct snmp_asn1_tlv tlv; in snmp_trap_header_enc() local 398 SNMP_ASN1_SET_TLV_PARAMS(tlv, SNMP_ASN1_TYPE_SEQUENCE, 0, trap->seqlen); in snmp_trap_header_enc() 399 BUILD_EXEC( snmp_ans1_enc_tlv(pbuf_stream, &tlv) ); in snmp_trap_header_enc() 402 SNMP_ASN1_SET_TLV_PARAMS(tlv, SNMP_ASN1_TYPE_INTEGER, 0, 0); in snmp_trap_header_enc() 403 snmp_asn1_enc_s32t_cnt(trap->snmp_version, &tlv.value_len); in snmp_trap_header_enc() 404 BUILD_EXEC( snmp_ans1_enc_tlv(pbuf_stream, &tlv) ); in snmp_trap_header_enc() 405 BUILD_EXEC( snmp_asn1_enc_s32t(pbuf_stream, tlv in snmp_trap_header_enc() [all...] |
H A D | snmp_asn1.c | 53 * @param tlv TLV to encode 57 snmp_ans1_enc_tlv(struct snmp_pbuf_stream *pbuf_stream, struct snmp_asn1_tlv *tlv) in snmp_ans1_enc_tlv() argument 63 if ((tlv->type & SNMP_ASN1_DATATYPE_MASK) == SNMP_ASN1_DATATYPE_EXTENDED) { in snmp_ans1_enc_tlv() 67 if (tlv->type_len != 0) { in snmp_ans1_enc_tlv() 72 PBUF_OP_EXEC(snmp_pbuf_stream_write(pbuf_stream, tlv->type)); in snmp_ans1_enc_tlv() 73 tlv->type_len = 1; in snmp_ans1_enc_tlv() 76 if (tlv->value_len <= 127) { in snmp_ans1_enc_tlv() 78 } else if (tlv->value_len <= 255) { in snmp_ans1_enc_tlv() 85 if (tlv->length_len > 0) { in snmp_ans1_enc_tlv() 86 if (tlv in snmp_ans1_enc_tlv() 356 snmp_asn1_dec_tlv(struct snmp_pbuf_stream *pbuf_stream, struct snmp_asn1_tlv *tlv) snmp_asn1_dec_tlv() argument [all...] |
H A D | snmp_asn1.h | 80 #define SNMP_ASN1_TLV_HDR_LENGTH(tlv) ((tlv).type_len + (tlv).length_len) 81 #define SNMP_ASN1_TLV_LENGTH(tlv) ((tlv).type_len + (tlv).length_len + (tlv).value_len) 82 #define SNMP_ASN1_SET_TLV_PARAMS(tlv, type_, length_len_, value_len_) do { (tlv).type = (type_); (tlv) [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_common/ |
H A D | eap_fast_common.c | 148 int eap_fast_parse_tlv(struct eap_fast_tlv_parse *tlv, in eap_fast_parse_tlv() argument 155 if (tlv->eap_payload_tlv) { in eap_fast_parse_tlv() 158 tlv->iresult = EAP_TLV_RESULT_FAILURE; in eap_fast_parse_tlv() 161 tlv->eap_payload_tlv = pos; in eap_fast_parse_tlv() 162 tlv->eap_payload_tlv_len = len; in eap_fast_parse_tlv() 166 if (tlv->result) { in eap_fast_parse_tlv() 169 tlv->result = EAP_TLV_RESULT_FAILURE; in eap_fast_parse_tlv() 175 tlv->result = EAP_TLV_RESULT_FAILURE; in eap_fast_parse_tlv() 178 tlv->result = WPA_GET_BE16(pos); in eap_fast_parse_tlv() 179 if (tlv in eap_fast_parse_tlv() [all...] |
H A D | eap_teap_common.c | 417 int eap_teap_parse_tlv(struct eap_teap_tlv_parse *tlv, in eap_teap_parse_tlv() argument 423 if (tlv->result) { in eap_teap_parse_tlv() 426 tlv->result = TEAP_STATUS_FAILURE; in eap_teap_parse_tlv() 431 tlv->result = TEAP_STATUS_FAILURE; in eap_teap_parse_tlv() 434 tlv->result = WPA_GET_BE16(pos); in eap_teap_parse_tlv() 435 if (tlv->result != TEAP_STATUS_SUCCESS && in eap_teap_parse_tlv() 436 tlv->result != TEAP_STATUS_FAILURE) { in eap_teap_parse_tlv() 438 tlv->result); in eap_teap_parse_tlv() 439 tlv->result = TEAP_STATUS_FAILURE; in eap_teap_parse_tlv() 442 tlv in eap_teap_parse_tlv() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_common/ |
H A D | eap_fast_common.c | 148 int eap_fast_parse_tlv(struct eap_fast_tlv_parse *tlv, in eap_fast_parse_tlv() argument 155 if (tlv->eap_payload_tlv) { in eap_fast_parse_tlv() 158 tlv->iresult = EAP_TLV_RESULT_FAILURE; in eap_fast_parse_tlv() 161 tlv->eap_payload_tlv = pos; in eap_fast_parse_tlv() 162 tlv->eap_payload_tlv_len = len; in eap_fast_parse_tlv() 166 if (tlv->result) { in eap_fast_parse_tlv() 169 tlv->result = EAP_TLV_RESULT_FAILURE; in eap_fast_parse_tlv() 175 tlv->result = EAP_TLV_RESULT_FAILURE; in eap_fast_parse_tlv() 178 tlv->result = WPA_GET_BE16(pos); in eap_fast_parse_tlv() 179 if (tlv in eap_fast_parse_tlv() [all...] |
H A D | eap_teap_common.c | 426 int eap_teap_parse_tlv(struct eap_teap_tlv_parse *tlv, in eap_teap_parse_tlv() argument 434 tlv->result = TEAP_STATUS_FAILURE; in eap_teap_parse_tlv() 437 tlv->identity_type = WPA_GET_BE16(pos); in eap_teap_parse_tlv() 439 tlv->identity_type); in eap_teap_parse_tlv() 443 if (tlv->result) { in eap_teap_parse_tlv() 446 tlv->result = TEAP_STATUS_FAILURE; in eap_teap_parse_tlv() 451 tlv->result = TEAP_STATUS_FAILURE; in eap_teap_parse_tlv() 454 tlv->result = WPA_GET_BE16(pos); in eap_teap_parse_tlv() 455 if (tlv->result != TEAP_STATUS_SUCCESS && in eap_teap_parse_tlv() 456 tlv in eap_teap_parse_tlv() [all...] |
/third_party/alsa-lib/src/control/ |
H A D | tlv.c | 2 * \file control/tlv.c 47 * \param tlv the TLV source 59 int snd_tlv_parse_dB_info(unsigned int *tlv, in snd_tlv_parse_dB_info() argument 68 type = tlv[SNDRV_CTL_TLVO_TYPE]; in snd_tlv_parse_dB_info() 69 size = tlv[SNDRV_CTL_TLVO_LEN]; in snd_tlv_parse_dB_info() 78 tlv += 2; in snd_tlv_parse_dB_info() 81 err = snd_tlv_parse_dB_info(tlv, size, db_tlvp); in snd_tlv_parse_dB_info() 86 len = int_index(tlv[SNDRV_CTL_TLVO_LEN]) + 2; in snd_tlv_parse_dB_info() 88 tlv += len; in snd_tlv_parse_dB_info() 111 *db_tlvp = tlv; in snd_tlv_parse_dB_info() 129 snd_tlv_get_dB_range(unsigned int *tlv, long rangemin, long rangemax, long *min, long *max) snd_tlv_get_dB_range() argument 201 snd_tlv_convert_to_dB(unsigned int *tlv, long rangemin, long rangemax, long volume, long *db_gain) snd_tlv_convert_to_dB() argument 293 snd_tlv_convert_from_dB(unsigned int *tlv, long rangemin, long rangemax, long db_gain, long *value, int xdir) snd_tlv_convert_from_dB() argument 417 unsigned int *tlv; global() member [all...] |
H A D | hcontrol.c | 849 * \param tlv TLV array for value 853 int snd_hctl_elem_tlv_read(snd_hctl_elem_t *elem, unsigned int *tlv, unsigned int tlv_size) in snd_hctl_elem_tlv_read() argument 856 assert(tlv); in snd_hctl_elem_tlv_read() 858 return snd_ctl_elem_tlv_read(elem->hctl->ctl, &elem->id, tlv, tlv_size); in snd_hctl_elem_tlv_read() 864 * \param tlv TLV array for value 869 int snd_hctl_elem_tlv_write(snd_hctl_elem_t *elem, const unsigned int *tlv) in snd_hctl_elem_tlv_write() argument 872 assert(tlv); in snd_hctl_elem_tlv_write() 873 assert(tlv[SNDRV_CTL_TLVO_LEN] >= 4); in snd_hctl_elem_tlv_write() 874 return snd_ctl_elem_tlv_write(elem->hctl->ctl, &elem->id, tlv); in snd_hctl_elem_tlv_write() 880 * \param tlv TL 885 snd_hctl_elem_tlv_command(snd_hctl_elem_t *elem, const unsigned int *tlv) snd_hctl_elem_tlv_command() argument [all...] |
/third_party/alsa-lib/test/ |
H A D | user-ctl-element-set.c | 12 #include <sound/tlv.h> 31 unsigned int **tlv); 48 * 2011/11/20: bf1d1c9b6179 ("ALSA: tlv: add DECLARE_TLV_DB_RANGE()") 77 unsigned int **tlv) in allocate_bool_elem_set_tlv() 85 *tlv = malloc(sizeof(range)); in allocate_bool_elem_set_tlv() 86 if (*tlv == NULL) in allocate_bool_elem_set_tlv() 88 memcpy(*tlv, range, sizeof(range)); in allocate_bool_elem_set_tlv() 128 unsigned int **tlv) in allocate_int_elem_set_tlv() 141 *tlv = malloc((2 + count) * sizeof(unsigned int)); in allocate_int_elem_set_tlv() 142 if (!*tlv) in allocate_int_elem_set_tlv() 76 allocate_bool_elem_set_tlv(struct elem_set_trial *trial, unsigned int **tlv) allocate_bool_elem_set_tlv() argument 127 allocate_int_elem_set_tlv(struct elem_set_trial *trial, unsigned int **tlv) allocate_int_elem_set_tlv() argument 245 allocate_bytes_elem_set_tlv(struct elem_set_trial *trial, unsigned int **tlv) allocate_bytes_elem_set_tlv() argument 330 allocate_int64_elem_set_tlv(struct elem_set_trial *trial, unsigned int **tlv) allocate_int64_elem_set_tlv() argument 653 unsigned int *tlv; check_tlv() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_peer/ |
H A D | eap_teap.c | 539 struct wpabuf *tlv; in eap_teap_add_identity_type() local 541 tlv = eap_teap_tlv_identity_type(sm->use_machine_cred ? in eap_teap_add_identity_type() 544 return wpabuf_concat(msg, tlv); in eap_teap_add_identity_type() 1151 struct eap_teap_tlv_parse *tlv, in eap_teap_parse_decrypted() 1159 os_memset(tlv, 0, sizeof(*tlv)); in eap_teap_parse_decrypted() 1180 res = eap_teap_parse_tlv(tlv, tlv_type, pos, len); in eap_teap_parse_decrypted() 1244 struct eap_teap_tlv_parse tlv; in eap_teap_process_decrypted() local 1249 if (eap_teap_parse_decrypted(decrypted, &tlv, &resp) < 0) { in eap_teap_process_decrypted() 1259 if (tlv in eap_teap_process_decrypted() 1150 eap_teap_parse_decrypted(struct wpabuf *decrypted, struct eap_teap_tlv_parse *tlv, struct wpabuf **resp) eap_teap_parse_decrypted() argument 1580 u8 *tlv; eap_teap_use_pac_opaque() local [all...] |
H A D | eap_fast.c | 1107 struct eap_fast_tlv_parse *tlv, in eap_fast_parse_decrypted() 1114 os_memset(tlv, 0, sizeof(*tlv)); in eap_fast_parse_decrypted() 1134 res = eap_fast_parse_tlv(tlv, tlv_type, pos, len); in eap_fast_parse_decrypted() 1205 struct eap_fast_tlv_parse tlv; in eap_fast_process_decrypted() local 1208 if (eap_fast_parse_decrypted(decrypted, &tlv, &resp) < 0) in eap_fast_process_decrypted() 1214 if (tlv.result == EAP_TLV_RESULT_FAILURE) { in eap_fast_process_decrypted() 1220 if (tlv.iresult == EAP_TLV_RESULT_FAILURE) { in eap_fast_process_decrypted() 1226 if (tlv.crypto_binding) { in eap_fast_process_decrypted() 1228 tlv in eap_fast_process_decrypted() 1106 eap_fast_parse_decrypted(struct wpabuf *decrypted, struct eap_fast_tlv_parse *tlv, struct wpabuf **resp) eap_fast_parse_decrypted() argument 1422 u8 *tlv; eap_fast_use_pac_opaque() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_server/ |
H A D | eap_server_fast.c | 1132 struct eap_fast_tlv_parse *tlv) in eap_fast_parse_tlvs() 1138 os_memset(tlv, 0, sizeof(*tlv)); in eap_fast_parse_tlvs() 1157 res = eap_fast_parse_tlv(tlv, tlv_type, pos, len); in eap_fast_parse_tlvs() 1238 struct eap_tlv_pac_type_tlv *tlv; in eap_fast_pac_type() local 1240 if (pac == NULL || len != sizeof(*tlv)) in eap_fast_pac_type() 1243 tlv = (struct eap_tlv_pac_type_tlv *) pac; in eap_fast_pac_type() 1245 return be_to_host16(tlv->tlv_type) == PAC_TYPE_PAC_TYPE && in eap_fast_pac_type() 1246 be_to_host16(tlv->length) == 2 && in eap_fast_pac_type() 1247 be_to_host16(tlv in eap_fast_pac_type() 1131 eap_fast_parse_tlvs(struct wpabuf *data, struct eap_fast_tlv_parse *tlv) eap_fast_parse_tlvs() argument 1255 struct eap_fast_tlv_parse tlv; eap_fast_process_phase2_tlvs() local [all...] |
H A D | eap_server_teap.c | 1206 struct eap_teap_tlv_parse *tlv) in eap_teap_parse_tlvs() 1213 os_memset(tlv, 0, sizeof(*tlv)); in eap_teap_parse_tlvs() 1233 res = eap_teap_parse_tlv(tlv, tlv_type, pos, len); in eap_teap_parse_tlvs() 1363 struct teap_attr_pac_type *tlv; in eap_teap_pac_type() local 1365 if (!pac || len != sizeof(*tlv)) in eap_teap_pac_type() 1368 tlv = (struct teap_attr_pac_type *) pac; in eap_teap_pac_type() 1370 return be_to_host16(tlv->type) == PAC_TYPE_PAC_TYPE && in eap_teap_pac_type() 1371 be_to_host16(tlv->length) == 2 && in eap_teap_pac_type() 1372 be_to_host16(tlv in eap_teap_pac_type() 1205 eap_teap_parse_tlvs(struct wpabuf *data, struct eap_teap_tlv_parse *tlv) eap_teap_parse_tlvs() argument 1380 struct eap_teap_tlv_parse tlv; eap_teap_process_phase2_tlvs() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_server/ |
H A D | eap_server_fast.c | 1146 struct eap_fast_tlv_parse *tlv) in eap_fast_parse_tlvs() 1152 os_memset(tlv, 0, sizeof(*tlv)); in eap_fast_parse_tlvs() 1171 res = eap_fast_parse_tlv(tlv, tlv_type, pos, len); in eap_fast_parse_tlvs() 1252 struct eap_tlv_pac_type_tlv *tlv; in eap_fast_pac_type() local 1254 if (pac == NULL || len != sizeof(*tlv)) in eap_fast_pac_type() 1257 tlv = (struct eap_tlv_pac_type_tlv *) pac; in eap_fast_pac_type() 1259 return be_to_host16(tlv->tlv_type) == PAC_TYPE_PAC_TYPE && in eap_fast_pac_type() 1260 be_to_host16(tlv->length) == 2 && in eap_fast_pac_type() 1261 be_to_host16(tlv in eap_fast_pac_type() 1145 eap_fast_parse_tlvs(struct wpabuf *data, struct eap_fast_tlv_parse *tlv) eap_fast_parse_tlvs() argument 1269 struct eap_fast_tlv_parse tlv; eap_fast_process_phase2_tlvs() local [all...] |
H A D | eap_server_teap.c | 1331 struct eap_teap_tlv_parse *tlv) in eap_teap_parse_tlvs() 1338 os_memset(tlv, 0, sizeof(*tlv)); in eap_teap_parse_tlvs() 1358 res = eap_teap_parse_tlv(tlv, tlv_type, pos, len); in eap_teap_parse_tlvs() 1488 struct teap_attr_pac_type *tlv; in eap_teap_pac_type() local 1490 if (!pac || len != sizeof(*tlv)) in eap_teap_pac_type() 1493 tlv = (struct teap_attr_pac_type *) pac; in eap_teap_pac_type() 1495 return be_to_host16(tlv->type) == PAC_TYPE_PAC_TYPE && in eap_teap_pac_type() 1496 be_to_host16(tlv->length) == 2 && in eap_teap_pac_type() 1497 be_to_host16(tlv in eap_teap_pac_type() 1330 eap_teap_parse_tlvs(struct wpabuf *data, struct eap_teap_tlv_parse *tlv) eap_teap_parse_tlvs() argument 1505 struct eap_teap_tlv_parse tlv; eap_teap_process_phase2_tlvs() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/ |
H A D | eap_teap.c | 1096 struct eap_teap_tlv_parse *tlv, in eap_teap_parse_decrypted() 1104 os_memset(tlv, 0, sizeof(*tlv)); in eap_teap_parse_decrypted() 1125 res = eap_teap_parse_tlv(tlv, tlv_type, pos, len); in eap_teap_parse_decrypted() 1189 struct eap_teap_tlv_parse tlv; in eap_teap_process_decrypted() local 1193 if (eap_teap_parse_decrypted(decrypted, &tlv, &resp) < 0) { in eap_teap_process_decrypted() 1203 if (tlv.result == TEAP_STATUS_FAILURE) { in eap_teap_process_decrypted() 1215 if ((tlv.iresult == TEAP_STATUS_SUCCESS || in eap_teap_process_decrypted() 1217 tlv.result == TEAP_STATUS_SUCCESS)) && in eap_teap_process_decrypted() 1218 !tlv in eap_teap_process_decrypted() 1095 eap_teap_parse_decrypted(struct wpabuf *decrypted, struct eap_teap_tlv_parse *tlv, struct wpabuf **resp) eap_teap_parse_decrypted() argument 1468 u8 *tlv; eap_teap_use_pac_opaque() local [all...] |
H A D | eap_fast.c | 1087 struct eap_fast_tlv_parse *tlv, in eap_fast_parse_decrypted() 1094 os_memset(tlv, 0, sizeof(*tlv)); in eap_fast_parse_decrypted() 1114 res = eap_fast_parse_tlv(tlv, tlv_type, pos, len); in eap_fast_parse_decrypted() 1185 struct eap_fast_tlv_parse tlv; in eap_fast_process_decrypted() local 1188 if (eap_fast_parse_decrypted(decrypted, &tlv, &resp) < 0) in eap_fast_process_decrypted() 1194 if (tlv.result == EAP_TLV_RESULT_FAILURE) { in eap_fast_process_decrypted() 1200 if (tlv.iresult == EAP_TLV_RESULT_FAILURE) { in eap_fast_process_decrypted() 1206 if (tlv.crypto_binding) { in eap_fast_process_decrypted() 1208 tlv in eap_fast_process_decrypted() 1086 eap_fast_parse_decrypted(struct wpabuf *decrypted, struct eap_fast_tlv_parse *tlv, struct wpabuf **resp) eap_fast_parse_decrypted() argument 1402 u8 *tlv; eap_fast_use_pac_opaque() local [all...] |
/third_party/alsa-utils/amixer/ |
H A D | amixer.c | 460 static void decode_tlv(unsigned int spaces, unsigned int *tlv, unsigned int tlv_size) in decode_tlv() argument 462 unsigned int type = tlv[0]; in decode_tlv() 474 type = tlv[idx++]; in decode_tlv() 475 size = tlv[idx++]; in decode_tlv() 487 if (tlv[idx+1] > (size - idx) * sizeof(unsigned int)) { in decode_tlv() 491 decode_tlv(spaces + 2, tlv + idx, tlv[idx+1] + 8); in decode_tlv() 492 idx += 2 + (tlv[idx+1] + sizeof(unsigned int) - 1) / sizeof(unsigned int); in decode_tlv() 500 printf("0x%08x,", tlv[idx++]); in decode_tlv() 505 print_dB((int)tlv[ in decode_tlv() 604 unsigned int item, idx, count, *tlv; show_control() local 712 decode_tlv(strlen(space), tlv, 4096); show_control() local [all...] |
/third_party/alsa-lib/src/topology/ |
H A D | ctl.c | 151 struct snd_soc_tplg_ctl_tlv *tlv = ref->tlv; in copy_tlv() local 156 mixer_ctrl->hdr.tlv = *tlv; in copy_tlv() 328 struct snd_soc_tplg_ctl_tlv *tplg_tlv = elem->tlv; in tplg_parse_tlv_dbscale() 405 struct snd_soc_tplg_ctl_tlv *tlv = elem->tlv; in tplg_save_tlv() local 409 if (tlv->type != SNDRV_CTL_TLVT_DB_SCALE) { in tplg_save_tlv() 414 scale = &tlv->scale; in tplg_save_tlv() 509 if (strcmp(id, "tlv") in tplg_parse_control_bytes() 934 struct snd_soc_tplg_ctl_tlv *tlv; init_ctl_hdr() local [all...] |
/third_party/alsa-lib/include/ |
H A D | control.h | 398 unsigned int *tlv, unsigned int tlv_size); 400 const unsigned int *tlv); 402 const unsigned int *tlv); 676 int snd_tlv_parse_dB_info(unsigned int *tlv, unsigned int tlv_size, 678 int snd_tlv_get_dB_range(unsigned int *tlv, long rangemin, long rangemax, 680 int snd_tlv_convert_to_dB(unsigned int *tlv, long rangemin, long rangemax, 682 int snd_tlv_convert_from_dB(unsigned int *tlv, long rangemin, long rangemax, 762 int snd_hctl_elem_tlv_read(snd_hctl_elem_t *elem, unsigned int *tlv, unsigned int tlv_size); 763 int snd_hctl_elem_tlv_write(snd_hctl_elem_t *elem, const unsigned int *tlv); 764 int snd_hctl_elem_tlv_command(snd_hctl_elem_t *elem, const unsigned int *tlv); [all...] |
/third_party/alsa-utils/topology/nhlt/intel/ssp/ |
H A D | ssp-process.c | 558 struct ssp_intel_aux_tlv *tlv; in ssp_calculate_intern_ext() local 591 tlv = (struct ssp_intel_aux_tlv *)aux_blob; in ssp_calculate_intern_ext() 594 tlv->type = SSP_MN_DIVIDER_CONTROLS; in ssp_calculate_intern_ext() 595 tlv->size = mn_size; in ssp_calculate_intern_ext() 603 tlv = (struct ssp_intel_aux_tlv *)aux_blob; in ssp_calculate_intern_ext() 606 tlv->type = SSP_DMA_CLK_CONTROLS; in ssp_calculate_intern_ext() 607 tlv->size = clk_size; in ssp_calculate_intern_ext() 619 tlv = (struct ssp_intel_aux_tlv *)aux_blob; in ssp_calculate_intern_ext() 622 tlv->type = SSP_DMA_TRANSMISSION_START; in ssp_calculate_intern_ext() 623 tlv in ssp_calculate_intern_ext() [all...] |
/third_party/alsa-utils/alsactl/ |
H A D | state.c | 117 static char *tlv_to_str(unsigned int *tlv) in tlv_to_str() argument 119 int i, len = tlv[1] / 4 + 2; in tlv_to_str() 129 sprintf(p, "%08x", tlv[i]); in tlv_to_str() 138 unsigned int *tlv; in str_to_tlv() local 146 tlv = malloc(sizeof(int) * len); in str_to_tlv() 147 if (! tlv) in str_to_tlv() 150 tlv[i] = 0; in str_to_tlv() 153 free(tlv); in str_to_tlv() 156 tlv[i] = (tlv[ in str_to_tlv() 169 unsigned int tlv[MAX_USER_TLV_SIZE]; add_tlv_comments() local 907 unsigned int *tlv; add_user_control() local [all...] |
/third_party/alsa-lib/src/pcm/ |
H A D | pcm_softvol.c | 33 #include <sound/tlv.h> 712 unsigned int tlv[4]; in add_tlv_info() local 713 tlv[SNDRV_CTL_TLVO_TYPE] = SND_CTL_TLVT_DB_SCALE; in add_tlv_info() 714 tlv[SNDRV_CTL_TLVO_LEN] = 2 * sizeof(int); in add_tlv_info() 715 tlv[SNDRV_CTL_TLVO_DB_SCALE_MIN] = (int)(svol->min_dB * 100); in add_tlv_info() 716 tlv[SNDRV_CTL_TLVO_DB_SCALE_MUTE_AND_STEP] = in add_tlv_info() 718 if (sizeof(tlv) <= old_tlv_size && memcmp(tlv, old_tlv, sizeof(tlv)) == 0) in add_tlv_info() 720 return snd_ctl_elem_tlv_write(svol->ctl, &cinfo->id, tlv); in add_tlv_info() 837 unsigned int tlv[4]; softvol_load_control() local [all...] |