/reactos/dll/directx/wine/dsound/ |
H A D | primary.c | 63 device->helfrags = device->buflen / device->fraglen; in DSOUND_RecalcPrimary() 154 &(device->buflen),&(device->buffer), in DSOUND_PrimaryOpen() 185 device->prebuf = device->helfrags; in DSOUND_PrimaryOpen() 188 device->mix_buffer_len = DSOUND_bufpos_to_mixpos(device, device->buflen); in DSOUND_PrimaryOpen() 243 device->pwave[c].lpData = (char*)device->buffer + c*device->fraglen; in DSOUND_PrimaryOpen() 256 overshot = device->buflen % device->fraglen; in DSOUND_PrimaryOpen() 270 device->pwplay = device->pwqueue = device->playpos = device->mixpos = 0; in DSOUND_PrimaryOpen() 423 *writepos = ((device->pwplay + device->pwqueue) % device->helfrags) * device->fraglen; in DSOUND_PrimaryGetPosition() 537 device->pwplay = device->pwqueue = device->playpos = device->mixpos = 0; in primarybuffer_SetFormat() 571 device->mix_buffer_len = DSOUND_bufpos_to_mixpos(device, device->buflen); in primarybuffer_SetFormat() [all …]
|
H A D | mixer.c | 274 DirectSoundDevice *device = dsb->device; in cp_fields() local 731 wave_fragpos = (device->pwplay + device->pwqueue) % device->helfrags; in DSOUND_WaveQueue() 811 playpos,writepos,device->playpos,device->mixpos,device->buflen); in DSOUND_PerformMix() 812 assert(device->playpos < device->buflen); in DSOUND_PerformMix() 820 prebuff_max += device->buflen - device->helfrags * device->fraglen; in DSOUND_PerformMix() 842 buf1 = device->buffer + device->playpos; in DSOUND_PerformMix() 844 size1 = device->buflen - device->playpos; in DSOUND_PerformMix() 857 buf1 = device->buffer + device->playpos; in DSOUND_PerformMix() 891 device->normfunction(device->mix_buffer, device->buffer, frag - todo); in DSOUND_PerformMix() 898 device->mixpos %= device->buflen; in DSOUND_PerformMix() [all …]
|
H A D | capture.c | 340 …pos = (DWORD_PTR)This->device->pwave[This->device->index].lpData - (DWORD_PTR)This->device->buffer; in IDirectSoundCaptureBufferImpl_GetCurrentPosition() 548 DirectSoundCaptureDevice *device = This->device; in IDirectSoundCaptureBufferImpl_Start() local 553 device->nrofpwaves = device->buflen / blocksize + !!(device->buflen % blocksize); in IDirectSoundCaptureBufferImpl_Start() 558 …device->pwave = HeapReAlloc(GetProcessHeap(), 0,device->pwave, device->nrofpwaves*sizeof(WAVEHDR)); in IDirectSoundCaptureBufferImpl_Start() 569 device->pwave[c].dwUser = (DWORD_PTR)device; in IDirectSoundCaptureBufferImpl_Start() 589 … FillMemory(device->buffer, device->buflen, (device->pwfx->wBitsPerSample == 8) ? 128 : 0); in IDirectSoundCaptureBufferImpl_Start() 820 if (!device) { in IDirectSoundCaptureBufferImpl_Create() 875 This->device = device; in IDirectSoundCaptureBufferImpl_Create() 925 device->pwfx,0,0,&(device->buflen),&(device->buffer),(LPVOID*)&(device->hwbuf)); in IDirectSoundCaptureBufferImpl_Create() 936 device->drvdesc.dnDevNode, device->pwfx, in IDirectSoundCaptureBufferImpl_Create() [all …]
|
H A D | dsound.c | 302 pDS->device = NULL; in IDirectSoundImpl_Create() 1195 device->pwfx->nBlockAlign = device->pwfx->wBitsPerSample * device->pwfx->nChannels / 8; in DirectSoundDevice_Create() 1196 device->pwfx->nAvgBytesPerSec = device->pwfx->nSamplesPerSec * device->pwfx->nBlockAlign; in DirectSoundDevice_Create() 1401 hr = IDsDriver_GetCaps(device->driver,&(device->drvcaps)); in DirectSoundDevice_Initialize() 1413 ZeroMemory(&device->drvcaps, sizeof(device->drvcaps)); in DirectSoundDevice_Initialize() 1450 ZeroMemory(&device->volpan, sizeof(device->volpan)); in DirectSoundDevice_Initialize() 1458 DSOUND_renderer[device->drvdesc.dnDevNode] = device; in DirectSoundDevice_Initialize() 1535 hres = primarybuffer_create(device, &device->primary, dsbd); in DirectSoundDevice_CreateSoundBuffer() 1779 device->buffers[device->nrofbuffers] = pDSB; in DirectSoundDevice_AddBuffer() 1813 device->buffers[i] = device->buffers[device->nrofbuffers - 1]; in DirectSoundDevice_RemoveBuffer() [all …]
|
H A D | sound3d.c | 245 vLeft = VectorProduct(&dsb->device->ds3dl.vOrientFront, &dsb->device->ds3dl.vOrientTop); in DSOUND_Calc3DBuffer() 775 This->device->listener = 0; in IDirectSound3DListenerImpl_Release() 803 *lpDS3DL = This->device->ds3dl; in IDirectSound3DListenerImpl_GetAllParameter() 834 …This->device->ds3dl.vOrientFront.y, This->device->ds3dl.vOrientFront.z, This->device->ds3dl.vOrien… in IDirectSound3DListenerImpl_GetOrientation() 835 This->device->ds3dl.vOrientTop.z); in IDirectSound3DListenerImpl_GetOrientation() 846 … Position vector = (%f,%f,%f)\n", This->device->ds3dl.vPosition.x, This->device->ds3dl.vPosition.y… in IDirectSound3DListenerImpl_GetPosition() 866 … Velocity vector = (%f,%f,%f)\n", This->device->ds3dl.vVelocity.x, This->device->ds3dl.vVelocity.y… in IDirectSound3DListenerImpl_GetVelocity() 878 This->device->ds3dl = *lpcDS3DL; in IDirectSound3DListenerImpl_SetAllParameters() 1035 DirectSoundDevice * device, in IDirectSound3DListenerImpl_Create() argument 1039 TRACE("(%p,%p)\n",device,ppdsl); in IDirectSound3DListenerImpl_Create() [all …]
|
/reactos/drivers/bus/acpi/busmgr/ |
H A D | bus.c | 242 device->pnp.bus_id, device->power.state); in acpi_bus_get_power() 626 while ((device = device->parent)) { in acpi_bus_walk() 730 device ? device->pnp.bus_id : "n/a"); in acpi_bus_notify() 740 device ? device->pnp.bus_id : "n/a"); in acpi_bus_notify() 750 device ? device->pnp.bus_id : "n/a"); in acpi_bus_notify() 760 device ? device->pnp.bus_id : "n/a"); in acpi_bus_notify() 766 device ? device->pnp.bus_id : "n/a"); in acpi_bus_notify() 772 device ? device->pnp.bus_id : "n/a"); in acpi_bus_notify() 778 device ? device->pnp.bus_id : "n/a"); in acpi_bus_notify() 997 if (!device || device->driver) in acpi_bus_find_driver() [all …]
|
H A D | button.c | 73 if (!button || !button->device) in acpi_button_notify() 109 struct acpi_device *device) in acpi_button_add() argument 117 if (!device) in acpi_button_add() 125 button->device = device; in acpi_button_add() 126 button->handle = device->handle; in acpi_button_add() 170 acpi_device_hid(device))); in acpi_button_add() 182 power_button = device; in acpi_button_add() 191 sleep_button = device; in acpi_button_add() 199 lid_button = device; in acpi_button_add() 243 acpi_device_name(device), acpi_device_bid(device)); in acpi_button_add() [all …]
|
H A D | power.c | 73 struct acpi_device *device; member 78 struct acpi_device * device; member 219 ref->device = dev; in acpi_power_on() 453 if (!device) in acpi_power_get_inferred_state() 472 device->power.state = i; in acpi_power_get_inferred_state() 499 cl = &device->power.states[device->power.state].resources; in acpi_power_transition() 553 if (!device) in acpi_power_add() 560 resource->device = device; in acpi_power_add() 614 if (!device || !acpi_driver_data(device)) in acpi_power_remove() 637 if (!device || !acpi_driver_data(device)) in acpi_power_resume() [all …]
|
/reactos/dll/directx/wine/wined3d/ |
H A D | device.c | 193 …memmove(&device->contexts[i], &device->contexts[i + 1], (device->context_count - i) * sizeof(*devi… in device_context_remove() 194 …if (!(new_array = heap_realloc(device->contexts, device->context_count * sizeof(*device->contexts)… in device_context_remove() 860 if (device->style || device->exStyle) in wined3d_device_setup_fullscreen_window() 893 if (!device->style && !device->exStyle) in wined3d_device_restore_fullscreen_window() 909 window, device->style, device->exStyle); in wined3d_device_restore_fullscreen_window() 1107 if (!(device->swapchains = heap_calloc(device->swapchain_count, sizeof(*device->swapchains)))) in wined3d_device_init_3d() 3595 device->update_state = &device->state; in wined3d_device_end_stateblock() 4993 state_init(&device->state, &device->fb, &device->adapter->gl_info, 4995 device->update_state = &device->state; 5241 device->update_state = &device->state; [all …]
|
H A D | query.c | 51 query->device = device; in wined3d_query_init() 114 context = context_acquire(device, NULL, 0); in wined3d_fence_test() 170 const struct wined3d_device *device) in wined3d_fence_wait() argument 385 if (!query->device->cs->thread) in wined3d_query_get_data() 430 struct wined3d_device *device = query->device; in wined3d_occlusion_query_ops_poll() local 528 struct wined3d_device *device = query->device; in wined3d_occlusion_query_ops_issue() local 597 struct wined3d_device *device = query->device; in wined3d_timestamp_query_ops_poll() local 676 struct wined3d_device *device = query->device; in wined3d_so_statistics_query_ops_poll() local 715 struct wined3d_device *device = query->device; in wined3d_so_statistics_query_ops_issue() local 783 struct wined3d_device *device = query->device; in wined3d_pipeline_query_ops_poll() local [all …]
|
H A D | swapchain.c | 121 struct wined3d_device *device = swapchain->device; in wined3d_swapchain_decref() local 123 device->cs->ops->finish(device->cs, WINED3D_CS_QUEUE_DEFAULT); in wined3d_swapchain_decref() 322 struct wined3d_device *device = swapchain->device; in swapchain_blit() local 429 … swapchain->device->xScreenSpace + swapchain->device->cursorWidth - swapchain->device->xHotSpot, in swapchain_gl_present() 430 … swapchain->device->yScreenSpace + swapchain->device->cursorHeight - swapchain->device->yHotSpot, in swapchain_gl_present() 806 swapchain->device = device; in swapchain_init() 1151 struct wined3d_device *device = swapchain->device; in wined3d_swapchain_activate() local 1204 struct wined3d_device *device = swapchain->device; in wined3d_swapchain_resize_buffers() local 1300 struct wined3d_device *device = swapchain->device; in wined3d_swapchain_set_display_mode() local 1325 struct wined3d_device *device = swapchain->device; in wined3d_swapchain_resize_target() local [all …]
|
/reactos/base/services/nfsd/ |
H A D | pnfs_device.c | 59 InitializeCriticalSection(&device->device.lock); in file_device_create() 70 DeleteCriticalSection(&device->device.lock); in file_device_free() 171 EnterCriticalSection(&device->device.lock); in pnfs_file_device_list_invalidate() 174 if (device->device.layout_count) { in pnfs_file_device_list_invalidate() 208 EnterCriticalSection(&device->device.lock); in pnfs_file_device_get() 232 device->device.layout_count++; in pnfs_file_device_get() 234 device->device.layout_count); in pnfs_file_device_get() 238 LeaveCriticalSection(&device->device.lock); in pnfs_file_device_get() 249 EnterCriticalSection(&device->device.lock); in pnfs_file_device_put() 250 count = --device->device.layout_count; in pnfs_file_device_put() [all …]
|
/reactos/dll/directx/wine/d3drm/ |
H A D | device.c | 43 if (device->device) in d3drm_device_destroy() 46 IDirect3DDevice_Release(device->device); in d3drm_device_destroy() 56 if (device->ddraw) in d3drm_device_destroy() 61 heap_free(device); in d3drm_device_destroy() 131 device->ddraw = ddraw; in d3drm_device_init() 196 device->device = device1; in d3drm_device_init() 228 if (device->ddraw) in d3drm_device_set_ddraw_device_d3d() 243 device->ddraw = ddraw; in d3drm_device_set_ddraw_device_d3d() 246 device->device = d3d_device; in d3drm_device_set_ddraw_device_d3d() 1181 *d3d_device = device->device; in d3drm_device3_GetDirect3DDevice() [all …]
|
/reactos/dll/directx/wine/d3d8/ |
H A D | device.c | 484 if (device->inDestruction) in d3d8_device_Release() 517 heap_free(device); in d3d8_device_Release() 792 if (device->vertex_buffer) in d3d8_device_Reset() 798 if (device->index_buffer) in d3d8_device_Reset() 2163 if (device->vertex_buffer_size < min_size || !device->vertex_buffer) in d3d8_device_prepare_vertex_buffer() 2258 if (device->index_buffer_size < min_size || !device->index_buffer) in d3d8_device_prepare_index_buffer() 2367 wined3d_device_set_index_buffer(device->wined3d_device, device->index_buffer, in d3d8_device_DrawIndexedPrimitiveUP() 2489 if (device->declArraySize == device->numConvertedDecls) in d3d8_device_get_fvf_declaration() 3288 device->ref = 1; in device_init() 3301 &device->device_parent, &device->wined3d_device); in device_init() [all …]
|
/reactos/dll/directx/wine/ddraw/ |
H A D | device.c | 2103 device->vertex_size = get_flexible_vertex_size(device->vertex_type); in d3d_device3_Begin() 2213 if ((device->nb_vertices + 1) * device->vertex_size > device->buffer_size) in d3d_device3_Vertex() 2217 … device->buffer_size = device->buffer_size ? device->buffer_size * 2 : device->vertex_size * 3; in d3d_device3_Vertex() 2219 device->sysmem_vertex_buffer = heap_alloc(device->buffer_size); in d3d_device3_Vertex() 2222 … memcpy(device->sysmem_vertex_buffer, old_buffer, device->nb_vertices * device->vertex_size); in d3d_device3_Vertex() 2227 …memcpy(device->sysmem_vertex_buffer + device->nb_vertices++ * device->vertex_size, vertex, device-… in d3d_device3_Vertex() 3655 if (device->index_buffer_size < min_size || !device->index_buffer) in d3d_device_prepare_index_buffer() 3855 … device->vertex_type, device->sysmem_vertex_buffer, device->nb_vertices, device->render_flags); in d3d_device3_End() 6927 device->ref = 1; in d3d_device_init() 6929 device->hw = hw; in d3d_device_init() [all …]
|
/reactos/dll/directx/wine/d3d9/ |
H A D | device.c | 563 heap_free(device); in d3d9_device_Release() 906 if (device->vertex_buffer) in d3d9_device_reset() 913 if (device->index_buffer) in d3d9_device_reset() 1634 if (device->in_scene) in d3d9_device_StretchRect() 2685 if (device->vertex_buffer_size < min_size || !device->vertex_buffer) in d3d9_device_prepare_vertex_buffer() 2790 if (device->index_buffer_size < min_size || !device->index_buffer) in d3d9_device_prepare_index_buffer() 2907 wined3d_device_set_index_buffer(device->wined3d_device, device->index_buffer, in d3d9_device_DrawIndexedPrimitiveUP() 3052 if (device->fvf_decl_size == device->fvf_decl_count) in device_get_fvf_declaration() 4042 if (!device->d3d_parent) in device_parent_activate() 4188 device->refcount = 1; in device_init() [all …]
|
/reactos/modules/rostests/winetests/d3dcompiler_43/ |
H A D | hlsl.c | 206 hr = IDirect3DDevice9_BeginScene(device); in draw_quad_with_shader9() 214 hr = IDirect3DDevice9_EndScene(device); in draw_quad_with_shader9() 236 hr = IDirect3DDevice9_SetVertexShader(device, vshader); in setup_device9() 238 hr = IDirect3DDevice9_SetPixelShader(device, pshader); in setup_device9() 267 draw_quad_with_shader9(device, quad_geometry); in compute_shader_probe9() 360 ID3DXConstantTable_SetFloat(constants, device, "$u", u); in test_math() 490 ID3DXConstantTable_SetInt(constants, device, "i", 2); in test_float_vectors() 640 IDirect3DDevice9 *device; in START_TEST() local 652 if (!device) return; in START_TEST() 656 IDirect3DDevice9_GetDeviceCaps(device, &caps); in START_TEST() [all …]
|
/reactos/modules/rostests/winetests/winmm/ |
H A D | capture.c | 105 dev_name(device)); in check_position() 116 dev_name(device)); in check_position() 127 dev_name(device)); in check_position() 464 dev_name(device)); in wave_in_test_device() 483 dev_name(device)); in wave_in_test_device() 508 dev_name(device)); in wave_in_test_device() 533 dev_name(device)); in wave_in_test_device() 558 dev_name(device)); in wave_in_test_device() 586 dev_name(device)); in wave_in_test_device() 612 dev_name(device)); in wave_in_test_device() [all …]
|
H A D | wave.c | 211 const char * dev_name(int device) in dev_name() argument 214 if (device == WAVE_MAPPER) in dev_name() 216 sprintf(name, "%d", device); in dev_name() 547 dev_name(device)); in check_position() 558 dev_name(device)); in check_position() 569 dev_name(device)); in check_position() 1199 dev_name(device)); in wave_out_test_device() 1236 dev_name(device)); in wave_out_test_device() 1268 dev_name(device)); in wave_out_test_device() 1297 dev_name(device)); in wave_out_test_device() [all …]
|
/reactos/dll/directx/wine/d3dx9_36/ |
H A D | sprite.c | 55 IDirect3DDevice9 *device; member 135 if (sprite->device) in d3dx9_sprite_Release() 136 IDirect3DDevice9_Release(sprite->device); in d3dx9_sprite_Release() 147 TRACE("iface %p, device %p.\n", iface, device); in d3dx9_sprite_GetDevice() 149 if (!device) in d3dx9_sprite_GetDevice() 151 *device = sprite->device; in d3dx9_sprite_GetDevice() 152 IDirect3DDevice9_AddRef(sprite->device); in d3dx9_sprite_GetDevice() 276 IDirect3DDevice9_GetViewport(object->device, &vp); in set_states() 585 object->device=device; in D3DXCreateSprite() 586 IUnknown_AddRef(device); in D3DXCreateSprite() [all …]
|
H A D | render.c | 117 IDirect3DDevice9 *device; member 192 TRACE("(%p)->(%p)\n", iface, device); in D3DXRenderToSurface_GetDevice() 197 *device = render->device; in D3DXRenderToSurface_GetDevice() 220 IDirect3DDevice9 *device; in D3DXRenderToSurface_BeginScene() local 250 device = render->device; in D3DXRenderToSurface_BeginScene() 415 IDirect3DDevice9_AddRef(device); in D3DXCreateRenderToSurface() 416 render->device = device; in D3DXCreateRenderToSurface() 436 IDirect3DDevice9 *device; member 534 *device = render->device; in D3DXRenderToEnvMap_GetDevice() 793 IDirect3DDevice9_AddRef(device); in D3DXCreateRenderToEnvMap() [all …]
|
/reactos/modules/rostests/winetests/setupapi/ |
H A D | devinst.c | 250 SP_DEVINFO_DATA device = {sizeof(device)}; in check_device_info_() local 330 device.cbSize = sizeof(device); in test_device_info() 451 device.cbSize = sizeof(device); in test_get_device_instance_id() 504 device.cbSize = sizeof(device); in test_register_device_info() 615 device.cbSize = sizeof(device); in test_device_iface() 693 SP_DEVINFO_DATA device = {sizeof(device)}; in test_device_iface_detail() local 759 memset(&device, 0, sizeof(device)); in test_device_iface_detail() 760 device.cbSize = sizeof(device); in test_device_iface_detail() 782 SP_DEVINFO_DATA device = {sizeof(device)}; in test_device_key() local 887 SP_DEVINFO_DATA device = {sizeof(device)}; in test_register_device_iface() local [all …]
|
/reactos/dll/win32/devmgr/lang/ |
H A D | en-US.rc | 14 IDS_ENABLEDEVICE "Use this device (enable)" 15 IDS_DISABLEDEVICE "Do not use this device (disable)" 16 IDS_UNKNOWNDEVICE "Unknown device" 43 …IDS_DEV_DEVLOADER_FAILED2 "The %1 device loader(s) for this device could not load the device drive… 47 IDS_DEV_BOOT_CONFIG_CONFLICT "Another device is using the resources this device needs." 53 …_DEV_INVALID_DATA2 "This device is not working properly because the BIOS in the device is reportin… 65 IDS_DEV_DISABLED "This device is not started." 66 IDS_DEV_DISABLED2 "This device is disabled." 75 …IDS_DEV_HARDWARE_DISABLED "This device is disabled because the BIOS for the device did not give it… 77 …IDS_DEV_FAILED_ADD "This device is not working properly because ReactOS cannot load the drivers re… [all …]
|
H A D | he-IL.rc | 45 …IDS_DEV_DEVLOADER_FAILED2 "The %1 device loader(s) for this device could not load the device drive… 49 IDS_DEV_BOOT_CONFIG_CONFLICT "Another device is using the resources this device needs." 52 …_DEV_DEVLOADER_NOT_FOUND2 "This device is not working properly because the file %1 that loads the … 55 …_DEV_INVALID_DATA2 "This device is not working properly because the BIOS in the device is reportin… 57 …ped responding while attempting to start this device, and therefore will never attempt to start th… 67 IDS_DEV_DISABLED "This device is not started." 68 IDS_DEV_DISABLED2 "This device is disabled." 77 …IDS_DEV_HARDWARE_DISABLED "This device is disabled because the BIOS for the device did not give it… 79 …IDS_DEV_FAILED_ADD "This device is not working properly because ReactOS cannot load the drivers re… 89 …O_DEVICES "ReactOS successfully loaded the device driver for this hardware but cannot find the har… [all …]
|
/reactos/modules/rostests/winetests/dinput/ |
H A D | device.c | 118 IDirectInputDevice_Acquire(device); in test_object_info() 121 IDirectInputDevice_Unacquire(device); in test_object_info() 131 hr = IDirectInputDevice_Acquire(device); in test_object_info() 136 hr = IDirectInputDevice_Unacquire(device); in test_object_info() 161 hr = IDirectInputDevice_Acquire(device); in test_object_info() 166 hr = IDirectInputDevice_Unacquire(device); in test_object_info() 180 IDirectInputDeviceA *device, *obj = NULL; in enum_devices() local 203 IUnknown_Release(device); in enum_devices() 249 IDirectInputDeviceA *device = NULL; in device_tests() local 253 if (device) IUnknown_Release(device); in device_tests() [all …]
|