Searched defs:hw (Results 1 - 25 of 42) sorted by relevance

12

/vbox/src/VBox/Devices/PC/ipxe/src/drivers/net/
H A Dprism2_pci.c35 hfa384x_t *hw = &hw_global; local
38 hw->membase = ioremap ( pci->membase, 0x100 );
43 return prism2_probe ( nic, hw );
H A Dprism2_plx.c39 * hw device structure to be filled in
45 static int prism2_find_plx ( hfa384x_t *hw, struct pci_device *p ) argument
61 /* Fill out hw structure */
62 hw->iobase = iobase;
92 hfa384x_t *hw = &hw_global; local
95 if ( ! prism2_find_plx ( hw, pci ) ) return 0;
96 nic->ioaddr = hw->iobase;
98 return prism2_probe ( nic, hw );
/vbox/src/VBox/Devices/PC/ipxe/src/core/
H A Dhw.c16 struct hw { struct
24 static void hw_finished ( struct hw *hw, int rc ) { argument
25 intf_shutdown ( &hw->xfer, rc );
26 process_del ( &hw->process );
29 static void hw_step ( struct hw *hw ) {
32 if ( xfer_window ( &hw->xfer ) ) {
33 rc = xfer_deliver_raw ( &hw->xfer, hw_msg, sizeof ( hw_msg ) );
34 hw_finished ( hw, r
50 struct hw *hw; local
[all...]
/vbox/src/VBox/Devices/Audio/
H A Ddsound_template.h160 static void dsound_fini_in (HWVoiceIn *hw) argument
162 DSoundVoiceIn *ds = (DSoundVoiceIn *) hw;
169 static void dsound_fini_out (HWVoiceOut *hw) argument
171 DSoundVoiceOut *ds = (DSoundVoiceOut *) hw;
181 static int dsound_init_in (HWVoiceIn *hw, audsettings_t *as) argument
183 DSoundVoiceIn *ds = (DSoundVoiceIn *) hw;
192 audio_pcm_init_info (&hw->info, &ds->as);
193 hw->samples = conf.bufsize_in >> hw->info.shift;
201 static int dsound_init_out (HWVoiceOut *hw, audsettings_ argument
[all...]
H A Daudio_template.h27 #define HWBUF hw->mix_buf
36 #define HWBUF hw->conv_buf
74 static void glue (audio_pcm_hw_free_resources_, TYPE) (HW *hw)
83 static int glue (audio_pcm_hw_alloc_resources_, TYPE) (HW *hw)
85 HWBUF = audio_calloc (AUDIO_FUNC, hw->samples, sizeof (st_sample_t));
88 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->info.freq, sw->info.freq);
141 HW *hw,
199 HW *hw = *hwp; local
245 HW *hw; local
314 HW *hw; local
343 HW *hw; local
476 HW *hw = sw->hw; local
[all...]
H A DDrvHostNullAudio.cpp62 PDMAUDIOHSTSTRMOUT hw; member in struct:NULLAUDIOSTREAMOUT
68 PDMAUDIOHSTSTRMIN hw; member in struct:NULLAUDIOSTREAMIN
H A Dmixeng.c367 void mixeng_sniff_and_clear (PPDMHOSTVOICEOUT hw, PPDMHOSTSTEREOSAMPLE src, int len) argument
369 void mixeng_sniff_and_clear (HWVoiceOut *hw, st_sample_t *src, int len)
374 sniffer_run_out (hw, src, len);
H A Dnoaudio.c33 HWVoiceOut hw; member in struct:NoVoiceOut
38 HWVoiceIn hw; member in struct:NoVoiceIn
42 static int no_run_out (HWVoiceOut *hw) argument
44 NoVoiceOut *no = (NoVoiceOut *) hw;
50 live = audio_pcm_hw_get_live_out (&no->hw);
60 samples = (int)((2 * ticks * hw->info.freq + ticks_per_second) / ticks_per_second / 2);
71 hw->rpos = (hw->rpos + decr) % hw->samples;
80 static int no_init_out (HWVoiceOut *hw, audsettings_ argument
87 no_fini_out(HWVoiceOut *hw) argument
92 no_ctl_out(HWVoiceOut *hw, int cmd, ...) argument
99 no_init_in(HWVoiceIn *hw, audsettings_t *as) argument
106 no_fini_in(HWVoiceIn *hw) argument
111 no_run_in(HWVoiceIn *hw) argument
138 no_ctl_in(HWVoiceIn *hw, int cmd, ...) argument
[all...]
H A Dwinaudio.c42 HWVoiceOut hw; member in struct:OSSVoiceOut
58 HWVoiceIn hw; member in struct:OSSVoiceIn
77 static void winmm_run_out (HWVoiceOut *hw) argument
79 OSSVoiceOut *oss = (OSSVoiceOut *) hw;
86 live = pcm_hw_get_live (hw, NULL);
98 if (abs (hw->samples - live) < 64)
103 samples = oss->default_bufsize >> hw->info.shift;
110 rpos = hw->rpos;
114 int left_till_end_samples = hw->samples - rpos;
127 src = advance (hw
159 winmm_fini_out(HWVoiceOut *hw) argument
195 winmm_init_out(HWVoiceOut *hw, int freq, int nchannels, audfmt_e fmt) argument
280 winmm_ctl_out(HWVoiceOut *hw, int cmd, ...) argument
352 winmm_init_in(HWVoiceIn *hw, int freq, int nchannels, audfmt_e fmt) argument
403 winmm_fini_in(HWVoiceIn *hw) argument
418 winmm_run_in(HWVoiceIn *hw) argument
491 winmm_ctl_in(HWVoiceIn *hw, int cmd, ...) argument
[all...]
H A Dalsaaudio.c48 HWVoiceOut hw; member in struct:ALSAVoiceOut
54 HWVoiceIn hw; member in struct:ALSAVoiceIn
702 static int alsa_run_out (HWVoiceOut *hw) argument
704 ALSAVoiceOut *alsa = (ALSAVoiceOut *) hw;
711 live = audio_pcm_hw_get_live_out (hw);
724 rpos = hw->rpos;
726 int left_till_end_samples = hw->samples - rpos;
730 src = hw->mix_buf + rpos;
731 dst = advance (alsa->pcm_buf, rpos << hw->info.shift);
733 hw
796 alsa_fini_out(HWVoiceOut *hw) argument
809 alsa_init_out(HWVoiceOut *hw, audsettings_t *as) argument
878 alsa_ctl_out(HWVoiceOut *hw, int cmd, ...) argument
895 alsa_init_in(HWVoiceIn *hw, audsettings_t *as) argument
942 alsa_fini_in(HWVoiceIn *hw) argument
954 alsa_run_in(HWVoiceIn *hw) argument
1093 alsa_ctl_in(HWVoiceIn *hw, int cmd, ...) argument
[all...]
H A Dossaudio.c46 HWVoiceOut hw; member in struct:OSSVoiceOut
58 HWVoiceIn hw; member in struct:OSSVoiceIn
342 static int oss_run_out (HWVoiceOut *hw) argument
344 OSSVoiceOut *oss = (OSSVoiceOut *) hw;
355 live = audio_pcm_hw_get_live_out (hw);
360 bufsize = hw->samples << hw->info.shift;
373 if (abs (hw->samples - live) < 64) {
386 decr = audio_MIN (bytes >> hw->info.shift, live);
399 "please report your OS/audio hw t
485 oss_fini_out(HWVoiceOut *hw) argument
517 oss_init_out(HWVoiceOut *hw, audsettings_t *as) argument
638 oss_ctl_out(HWVoiceOut *hw, int cmd, ...) argument
677 oss_init_in(HWVoiceIn *hw, audsettings_t *as) argument
737 oss_fini_in(HWVoiceIn *hw) argument
752 oss_run_in(HWVoiceIn *hw) argument
836 oss_ctl_in(HWVoiceIn *hw, int cmd, ...) argument
[all...]
H A Dpulseaudio.c53 } hw; member in struct:PulseVoice
366 static int pulse_init_out (HWVoiceOut *hw, audsettings_t *as) argument
368 PulseVoice *pPulse = (PulseVoice *) hw;
399 audio_pcm_init_info (&hw->info, &obt_as);
410 hw->samples = cbBuf >> hw->info.shift;
415 static void pulse_fini_out (HWVoiceOut *hw) argument
417 PulseVoice *pPulse = (PulseVoice *)hw;
435 static int pulse_run_out (HWVoiceOut *hw) argument
437 PulseVoice *pPulse = (PulseVoice *) hw;
503 pulse_ctl_out(HWVoiceOut *hw, int cmd, ...) argument
549 pulse_init_in(HWVoiceIn *hw, audsettings_t *as) argument
583 pulse_fini_in(HWVoiceIn *hw) argument
597 pulse_run_in(HWVoiceIn *hw) argument
691 pulse_ctl_in(HWVoiceIn *hw, int cmd, ...) argument
[all...]
H A Dsolaudio.c262 static int solaudio_init_out (HWVoiceOut *hw, audsettings_t *as) argument
264 solaudioVoiceOut *pSol = (solaudioVoiceOut *)hw;
298 audio_pcm_init_info(&hw->info, &ObtAudioInfo);
301 hw->samples = pSol->AudioInfo.play.buffer_size >> hw->info.shift;
305 LogRel(("solaudio: failed to alloc %d %d bytes to pPCMBuf\n", hw->samples << hw->info.shift, hw->samples));
308 LogFlow(("solaudio: init_out hw->samples=%d play.buffer_size=%d\n", hw
313 solaudio_fini_out(HWVoiceOut *hw) argument
327 solaudio_start_out(HWVoiceOut *hw) argument
406 solaudio_run_out(HWVoiceOut *hw) argument
452 solaudio_ctl_out(HWVoiceOut *hw, int cmd, ...) argument
629 solaudio_init_in(HWVoiceIn *hw, audsettings_t *as) argument
684 solaudio_fini_in(HWVoiceIn *hw) argument
697 solaudio_run_in(HWVoiceIn *hw) argument
806 solaudio_ctl_in(HWVoiceIn *hw, int cmd, ...) argument
[all...]
H A DDrvHostPulseAudio.cpp87 } hw; member in struct:PULSEAUDIOSTREAM
H A Daudio_int.h129 HWVoiceOut *hw; member in struct:SWVoiceOut
145 HWVoiceIn *hw; member in struct:SWVoiceIn
167 int (*init_out)(HWVoiceOut *hw, audsettings_t *as);
168 void (*fini_out)(HWVoiceOut *hw);
169 int (*run_out) (HWVoiceOut *hw);
171 int (*ctl_out) (HWVoiceOut *hw, int cmd, ...);
173 int (*init_in) (HWVoiceIn *hw, audsettings_t *as);
174 void (*fini_in) (HWVoiceIn *hw);
175 int (*run_in) (HWVoiceIn *hw);
177 int (*ctl_in) (HWVoiceIn *hw, in
187 HWVoiceOut hw; member in struct:CaptureVoiceOut
[all...]
H A Dcoreaudio.c481 HWVoiceOut hw; member in struct:caVoiceOut
500 HWVoiceIn hw; member in struct:caVoiceIn
537 static int coreaudio_run_out(HWVoiceOut *hw);
539 static int coreaudio_ctl_out(HWVoiceOut *hw, int cmd, ...);
540 static void coreaudio_fini_out(HWVoiceOut *hw);
541 static int coreaudio_init_out(HWVoiceOut *hw, audsettings_t *as);
542 static int caInitOutput(HWVoiceOut *hw);
543 static void caReinitOutput(HWVoiceOut *hw);
623 csAvail = IORingBufferUsed(caVoice->pBuf) >> caVoice->hw.info.shift; /* bytes -> samples */
626 csAvail = RT_MIN(csAvail, ioData->mBuffers[0].mDataByteSize >> caVoice->hw
660 caInitOutput(HWVoiceOut *hw) argument
950 caReinitOutput(HWVoiceOut *hw) argument
960 coreaudio_run_out(HWVoiceOut *hw) argument
1027 coreaudio_ctl_out(HWVoiceOut *hw, int cmd, ...) argument
1084 coreaudio_fini_out(HWVoiceOut *hw) argument
1132 coreaudio_init_out(HWVoiceOut *hw, audsettings_t *as) argument
1482 caInitInput(HWVoiceIn *hw) argument
1882 caReinitInput(HWVoiceIn *hw) argument
1892 coreaudio_run_in(HWVoiceIn *hw) argument
1953 coreaudio_ctl_in(HWVoiceIn *hw, int cmd, ...) argument
2007 coreaudio_fini_in(HWVoiceIn *hw) argument
2070 coreaudio_init_in(HWVoiceIn *hw, audsettings_t *as) argument
[all...]
H A Ddsoundaudio.c105 HWVoiceOut hw; member in struct:__anon9900
115 HWVoiceIn hw; member in struct:__anon9901
506 ds->hw.samples,
507 ds->hw.info.freq,
508 ds->hw.info.nchannels,
509 ds->hw.info.bits,
510 ds->hw.info.sign));
532 bd.dwBufferBytes = ds->hw.samples << ds->hw.info.shift;
573 if (bc.dwBufferBytes & ds->hw
908 dsound_write_sample(HWVoiceOut *hw, uint8_t *dst, int dst_len) argument
968 dsound_ctl_out(HWVoiceOut *hw, int cmd, ...) argument
997 dsound_run_out(HWVoiceOut *hw) argument
1118 dsound_ctl_in(HWVoiceIn *hw, int cmd, ...) argument
1147 dsound_run_in(HWVoiceIn *hw) argument
[all...]
/vbox/src/VBox/Devices/PC/ipxe/src/drivers/net/ath/ath5k/
H A Dath5k_attach.c101 * ath5k_hw_attach - Check if hw is supported and init the needed structs
105 * @hw: Returned newly allocated hardware structure, on success
113 struct ath5k_hw **hw)
322 *hw = ah;
112 ath5k_hw_attach(struct ath5k_softc *sc, u8 mac_version, struct ath5k_hw **hw) argument
/vbox/src/VBox/Devices/PC/ipxe/src/drivers/net/igbvf/
H A Digbvf_mbx.c35 * @hw: pointer to the HW structure
40 static s32 igbvf_poll_for_msg(struct e1000_hw *hw, u16 mbx_id) argument
42 struct e1000_mbx_info *mbx = &hw->mbx;
50 while (countdown && mbx->ops.check_for_msg(hw, mbx_id)) {
66 * @hw: pointer to the HW structure
71 static s32 igbvf_poll_for_ack(struct e1000_hw *hw, u16 mbx_id) argument
73 struct e1000_mbx_info *mbx = &hw->mbx;
81 while (countdown && mbx->ops.check_for_ack(hw, mbx_id)) {
97 * @hw: pointer to the HW structure
105 static s32 igbvf_read_posted_mbx(struct e1000_hw *hw, u3 argument
135 igbvf_write_posted_mbx(struct e1000_hw *hw, u32 *msg, u16 size, u16 mbx_id) argument
163 igbvf_init_mbx_ops_generic(struct e1000_hw *hw) argument
177 igbvf_read_v2p_mailbox(struct e1000_hw *hw) argument
195 igbvf_check_for_bit_vf(struct e1000_hw *hw, u32 mask) argument
215 igbvf_check_for_msg_vf(struct e1000_hw *hw, u16 mbx_id __unused) argument
236 igbvf_check_for_ack_vf(struct e1000_hw *hw, u16 mbx_id __unused) argument
257 igbvf_check_for_rst_vf(struct e1000_hw *hw, u16 mbx_id __unused) argument
278 igbvf_obtain_mbx_lock_vf(struct e1000_hw *hw) argument
303 igbvf_write_mbx_vf(struct e1000_hw *hw, u32 *msg, u16 size, u16 mbx_id __unused) argument
344 igbvf_read_mbx_vf(struct e1000_hw *hw, u32 *msg, u16 size, u16 mbx_id __unused) argument
377 igbvf_init_mbx_params_vf(struct e1000_hw *hw) argument
[all...]
H A Digbvf_vf.c34 static s32 igbvf_init_mac_params_vf(struct e1000_hw *hw);
35 static s32 igbvf_check_for_link_vf(struct e1000_hw *hw);
36 static s32 igbvf_get_link_up_info_vf(struct e1000_hw *hw, u16 *speed,
38 static s32 igbvf_init_hw_vf(struct e1000_hw *hw);
39 static s32 igbvf_reset_hw_vf(struct e1000_hw *hw);
40 static void igbvf_update_mc_addr_list_vf(struct e1000_hw *hw, u8 *, u32);
46 * @hw: pointer to the HW structure
48 static s32 igbvf_init_mac_params_vf(struct e1000_hw *hw) argument
50 struct e1000_mac_info *mac = &hw->mac;
62 /* hw initializatio
83 igbvf_init_function_pointers_vf(struct e1000_hw *hw) argument
100 igbvf_get_link_up_info_vf(struct e1000_hw *hw, u16 *speed, u16 *duplex) argument
137 igbvf_reset_hw_vf(struct e1000_hw *hw) argument
186 igbvf_init_hw_vf(struct e1000_hw *hw) argument
202 igbvf_rar_set_vf(struct e1000_hw *hw, u8 * addr, u32 index __unused) argument
234 igbvf_hash_mc_addr_vf(struct e1000_hw *hw, u8 *mc_addr) argument
266 igbvf_update_mc_addr_list_vf(struct e1000_hw *hw, u8 *mc_addr_list, u32 mc_addr_count) argument
313 igbvf_vfta_set_vf(struct e1000_hw *hw, u16 vid, bool set) argument
331 igbvf_rlpml_set_vf(struct e1000_hw *hw, u16 max_size) argument
348 igbvf_promisc_set_vf(struct e1000_hw *hw, enum e1000_promisc_type type) argument
383 igbvf_read_mac_addr_vf(struct e1000_hw *hw) argument
401 igbvf_check_for_link_vf(struct e1000_hw *hw) argument
[all...]
H A Digbvf_main.c115 struct e1000_hw *hw = &adapter->hw; local
156 struct e1000_hw *hw = &adapter->hw; local
167 struct e1000_hw *hw = &adapter->hw; local
247 struct e1000_hw *hw = &adapter->hw; local
331 * @hw: pointer to the HW structure
337 void igbvf_config_collision_dist ( struct e1000_hw *hw )
360 struct e1000_hw *hw = &adapter->hw; local
430 struct e1000_hw *hw = &adapter->hw; local
455 struct e1000_hw *hw = &adapter->hw; local
498 struct e1000_hw *hw = &adapter->hw; local
525 struct e1000_hw *hw = &adapter->hw; local
667 struct e1000_hw *hw = &adapter->hw; local
698 struct e1000_hw *hw = &adapter->hw; local
763 struct e1000_hw *hw = &adapter->hw; local
788 struct e1000_hw *hw; local
[all...]
H A Digbvf.h234 struct e1000_hw hw;
273 struct e1000_hw hw; member in struct:igbvf_adapter
364 static inline u32 __er32(struct e1000_hw *hw, unsigned long reg) argument
366 return readl(hw->hw_addr + reg);
369 static inline void __ew32(struct e1000_hw *hw, unsigned long reg, u32 val) argument
371 writel(val, hw->hw_addr + reg);
373 #define er32(reg) E1000_READ_REG(hw, E1000_##reg)
374 #define ew32(reg,val) E1000_WRITE_REG(hw, E1000_##reg, (val))
/vbox/src/VBox/Devices/PC/ipxe/src/drivers/net/ath/ath9k/
H A Dath9k_ar9003_mac.c21 #include "hw.h"
24 static void ar9003_hw_rx_enable(struct ath_hw *hw) argument
26 REG_WRITE(hw, AR_CR, 0);
500 void ar9003_hw_attach_mac_ops(struct ath_hw *hw) argument
502 struct ath_hw_ops *ops = ath9k_hw_ops(hw);
/vbox/src/VBox/Devices/EFI/Firmware/StdLib/LibC/Stdio/
H A Dvfscanf.c801 short hw; member in union:__anon13031
816 *va_arg(ap, short *) = res.hw;
/vbox/src/VBox/Main/src-client/
H A DDrvAudioVideoRec.cpp180 static int audio_pcm_hw_find_min_out (PPDMAUDIOHSTSTRMOUT hw, int *nb_livep) argument
187 RTListForEach(&hw->lstGstStrmOut, pIter, PDMAUDIOGSTSTRMOUT, Node)
201 static int audio_pcm_hw_get_live_out2 (PPDMAUDIOHSTSTRMOUT hw, int *nb_live) argument
205 smin = audio_pcm_hw_find_min_out (hw, nb_live);
214 if (live < 0 || live > hw->cSamples)
216 LogFlowFunc(("Error: live=%d hw->samples=%d\n", live, hw->cSamples));
224 static int audio_pcm_hw_get_live_out (PPDMAUDIOHSTSTRMOUT hw) argument
229 live = audio_pcm_hw_get_live_out2 (hw, &nb_live);
230 if (live < 0 || live > hw
241 audio_pcm_hw_find_min_in(PPDMAUDIOHSTSTRMIN hw) argument
256 audio_pcm_hw_get_live_in(PPDMAUDIOHSTSTRMIN hw) argument
535 drvAudioVideoRecFiniIn(PPDMIHOSTAUDIO pInterface, PPDMAUDIOHSTSTRMIN hw) argument
552 drvAudioVideoRecControlOut(PPDMIHOSTAUDIO pInterface, PPDMAUDIOHSTSTRMOUT hw, PDMAUDIOSTREAMCMD enmStreamCmd) argument
[all...]

Completed in 213 milliseconds

12