/external/qemu/ |
cbuffer.c | 33 if (cb->rpos < 0 || cb->rpos >= cb->size) { 34 reason = "rpos is out of bounds"; 43 file, lineno, reason, cb->rpos, cb->count, cb->size); 54 int wpos = cb->rpos + cb->count; 89 int wpos = cb->rpos + cb->count; 99 ASSERT( wpos >= 0 && wpos < cb->size, "wpos is out-of-bounds: %d (rpos=%d)", wpos, cb->rpos); 125 int rpos = cb->rpos; local 154 int rpos = cb->rpos; local 202 int rpos = cb->rpos; local [all...] |
cbuffer.h | 22 int rpos; member in struct:__anon9558 31 cb->rpos = 0;
|
/external/wpa_supplicant/ |
eap_gtc.c | 58 u8 *rpos; local 114 plen, EAP_CODE_RESPONSE, req->identifier, &rpos); 118 os_memcpy(rpos, "RESPONSE=", 9); 119 rpos += 9; 120 os_memcpy(rpos, identity, identity_len); 121 rpos += identity_len; 122 *rpos++ = '\0'; 124 os_memcpy(rpos, password, password_len);
|
eap_gpsk.c | 306 u8 *rpos, *start; local 317 EAP_CODE_RESPONSE, identifier, &rpos); 321 *rpos++ = EAP_GPSK_OPCODE_GPSK_2; 322 start = rpos; 326 WPA_PUT_BE16(rpos, data->id_peer_len); 327 rpos += 2; 329 os_memcpy(rpos, data->id_peer, data->id_peer_len); 330 rpos += data->id_peer_len; 332 WPA_PUT_BE16(rpos, data->id_server_len); 333 rpos += 2 617 u8 *rpos, *start; local [all...] |
eap_md5.c | 44 u8 *rpos; local 91 req->identifier, &rpos); 99 *rpos++ = MD5_MAC_LEN; 107 md5_vector(3, addr, elen, rpos); 108 wpa_hexdump(MSG_MSGDUMP, "EAP-MD5: Response", rpos, MD5_MAC_LEN);
|
eap_sake.c | 162 u8 *resp, *rpos; local 184 resp = eap_sake_build_msg(data, &rpos, hdr->identifier, respDataLen, 190 *rpos++ = EAP_SAKE_AT_PEERID; 191 *rpos++ = 2 + data->peerid_len; 193 os_memcpy(rpos, data->peerid, data->peerid_len); 209 u8 *resp, *rpos; local 265 resp = eap_sake_build_msg(data, &rpos, hdr->identifier, respDataLen, 271 *rpos++ = EAP_SAKE_AT_RAND_P; 272 *rpos++ = 2 + EAP_SAKE_RAND_LEN; 273 os_memcpy(rpos, data->rand_p, EAP_SAKE_RAND_LEN) 311 u8 *resp, *rpos; local [all...] |
eap_pax.c | 139 u8 *rpos; local 213 rpos = (u8 *) (resp + 1); 214 *rpos++ = 0; 215 *rpos++ = EAP_PAX_RAND_LEN; 216 os_memcpy(rpos, data->rand.r.y, EAP_PAX_RAND_LEN); 218 rpos, EAP_PAX_RAND_LEN); 219 rpos += EAP_PAX_RAND_LEN; 221 WPA_PUT_BE16(rpos, data->cid_len); 222 rpos += 2; 223 os_memcpy(rpos, data->cid, data->cid_len) 261 u8 *rpos, mac[EAP_PAX_MAC_LEN]; local [all...] |
eap_otp.c | 43 u8 *rpos; local 80 &rpos); 83 os_memcpy(rpos, password, password_len);
|
eap_leap.c | 73 u8 challenge_len, *rpos; local 120 EAP_CODE_RESPONSE, req->identifier, &rpos); 123 *rpos++ = LEAP_VERSION; 124 *rpos++ = 0; /* unused */ 125 *rpos++ = LEAP_RESPONSE_LEN; 126 nt_challenge_response(challenge, password, password_len, rpos); 127 os_memcpy(data->peer_response, rpos, LEAP_RESPONSE_LEN); 129 rpos, LEAP_RESPONSE_LEN); 130 rpos += LEAP_RESPONSE_LEN; 131 os_memcpy(rpos, identity, identity_len) [all...] |
eap_vendor_test.c | 77 u8 *rpos; local 129 EAP_CODE_RESPONSE, req->identifier, &rpos); 134 *rpos = 2; 139 *rpos = 4;
|
/external/wpa_supplicant_6/wpa_supplicant/src/hlr_auc_gw/ |
hlr_auc_gw.c | 395 char reply[1000], *rpos, *rend; local 411 rpos = reply; 412 ret = snprintf(rpos, rend - rpos, "SIM-RESP-AUTH %s", imsi); 413 if (ret < 0 || ret >= rend - rpos) 415 rpos += ret; 424 *rpos++ = ' '; 425 rpos += wpa_snprintf_hex(rpos, rend - rpos, kc, 8) [all...] |
/external/wpa_supplicant_8/hostapd/ |
hlr_auc_gw.c | 396 char reply[1000], *rpos, *rend; local 412 rpos = reply; 413 ret = snprintf(rpos, rend - rpos, "SIM-RESP-AUTH %s", imsi); 414 if (ret < 0 || ret >= rend - rpos) 416 rpos += ret; 425 *rpos++ = ' '; 426 rpos += wpa_snprintf_hex(rpos, rend - rpos, kc, 8) [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/eap_peer/ |
eap_md5.c | 41 u8 *rpos, id; local 94 rpos = wpabuf_put(resp, CHAP_MD5_LEN); 95 chap_md5(id, password, password_len, challenge, challenge_len, rpos); 96 wpa_hexdump(MSG_MSGDUMP, "EAP-MD5: Response", rpos, CHAP_MD5_LEN);
|
eap_leap.c | 71 u8 challenge_len, *rpos; local 122 rpos = wpabuf_put(resp, LEAP_RESPONSE_LEN); 124 challenge_response(challenge, password, rpos); 126 nt_challenge_response(challenge, password, password_len, rpos); 127 os_memcpy(data->peer_response, rpos, LEAP_RESPONSE_LEN); 129 rpos, LEAP_RESPONSE_LEN);
|
eap_sake.c | 199 u8 *rpos; local 273 rpos = wpabuf_put(resp, EAP_SAKE_MIC_LEN); 277 wpabuf_head(resp), wpabuf_len(resp), rpos, 278 rpos)) { 300 u8 *rpos; local 346 rpos = wpabuf_put(resp, EAP_SAKE_MIC_LEN); 350 wpabuf_head(resp), wpabuf_len(resp), rpos, 351 rpos)) {
|
eap_pax.c | 129 u8 *rpos; local 213 rpos = wpabuf_put(resp, EAP_PAX_MAC_LEN); 217 (u8 *) data->cid, data->cid_len, rpos); 219 rpos, EAP_PAX_MAC_LEN); 223 rpos = wpabuf_put(resp, EAP_PAX_ICV_LEN); 226 NULL, 0, NULL, 0, rpos); 227 wpa_hexdump(MSG_MSGDUMP, "EAP-PAX: ICV", rpos, EAP_PAX_ICV_LEN); 244 u8 *rpos, mac[EAP_PAX_MAC_LEN]; local 314 rpos = wpabuf_put(resp, EAP_PAX_ICV_LEN); 317 NULL, 0, NULL, 0, rpos); [all...] |
/external/wpa_supplicant_8/src/eap_peer/ |
eap_md5.c | 41 u8 *rpos, id; local 94 rpos = wpabuf_put(resp, CHAP_MD5_LEN); 95 chap_md5(id, password, password_len, challenge, challenge_len, rpos); 96 wpa_hexdump(MSG_MSGDUMP, "EAP-MD5: Response", rpos, CHAP_MD5_LEN);
|
eap_sake.c | 200 u8 *rpos; local 274 rpos = wpabuf_put(resp, EAP_SAKE_MIC_LEN); 278 wpabuf_head(resp), wpabuf_len(resp), rpos, 279 rpos)) { 301 u8 *rpos; local 347 rpos = wpabuf_put(resp, EAP_SAKE_MIC_LEN); 351 wpabuf_head(resp), wpabuf_len(resp), rpos, 352 rpos)) {
|
eap_pax.c | 128 u8 *rpos; local 212 rpos = wpabuf_put(resp, EAP_PAX_MAC_LEN); 216 (u8 *) data->cid, data->cid_len, rpos); 218 rpos, EAP_PAX_MAC_LEN); 222 rpos = wpabuf_put(resp, EAP_PAX_ICV_LEN); 225 NULL, 0, NULL, 0, rpos); 226 wpa_hexdump(MSG_MSGDUMP, "EAP-PAX: ICV", rpos, EAP_PAX_ICV_LEN); 243 u8 *rpos, mac[EAP_PAX_MAC_LEN]; local 313 rpos = wpabuf_put(resp, EAP_PAX_ICV_LEN); 316 NULL, 0, NULL, 0, rpos); [all...] |
/external/wpa_supplicant_8/src/common/ |
wpa_common.c | 854 u8 *start, *end, *rpos, *rend; local 874 rpos = start + 2; 875 rend = rpos + start[1]; 878 rpos += 2 + 4; 880 rpos += 2 + WPA_GET_LE16(rpos) * RSN_SELECTOR_LEN; 882 rpos += 2 + WPA_GET_LE16(rpos) * RSN_SELECTOR_LEN; 884 if (rpos == rend) { 886 os_memmove(rpos + 2, rpos, end - rpos) [all...] |
/bionic/libc/unistd/ |
sysconf.c | 272 int rpos; member in struct:__anon602 285 p->rpos = 0; 304 if (p->rpos >= p->len) { 309 p->buff[p->rpos] = 0; 310 p->rpos = 0; 313 p->buff[p->rpos++] = (char) c;
|
/external/qemu/audio/ |
wavaudio.c | 61 int rpos, decr, samples; local 79 rpos = hw->rpos; 81 int left_till_end_samples = hw->samples - rpos; 84 src = hw->mix_buf + rpos; 85 dst = advance (wav->pcm_buf, rpos << hw->info.shift); 90 rpos = (rpos + convert_samples) % hw->samples; 95 hw->rpos = rpos; [all...] |
esdaudio.c | 75 int rpos; member in struct:__anon9513 127 int decr, to_mix, rpos; local 144 rpos = hw->rpos; 152 int chunk = audio_MIN (to_mix, hw->samples - rpos); 153 struct st_sample *src = hw->mix_buf + rpos; 176 rpos = (rpos + wsamples) % hw->samples; 180 rpos = (rpos + chunk) % hw->samples [all...] |
audio.c | 971 struct st_sample *src = hw->mix_buf + hw->rpos; 972 uint8_t *dst = advance (pcm_buf, hw->rpos << hw->info.shift); 973 int samples_till_end_of_buf = hw->samples - hw->rpos; 978 hw->rpos = (hw->rpos + samples_to_clip) % hw->samples; 992 int rpos; local 999 rpos = hw->wpos - live; 1000 if (rpos >= 0) { 1001 return rpos; 1004 return hw->samples + rpos; 1011 int samples, live, ret = 0, swlim, isamp, osamp, rpos, total = 0; local 1620 int live, rpos, captured; local [all...] |
paaudio.c | 48 int rpos; member in struct:__anon9520 100 int decr, to_mix, rpos; local 117 rpos = hw->rpos; 125 int chunk = audio_MIN (to_mix, hw->samples - rpos); 126 struct st_sample *src = hw->mix_buf + rpos; 136 rpos = (rpos + chunk) % hw->samples; 144 pa->rpos = rpos; [all...] |