Searched refs:hw (Results 1 - 25 of 35) sorted by relevance

12

/external/qemu/audio/
H A Dnoaudio.c32 HWVoiceOut hw; member in struct:NoVoiceOut
37 HWVoiceIn hw; member in struct:NoVoiceIn
41 static int no_run_out (HWVoiceOut *hw) argument
43 NoVoiceOut *no = (NoVoiceOut *) hw;
49 live = audio_pcm_hw_get_live_out (&no->hw);
56 bytes = muldiv64 (ticks, hw->info.bytes_per_second, get_ticks_per_sec ());
58 samples = bytes >> hw->info.shift;
62 hw->rpos = (hw->rpos + decr) % hw
71 no_init_out(HWVoiceOut *hw, struct audsettings *as) argument
78 no_fini_out(HWVoiceOut *hw) argument
83 no_ctl_out(HWVoiceOut *hw, int cmd, ...) argument
90 no_init_in(HWVoiceIn *hw, struct audsettings *as) argument
97 no_fini_in(HWVoiceIn *hw) argument
102 no_run_in(HWVoiceIn *hw) argument
132 no_ctl_in(HWVoiceIn *hw, int cmd, ...) argument
[all...]
H A Dossaudio.c40 HWVoiceOut hw; member in struct:OSSVoiceOut
50 HWVoiceIn hw; member in struct:OSSVoiceIn
291 static int oss_run_out (HWVoiceOut *hw) argument
293 OSSVoiceOut *oss = (OSSVoiceOut *) hw;
302 live = audio_pcm_hw_get_live_out (hw);
307 bufsize = hw->samples << hw->info.shift;
319 if (abs (hw->samples - live) < 64) {
332 decr = audio_MIN (bytes >> hw->info.shift, live);
344 "please report your OS/audio hw t
414 oss_fini_out(HWVoiceOut *hw) argument
437 oss_init_out(HWVoiceOut *hw, struct audsettings *as) argument
544 oss_ctl_out(HWVoiceOut *hw, int cmd, ...) argument
579 oss_init_in(HWVoiceIn *hw, struct audsettings *as) argument
633 oss_fini_in(HWVoiceIn *hw) argument
645 oss_run_in(HWVoiceIn *hw) argument
721 oss_ctl_in(HWVoiceIn *hw, int cmd, ...) argument
[all...]
H A Daudio_template.h27 #define HWBUF hw->mix_buf
36 #define HWBUF hw->conv_buf
72 static void glue (audio_pcm_hw_free_resources_, TYPE) (HW *hw)
81 static int glue (audio_pcm_hw_alloc_resources_, TYPE) (HW *hw)
83 HWBUF = audio_calloc (AUDIO_FUNC, hw->samples, sizeof (struct st_sample));
86 hw->samples);
112 samples = sw->hw->samples;
114 samples = ((int64_t) sw->hw->samples << 32) / sw->ratio;
125 sw->rate = st_rate_start (sw->info.freq, sw->hw->info.freq);
127 sw->rate = st_rate_start (sw->hw
198 HW *hw = *hwp; local
246 HW *hw; local
320 HW *hw; local
348 HW *hw; local
474 HW *hw = sw->hw; local
[all...]
H A Dwavaudio.c25 #include "hw/hw.h"
38 HWVoiceOut hw; member in struct:WAVVoiceOut
58 static int wav_out_run (HWVoiceOut *hw) argument
60 WAVVoiceOut *wav = (WAVVoiceOut *) hw;
67 muldiv64 (ticks, hw->info.bytes_per_second, get_ticks_per_sec ());
70 samples = INT_MAX >> hw->info.shift;
73 samples = bytes >> hw->info.shift;
76 live = audio_pcm_hw_get_live_out (hw);
84 rpos = hw
119 wav_out_init(HWVoiceOut *hw, struct audsettings *as) argument
182 wav_out_fini(HWVoiceOut *hw) argument
210 wav_out_ctl(HWVoiceOut *hw, int cmd, ...) argument
230 HWVoiceIn hw; member in struct:WAVVoiceIn
252 wav_in_init(HWVoiceIn *hw, struct audsettings *as) argument
335 wav_in_fini(HWVoiceIn *hw) argument
350 wav_in_run(HWVoiceIn *hw) argument
402 wav_in_ctl(HWVoiceIn *hw, int cmd, ...) argument
[all...]
H A Desdaudio.c55 HWVoiceOut hw; member in struct:__anon4331
65 HWVoiceIn hw; member in struct:__anon4332
112 static int qesd_run_out (HWVoiceOut *hw) argument
114 ESDVoiceOut *esd = (ESDVoiceOut *) hw;
118 liveSamples = audio_pcm_hw_get_live_out (hw);
119 rpos = hw->rpos;
123 int chunkSamples = audio_MIN (liveSamples, hw->samples - rpos);
124 int chunkBytes = chunkSamples << hw->info.shift;
125 struct st_sample *src = hw->mix_buf + rpos;
127 hw
163 qesd_init_out(HWVoiceOut *hw, struct audsettings *as) argument
242 qesd_fini_out(HWVoiceOut *hw) argument
256 qesd_ctl_out(HWVoiceOut *hw, int cmd, ...) argument
264 qesd_run_in(HWVoiceIn *hw) argument
321 qesd_init_in(HWVoiceIn *hw, struct audsettings *as) argument
396 qesd_fini_in(HWVoiceIn *hw) argument
410 qesd_ctl_in(HWVoiceIn *hw, int cmd, ...) argument
[all...]
H A Dfmodaudio.c33 HWVoiceOut hw; member in struct:FMODVoiceOut
40 HWVoiceIn hw; member in struct:FMODVoiceIn
99 HWVoiceOut *hw = &fmd->hw; local
107 hw->samples << hw->info.shift,
119 if ((len1 & hw->info.align) || (len2 & hw->info.align)) {
121 len1, len2, hw->info.align + 1);
125 if ((len1 + len2) - (hw
140 fmod_write_sample(HWVoiceOut *hw, uint8_t *dst, int dst_len) argument
232 fmod_run_out(HWVoiceOut *hw) argument
344 fmod_fini_out(HWVoiceOut *hw) argument
358 fmod_init_out(HWVoiceOut *hw, struct audsettings *as) argument
396 fmod_ctl_out(HWVoiceOut *hw, int cmd, ...) argument
420 fmod_init_in(HWVoiceIn *hw, struct audsettings *as) argument
454 fmod_fini_in(HWVoiceIn *hw) argument
465 fmod_run_in(HWVoiceIn *hw) argument
612 fmod_ctl_in(HWVoiceIn *hw, int cmd, ...) argument
[all...]
H A Daudio.c25 #include "hw/hw.h"
820 if (audio_pcm_info_eq (&cap->hw.info, as)) {
841 if (cap->hw.enabled != enabled) {
843 cap->hw.enabled = enabled;
851 HWVoiceOut *hw = &cap->hw; local
855 for (sw = hw->sw_head.lh_first; sw; sw = sw->entries.le_next) {
864 static void audio_detach_capture (HWVoiceOut *hw) argument
866 SWVoiceCap *sc = hw
892 audio_attach_capture(HWVoiceOut *hw) argument
941 audio_pcm_hw_find_min_in(HWVoiceIn *hw) argument
954 audio_pcm_hw_get_live_in(HWVoiceIn *hw) argument
969 HWVoiceIn *hw = sw->hw; local
989 HWVoiceIn *hw = sw->hw; local
1043 audio_pcm_hw_find_min_out(HWVoiceOut *hw, int *nb_livep) argument
1060 audio_pcm_hw_get_live_out2(HWVoiceOut *hw, int *nb_live) argument
1080 audio_pcm_hw_get_live_out(HWVoiceOut *hw) argument
1230 HWVoiceOut *hw; local
1278 HWVoiceIn *hw; local
1370 audio_capture_mix_and_clear(HWVoiceOut *hw, int rpos, int samples) argument
1409 HWVoiceOut *hw = NULL; local
1521 HWVoiceIn *hw = NULL; local
1556 HWVoiceOut *hw = &cap->hw; local
2061 HWVoiceOut *hw; local
[all...]
H A Dwinaudio.c91 HWVoiceOut hw; member in struct:WinAudioOut
128 winaudio_out_fini (HWVoiceOut *hw) argument
130 WinAudioOut* s = (WinAudioOut*) hw;
159 winaudio_out_init (HWVoiceOut *hw, struct audsettings *as) argument
161 WinAudioOut* s = (WinAudioOut*) hw;
199 (DWORD_PTR)winaudio_out_buffer_done, (DWORD_PTR) hw,
242 audio_pcm_init_info (&hw->info, as);
243 hw->samples = conf.nb_samples*2;
254 winaudio_out_run (HWVoiceOut *hw) argument
256 WinAudioOut* s = (WinAudioOut*) hw;
322 winaudio_out_ctl(HWVoiceOut *hw, int cmd, ...) argument
344 HWVoiceIn hw; member in struct:WinAudioIn
375 winaudio_in_fini(HWVoiceIn *hw) argument
406 winaudio_in_init(HWVoiceIn *hw, struct audsettings *as) argument
507 winaudio_in_run(HWVoiceIn *hw) argument
588 winaudio_in_ctl(HWVoiceIn *hw, int cmd, ...) argument
[all...]
H A Dcoreaudio.c289 void* hw,
312 // TODO: audio_pcm_init_info (&hw->info, as);
392 // TODO: hw->samples = *pNBuffers * core->bufferFrameSize;
430 status = AudioDeviceAddIOProc(core->deviceID, ioproc, hw);
461 HWVoiceOut hw; member in struct:coreaudioVoiceOut
465 #define CORE_OUT(hw) ((coreaudioVoiceOut*)(hw))->core
469 coreaudio_run_out (HWVoiceOut *hw) argument
472 coreaudioVoice *core = CORE_OUT(hw);
478 live = audio_pcm_hw_get_live_out (hw);
285 coreaudio_voice_init(coreaudioVoice* core, struct audsettings* as, int frameSize, AudioDeviceIOProc ioproc, void* hw, int input) argument
510 HWVoiceOut *hw = hwptr; local
571 coreaudio_init_out(HWVoiceOut *hw, struct audsettings *as) argument
587 coreaudio_fini_out(HWVoiceOut *hw) argument
596 coreaudio_ctl_out(HWVoiceOut *hw, int cmd, ...) argument
614 HWVoiceIn hw; member in struct:coreaudioVoiceIn
622 coreaudio_run_in(HWVoiceIn *hw) argument
654 HWVoiceIn *hw = hwptr; local
721 coreaudio_init_in(HWVoiceIn *hw, struct audsettings *as) argument
738 coreaudio_fini_in(HWVoiceIn *hw) argument
747 coreaudio_ctl_in(HWVoiceIn *hw, int cmd, ...) argument
[all...]
H A Ddsoundaudio.c76 HWVoiceOut hw; member in struct:__anon4329
88 HWVoiceIn hw; member in struct:__anon4330
445 static void dsound_write_sample (HWVoiceOut *hw, uint8_t *dst, int dst_len) argument
449 int pos = hw->rpos + dst_len;
450 st_sample_t *src1 = hw->mix_buf + hw->rpos;
453 if (pos > hw->samples) {
454 src_len1 = hw->samples - hw->rpos;
455 src2 = hw
472 dsound_clear_sample(HWVoiceOut *hw, LPDIRECTSOUNDBUFFER dsb) argument
604 dsound_ctl_out(HWVoiceOut *hw, int cmd, ...) argument
661 dsound_run_out(HWVoiceOut *hw) argument
794 dsound_ctl_in(HWVoiceIn *hw, int cmd, ...) argument
851 dsound_run_in(HWVoiceIn *hw) argument
[all...]
H A Ddsound_template.h150 static void dsound_fini_in (HWVoiceIn *hw) argument
152 static void dsound_fini_out (HWVoiceOut *hw)
157 DSoundVoiceIn *ds = (DSoundVoiceIn *) hw;
159 DSoundVoiceOut *ds = (DSoundVoiceOut *) hw;
177 static int dsound_init_in (HWVoiceIn *hw, audsettings_t *as) argument
179 static int dsound_init_out (HWVoiceOut *hw, audsettings_t *as)
189 DSoundVoiceIn *ds = (DSoundVoiceIn *) hw;
194 DSoundVoiceOut *ds = (DSoundVoiceOut *) hw;
263 audio_pcm_init_info (&hw->info, &obt_as);
265 if (bc.dwBufferBytes & hw
[all...]
H A Daudio_int.h118 HWVoiceOut *hw; member in struct:SWVoiceOut
134 HWVoiceIn *hw; member in struct:SWVoiceIn
156 int (*init_out)(HWVoiceOut *hw, struct audsettings *as);
157 void (*fini_out)(HWVoiceOut *hw);
158 int (*run_out) (HWVoiceOut *hw);
160 int (*ctl_out) (HWVoiceOut *hw, int cmd, ...);
162 int (*init_in) (HWVoiceIn *hw, struct audsettings *as);
163 void (*fini_in) (HWVoiceIn *hw);
164 int (*run_in) (HWVoiceIn *hw);
166 int (*ctl_in) (HWVoiceIn *hw, in
176 HWVoiceOut hw; member in struct:CaptureVoiceOut
[all...]
H A Dalsaaudio.c104 HWVoiceOut hw; member in struct:ALSAVoiceOut
110 HWVoiceIn hw; member in struct:ALSAVoiceIn
598 static int alsa_run_out (HWVoiceOut *hw) argument
600 ALSAVoiceOut *alsa = (ALSAVoiceOut *) hw;
607 live = audio_pcm_hw_get_live_out (hw);
620 rpos = hw->rpos;
622 int left_till_end_samples = hw->samples - rpos;
626 src = hw->mix_buf + rpos;
627 dst = advance (alsa->pcm_buf, rpos << hw->info.shift);
629 hw
676 alsa_fini_out(HWVoiceOut *hw) argument
689 alsa_init_out(HWVoiceOut *hw, struct audsettings *as) argument
763 alsa_ctl_out(HWVoiceOut *hw, int cmd, ...) argument
780 alsa_init_in(HWVoiceIn *hw, struct audsettings *as) argument
832 alsa_fini_in(HWVoiceIn *hw) argument
844 alsa_run_in(HWVoiceIn *hw) argument
955 alsa_ctl_in(HWVoiceIn *hw, int cmd, ...) argument
[all...]
/external/qemu/distrib/sdl-1.2.12/src/joystick/bsd/
H A DSDL_sysjoystick.c244 struct joystick_hwdata *hw; local
257 hw = (struct joystick_hwdata *)SDL_malloc(sizeof(struct joystick_hwdata));
258 if (hw == NULL) {
263 joy->hwdata = hw;
264 hw->fd = fd;
265 hw->path = strdup(path);
266 hw->x = 0;
267 hw->y = 0;
268 hw->xmin = 0xffff;
269 hw
[all...]
/external/qemu/android/
H A Dhw-sensors.c13 #include "android/hw-sensors.h"
17 #include "android/hw-qemud.h"
264 HwSensors* hw = cl->sensors; local
272 sensor = &hw->sensors[ANDROID_SENSOR_ACCELERATION];
281 sensor = &hw->sensors[ANDROID_SENSOR_MAGNETIC_FIELD];
290 sensor = &hw->sensors[ANDROID_SENSOR_ORIENTATION];
299 sensor = &hw->sensors[ANDROID_SENSOR_TEMPERATURE];
327 HwSensors* hw = cl->sensors; local
341 if (hw->sensors[nn].enabled)
389 if (!hw
521 HwSensors* hw = _sensorsState; local
[all...]
H A Dmain.c51 #include "android/hw-qemud.h"
52 #include "android/hw-kmsg.h"
53 #include "android/hw-lcd.h"
54 #include "android/hw-sensors.h"
64 #include "hw/goldfish_nand.h"
601 /* this is used by hw/events_device.c to send the charmap name to the system */
1210 AndroidHwConfig* hw; local
1543 hw = android_hw;
1544 if (avdInfo_getHwConfig(avd, hw) < 0) {
1613 if (!hw
[all...]
/external/dhcpcd/
H A Dbpf.c142 struct ether_header hw; local
145 memset(&hw, 0, ETHER_HDR_LEN);
146 memset(&hw.ether_dhost, 0xff, ETHER_ADDR_LEN);
147 hw.ether_type = htons(protocol);
148 iov[0].iov_base = &hw;
H A Dclient.c260 uint16_t hw = 0; local
300 hw = htons(iface->family);
301 memcpy(p, &hw, 2);
/external/qemu/android/avd/
H A Dinfo.h16 #include "android/avd/hw-config.h"
168 /* Reads the AVD's hardware configuration into 'hw'. returns -1 on error, 0 otherwise */
169 int avdInfo_getHwConfig( AvdInfo* i, AndroidHwConfig* hw );
H A Dinfo.c1444 avdInfo_getHwConfig( AvdInfo* i, AndroidHwConfig* hw )
1452 ret = androidHwConfig_read(hw, ini);
1458 ret = androidHwConfig_read(hw, i->hardwareIni);
1467 hw->hw_keyboard = 0;
/external/libpng/contrib/gregbook/
H A Drpng2-x.c1214 int ii, x, y, hw, hh, grayspot; local
1224 hw = (int)(rpng2_info.width / 2);
1234 grayspot = CLIP(bg[pat].bg_gray, 1, (hh + hw));
1240 maxDist = (double)((hw*hw) + (hh*hh));
1246 x = (int)(i - hw);
1255 s = gray * ((double)(ABS(x)+ABS(y)) / (double)(hw + hh));
1983 int ii, x, y, hw, hh, grayspot; local
1989 hw = (int)(rpng2_info.width / 2);
1999 grayspot = CLIP(bg[pat].bg_gray, 1, (hh + hw));
[all...]
H A Drpng2-win.c944 int ii, x, y, hw, hh, grayspot; local
954 hw = rpng2_info.width / 2;
964 grayspot = CLIP(bg[pat].bg_gray, 1, (hh + hw));
970 maxDist = (double)((hw*hw) + (hh*hh));
976 x = i - hw;
985 s = gray * ((double)(ABS(x)+ABS(y)) / (double)(hw + hh));
/external/wpa_supplicant/
H A Dmlme.c551 if (local->hw->conf_tx(local->mdev, queue, &params)) {
1524 if (local->hw->get_tsf)
1525 tsf = local->hw->get_tsf(local->mdev);
1557 for (i = 0; i < local->hw->num_modes; i++) {
1558 struct ieee80211_hw_modes *mode = &local->hw->modes[i];
1804 if (local->hw->tx_last_beacon)
1805 tx_last_beacon = local->hw->tx_last_beacon(local->mdev);
2022 if (local->hw->reset_tsf) {
2024 local->hw->reset_tsf(local->mdev);
2052 for (m = 0; m < local->hw
[all...]
/external/wpa_supplicant_6/wpa_supplicant/
H A Dmlme.c192 if (local->hw->conf_tx(local->mdev, queue, &params)) {
1315 if (local->hw->get_tsf)
1316 tsf = local->hw->get_tsf(local->mdev);
1349 for (i = 0; i < local->hw->num_modes; i++) {
1350 struct ieee80211_hw_modes *mode = &local->hw->modes[i];
1624 if (local->hw->tx_last_beacon)
1625 tx_last_beacon = local->hw->tx_last_beacon(local->mdev);
2007 if (local->hw->reset_tsf) {
2009 local->hw->reset_tsf(local->mdev);
2037 for (m = 0; m < local->hw
[all...]
/external/qemu/
H A Dconsole.c125 void *hw; member in struct:TextConsole
164 active_console->hw_update(active_console->hw);
170 active_console->hw_invalidate(active_console->hw);
182 consoles[0]->hw_screen_dump(consoles[0]->hw, filename);
189 active_console->hw_text_update(active_console->hw, chardata);
1291 s->hw = opaque;
1375 s->hw = s;

Completed in 298 milliseconds

12