/external/dhcpcd/ |
bpf.c | 142 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;
|
/external/qemu/audio/ |
audio_template.h | 27 #define HWBUF hw->mix_buf 29 #define HW HWVoiceOut 34 #define HW HWVoiceIn 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) 198 HW *hw = *hwp; local 246 HW *hw; local 320 HW *hw; local 348 HW *hw; local 474 HW *hw = sw->hw; local [all...] |
noaudio.c | 32 HWVoiceOut hw; member in struct:NoVoiceOut 37 HWVoiceIn hw; member in struct:NoVoiceIn 41 static int no_run_out (HWVoiceOut *hw) 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->samples [all...] |
esdaudio.c | 55 HWVoiceOut hw; member in struct:__anon5925 65 HWVoiceIn hw; member in struct:__anon5926 112 static int qesd_run_out (HWVoiceOut *hw) 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->clip (esd->pcm_buf, src, chunkSamples) [all...] |
wavaudio.c | 25 #include "hw/hw.h" 38 HWVoiceOut hw; member in struct:WAVVoiceOut 58 static int wav_out_run (HWVoiceOut *hw) 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->rpos 230 HWVoiceIn hw; member in struct:WAVVoiceIn [all...] |
coreaudio.c | 289 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) 472 coreaudioVoice *core = CORE_OUT(hw); 478 live = audio_pcm_hw_get_live_out (hw); 510 HWVoiceOut *hw = hwptr; local 614 HWVoiceIn hw; member in struct:coreaudioVoiceIn 654 HWVoiceIn *hw = hwptr; local [all...] |
fmodaudio.c | 33 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->samples << hw->info.shift)) [all...] |
ossaudio.c | 40 HWVoiceOut hw; member in struct:OSSVoiceOut 50 HWVoiceIn hw; member in struct:OSSVoiceIn 291 static int oss_run_out (HWVoiceOut *hw) 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 to malc@pulsesoft.com\n" [all...] |
winaudio.c | 91 HWVoiceOut hw;
member in struct:WinAudioOut 128 winaudio_out_fini (HWVoiceOut *hw)
130 WinAudioOut* s = (WinAudioOut*) hw;
159 winaudio_out_init (HWVoiceOut *hw, struct audsettings *as)
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)
256 WinAudioOut* s = (WinAudioOut*) hw;
344 HWVoiceIn hw; member in struct:WinAudioIn [all...] |
alsaaudio.c | 104 HWVoiceOut hw; member in struct:ALSAVoiceOut 110 HWVoiceIn hw; member in struct:ALSAVoiceIn 598 static int alsa_run_out (HWVoiceOut *hw) 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->clip (dst, src, len) [all...] |
audio_int.h | 118 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, int cmd, ...) 176 HWVoiceOut hw; member in struct:CaptureVoiceOut [all...] |
dsoundaudio.c | 76 HWVoiceOut hw; member in struct:__anon5923 88 HWVoiceIn hw; member in struct:__anon5924 445 static void dsound_write_sample (HWVoiceOut *hw, uint8_t *dst, int dst_len) 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->mix_buf [all...] |
/frameworks/base/services/audioflinger/ |
AudioHardwareInterface.cpp | 72 AudioHardwareInterface* hw = 0; local 76 hw = new AudioHardwareGeneric(); 81 hw = new AudioHardwareGeneric(); 85 hw = createAudioHardware(); 88 if (hw->initCheck() != NO_ERROR) { 90 delete hw; 91 hw = new AudioHardwareStub(); 95 hw = new A2dpAudioInterface(hw); 105 hw = new AudioDumpInterface(hw); // replace interfac [all...] |
/device/samsung/crespo/alsa-lib/src/rawmidi/ |
rawmidi_hw.c | 50 snd_rawmidi_hw_t *hw = rmidi->private_data; local 53 hw->open--; 54 if (hw->open) 56 if (close(hw->fd)) { 60 free(hw); 66 snd_rawmidi_hw_t *hw = rmidi->private_data; local 69 if ((flags = fcntl(hw->fd, F_GETFL)) < 0) { 77 if (fcntl(hw->fd, F_SETFL, flags) < 0) { 86 snd_rawmidi_hw_t *hw = rmidi->private_data; local 88 if (ioctl(hw->fd, SNDRV_RAWMIDI_IOCTL_INFO, info) < 0) 97 snd_rawmidi_hw_t *hw = rmidi->private_data; local 108 snd_rawmidi_hw_t *hw = rmidi->private_data; local 119 snd_rawmidi_hw_t *hw = rmidi->private_data; local 130 snd_rawmidi_hw_t *hw = rmidi->private_data; local 141 snd_rawmidi_hw_t *hw = rmidi->private_data; local 151 snd_rawmidi_hw_t *hw = rmidi->private_data; local 181 snd_rawmidi_hw_t *hw = NULL; local [all...] |
/libcore/luni/src/test/java/tests/api/java/io/ |
CharArrayReaderTest.java | 31 char[] hw = { 'H', 'e', 'l', 'l', 'o', 'W', 'o', 'r', 'l', 'd' }; field in class:CharArrayReaderTest 48 cr = new CharArrayReader(hw); 71 cr = new CharArrayReader(hw, -1, 0); 77 cr = new CharArrayReader(hw, 0, -1); 83 cr = new CharArrayReader(hw, hw.length + 1, 1); 89 cr = new CharArrayReader(hw, 5, 5); 105 cr = new CharArrayReader(hw); 126 cr = new CharArrayReader(hw); 154 cr = new CharArrayReader(hw); [all...] |
CharArrayWriterTest.java | 33 char[] hw = { 'H', 'e', 'l', 'l', 'o', 'W', 'o', 'r', 'l', 'd' }; field in class:CharArrayWriterTest 140 cw.write(hw, 5, 5); 194 cw.write(hw, 5, 5);
|
/device/samsung/crespo/alsa-lib/src/control/ |
control_hw.c | 54 snd_ctl_hw_t *hw = handle->private_data; local 56 res = close(hw->fd) < 0 ? -errno : 0; 57 free(hw); 63 snd_ctl_hw_t *hw = handle->private_data; local 65 int fd = hw->fd; 84 snd_ctl_hw_t *hw = ctl->private_data; local 85 int fd = hw->fd; 114 snd_ctl_hw_t *hw = handle->private_data; local 115 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_SUBSCRIBE_EVENTS, &subscribe) < 0) { 124 snd_ctl_hw_t *hw = handle->private_data local 134 snd_ctl_hw_t *hw = handle->private_data; local 142 snd_ctl_hw_t *hw = handle->private_data; local 150 snd_ctl_hw_t *hw = handle->private_data; local 158 snd_ctl_hw_t *hw = handle->private_data; local 166 snd_ctl_hw_t *hw = handle->private_data; local 174 snd_ctl_hw_t *hw = handle->private_data; local 182 snd_ctl_hw_t *hw = handle->private_data; local 190 snd_ctl_hw_t *hw = handle->private_data; local 198 snd_ctl_hw_t *hw = handle->private_data; local 209 snd_ctl_hw_t *hw = handle->private_data; local 243 snd_ctl_hw_t *hw = handle->private_data; local 251 snd_ctl_hw_t *hw = handle->private_data; local 259 snd_ctl_hw_t *hw = handle->private_data; local 267 snd_ctl_hw_t *hw = handle->private_data; local 275 snd_ctl_hw_t *hw = handle->private_data; local 283 snd_ctl_hw_t *hw = handle->private_data; local 291 snd_ctl_hw_t *hw = handle->private_data; local 299 snd_ctl_hw_t *hw = handle->private_data; local 307 snd_ctl_hw_t *hw = handle->private_data; local 315 snd_ctl_hw_t *hw = handle->private_data; local 323 snd_ctl_hw_t *hw = handle->private_data; local 370 snd_ctl_hw_t *hw; local [all...] |
/device/samsung/crespo/alsa-lib/src/seq/ |
seq_hw.c | 44 snd_seq_hw_t *hw = seq->private_data; local 47 if (close(hw->fd)) { 51 free(hw); 57 snd_seq_hw_t *hw = seq->private_data; local 60 if ((flags = fcntl(hw->fd, F_GETFL)) < 0) { 68 if (fcntl(hw->fd, F_SETFL, flags) < 0) { 77 snd_seq_hw_t *hw = seq->private_data; local 79 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_CLIENT_ID, &client) < 0) { 88 snd_seq_hw_t *hw = seq->private_data; local 89 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_SYSTEM_INFO, info) < 0) 98 snd_seq_hw_t *hw = seq->private_data; local 108 snd_seq_hw_t *hw = seq->private_data; local 118 snd_seq_hw_t *hw = seq->private_data; local 128 snd_seq_hw_t *hw = seq->private_data; local 138 snd_seq_hw_t *hw = seq->private_data; local 148 snd_seq_hw_t *hw = seq->private_data; local 158 snd_seq_hw_t *hw = seq->private_data; local 168 snd_seq_hw_t *hw = seq->private_data; local 178 snd_seq_hw_t *hw = seq->private_data; local 188 snd_seq_hw_t *hw = seq->private_data; local 198 snd_seq_hw_t *hw = seq->private_data; local 208 snd_seq_hw_t *hw = seq->private_data; local 218 snd_seq_hw_t *hw = seq->private_data; local 228 snd_seq_hw_t *hw = seq->private_data; local 238 snd_seq_hw_t *hw = seq->private_data; local 248 snd_seq_hw_t *hw = seq->private_data; local 258 snd_seq_hw_t *hw = seq->private_data; local 268 snd_seq_hw_t *hw = seq->private_data; local 278 snd_seq_hw_t *hw = seq->private_data; local 288 snd_seq_hw_t *hw = seq->private_data; local 298 snd_seq_hw_t *hw = seq->private_data; local 308 snd_seq_hw_t *hw = seq->private_data; local 318 snd_seq_hw_t *hw = seq->private_data; local 327 snd_seq_hw_t *hw = seq->private_data; local 336 snd_seq_hw_t *hw = seq->private_data; local 346 snd_seq_hw_t *hw = seq->private_data; local 356 snd_seq_hw_t *hw = seq->private_data; local 366 snd_seq_hw_t *hw = seq->private_data; local 376 snd_seq_hw_t *hw = seq->private_data; local 424 snd_seq_hw_t *hw; local [all...] |
/system/core/init/ |
util.c | 420 char *x, *hw, *rev; local 434 hw = strstr(data, "\nHardware"); 437 if (hw) { 438 x = strstr(hw, ": ");
|
/external/qemu/android/ |
hw-sensors.c | 13 #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->sensors[id].enabled) 521 HwSensors* hw = _sensorsState; local [all...] |
/external/qemu/distrib/sdl-1.2.12/src/joystick/bsd/ |
SDL_sysjoystick.c | 244 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->ymin = 0xffff [all...] |
/device/samsung/crespo/alsa-lib/include/ |
aserver.h | 65 snd_pcm_shm_rbptr_t hw; member in struct:__anon1344
|
/device/samsung/crespo/alsa-lib/src/pcm/ |
pcm_ioplug.c | 50 /* update the hw pointer */ 54 snd_pcm_sframes_t hw; local 56 hw = io->data->callback->pointer(io->data); 57 if (hw >= 0) { 59 if ((unsigned int)hw >= io->last_hw) 60 delta = hw - io->last_hw; 62 delta = pcm->buffer_size + hw - io->last_hw; 64 io->last_hw = hw;
|
pcm_direct.h | 67 snd_pcm_type_t type; /* PCM type (currently only hw) */ 77 } hw; member in struct:__anon1432
|
pcm_hw.c | 4 * \brief PCM HW Plugin Interface 114 #define FAST_PCM_STATE(hw) \ 115 ((enum sndrv_pcm_state) (hw)->mmap_status->state) 116 #define FAST_PCM_TSTAMP(hw) \ 117 ((hw)->mmap_status->tstamp) 122 snd_pcm_hw_t *hw = pcm->private_data; local 123 res = FAST_PCM_TSTAMP(hw); 124 if (SNDRV_PROTOCOL_VERSION(2, 0, 5) > hw->version) 130 static int sync_ptr1(snd_pcm_hw_t *hw, unsigned int flags) 133 hw->sync_ptr->flags = flags 169 snd_pcm_hw_t *hw = pcm->private_data; local 182 snd_pcm_hw_t *hw = pcm->private_data; local 199 snd_pcm_hw_t *hw = pcm->private_data; local 222 snd_pcm_hw_t *hw = pcm->private_data; local 256 snd_pcm_hw_t *hw = pcm->private_data; local 276 snd_pcm_hw_t *hw = pcm->private_data; local 321 snd_pcm_hw_t *hw = pcm->private_data; local 340 snd_pcm_hw_t *hw = pcm->private_data; local 360 snd_pcm_hw_t *hw = pcm->private_data; local 427 snd_pcm_hw_t *hw = pcm->private_data; local 459 snd_pcm_hw_t *hw = pcm->private_data; local 480 snd_pcm_hw_t *hw = pcm->private_data; local 496 snd_pcm_hw_t *hw = pcm->private_data; local 505 snd_pcm_hw_t *hw = pcm->private_data; local 539 snd_pcm_hw_t *hw = pcm->private_data; local 571 snd_pcm_hw_t *hw = pcm->private_data; local 583 snd_pcm_hw_t *hw = pcm->private_data; local 595 snd_pcm_hw_t *hw = pcm->private_data; local 616 snd_pcm_hw_t *hw = pcm->private_data; local 629 snd_pcm_hw_t *hw = pcm->private_data; local 641 snd_pcm_hw_t *hw = pcm->private_data; local 658 snd_pcm_hw_t *hw = pcm->private_data; local 678 snd_pcm_hw_t *hw = pcm->private_data; local 722 snd_pcm_hw_t *hw = pcm->private_data; local 764 snd_pcm_hw_t *hw = pcm->private_data; local 776 snd_pcm_hw_t *hw = pcm->private_data; local 795 snd_pcm_hw_t *hw = pcm->private_data; local 814 snd_pcm_hw_t *hw = pcm->private_data; local 833 snd_pcm_hw_t *hw = pcm->private_data; local 851 snd_pcm_hw_t *hw = pcm->private_data; local 885 snd_pcm_hw_t *hw = pcm->private_data; local 907 snd_pcm_hw_t *hw = pcm->private_data; local 924 snd_pcm_hw_t *hw = pcm->private_data; local 951 snd_pcm_hw_t *hw = pcm->private_data; local 967 snd_pcm_hw_t *hw = pcm->private_data; local 979 snd_pcm_hw_t *hw = pcm->private_data; local 1026 snd_pcm_hw_t *hw = pcm->private_data; local 1138 snd_pcm_hw_t *hw = NULL; local 1403 snd_pcm_hw_t *hw; local [all...] |