Home
last modified time | relevance | path

Searched refs:hw (Results 1 – 25 of 103) sorted by relevance

12345

/external/qemu/audio/
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) in glue()
81 static int glue (audio_pcm_hw_alloc_resources_, TYPE) (HW *hw) in glue()
83 HWBUF = audio_calloc (AUDIO_FUNC, hw->samples, sizeof (struct st_sample)); in glue()
86 hw->samples); in glue()
112 samples = sw->hw->samples; in glue()
114 samples = ((int64_t) sw->hw->samples << 32) / sw->ratio; in glue()
125 sw->rate = st_rate_start (sw->info.freq, sw->hw->info.freq); in glue()
127 sw->rate = st_rate_start (sw->hw->info.freq, sw->info.freq); in glue()
[all …]
Dnoaudio.c32 HWVoiceOut hw; member
37 HWVoiceIn hw; member
41 static int no_run_out (HWVoiceOut *hw, int live) in no_run_out() argument
43 NoVoiceOut *no = (NoVoiceOut *) hw; in no_run_out()
51 bytes = muldiv64 (ticks, hw->info.bytes_per_second, get_ticks_per_sec ()); in no_run_out()
53 samples = bytes >> hw->info.shift; in no_run_out()
57 hw->rpos = (hw->rpos + decr) % hw->samples; in no_run_out()
66 static int no_init_out (HWVoiceOut *hw, struct audsettings *as) in no_init_out() argument
68 audio_pcm_init_info (&hw->info, as); in no_init_out()
69 hw->samples = 1024; in no_init_out()
[all …]
Dfmodaudio.c33 HWVoiceOut hw; member
40 HWVoiceIn hw; member
94 HWVoiceOut *hw = &fmd->hw; in fmod_clear_sample() local
102 hw->samples << hw->info.shift, in fmod_clear_sample()
114 if ((len1 & hw->info.align) || (len2 & hw->info.align)) { in fmod_clear_sample()
116 len1, len2, hw->info.align + 1); in fmod_clear_sample()
120 if ((len1 + len2) - (hw->samples << hw->info.shift)) { in fmod_clear_sample()
122 len1 + len2, hw->samples << hw->info.shift); in fmod_clear_sample()
126 audio_pcm_info_clear_buf (&hw->info, p1, hw->samples); in fmod_clear_sample()
135 static void fmod_write_sample (HWVoiceOut *hw, uint8_t *dst, int dst_len) in fmod_write_sample() argument
[all …]
Dwavaudio.c38 HWVoiceOut hw; member
58 static int wav_out_run (HWVoiceOut *hw, int live) in wav_out_run() argument
60 WAVVoiceOut *wav = (WAVVoiceOut *) hw; in wav_out_run()
67 muldiv64 (ticks, hw->info.bytes_per_second, get_ticks_per_sec ()); in wav_out_run()
70 samples = INT_MAX >> hw->info.shift; in wav_out_run()
73 samples = bytes >> hw->info.shift; in wav_out_run()
79 rpos = hw->rpos; in wav_out_run()
81 int left_till_end_samples = hw->samples - rpos; in wav_out_run()
84 src = hw->mix_buf + rpos; in wav_out_run()
85 dst = advance (wav->pcm_buf, rpos << hw->info.shift); in wav_out_run()
[all …]
Dossaudio.c46 HWVoiceOut hw; member
57 HWVoiceIn hw; member
145 static int oss_poll_out (HWVoiceOut *hw) in oss_poll_out() argument
147 OSSVoiceOut *oss = (OSSVoiceOut *) hw; in oss_poll_out()
152 static int oss_poll_in (HWVoiceIn *hw) in oss_poll_in() argument
154 OSSVoiceIn *oss = (OSSVoiceIn *) hw; in oss_poll_in()
386 HWVoiceOut *hw = &oss->hw; in oss_write_pending() local
395 int samples_till_end = hw->samples - oss->wpos; in oss_write_pending()
397 int bytes_to_write = samples_to_write << hw->info.shift; in oss_write_pending()
398 void *pcm = advance (oss->pcm_buf, oss->wpos << hw->info.shift); in oss_write_pending()
[all …]
Desdaudio.c71 HWVoiceOut hw; member
82 HWVoiceIn hw; member
117 HWVoiceOut *hw = &esd->hw; in qesd_thread_out() local
120 threshold = conf.divisor ? hw->samples / conf.divisor : 0; in qesd_thread_out()
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()
155 hw->clip (esd->pcm_buf, src, chunk); in qesd_thread_out()
158 written = write (esd->fd, esd->pcm_buf, chunk << hw->info.shift); in qesd_thread_out()
167 if (written != chunk << hw->info.shift) { in qesd_thread_out()
[all …]
Daudio.c819 if (audio_pcm_info_eq (&cap->hw.info, as)) { in audio_pcm_capture_find_specific()
840 if (cap->hw.enabled != enabled) { in audio_capture_maybe_changed()
842 cap->hw.enabled = enabled; in audio_capture_maybe_changed()
850 HWVoiceOut *hw = &cap->hw; in audio_recalc_and_notify_capture() local
854 for (sw = hw->sw_head.lh_first; sw; sw = sw->entries.le_next) { in audio_recalc_and_notify_capture()
863 static void audio_detach_capture (HWVoiceOut *hw) in audio_detach_capture() argument
865 SWVoiceCap *sc = hw->cap_head.lh_first; in audio_detach_capture()
891 static int audio_attach_capture (HWVoiceOut *hw) in audio_attach_capture() argument
896 audio_detach_capture (hw); in audio_attach_capture()
900 HWVoiceOut *hw_cap = &cap->hw; in audio_attach_capture()
[all …]
Dpaaudio.c44 HWVoiceOut hw; member
55 HWVoiceIn hw; member
90 HWVoiceOut *hw = &pa->hw; in qpa_thread_out() local
93 threshold = conf.divisor ? hw->samples / conf.divisor : 0; in qpa_thread_out()
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()
128 hw->clip (pa->pcm_buf, src, chunk); in qpa_thread_out()
131 chunk << hw->info.shift, &error) < 0) { in qpa_thread_out()
136 rpos = (rpos + chunk) % hw->samples; in qpa_thread_out()
[all …]
Ddsoundaudio.c76 HWVoiceOut hw; member
88 HWVoiceIn hw; member
352 static void dsound_write_sample (HWVoiceOut *hw, uint8_t *dst, int dst_len) in dsound_write_sample() argument
356 int pos = hw->rpos + dst_len; in dsound_write_sample()
357 struct st_sample *src1 = hw->mix_buf + hw->rpos; in dsound_write_sample()
360 if (pos > hw->samples) { in dsound_write_sample()
361 src_len1 = hw->samples - hw->rpos; in dsound_write_sample()
362 src2 = hw->mix_buf; in dsound_write_sample()
368 hw->clip (dst, src1, src_len1); in dsound_write_sample()
372 dst = advance (dst, src_len1 << hw->info.shift); in dsound_write_sample()
[all …]
Dwinaudio.c91 HWVoiceOut hw; member
128 winaudio_out_fini (HWVoiceOut *hw) in winaudio_out_fini() argument
130 WinAudioOut* s = (WinAudioOut*) hw; in winaudio_out_fini()
159 winaudio_out_init (HWVoiceOut *hw, struct audsettings *as) in winaudio_out_init() argument
161 WinAudioOut* s = (WinAudioOut*) hw; in winaudio_out_init()
199 (DWORD_PTR)winaudio_out_buffer_done, (DWORD_PTR) hw, in winaudio_out_init()
242 audio_pcm_init_info (&hw->info, as); in winaudio_out_init()
243 hw->samples = conf.nb_samples*2; in winaudio_out_init()
254 winaudio_out_run (HWVoiceOut *hw, int live) in winaudio_out_run() argument
256 WinAudioOut* s = (WinAudioOut*) hw; in winaudio_out_run()
[all …]
Dcoreaudio.c286 void* hw, in coreaudio_voice_init() argument
427 status = AudioDeviceAddIOProc(core->deviceID, ioproc, hw); in coreaudio_voice_init()
458 HWVoiceOut hw; member
462 #define CORE_OUT(hw) ((coreaudioVoiceOut*)(hw))->core argument
465 static int coreaudio_run_out (HWVoiceOut *hw, int live) in coreaudio_run_out() argument
468 coreaudioVoice *core = CORE_OUT(hw); in coreaudio_run_out()
485 hw->rpos = core->pos; in coreaudio_run_out()
503 HWVoiceOut *hw = hwptr; in audioOutDeviceIOProc() local
504 coreaudioVoice *core = CORE_OUT(hw); in audioOutDeviceIOProc()
531 src = hw->mix_buf + rpos; in audioOutDeviceIOProc()
[all …]
Dalsaaudio.c116 HWVoiceOut hw; member
125 HWVoiceIn hw; member
374 static int alsa_poll_out (HWVoiceOut *hw) in alsa_poll_out() argument
376 ALSAVoiceOut *alsa = (ALSAVoiceOut *) hw; in alsa_poll_out()
381 static int alsa_poll_in (HWVoiceIn *hw) in alsa_poll_in() argument
383 ALSAVoiceIn *alsa = (ALSAVoiceIn *) hw; in alsa_poll_in()
784 HWVoiceOut *hw = &alsa->hw; in alsa_write_pending() local
787 int left_till_end_samples = hw->samples - alsa->wpos; in alsa_write_pending()
789 char *src = advance (alsa->pcm_buf, alsa->wpos << hw->info.shift); in alsa_write_pending()
838 alsa->wpos = (alsa->wpos + written) % hw->samples; in alsa_write_pending()
[all …]
Ddsound_template.h150 static void dsound_fini_in (HWVoiceIn *hw) in dsound_fini_in() argument
152 static void dsound_fini_out (HWVoiceOut *hw) in dsound_fini_in()
157 DSoundVoiceIn *ds = (DSoundVoiceIn *) hw; in dsound_fini_in()
159 DSoundVoiceOut *ds = (DSoundVoiceOut *) hw; in dsound_fini_in()
177 static int dsound_init_in (HWVoiceIn *hw, struct audsettings *as) in dsound_init_in() argument
179 static int dsound_init_out (HWVoiceOut *hw, struct audsettings *as) in dsound_init_in()
189 DSoundVoiceIn *ds = (DSoundVoiceIn *) hw; in dsound_init_in()
194 DSoundVoiceOut *ds = (DSoundVoiceOut *) hw; in dsound_init_in()
263 audio_pcm_init_info (&hw->info, &obt_as); in dsound_init_in()
265 if (bc.dwBufferBytes & hw->info.align) { in dsound_init_in()
[all …]
Daudio_int.h120 HWVoiceOut *hw; member
136 HWVoiceIn *hw; member
158 int (*init_out)(HWVoiceOut *hw, struct audsettings *as);
159 void (*fini_out)(HWVoiceOut *hw);
160 int (*run_out) (HWVoiceOut *hw, int live);
162 int (*ctl_out) (HWVoiceOut *hw, int cmd, ...);
164 int (*init_in) (HWVoiceIn *hw, struct audsettings *as);
165 void (*fini_in) (HWVoiceIn *hw);
166 int (*run_in) (HWVoiceIn *hw);
168 int (*ctl_in) (HWVoiceIn *hw, int cmd, ...);
[all …]
/external/qemu/android/
Dmain.c174 AndroidHwConfig* hw; in main() local
328 hw = android_hw; in main()
329 if (avdInfo_initHwConfig(avd, hw) < 0) { in main()
370 parse_skin_files(opts->skindir, opts->skin, opts, hw, in main()
435 hw->kernel_path = kernelFile; in main()
507 AFREE(hw->disk_ramdisk_path); in main()
508 hw->disk_ramdisk_path = ASTRDUP(opts->ramdisk); in main()
510 else if (!hw->disk_ramdisk_path[0]) { in main()
511 hw->disk_ramdisk_path = avdInfo_getRamdiskPath(avd); in main()
512 D("autoconfig: -ramdisk %s", hw->disk_ramdisk_path); in main()
[all …]
Dhw-sensors.c291 HwSensors* hw = cl->sensors; in _hwSensorClient_tick() local
299 sensor = &hw->sensors[ANDROID_SENSOR_ACCELERATION]; in _hwSensorClient_tick()
308 sensor = &hw->sensors[ANDROID_SENSOR_MAGNETIC_FIELD]; in _hwSensorClient_tick()
318 sensor = &hw->sensors[ANDROID_SENSOR_ORIENTATION]; in _hwSensorClient_tick()
327 sensor = &hw->sensors[ANDROID_SENSOR_TEMPERATURE]; in _hwSensorClient_tick()
334 sensor = &hw->sensors[ANDROID_SENSOR_PROXIMITY]; in _hwSensorClient_tick()
362 HwSensors* hw = cl->sensors; in _hwSensorClient_receive() local
376 if (hw->sensors[nn].enabled) in _hwSensorClient_receive()
424 if (!hw->sensors[id].enabled) { in _hwSensorClient_receive()
441 if (hw->sensors_port != NULL) { in _hwSensorClient_receive()
[all …]
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
DCharArrayReaderTest.java25 char[] hw = { 'H', 'e', 'l', 'l', 'o', 'W', 'o', 'r', 'l', 'd' }; field in CharArrayReaderTest
33 cr = new CharArrayReader(hw); in test_Constructor$C()
41 cr = new CharArrayReader(hw, 5, 5); in test_Constructor$CII()
53 cr = new CharArrayReader(hw); in test_close()
70 cr = new CharArrayReader(hw); in test_markI()
82 cr = new CharArrayReader(hw); in test_markSupported()
90 cr = new CharArrayReader(hw); in test_read()
101 cr = new CharArrayReader(hw); in test_read$CII()
104 .equals(new String(hw, 0, 10))); in test_read$CII()
111 cr = new CharArrayReader(hw); in test_ready()
[all …]
/external/qemu/distrib/sdl-1.2.15/src/joystick/bsd/
DSDL_sysjoystick.c257 struct joystick_hwdata *hw; local
270 hw = (struct joystick_hwdata *)SDL_malloc(sizeof(struct joystick_hwdata));
271 if (hw == NULL) {
276 joy->hwdata = hw;
277 hw->fd = fd;
278 hw->path = strdup(path);
279 hw->x = 0;
280 hw->y = 0;
281 hw->xmin = 0xffff;
282 hw->ymin = 0xffff;
[all …]
/external/qemu/android/avd/
Dhardware-properties.ini7 # This file is parsed by 'android/tools/gen-hw-config.py' to generate
8 # 'android/avd/hw-config-defs.h'. The latter is a special header containing
12 # (see android/avd/hw-config.h)
15 # (see android/avd/hw-config.h)
25 name = hw.cpu.arch
33 # hw.cpu.arch. This is only useful for experimentation for now.
34 name = hw.cpu.model
43 name = hw.ramSize
50 name = hw.screen
58 name = hw.mainKeys
[all …]
/external/regex-re2/benchlog/
Dbenchlog.mini1 hw.ncpu: 2
2 hw.byteorder: 1234
3 hw.memsize: 4294967296
4 hw.activecpu: 2
5 hw.physicalcpu: 2
6 hw.physicalcpu_max: 2
7 hw.logicalcpu: 2
8 hw.logicalcpu_max: 2
9 hw.cputype: 7
10 hw.cpusubtype: 4
[all …]
Dbenchlog.wreck1 hw.machine = i386
2 hw.model = MacPro1,1
3 hw.ncpu = 4
4 hw.byteorder = 1234
5 hw.physmem = 2147483648
6 hw.usermem = 1477443584
7 hw.pagesize = 4096
8 hw.epoch = 0
9 hw.vectorunit = 1
10 hw.busfrequency = 1332000000
[all …]
/external/qemu/
DMakefile.common34 QEMU_HW_CONFIG_DEFS_H := $(intermediates)/android/avd/hw-config-defs.h
36 $(QEMU_HW_CONFIG_DEFS_H): PRIVATE_CUSTOM_TOOL = $(PRIVATE_PATH)/android/tools/gen-hw-config.py $< $@
37 $(QEMU_HW_CONFIG_DEFS_H): $(QEMU_HARDWARE_PROPERTIES_INI) $(LOCAL_PATH)/android/tools/gen-hw-config…
45 gen-hw-config-defs = \
107 android/avd/hw-config.c \
138 $(call gen-hw-config-defs)
150 $(call gen-hw-config-defs)
285 $(call gen-hw-config-defs)
295 $(call gen-hw-config-defs)
450 android/hw-kmsg.c \
[all …]
/external/wpa_supplicant_8/src/ap/
Dhw_features.c519 u16 hw = iface->current_mode->ht_capab; in ieee80211n_supported_ht_capab() local
523 !(hw & HT_CAP_INFO_LDPC_CODING_CAP)) { in ieee80211n_supported_ht_capab()
530 !(hw & HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET)) { in ieee80211n_supported_ht_capab()
536 if ((conf & HT_CAP_INFO_SMPS_MASK) != (hw & HT_CAP_INFO_SMPS_MASK) && in ieee80211n_supported_ht_capab()
544 !(hw & HT_CAP_INFO_GREEN_FIELD)) { in ieee80211n_supported_ht_capab()
551 !(hw & HT_CAP_INFO_SHORT_GI20MHZ)) { in ieee80211n_supported_ht_capab()
558 !(hw & HT_CAP_INFO_SHORT_GI40MHZ)) { in ieee80211n_supported_ht_capab()
564 if ((conf & HT_CAP_INFO_TX_STBC) && !(hw & HT_CAP_INFO_TX_STBC)) { in ieee80211n_supported_ht_capab()
571 (hw & HT_CAP_INFO_RX_STBC_MASK)) { in ieee80211n_supported_ht_capab()
578 !(hw & HT_CAP_INFO_DELAYED_BA)) { in ieee80211n_supported_ht_capab()
[all …]
/external/dhcpcd/
Dbpf.c142 struct ether_header hw; in send_raw_packet() local
145 memset(&hw, 0, ETHER_HDR_LEN); in send_raw_packet()
146 memset(&hw.ether_dhost, 0xff, ETHER_ADDR_LEN); in send_raw_packet()
147 hw.ether_type = htons(protocol); in send_raw_packet()
148 iov[0].iov_base = &hw; in send_raw_packet()
Dduid.c46 uint16_t hw = 0; in get_duid() local
79 hw = htons(iface->family); in get_duid()
80 memcpy(p, &hw, 2); in get_duid()

12345