Home
last modified time | relevance | path

Searched refs:rpos (Results 1 – 25 of 34) sorted by relevance

12

/external/qemu/android/
Dcbuffer.c33 if (cb->rpos < 0 || cb->rpos >= cb->size) { in cbuffer_assert()
43 file, lineno, reason, cb->rpos, cb->count, cb->size); in cbuffer_assert()
54 int wpos = cb->rpos + cb->count; in cbuffer_write_peek()
89 int wpos = cb->rpos + cb->count; in cbuffer_write()
99 … ASSERT( wpos >= 0 && wpos < cb->size, "wpos is out-of-bounds: %d (rpos=%d)", wpos, cb->rpos); in cbuffer_write()
125 int rpos = cb->rpos; in cbuffer_read() local
132 ASSERT((rpos >= 0 && rpos < cb->size), "rpos is out-of-bounds: %d", rpos); in cbuffer_read()
134 if (rpos+avail > cb->size) in cbuffer_read()
135 avail = cb->size - rpos; in cbuffer_read()
140 memcpy( (char*)to, (const char*)cb->buff + rpos, avail ); in cbuffer_read()
[all …]
/external/wpa_supplicant_8/hostapd/
Dhlr_auc_gw.c629 char *rpos, *rend; in sim_req_auth() local
645 rpos = resp; in sim_req_auth()
646 ret = snprintf(rpos, rend - rpos, "SIM-RESP-AUTH %s", imsi); in sim_req_auth()
647 if (ret < 0 || ret >= rend - rpos) in sim_req_auth()
649 rpos += ret; in sim_req_auth()
658 *rpos++ = ' '; in sim_req_auth()
659 rpos += wpa_snprintf_hex(rpos, rend - rpos, kc, 8); in sim_req_auth()
660 *rpos++ = ':'; in sim_req_auth()
661 rpos += wpa_snprintf_hex(rpos, rend - rpos, sres, 4); in sim_req_auth()
662 *rpos++ = ':'; in sim_req_auth()
[all …]
/external/wpa_supplicant_8/src/common/
Dwpa_common.c1070 u8 *start, *end, *rpos, *rend; in wpa_insert_pmkid() local
1090 rpos = start + 2; in wpa_insert_pmkid()
1091 rend = rpos + start[1]; in wpa_insert_pmkid()
1094 rpos += 2 + 4; in wpa_insert_pmkid()
1096 rpos += 2 + WPA_GET_LE16(rpos) * RSN_SELECTOR_LEN; in wpa_insert_pmkid()
1098 rpos += 2 + WPA_GET_LE16(rpos) * RSN_SELECTOR_LEN; in wpa_insert_pmkid()
1100 if (rpos == rend) { in wpa_insert_pmkid()
1102 os_memmove(rpos + 2, rpos, end - rpos); in wpa_insert_pmkid()
1103 *rpos++ = 0; in wpa_insert_pmkid()
1104 *rpos++ = 0; in wpa_insert_pmkid()
[all …]
/external/qemu/audio/
Desdaudio.c75 int rpos; member
127 int decr, to_mix, rpos; in qesd_thread_out() local
144 rpos = hw->rpos; in qesd_thread_out()
152 int chunk = audio_MIN (to_mix, hw->samples - rpos); in qesd_thread_out()
153 struct st_sample *src = hw->mix_buf + rpos; in qesd_thread_out()
176 rpos = (rpos + wsamples) % hw->samples; in qesd_thread_out()
180 rpos = (rpos + chunk) % hw->samples; in qesd_thread_out()
188 esd->rpos = rpos; in qesd_thread_out()
210 hw->rpos = esd->rpos; in qesd_run_out()
Dwavaudio.c60 int rpos, decr, samples; in wav_out_run() local
78 rpos = hw->rpos; in wav_out_run()
80 int left_till_end_samples = hw->samples - rpos; in wav_out_run()
83 src = hw->mix_buf + rpos; in wav_out_run()
84 dst = advance (wav->pcm_buf, rpos << hw->info.shift); in wav_out_run()
92 rpos = (rpos + convert_samples) % hw->samples; in wav_out_run()
97 hw->rpos = rpos; in wav_out_run()
Dpaaudio.c48 int rpos; member
100 int decr, to_mix, rpos; in qpa_thread_out() local
117 rpos = hw->rpos; in qpa_thread_out()
125 int chunk = audio_MIN (to_mix, hw->samples - rpos); in qpa_thread_out()
126 struct st_sample *src = hw->mix_buf + rpos; in qpa_thread_out()
136 rpos = (rpos + chunk) % hw->samples; in qpa_thread_out()
144 pa->rpos = rpos; in qpa_thread_out()
166 hw->rpos = pa->rpos; in qpa_run_out()
Daudio.c971 struct st_sample *src = hw->mix_buf + hw->rpos; in audio_pcm_hw_clip_out()
972 uint8_t *dst = advance (pcm_buf, hw->rpos << hw->info.shift); in audio_pcm_hw_clip_out()
973 int samples_till_end_of_buf = hw->samples - hw->rpos; in audio_pcm_hw_clip_out()
978 hw->rpos = (hw->rpos + samples_to_clip) % hw->samples; in audio_pcm_hw_clip_out()
992 int rpos; in audio_pcm_sw_get_rpos_in() local
999 rpos = hw->wpos - live; in audio_pcm_sw_get_rpos_in()
1000 if (rpos >= 0) { in audio_pcm_sw_get_rpos_in()
1001 return rpos; in audio_pcm_sw_get_rpos_in()
1004 return hw->samples + rpos; in audio_pcm_sw_get_rpos_in()
1011 int samples, live, ret = 0, swlim, isamp, osamp, rpos, total = 0; in audio_pcm_sw_read() local
[all …]
Ddsoundaudio.c356 int pos = hw->rpos + dst_len; in dsound_write_sample()
357 struct st_sample *src1 = hw->mix_buf + hw->rpos; in dsound_write_sample()
361 src_len1 = hw->samples - hw->rpos; in dsound_write_sample()
376 hw->rpos = pos % hw->samples; in dsound_write_sample()
766 DWORD cpos, rpos; in dsound_run_in() local
786 ds->first_time ? &rpos : NULL in dsound_run_in()
795 if (rpos & hw->info.align) { in dsound_run_in()
797 rpos, hw->info.align); in dsound_run_in()
799 hw->wpos = rpos >> hwshift; in dsound_run_in()
Dcoreaudio.c485 hw->rpos = core->pos; in coreaudio_run_out()
505 int rpos, live; in audioOutDeviceIOProc() local
530 rpos = core->pos; in audioOutDeviceIOProc()
531 src = hw->mix_buf + rpos; in audioOutDeviceIOProc()
549 rpos = (rpos + frameCount) % hw->samples; in audioOutDeviceIOProc()
551 core->pos = rpos; in audioOutDeviceIOProc()
Dnoaudio.c57 hw->rpos = (hw->rpos + decr) % hw->samples; in no_run_out()
Dwinaudio.c273 int hw_samples = audio_MIN(hw->samples - hw->rpos, live); in winaudio_out_run()
274 struct st_sample* src = hw->mix_buf + hw->rpos; in winaudio_out_run()
286 hw->rpos += wav_samples; in winaudio_out_run()
287 if (hw->rpos >= hw->samples) in winaudio_out_run()
288 hw->rpos -= hw->samples; in winaudio_out_run()
Dfmodaudio.c139 int pos = hw->rpos + dst_len; in fmod_write_sample()
140 struct st_sample *src1 = hw->mix_buf + hw->rpos; in fmod_write_sample()
144 src_len1 = hw->samples - hw->rpos; in fmod_write_sample()
159 hw->rpos = pos % hw->samples; in fmod_write_sample()
/external/wpa_supplicant_8/src/eap_peer/
Deap_md5.c35 u8 *rpos, id; in eap_md5_process() local
88 rpos = wpabuf_put(resp, CHAP_MD5_LEN); in eap_md5_process()
90 rpos)) { in eap_md5_process()
96 wpa_hexdump(MSG_MSGDUMP, "EAP-MD5: Response", rpos, CHAP_MD5_LEN); in eap_md5_process()
Deap_pax.c122 u8 *rpos; in eap_pax_process_std_1() local
206 rpos = wpabuf_put(resp, EAP_PAX_MAC_LEN); in eap_pax_process_std_1()
210 (u8 *) data->cid, data->cid_len, rpos); in eap_pax_process_std_1()
212 rpos, EAP_PAX_MAC_LEN); in eap_pax_process_std_1()
216 rpos = wpabuf_put(resp, EAP_PAX_ICV_LEN); in eap_pax_process_std_1()
219 NULL, 0, NULL, 0, rpos); in eap_pax_process_std_1()
220 wpa_hexdump(MSG_MSGDUMP, "EAP-PAX: ICV", rpos, EAP_PAX_ICV_LEN); in eap_pax_process_std_1()
237 u8 *rpos, mac[EAP_PAX_MAC_LEN]; in eap_pax_process_std_3() local
307 rpos = wpabuf_put(resp, EAP_PAX_ICV_LEN); in eap_pax_process_std_3()
310 NULL, 0, NULL, 0, rpos); in eap_pax_process_std_3()
[all …]
Deap_sake.c194 u8 *rpos; in eap_sake_process_challenge() local
268 rpos = wpabuf_put(resp, EAP_SAKE_MIC_LEN); in eap_sake_process_challenge()
272 wpabuf_head(resp), wpabuf_len(resp), rpos, in eap_sake_process_challenge()
273 rpos)) { in eap_sake_process_challenge()
295 u8 *rpos; in eap_sake_process_confirm() local
341 rpos = wpabuf_put(resp, EAP_SAKE_MIC_LEN); in eap_sake_process_confirm()
345 wpabuf_head(resp), wpabuf_len(resp), rpos, in eap_sake_process_confirm()
346 rpos)) { in eap_sake_process_confirm()
Deap_leap.c66 u8 challenge_len, *rpos; in eap_leap_process_request() local
117 rpos = wpabuf_put(resp, LEAP_RESPONSE_LEN); in eap_leap_process_request()
119 challenge_response(challenge, password, rpos); in eap_leap_process_request()
121 nt_challenge_response(challenge, password, password_len, rpos); in eap_leap_process_request()
122 os_memcpy(data->peer_response, rpos, LEAP_RESPONSE_LEN); in eap_leap_process_request()
124 rpos, LEAP_RESPONSE_LEN); in eap_leap_process_request()
Deap_gpsk.c322 u8 *rpos, *start; in eap_gpsk_send_gpsk_2() local
399 rpos = wpabuf_put(resp, miclen); in eap_gpsk_send_gpsk_2()
401 data->specifier, start, rpos - start, rpos) < in eap_gpsk_send_gpsk_2()
634 u8 *rpos, *start; in eap_gpsk_send_gpsk_4() local
652 rpos = wpabuf_put(resp, mlen); in eap_gpsk_send_gpsk_4()
654 data->specifier, start, rpos - start, rpos) < in eap_gpsk_send_gpsk_4()
Deap_tnc.c203 u8 *rpos, *rpos1; in eap_tnc_process() local
390 rpos = tncc_copy_send_buf(data->tncc, rpos1); in eap_tnc_process()
391 wpabuf_put(resp, rpos - rpos1); in eap_tnc_process()
/external/lldb/source/Target/
DSectionLoadList.cpp229 addr_to_sect_collection::const_reverse_iterator rpos = m_addr_to_sect.rbegin(); in ResolveLoadAddress() local
230 if (load_addr >= rpos->first) in ResolveLoadAddress()
232 addr_t offset = load_addr - rpos->first; in ResolveLoadAddress()
233 if (offset < rpos->second->GetByteSize()) in ResolveLoadAddress()
237 return rpos->second->ResolveContainedAddress (offset, so_addr); in ResolveLoadAddress()
/external/llvm/utils/
Dwciia.py88 rpos = -1
90 rpos = path.find(fpath)
91 if rpos == 0:
/external/qemu/include/android/
Dcbuffer.h22 int rpos; member
31 cb->rpos = 0; in cbuffer_reset()
/external/wpa_supplicant_8/src/ap/
Dwpa_auth_ft.c608 const u8 *rpos, *start; in wpa_ft_process_ric() local
613 rpos = ric; in wpa_ft_process_ric()
614 while (rpos + sizeof(*rdie) < ric + ric_len) { in wpa_ft_process_ric()
615 if (rpos[0] != WLAN_EID_RIC_DATA || rpos[1] < sizeof(*rdie) || in wpa_ft_process_ric()
616 rpos + 2 + rpos[1] > ric + ric_len) in wpa_ft_process_ric()
618 rdie = (const struct rsn_rdie *) (rpos + 2); in wpa_ft_process_ric()
619 rpos += 2 + rpos[1]; in wpa_ft_process_ric()
620 start = rpos; in wpa_ft_process_ric()
622 while (rpos + 2 <= ric + ric_len && in wpa_ft_process_ric()
623 rpos + 2 + rpos[1] <= ric + ric_len) { in wpa_ft_process_ric()
[all …]
Dgas_serv.c337 const u8 *rpos, *rend; in hs20_add_nai_home_realm_matches() local
342 rpos = realm_name; in hs20_add_nai_home_realm_matches()
343 while (rpos < realm_name + realm_len && in hs20_add_nai_home_realm_matches()
345 for (rend = rpos; in hs20_add_nai_home_realm_matches()
354 rend - rpos || in hs20_add_nai_home_realm_matches()
355 os_strncmp((char *) rpos, in hs20_add_nai_home_realm_matches()
357 rend - rpos) != 0) in hs20_add_nai_home_realm_matches()
364 rpos = rend + 1; in hs20_add_nai_home_realm_matches()
/external/qemu/docs/
DAUDIO.TXT46 - A 'rpos' offset into the circular buffer which tells where to read the next samples
54 | rpos |
64 shall also modify 'rpos' and returns the number of samples 'played'. A more detailed
83 HWVoiceOut's 'rpos' offset). NOTE: this is a count of samples in the HWVoiceOut
105 rpos
152 the value of 'rpos' and return the number of samples played. Then the
/external/freetype/src/base/
Dftrfork.c161 FT_Long tag_internal, rpos; in FT_Raccess_Get_DataOffsets() local
181 FT_READ_USHORT( rpos ) ) in FT_Raccess_Get_DataOffsets()
190 subcnt, rpos )); in FT_Raccess_Get_DataOffsets()
195 rpos += map_offset; in FT_Raccess_Get_DataOffsets()
197 error = FT_Stream_Seek( stream, rpos ); in FT_Raccess_Get_DataOffsets()

12