Home
last modified time | relevance | path

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

1234

/external/wpa_supplicant_8/src/eap_common/
Deap_fast_common.c148 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 …]
Deap_teap_common.c426 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 …]
/external/adhd/sound_card_init/amp/src/max98373d/
Ddsm_param.rs53 tlv: TLV, field
76 let tlv = card.control_tlv_by_name(ctl_name)?.load()?; in new() localVariable
77 Self::try_from_tlv(tlv, num_channels) in new()
119 self.tlv[pos] = val as u32; in set()
127 self.tlv[pos] as i32 in get()
132 fn try_from_tlv(tlv: TLV, num_channels: usize) -> Result<Self> { in try_from_tlv()
135 if tlv.len() < param_count_pos { in try_from_tlv()
139 let param_count = tlv[param_count_pos] as usize; in try_from_tlv()
141 if tlv.len() != Self::SOF_HEADER_SIZE + param_count * num_channels * Self::DWORD_PER_PARAM { in try_from_tlv()
148 tlv, in try_from_tlv()
[all …]
/external/llvm-project/llvm/test/MC/MachO/
Dtls.s5 .globl _c$tlv$init
7 _c$tlv$init:
15 .quad _c$tlv$init
18 .globl _d$tlv$init
20 _d$tlv$init:
28 .quad _d$tlv$init
30 .tbss _a$tlv$init, 4, 2
36 .quad _a$tlv$init
38 .tbss _b$tlv$init, 4, 2
44 .quad _b$tlv$init
Dtlv-reloc.s4 _a$tlv$init:
8 .tlv
13 .quad _a$tlv$init
/external/llvm/test/MC/MachO/
Dtls.s5 .globl _c$tlv$init
7 _c$tlv$init:
15 .quad _c$tlv$init
18 .globl _d$tlv$init
20 _d$tlv$init:
28 .quad _d$tlv$init
30 .tbss _a$tlv$init, 4, 2
36 .quad _a$tlv$init
38 .tbss _b$tlv$init, 4, 2
44 .quad _b$tlv$init
Dtlv-reloc.s4 _a$tlv$init:
8 .tlv
13 .quad _a$tlv$init
/external/kernel-headers/original/uapi/linux/
Dtipc_config.h258 #define TLV_DATA(tlv) ((void *)((char *)(tlv) + TLV_LENGTH(0))) argument
260 static inline int TLV_OK(const void *tlv, __u16 space) in TLV_OK() argument
272 (ntohs(((struct tlv_desc *)tlv)->tlv_len) <= space); in TLV_OK()
275 static inline int TLV_CHECK(const void *tlv, __u16 space, __u16 exp_type) in TLV_CHECK() argument
277 return TLV_OK(tlv, space) && in TLV_CHECK()
278 (ntohs(((struct tlv_desc *)tlv)->tlv_type) == exp_type); in TLV_CHECK()
281 static inline int TLV_GET_LEN(struct tlv_desc *tlv) in TLV_GET_LEN() argument
283 return ntohs(tlv->tlv_len); in TLV_GET_LEN()
286 static inline void TLV_SET_LEN(struct tlv_desc *tlv, __u16 len) in TLV_SET_LEN() argument
288 tlv->tlv_len = htons(len); in TLV_SET_LEN()
[all …]
/external/linux-kselftest/tools/testing/selftests/bpf/progs/
Dtest_lwt_seg6local.c136 struct sr6_tlv_t tlv; in is_valid_tlv_boundary() local
144 err = bpf_skb_load_bytes(skb, cur_off, &tlv, sizeof(tlv)); in is_valid_tlv_boundary()
148 if (tlv.type == SR6_TLV_PADDING) { in is_valid_tlv_boundary()
149 *pad_size = tlv.len + sizeof(tlv); in is_valid_tlv_boundary()
158 } else if (tlv.type == SR6_TLV_HMAC) { in is_valid_tlv_boundary()
162 cur_off += sizeof(tlv) + tlv.len; in is_valid_tlv_boundary()
229 struct sr6_tlv_t tlv; in delete_tlv() local
238 err = bpf_skb_load_bytes(skb, tlv_off, &tlv, sizeof(tlv)); in delete_tlv()
242 err = bpf_lwt_seg6_adjust_srh(skb, tlv_off, -(sizeof(tlv) + tlv.len)); in delete_tlv()
246 pad_off -= sizeof(tlv) + tlv.len; in delete_tlv()
[all …]
Dtest_seg6_loop.c139 struct sr6_tlv_t tlv; in is_valid_tlv_boundary() local
147 err = bpf_skb_load_bytes(skb, cur_off, &tlv, sizeof(tlv)); in is_valid_tlv_boundary()
151 if (tlv.type == SR6_TLV_PADDING) { in is_valid_tlv_boundary()
152 *pad_size = tlv.len + sizeof(tlv); in is_valid_tlv_boundary()
161 } else if (tlv.type == SR6_TLV_HMAC) { in is_valid_tlv_boundary()
165 cur_off += sizeof(tlv) + tlv.len; in is_valid_tlv_boundary()
238 uint8_t tlv[20] = {2, 18, 0, 0, 0xfd, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, in __add_egr_x() local
242 (struct sr6_tlv_t *)&tlv, 20); in __add_egr_x()
/external/tcpdump/
Dprint-slow.c516 } tlv; in slow_oam_print() local
567 tlv.slow_oam_info = (const struct slow_oam_info_t *)tptr; in slow_oam_print()
569 if (tlv.slow_oam_info->info_length != in slow_oam_print()
578 tlv.slow_oam_info->oam_version, in slow_oam_print()
579 EXTRACT_16BITS(&tlv.slow_oam_info->revision))); in slow_oam_print()
583 tlv.slow_oam_info->state & OAM_INFO_TYPE_PARSER_MASK), in slow_oam_print()
585 tlv.slow_oam_info->state & OAM_INFO_TYPE_MUX_MASK))); in slow_oam_print()
588 tlv.slow_oam_info->oam_config), in slow_oam_print()
589 EXTRACT_16BITS(&tlv.slow_oam_info->oam_pdu_config) & in slow_oam_print()
593 EXTRACT_24BITS(&tlv.slow_oam_info->oui)), in slow_oam_print()
[all …]
Dprint-forces.c392 #define TLV_RDAT_LEN(tlv) ((int)(EXTRACT_16BITS(&(tlv)->length) - TLV_SET_LEN(0)) argument
394 #define GO_NXT_TLV(tlv,rlen) ((rlen) -= F_ALN_LEN(EXTRACT_16BITS(&(tlv)->length)), \ argument
395 (const struct forces_tlv*)(((const char*)(tlv)) \
396 + F_ALN_LEN(EXTRACT_16BITS(&(tlv)->length))))
417 static inline u_int tlv_valid(const struct forces_tlv *tlv, u_int rlen) in tlv_valid() argument
421 if (EXTRACT_16BITS(&tlv->length) < TLV_HDRL) in tlv_valid()
423 if (EXTRACT_16BITS(&tlv->length) > rlen) in tlv_valid()
425 if (rlen < F_ALN_LEN(EXTRACT_16BITS(&tlv->length))) in tlv_valid()
649 const struct forces_tlv *tlv = (const struct forces_tlv *)pptr; in prestlv_print() local
650 register const u_char *tdp = (const u_char *) TLV_DATA(tlv); in prestlv_print()
[all …]
Dprint-hncp.c268 const u_char *tlv, *value; in dhcpv4_print() local
275 tlv = cp + i; in dhcpv4_print()
276 type = (uint8_t)tlv[0]; in dhcpv4_print()
277 optlen = (uint8_t)tlv[1]; in dhcpv4_print()
278 value = tlv + 2; in dhcpv4_print()
320 const u_char *tlv, *value; in dhcpv6_print() local
327 tlv = cp + i; in dhcpv6_print()
328 type = EXTRACT_16BITS(tlv); in dhcpv6_print()
329 optlen = EXTRACT_16BITS(tlv + 2); in dhcpv6_print()
330 value = tlv + 4; in dhcpv6_print()
[all …]
/external/scapy/test/
Dedns0.uts9 tlv = EDNS0TLV()
10 raw(tlv) == b'\x00\x00\x00\x00'
13 tlv = EDNS0TLV(optcode=42, optlen=12, optdata="edns0tlv")
14 raw(tlv) == b'\x00*\x00\x0cedns0tlv'
17 tlv = EDNS0TLV(optdata="edns0tlv")
18 raw(tlv) == b'\x00\x00\x00\x08edns0tlv'
21 tlv = EDNS0TLV(b'\x00*\x00\x08edns0tlv')
22 tlv.optcode == 42 and tlv.optlen == 8 and tlv.optdata == b"edns0tlv"
45 tlv = EDNS0TLV(optcode=5, optdata=b"\x00\x11\x22\x33")
46 raw(tlv) == b'\x00\x05\x00\x04\x00\x11"3'
[all …]
/external/wpa_supplicant_8/src/eap_peer/
Deap_teap.c539 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 …]
Deap_fast.c1107 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 …]
/external/llvm/test/MC/AsmParser/
Ddirective_tbss.s3 # CHECK: .tbss _a$tlv$init, 4
4 # CHECK: .tbss _b$tlv$init, 4, 3
6 .tbss _a$tlv$init, 4
7 .tbss _b$tlv$init, 4, 3
/external/llvm-project/llvm/test/MC/AsmParser/
Ddirective_tbss.s3 # CHECK: .tbss _a$tlv$init, 4
4 # CHECK: .tbss _b$tlv$init, 4, 3
6 .tbss _a$tlv$init, 4
7 .tbss _b$tlv$init, 4, 3
/external/llvm-project/lld/test/MachO/
Dtlv.s19 # CHECK-NEXT: <_foo$tlv$init>:
23 # CHECK-NEXT: <_bar$tlv$init>:
46 _foo$tlv$init:
48 _bar$tlv$init:
56 .quad _foo$tlv$init
60 .quad _bar$tlv$init
/external/tinyalsa/
Dmixer.c594 struct snd_ctl_tlv *tlv; in mixer_ctl_get_array() local
597 if (count > SIZE_MAX - sizeof(*tlv)) in mixer_ctl_get_array()
599 tlv = calloc(1, sizeof(*tlv) + count); in mixer_ctl_get_array()
600 if (!tlv) in mixer_ctl_get_array()
602 tlv->numid = ctl->info->id.numid; in mixer_ctl_get_array()
603 tlv->length = count; in mixer_ctl_get_array()
604 ret = grp->ops->ioctl(grp->data, SNDRV_CTL_IOCTL_TLV_READ, tlv); in mixer_ctl_get_array()
606 source = tlv->tlv; in mixer_ctl_get_array()
609 free(tlv); in mixer_ctl_get_array()
711 struct snd_ctl_tlv *tlv; in mixer_ctl_set_array() local
[all …]
/external/wpa_supplicant_8/src/eap_server/
Deap_server_fast.c1146 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 …]
Deap_server_teap.c1331 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 …]
/external/tinyalsa_new/src/
Dmixer.c1012 struct snd_ctl_tlv *tlv; in mixer_ctl_get_array() local
1015 if (count > SIZE_MAX - sizeof(*tlv)) in mixer_ctl_get_array()
1018 tlv = calloc(1, sizeof(*tlv) + count); in mixer_ctl_get_array()
1019 if (!tlv) in mixer_ctl_get_array()
1022 tlv->numid = ctl->info.id.numid; in mixer_ctl_get_array()
1023 tlv->length = count; in mixer_ctl_get_array()
1024 ret = grp->ops->ioctl(grp->data, SNDRV_CTL_IOCTL_TLV_READ, tlv); in mixer_ctl_get_array()
1026 source = tlv->tlv; in mixer_ctl_get_array()
1029 free(tlv); in mixer_ctl_get_array()
1145 struct snd_ctl_tlv *tlv; in mixer_ctl_set_array() local
[all …]
/external/llvm/test/MC/ARM/
Dtls-directives.s27 _b$tlv$init:
35 .long _b$tlv$init
37 .tbss _c$tlv$init, 4, 2 @ @c
43 .long _c$tlv$init
/external/llvm-project/llvm/test/MC/ARM/
Dtls-directives.s27 _b$tlv$init:
35 .long _b$tlv$init
37 .tbss _c$tlv$init, 4, 2 @ @c
43 .long _c$tlv$init

1234