/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_common/ |
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->result != EAP_TLV_RESULT_SUCCESS && in eap_fast_parse_tlv() [all …]
|
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->result == TEAP_STATUS_SUCCESS ? in eap_teap_parse_tlv() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_common/ |
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->result != EAP_TLV_RESULT_SUCCESS && in eap_fast_parse_tlv() [all …]
|
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->result != TEAP_STATUS_FAILURE) { in eap_teap_parse_tlv() [all …]
|
/third_party/lwip/src/apps/snmp/ |
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() 822 IF_PARSE_ASSERT(tlv.type == SNMP_ASN1_TYPE_SEQUENCE); in snmp_parse_inbound_frame() [all …]
|
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.value_len, trap->snmp_version) ); in snmp_trap_header_enc() [all …]
|
D | snmp_asn1.h | 80 #define SNMP_ASN1_TLV_HDR_LENGTH(tlv) ((tlv).type_len + (tlv).length_len) argument 81 #define SNMP_ASN1_TLV_LENGTH(tlv) ((tlv).type_len + (tlv).length_len + (tlv).value_len) argument 82 …SET_TLV_PARAMS(tlv, type_, length_len_, value_len_) do { (tlv).type = (type_); (tlv).type_len = 0;… argument 84 err_t snmp_asn1_dec_tlv(struct snmp_pbuf_stream *pbuf_stream, struct snmp_asn1_tlv *tlv); 90 err_t snmp_ans1_enc_tlv(struct snmp_pbuf_stream *pbuf_stream, struct snmp_asn1_tlv *tlv);
|
D | snmp_asn1.c | 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->length_len < length_bytes_required) { in snmp_ans1_enc_tlv() 91 length_bytes_required = tlv->length_len; in snmp_ans1_enc_tlv() [all …]
|
/third_party/alsa-lib/src/control/ |
D | tlv.c | 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 int snd_tlv_get_dB_range(unsigned int *tlv, long rangemin, long rangemax, in snd_tlv_get_dB_range() argument 134 switch (tlv[SNDRV_CTL_TLVO_TYPE]) { in snd_tlv_get_dB_range() [all …]
|
D | hcontrol.c | 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() 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() 885 int snd_hctl_elem_tlv_command(snd_hctl_elem_t *elem, const unsigned int *tlv) in snd_hctl_elem_tlv_command() argument 888 assert(tlv); in snd_hctl_elem_tlv_command() 889 assert(tlv[SNDRV_CTL_TLVO_LEN] >= 4); in snd_hctl_elem_tlv_command() [all …]
|
D | control_hw.c | 222 unsigned int *tlv, unsigned int tlv_size) in snd_ctl_hw_elem_tlv() argument 243 memcpy(xtlv->tlv, tlv, tlv_size); in snd_ctl_hw_elem_tlv() 250 size = xtlv->tlv[SNDRV_CTL_TLVO_LEN] + 2 * sizeof(unsigned int); in snd_ctl_hw_elem_tlv() 255 memcpy(tlv, xtlv->tlv, size); in snd_ctl_hw_elem_tlv()
|
/third_party/alsa-lib/test/ |
D | user-ctl-element-set.c | 30 unsigned int **tlv); 76 unsigned int **tlv) in allocate_bool_elem_set_tlv() argument 84 *tlv = malloc(sizeof(range)); in allocate_bool_elem_set_tlv() 85 if (*tlv == NULL) in allocate_bool_elem_set_tlv() 87 memcpy(*tlv, range, sizeof(range)); in allocate_bool_elem_set_tlv() 127 unsigned int **tlv) in allocate_int_elem_set_tlv() argument 140 *tlv = malloc((2 + count) * sizeof(unsigned int)); in allocate_int_elem_set_tlv() 141 if (!*tlv) in allocate_int_elem_set_tlv() 148 (*tlv)[0] = SNDRV_CTL_TLVT_CONTAINER; in allocate_int_elem_set_tlv() 149 (*tlv)[1] = count * sizeof(unsigned int); in allocate_int_elem_set_tlv() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_peer/ |
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() argument 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.result == TEAP_STATUS_FAILURE) { in eap_teap_process_decrypted() 1271 if (tlv.iresult == TEAP_STATUS_SUCCESS && !tlv.crypto_binding) { in eap_teap_process_decrypted() [all …]
|
D | eap_fast.c | 1107 struct eap_fast_tlv_parse *tlv, in eap_fast_parse_decrypted() argument 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.crypto_binding, in eap_fast_process_decrypted() 1229 tlv.crypto_binding_len); in eap_fast_process_decrypted() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/ |
D | eap_teap.c | 1096 struct eap_teap_tlv_parse *tlv, in eap_teap_parse_decrypted() argument 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.crypto_binding) { in eap_teap_process_decrypted() 1228 if (tlv.iresult != TEAP_STATUS_SUCCESS && in eap_teap_process_decrypted() [all …]
|
D | eap_fast.c | 1087 struct eap_fast_tlv_parse *tlv, in eap_fast_parse_decrypted() argument 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.crypto_binding, in eap_fast_process_decrypted() 1209 tlv.crypto_binding_len); in eap_fast_process_decrypted() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_server/ |
D | eap_server_fast.c | 1132 struct eap_fast_tlv_parse *tlv) in eap_fast_parse_tlvs() argument 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->pac_type) == type; in eap_fast_pac_type() 1255 struct eap_fast_tlv_parse tlv; in eap_fast_process_phase2_tlvs() local [all …]
|
D | eap_server_teap.c | 1206 struct eap_teap_tlv_parse *tlv) in eap_teap_parse_tlvs() argument 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->pac_type) == type; in eap_teap_pac_type() 1380 struct eap_teap_tlv_parse tlv; in eap_teap_process_phase2_tlvs() local [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_server/ |
D | eap_server_fast.c | 1146 struct eap_fast_tlv_parse *tlv) in eap_fast_parse_tlvs() argument 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->pac_type) == type; in eap_fast_pac_type() 1269 struct eap_fast_tlv_parse tlv; in eap_fast_process_phase2_tlvs() local [all …]
|
D | eap_server_teap.c | 1331 struct eap_teap_tlv_parse *tlv) in eap_teap_parse_tlvs() argument 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->pac_type) == type; in eap_teap_pac_type() 1505 struct eap_teap_tlv_parse tlv; in eap_teap_process_phase2_tlvs() local [all …]
|
/third_party/alsa-utils/amixer/ |
D | amixer.c | 459 static void decode_tlv(unsigned int spaces, unsigned int *tlv, unsigned int tlv_size) in decode_tlv() argument 461 unsigned int type = tlv[0]; in decode_tlv() 473 type = tlv[idx++]; in decode_tlv() 474 size = tlv[idx++]; in decode_tlv() 486 if (tlv[idx+1] > (size - idx) * sizeof(unsigned int)) { in decode_tlv() 490 decode_tlv(spaces + 2, tlv + idx, tlv[idx+1] + 8); in decode_tlv() 491 idx += 2 + (tlv[idx+1] + sizeof(unsigned int) - 1) / sizeof(unsigned int); in decode_tlv() 499 printf("0x%08x,", tlv[idx++]); in decode_tlv() 504 print_dB((int)tlv[2]); in decode_tlv() 506 print_dB(tlv[3] & 0xffff); in decode_tlv() [all …]
|
/third_party/alsa-lib/src/topology/ |
D | ctl.c | 150 struct snd_soc_tplg_ctl_tlv *tlv = ref->tlv; in copy_tlv() local 155 mixer_ctrl->hdr.tlv = *tlv; in copy_tlv() 327 struct snd_soc_tplg_ctl_tlv *tplg_tlv = elem->tlv; in tplg_parse_tlv_dbscale() 404 struct snd_soc_tplg_ctl_tlv *tlv = elem->tlv; in tplg_save_tlv() local 408 if (tlv->type != SNDRV_CTL_TLVT_DB_SCALE) { in tplg_save_tlv() 413 scale = &tlv->scale; in tplg_save_tlv() 932 struct snd_tplg_tlv_template *tlvt = t->tlv; in init_ctl_hdr() 933 struct snd_soc_tplg_ctl_tlv *tlv; in init_ctl_hdr() local 947 tlv = elem->tlv; in init_ctl_hdr() 953 tlv->size = sizeof(struct snd_soc_tplg_ctl_tlv); in init_ctl_hdr() [all …]
|
/third_party/alsa-utils/alsactl/ |
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[i] << 4) | c; in str_to_tlv() 159 return tlv; in str_to_tlv() [all …]
|
/third_party/alsa-lib/include/ |
D | control.h | 399 unsigned int *tlv, unsigned int tlv_size); 401 const unsigned int *tlv); 403 const unsigned int *tlv); 672 int snd_tlv_parse_dB_info(unsigned int *tlv, unsigned int tlv_size, 674 int snd_tlv_get_dB_range(unsigned int *tlv, long rangemin, long rangemax, 676 int snd_tlv_convert_to_dB(unsigned int *tlv, long rangemin, long rangemax, 678 int snd_tlv_convert_from_dB(unsigned int *tlv, long rangemin, long rangemax, 758 int snd_hctl_elem_tlv_read(snd_hctl_elem_t *elem, unsigned int *tlv, unsigned int tlv_size); 759 int snd_hctl_elem_tlv_write(snd_hctl_elem_t *elem, const unsigned int *tlv); 760 int snd_hctl_elem_tlv_command(snd_hctl_elem_t *elem, const unsigned int *tlv);
|
/third_party/alsa-lib/src/pcm/ |
D | pcm_softvol.c | 713 unsigned int tlv[4]; in add_tlv_info() local 714 tlv[SNDRV_CTL_TLVO_TYPE] = SND_CTL_TLVT_DB_SCALE; in add_tlv_info() 715 tlv[SNDRV_CTL_TLVO_LEN] = 2 * sizeof(int); in add_tlv_info() 716 tlv[SNDRV_CTL_TLVO_DB_SCALE_MIN] = (int)(svol->min_dB * 100); in add_tlv_info() 717 tlv[SNDRV_CTL_TLVO_DB_SCALE_MUTE_AND_STEP] = in add_tlv_info() 719 if (sizeof(tlv) <= old_tlv_size && memcmp(tlv, old_tlv, sizeof(tlv)) == 0) in add_tlv_info() 721 return snd_ctl_elem_tlv_write(svol->ctl, &cinfo->id, tlv); in add_tlv_info() 838 unsigned int tlv[4]; in softvol_load_control() local 839 err = snd_ctl_elem_tlv_read(svol->ctl, &cinfo.id, tlv, in softvol_load_control() 840 sizeof(tlv)); in softvol_load_control() [all …]
|