Home
last modified time | relevance | path

Searched refs:device (Results 976 - 1000 of 2783) sorted by relevance

1...<<31323334353637383940>>...112

/third_party/skia/third_party/externals/dawn/src/dawn_native/
H A DBuffer.cpp53 ErrorBuffer(DeviceBase* device, const BufferDescriptor* descriptor) in ErrorBuffer() argument
54 : BufferBase(device, descriptor, ObjectBase::kError) { in ErrorBuffer()
68 // for destruction on the device. in ErrorBuffer()
130 BufferBase::BufferBase(DeviceBase* device, const BufferDescriptor* descriptor) in BufferBase() argument
131 : ApiObjectBase(device, descriptor->label), in BufferBase()
162 BufferBase::BufferBase(DeviceBase* device, in BufferBase() argument
165 : ApiObjectBase(device, tag), mSize(descriptor->size), mState(BufferState::Unmapped) { in BufferBase()
173 BufferBase::BufferBase(DeviceBase* device, BufferState state) in BufferBase() argument
174 : ApiObjectBase(device, kLabelNotImplemented), mState(state) { in BufferBase()
196 BufferBase* BufferBase::MakeError(DeviceBase* device, cons argument
240 DeviceBase* device = GetDevice(); MapAtCreation() local
[all...]
H A DDawnNative.cpp34 std::vector<const char*> GetTogglesUsed(WGPUDevice device) { in GetTogglesUsed() argument
35 return FromAPI(device)->GetTogglesUsed(); in GetTogglesUsed()
201 size_t GetLazyClearCountForTesting(WGPUDevice device) { in GetLazyClearCountForTesting() argument
202 return FromAPI(device)->GetLazyClearCountForTesting(); in GetLazyClearCountForTesting()
205 size_t GetDeprecationWarningCountForTesting(WGPUDevice device) { in GetDeprecationWarningCountForTesting() argument
206 return FromAPI(device)->GetDeprecationWarningCountForTesting(); in GetDeprecationWarningCountForTesting()
229 DAWN_NATIVE_EXPORT bool DeviceTick(WGPUDevice device) { in DeviceTick() argument
230 return FromAPI(device)->APITick(); in DeviceTick()
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
H A DShaderModuleGL.cpp70 const DeviceBase* device, in ExtractSpirvInfo()
78 [](const DeviceBase* device, in ExtractSpirvInfo()
169 const Format& format = device->GetValidInternalFormat(storageTextureFormat); in ExtractSpirvInfo()
199 DAWN_TRY(ExtractResourcesBinding(device, resources.uniform_buffers, compiler, in ExtractSpirvInfo()
201 DAWN_TRY(ExtractResourcesBinding(device, resources.separate_images, compiler, in ExtractSpirvInfo()
203 DAWN_TRY(ExtractResourcesBinding(device, resources.separate_samplers, compiler, in ExtractSpirvInfo()
205 DAWN_TRY(ExtractResourcesBinding(device, resources.storage_buffers, compiler, in ExtractSpirvInfo()
208 DAWN_TRY(ExtractResourcesBinding(device, resources.storage_images, compiler, in ExtractSpirvInfo()
215 ResultOrError<Ref<ShaderModule>> ShaderModule::Create(Device* device, in Create() argument
218 Ref<ShaderModule> module = AcquireRef(new ShaderModule(device, descripto in Create()
69 ExtractSpirvInfo( const DeviceBase* device, const spirv_cross::Compiler& compiler, const std::string& entryPointName, SingleShaderStage stage) ExtractSpirvInfo() argument
223 ShaderModule(Device* device, const ShaderModuleDescriptor* descriptor) ShaderModule() argument
228 ReflectShaderUsingSPIRVCross( DeviceBase* device, const std::vector<uint32_t>& spirv) ReflectShaderUsingSPIRVCross() argument
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/multiview/
H A DvktMultiViewRenderUtil.cpp136 const VkDevice device) in makeDescriptorSetLayout()
155 return vk::createDescriptorSetLayout(vk, device, &createInfo); in makeDescriptorSetLayout()
160 const VkDevice device, in makeRenderPass()
310 return renderPassInfo.createRenderPass(vk, device); in makeRenderPass()
317 const VkDevice device,
328 const VkDevice device,
337 Move<VkRenderPass> makeRenderPassWithDepth (const DeviceInterface& vk, const VkDevice device, const VkFormat colorFormat, const vector<deUint32>& viewMasks, const VkFormat dsFormat) in makeRenderPassWithDepth() argument
339 return makeRenderPass<AttachmentDesc, AttachmentRef, SubpassDesc, SubpassDep, RenderPassCreateInfo>(vk, device, colorFormat, viewMasks, VK_SAMPLE_COUNT_1_BIT, VK_ATTACHMENT_LOAD_OP_CLEAR, dsFormat); in makeRenderPassWithDepth()
346 const VkDevice device,
355 const VkDevice device,
135 makeDescriptorSetLayout(const DeviceInterface& vk, const VkDevice device) makeDescriptorSetLayout() argument
159 makeRenderPass(const DeviceInterface& vk, const VkDevice device, const VkFormat colorFormat, const vector<deUint32>& viewMasks, const VkSampleCountFlagBits samples, const VkAttachmentLoadOp colorLoadOp, const VkFormat dsFormat) makeRenderPass() argument
361 makeRenderPassWithAttachments(const DeviceInterface& vk, const VkDevice device, const VkFormat colorFormat, const vector<deUint32>& viewMasks, bool useAspects) makeRenderPassWithAttachments() argument
[all...]
/third_party/mesa3d/src/amd/vulkan/
H A Dradv_debug.h88 bool radv_init_trace(struct radv_device *device);
89 void radv_finish_trace(struct radv_device *device);
95 void radv_dump_enabled_options(struct radv_device *device, FILE *f);
97 bool radv_trap_handler_init(struct radv_device *device);
98 void radv_trap_handler_finish(struct radv_device *device);
/third_party/ltp/testcases/kernel/device-drivers/uaccess/
H A Dltp_uaccess.c23 #include <linux/device.h>
42 static void device_release(struct device *dev) in device_release()
44 prk_info("device released"); in device_release()
47 static struct device tdev = {
52 static ssize_t sys_result(struct device *dev, in sys_result()
60 static ssize_t sys_tcase(struct device *dev, in sys_tcase()
104 prk_err("Unable to register device"); in uaccess_init()
107 prk_info("device registered"); in uaccess_init()
/third_party/mesa3d/src/imagination/vulkan/
H A Dpvr_job_compute.c48 submit_info->frame_num = ctx->device->global_queue_present_count; in pvr_compute_job_ws_submit_info_init()
49 submit_info->job_num = ctx->device->global_queue_job_count; in pvr_compute_job_ws_submit_info_init()
95 struct pvr_device *device = ctx->device; in pvr_compute_job_submit() local
104 return device->ws->ops->compute_submit(ctx->ws_ctx, in pvr_compute_job_submit()
/third_party/pulseaudio/src/pulsecore/
H A Drandom.c67 const char *const * device; in random_proper()
72 device = devices; in random_proper()
74 while (*device) { in random_proper()
77 if ((fd = pa_open_cloexec(*device, O_RDONLY, 0)) >= 0) { in random_proper()
89 device++; in random_proper()
/third_party/skia/third_party/externals/angle2/src/gpu_info_util/
H A DSystemInfo_win.cpp70 GPUDeviceInfo device; in GetDevicesFromDXGI() local
71 device.vendorId = desc.VendorId; in GetDevicesFromDXGI()
72 device.deviceId = desc.DeviceId; in GetDevicesFromDXGI()
73 device.driverVersion = o.str(); in GetDevicesFromDXGI()
75 devices->push_back(device); in GetDevicesFromDXGI()
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
H A DQuerySetVk.cpp69 ResultOrError<Ref<QuerySet>> QuerySet::Create(Device* device, in Create() argument
71 Ref<QuerySet> queryset = AcquireRef(new QuerySet(device, descriptor)); in Create()
88 Device* device = ToBackend(GetDevice()); in Initialize() local
90 device->fn.CreateQueryPool(device->GetVkDevice(), &createInfo, nullptr, &*mHandle), in Initialize()
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
H A DRenderAttachmentTests.cpp25 wgpu::ShaderModule vsModule = utils::CreateShaderModule(device, R"( in TEST_P()
31 wgpu::ShaderModule fsModule = utils::CreateShaderModule(device, R"( in TEST_P()
57 wgpu::RenderPipeline pipeline = device.CreateRenderPipeline(&pipelineDesc); in TEST_P()
59 wgpu::CommandEncoder encoder = device.CreateCommandEncoder(); in TEST_P()
66 wgpu::Texture renderTarget = device.CreateTexture(&textureDesc); in TEST_P()
H A DClipSpaceTests.cpp28 pipelineDescriptor.vertex.module = utils::CreateShaderModule(device, R"( in CreatePipelineForTest()
41 pipelineDescriptor.cFragment.module = utils::CreateShaderModule(device, R"( in CreatePipelineForTest()
49 return device.CreateRenderPipeline(&pipelineDescriptor); in CreatePipelineForTest()
61 return device.CreateTexture(&textureDescriptor); in Create2DTextureForTest()
83 wgpu::CommandEncoder commandEncoder = device.CreateCommandEncoder(); in TEST_P()
H A DPrimitiveStateTests.cpp34 renderTarget = device.CreateTexture(&renderTargetDescriptor);
43 depthTexture = device.CreateTexture(&depthDescriptor);
47 vsModule = utils::CreateShaderModule(device, R"(
58 fsModule = utils::CreateShaderModule(device, R"(
89 wgpu::CommandEncoder encoder = device.CreateCommandEncoder(); in DoTest()
108 wgpu::Buffer buffer = utils::CreateBufferFromData(device, &data, sizeof(TriangleData), in DoTest()
122 wgpu::RenderPipeline pipeline = device.CreateRenderPipeline(&descriptor); in DoTest()
126 device, pipeline.GetBindGroupLayout(0), {{0, buffer}}); in DoTest()
/third_party/skia/third_party/externals/dawn/src/include/dawn_native/
H A DD3D12Backend.h35 DAWN_NATIVE_EXPORT Microsoft::WRL::ComPtr<ID3D12Device> GetD3D12Device(WGPUDevice device);
36 DAWN_NATIVE_EXPORT DawnSwapChainImplementation CreateNativeSwapChainImpl(WGPUDevice device,
46 DAWN_NATIVE_EXPORT uint64_t SetExternalMemoryReservation(WGPUDevice device,
72 WGPUDevice device,
75 WGPUTexture ProduceTexture(WGPUDevice device,
/third_party/toybox/toys/other/
H A Dnbd_client.c1 /* nbd-client.c - network block device client
44 char *host=toys.optargs[0], *port=toys.optargs[1], *device=toys.optargs[2]; in nbd_client_main() local
49 nbd = xopen(device, O_RDWR); in nbd_client_main()
81 // Open the device to force reread of the partition table. in nbd_client_main()
83 char *s = strrchr(device, '/'); in nbd_client_main()
86 sprintf(toybuf, "/sys/block/%.32s/pid", s ? s+1 : device); in nbd_client_main()
96 close(open(device, O_RDONLY)); in nbd_client_main()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/memory/
H A DvktMemoryMappingTests.cpp99 void mapMemoryWrapper(const DeviceInterface& vkd, VkDevice device, vk::VkDeviceMemory memory, VkDeviceSize mappingOffset, VkDeviceSize mappingSize, void** ptr, bool useMap2) in mapMemoryWrapper() argument
103 VK_CHECK(vkd.mapMemory(device, memory, mappingOffset, mappingSize, 0u, ptr)); in mapMemoryWrapper()
116 VK_CHECK(vkd.mapMemory2KHR(device, &info, ptr)); in mapMemoryWrapper()
120 void unmapMemoryWrapper(const DeviceInterface& vkd, VkDevice device, vk::VkDeviceMemory memory, bool useMap2) in unmapMemoryWrapper() argument
124 vkd.unmapMemory(device, memory); in unmapMemoryWrapper()
134 VK_CHECK(vkd.unmapMemory2KHR(device, &unmap)); in unmapMemoryWrapper()
323 size_t computeDeviceMemorySystemMemFootprint (const DeviceInterface& vk, VkDevice device)
336 const Unique<VkDeviceMemory> memory (allocateMemory(vk, device, &allocInfo, callbackRecorder.getCallbacks()));
348 Move<VkImage> makeImage (const DeviceInterface& vk, VkDevice device, VkDeviceSize size, deUint32 queueFamilyIndex)
397 return createImage(vk, device,
[all...]
/third_party/ltp/testcases/kernel/syscalls/renameat/
H A Drenameat01.c85 static const char *device; variable
143 device = tst_acquire_device(cleanup); in setup()
145 if (!device) in setup()
146 tst_brkm(TCONF, cleanup, "Failed to obtain block device"); in setup()
178 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup()
180 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, 0, NULL); in setup()
183 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, MS_REMOUNT | MS_RDONLY, in setup()
242 if (device) in cleanup()
243 tst_release_device(device); in cleanup()
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/
H A DvkWsiUtil.hpp116 VkDevice device,
142 const VkDevice device,
170 const VkDevice device,
175 VkDevice device);
178 const VkDevice device,
185 const VkDevice device,
190 const VkDevice device,
196 VkDevice device,
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/
H A DVertexDeclarationCache.cpp49 IDirect3DDevice9 *device, in applyDeclaration()
105 device->GetDeviceCaps(&caps); in applyDeclaration()
152 device->SetStreamSourceFreq(stream, frequency); in applyDeclaration()
166 device->SetStreamSource(stream, vertexBuffer->getBuffer(), offset, in applyDeclaration()
194 device->SetStreamSourceFreq(i, 1); in applyDeclaration()
214 device->SetVertexDeclaration(entry->vertexDeclaration); in applyDeclaration()
240 HRESULT result = device->CreateVertexDeclaration(elements, &lastCache->vertexDeclaration); in applyDeclaration()
244 device->SetVertexDeclaration(lastCache->vertexDeclaration); in applyDeclaration()
47 applyDeclaration( const gl::Context *context, IDirect3DDevice9 *device, const std::vector<TranslatedAttribute> &attributes, gl::Program *program, GLint start, GLsizei instances, GLsizei *repeatDraw) applyDeclaration() argument
/third_party/ffmpeg/libavfilter/
H A Dvf_hwmap.c59 AVBufferRef *device; in hwmap_config_output() local
69 device = avctx->hw_device_ctx; in hwmap_config_output()
80 av_log(avctx, AV_LOG_ERROR, "Invalid device type.\n"); in hwmap_config_output()
85 err = av_hwdevice_ctx_create_derived(&device, type, in hwmap_config_output()
89 "device context: %d.\n", err); in hwmap_config_output()
107 if (!device) { in hwmap_config_output()
108 av_log(avctx, AV_LOG_ERROR, "A device reference is " in hwmap_config_output()
116 device, in hwmap_config_output()
135 ctx->hwframes_ref = av_hwframe_ctx_alloc(device); in hwmap_config_output()
206 if (!device) { in hwmap_config_output()
[all...]
/third_party/skia/src/gpu/vk/
H A DGrVkMemory.cpp80 GR_VK_CALL_RESULT(gpu, err, BindBufferMemory(gpu->device(), buffer, alloc->fMemory,
95 VkDevice device = gpu->device(); local
97 VK_CALL(gpu, GetBufferMemoryRequirements(device, buffer, &memReqs));
125 GR_VK_CALL_RESULT(gpu, err, AllocateMemory(device, &allocateInfo, nullptr, &memory));
131 GR_VK_CALL_RESULT(gpu, err, BindBufferMemory(device, buffer, memory, 0));
133 VK_CALL(gpu, FreeMemory(device, memory, nullptr));
151 VK_CALL(gpu, FreeMemory(gpu->device(), alloc.fMemory, nullptr));
179 GR_VK_CALL(gpu->vkInterface(), GetImageMemoryRequirements(gpu->device(), image, &memReqs));
220 GR_VK_CALL_RESULT(gpu, err, BindImageMemory(gpu->device(), imag
[all...]
/third_party/skia/tests/
H A DSurfaceSemaphoreTest.cpp140 VkDevice device = gpu->device(); in surface_semaphore_test() local
148 GR_VK_CALL_ERRCHECK(gpu, CreateSemaphore(device, &createInfo, nullptr, &vkSem)); in surface_semaphore_test()
271 VkDevice device = gpu->device(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
285 VkResult err = GR_VK_CALL(interface, AllocateCommandBuffers(device, &cmdInfo, &cmdBuffer)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
305 err = GR_VK_CALL(interface, CreateFence(device, &fenceInfo, nullptr, &fence)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
323 err = GR_VK_CALL(interface, WaitForFences(device, 1, &fence, true, 3000000000)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
327 GR_VK_CALL(interface, DestroyFence(device, fence, nullptr)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
328 GR_VK_CALL(interface, DestroySemaphore(device, vkSe in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/dynamic_state/
H A DvktDynamicStateDiscardTests.cpp61 const VkPhysicalDevice device) in pickSupportedStencilFormat()
74 instanceInterface.getPhysicalDeviceFormatProperties(device, stencilFormats[i], &formatProps); in pickSupportedStencilFormat()
95 virtual void initRenderPass (const vk::VkDevice device);
96 virtual void initFramebuffer (const vk::VkDevice device);
97 virtual void initPipeline (const vk::VkDevice device);
125 const vk::VkDevice device = m_context.getDevice(); in DiscardTestInstance() local
130 m_depthStencilImage = Image::createAndAlloc(m_vk, device, stencilImageCreateInfo, m_context.getDefaultAllocator(), m_context.getUniversalQueueFamilyIndex()); in DiscardTestInstance()
133 m_depthStencilView = vk::createImageView(m_vk, device, &stencilViewInfo); in DiscardTestInstance()
152 m_otherSetLayout = vk::createDescriptorSetLayout(m_vk, device, &descriptorSetLayoutCreateInfo); in DiscardTestInstance()
155 void DiscardTestInstance::initRenderPass (const vk::VkDevice device) in initRenderPass() argument
60 pickSupportedStencilFormat(const InstanceInterface& instanceInterface, const VkPhysicalDevice device) pickSupportedStencilFormat() argument
204 initFramebuffer(const vk::VkDevice device) initFramebuffer() argument
215 initPipeline(const vk::VkDevice device) initPipeline() argument
315 const vk::VkDevice device = m_context.getDevice(); iterate() local
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/dynamic_state/
H A DvktDynamicStateDiscardTests.cpp60 const VkPhysicalDevice device) in pickSupportedStencilFormat()
73 instanceInterface.getPhysicalDeviceFormatProperties(device, stencilFormats[i], &formatProps); in pickSupportedStencilFormat()
94 virtual void initRenderPass (const vk::VkDevice device);
95 virtual void initFramebuffer (const vk::VkDevice device);
96 virtual void initPipeline (const vk::VkDevice device);
124 const vk::VkDevice device = m_context.getDevice(); in DiscardTestInstance() local
129 m_depthStencilImage = Image::createAndAlloc(m_vk, device, stencilImageCreateInfo, m_context.getDefaultAllocator(), m_context.getUniversalQueueFamilyIndex()); in DiscardTestInstance()
132 m_depthStencilView = vk::createImageView(m_vk, device, &stencilViewInfo); in DiscardTestInstance()
151 m_otherSetLayout = vk::createDescriptorSetLayout(m_vk, device, &descriptorSetLayoutCreateInfo); in DiscardTestInstance()
154 void DiscardTestInstance::initRenderPass (const vk::VkDevice device) in initRenderPass() argument
59 pickSupportedStencilFormat(const InstanceInterface& instanceInterface, const VkPhysicalDevice device) pickSupportedStencilFormat() argument
203 initFramebuffer(const vk::VkDevice device) initFramebuffer() argument
214 initPipeline(const vk::VkDevice device) initPipeline() argument
314 const vk::VkDevice device = m_context.getDevice(); iterate() local
[all...]
/third_party/backends/backend/escl/
H A Descl_capabilities.c426 print_xml_c(xmlNode *node, ESCL_Device *device, capabilities_t *scanner, int type) in print_xml_c() argument
435 device->version = atof ((const char *)xmlNodeGetContent(node)); in print_xml_c()
438 device->model_name = strdup((const char *)xmlNodeGetContent(node)); in print_xml_c()
444 print_xml_c(node->children, device, scanner, PLATEN); in print_xml_c()
451 print_xml_c(node->children, device, scanner, ADFSIMPLEX); in print_xml_c()
458 print_xml_c(node->children, device, scanner, ADFDUPLEX); in print_xml_c()
462 print_xml_c(node->children, device, scanner, type); in print_xml_c()
524 * \fn capabilities_t *escl_capabilities(const ESCL_Device *device, SANE_Status *status)
532 escl_capabilities(ESCL_Device *device, char *blacklist, SANE_Status *status) in escl_capabilities() argument
545 if (device in escl_capabilities()
[all...]

Completed in 13 milliseconds

1...<<31323334353637383940>>...112