/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/ |
H A D | vktImageMultisampleLoadStoreTests.cpp | 306 const Allocation& alloc = constantsBuffer->getAllocation(); in test() local 307 deUint8* const basePtr = static_cast<deUint8*>(alloc.getHostPtr()); in test() 309 deMemset(alloc.getHostPtr(), 0, static_cast<size_t>(constantsBufferSizeBytes)); in test() 317 flushAlloc(vk, device, alloc); in test() 325 const Allocation& alloc = resultBuffer->getAllocation(); in test() local 326 deMemset(alloc.getHostPtr(), 0, static_cast<size_t>(resultBufferSizeBytes)); in test() 327 flushAlloc(vk, device, alloc); in test() 472 const Allocation& alloc = resultBuffer->getAllocation(); in test() local 473 invalidateAlloc(vk, device, alloc); in test() 476 const deInt32* pDataPtr = static_cast<deInt32*>(alloc in test() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/image/ |
H A D | vktImageMultisampleLoadStoreTests.cpp | 270 const Allocation& alloc = constantsBuffer->getAllocation(); in test() local 271 deUint8* const basePtr = static_cast<deUint8*>(alloc.getHostPtr()); in test() 273 deMemset(alloc.getHostPtr(), 0, static_cast<size_t>(constantsBufferSizeBytes)); in test() 281 flushAlloc(vk, device, alloc); in test() 289 const Allocation& alloc = resultBuffer->getAllocation(); in test() local 290 deMemset(alloc.getHostPtr(), 0, static_cast<size_t>(resultBufferSizeBytes)); in test() 291 flushAlloc(vk, device, alloc); in test() 436 const Allocation& alloc = resultBuffer->getAllocation(); in test() local 437 invalidateAlloc(vk, device, alloc); in test() 440 const deInt32* pDataPtr = static_cast<deInt32*>(alloc in test() [all...] |
/third_party/python/Modules/_io/ |
H A D | bytesio.c | 129 size_t alloc = PyBytes_GET_SIZE(self->buf); in resize_buffer() local 138 if (size < alloc / 2) { in resize_buffer() 140 alloc = size + 1; in resize_buffer() 142 else if (size < alloc) { in resize_buffer() 146 else if (size <= alloc * 1.125) { in resize_buffer() 148 alloc = size + (size >> 3) + (size < 9 ? 3 : 6); in resize_buffer() 152 alloc = size + 1; in resize_buffer() 155 if (alloc > ((size_t)-1) / sizeof(char)) in resize_buffer() 159 if (unshare_buffer(self, alloc) < 0) in resize_buffer() 163 if (_PyBytes_Resize(&self->buf, alloc) < in resize_buffer() [all...] |
H A D | stringio.c | 79 size_t alloc = self->buf_size; in resize_buffer() local 91 if (size < alloc / 2) { in resize_buffer() 93 alloc = size + 1; in resize_buffer() 95 else if (size < alloc) { in resize_buffer() 99 else if (size <= alloc * 1.125) { in resize_buffer() 101 alloc = size + (size >> 3) + (size < 9 ? 3 : 6); in resize_buffer() 105 alloc = size + 1; in resize_buffer() 108 if (alloc > PY_SIZE_MAX / sizeof(Py_UCS4)) in resize_buffer() 110 new_buf = (Py_UCS4 *)PyMem_Realloc(self->buf, alloc * sizeof(Py_UCS4)); in resize_buffer() 115 self->buf_size = alloc; in resize_buffer() [all...] |
/third_party/ffmpeg/libswresample/ |
H A D | resample.c | 145 static int build_filter(ResampleContext *c, void *filter, double factor, int tap_count, int alloc, int phase_count, int scale, in build_filter() argument 208 ((int16_t*)filter)[ph * alloc + i] = av_clip_int16(lrintf(tab[i] * scale / norm)); in build_filter() 211 ((int16_t*)filter)[(phase_count-ph) * alloc + tap_count-1-i] = ((int16_t*)filter)[ph * alloc + i]; in build_filter() 215 ((int32_t*)filter)[ph * alloc + i] = av_clipl_int32(llrint(tab[i] * scale / norm)); in build_filter() 218 ((int32_t*)filter)[(phase_count-ph) * alloc + tap_count-1-i] = ((int32_t*)filter)[ph * alloc + i]; in build_filter() 222 ((float*)filter)[ph * alloc + i] = tab[i] * scale / norm; in build_filter() 225 ((float*)filter)[(phase_count-ph) * alloc + tap_count-1-i] = ((float*)filter)[ph * alloc in build_filter() [all...] |
/third_party/mesa3d/src/amd/vulkan/ |
H A D | radv_meta_fast_clear.c | 102 radv_device_to_handle(device), &ds_create_info, &device->meta_state.alloc, in create_dcc_compress_compute() 116 radv_device_to_handle(device), &pl_create_info, &device->meta_state.alloc, in create_dcc_compress_compute() 162 &device->meta_state.alloc, layout); in create_pipeline_layout() 278 &device->meta_state.alloc, &device->meta_state.fast_clear_flush.cmask_eliminate_pipeline); in create_pipeline() 328 &device->meta_state.alloc, &device->meta_state.fast_clear_flush.fmask_decompress_pipeline); in create_pipeline() 380 &device->meta_state.alloc, &device->meta_state.fast_clear_flush.dcc_decompress_pipeline); in create_pipeline() 395 state->fast_clear_flush.dcc_decompress_pipeline, &state->alloc); in radv_device_finish_meta_fast_clear_flush_state() 397 state->fast_clear_flush.fmask_decompress_pipeline, &state->alloc); in radv_device_finish_meta_fast_clear_flush_state() 399 state->fast_clear_flush.cmask_eliminate_pipeline, &state->alloc); in radv_device_finish_meta_fast_clear_flush_state() 401 &state->alloc); in radv_device_finish_meta_fast_clear_flush_state() [all...] |
/third_party/skia/src/core/ |
H A D | SkVMBlitter.cpp | 102 skvm::Uniforms* uniforms, SkArenaAlloc* alloc) const override { 105 matrices,localM, dst, uniforms,alloc); 298 skvm::Uniforms* uniforms, SkArenaAlloc* alloc) { in BuildProgram() 316 params.dst, uniforms, alloc); in BuildProgram() 373 params.dst, uniforms, alloc); in BuildProgram() 398 src = blender->program(p, src, dst, params.dst, uniforms, alloc); in BuildProgram() 425 const Params& params, skvm::Uniforms* uniforms, SkArenaAlloc* alloc, bool* ok) { in CacheKey() 446 /*localM=*/nullptr, params.dst, uniforms, alloc); in CacheKey() 498 skvm::Color outColor = blender->program(&p, src, dst, params.dst, uniforms, alloc); in CacheKey() 752 SkArenaAlloc* alloc, in Make() 297 BuildProgram(skvm::Builder* p, const Params& params, skvm::Uniforms* uniforms, SkArenaAlloc* alloc) BuildProgram() argument 424 CacheKey( const Params& params, skvm::Uniforms* uniforms, SkArenaAlloc* alloc, bool* ok) CacheKey() argument 749 Make(const SkPixmap& device, const SkPaint& paint, const SkMatrixProvider& matrices, SkArenaAlloc* alloc, sk_sp<SkShader> clip) Make() argument 760 Make(const SkPixmap& device, const SkPaint& paint, const SkPixmap& sprite, int left, int top, SkArenaAlloc* alloc, sk_sp<SkShader> clip) Make() argument [all...] |
H A D | SkGlyph.h | 262 bool setImage(SkArenaAlloc* alloc, SkScalerContext* scalerContext); 263 bool setImage(SkArenaAlloc* alloc, const void* image); 265 // Merge the from glyph into this glyph using alloc to allocate image data. Return the number 267 // making a copy of the image using the alloc. 268 size_t setMetricsAndImage(SkArenaAlloc* alloc, const SkGlyph& from); 293 bool setPath(SkArenaAlloc* alloc, SkScalerContext* scalerContext); 294 bool setPath(SkArenaAlloc* alloc, const SkPath* path); 334 SkScalar* array, int* count, SkArenaAlloc* alloc); 376 size_t allocImage(SkArenaAlloc* alloc); 379 void installPath(SkArenaAlloc* alloc, cons [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/sdp/ |
H A D | sdp_client.c | 191 request = MEM_MALLOC.alloc(sizeof(SdpClientRequest)); in SdpServiceSearch() 193 buffer = MEM_MALLOC.alloc(uuidArray->uuidNum * SDP_UUID_ATTRIBUTE_LENGTH + SDP_SEARCH_LENGTH); in SdpServiceSearch() 234 request = MEM_MALLOC.alloc(sizeof(SdpClientRequest)); in SdpServiceAttribute() 237 buffer = MEM_MALLOC.alloc(sizeof(SdpAttributeIdList) + SDP_ATTRIBUTE_LENGTH); in SdpServiceAttribute() 280 request = MEM_MALLOC.alloc(sizeof(SdpClientRequest)); in SdpServiceSearchAttribute() 282 buffer = MEM_MALLOC.alloc( in SdpServiceSearchAttribute() 324 request = MEM_MALLOC.alloc(sizeof(SdpClientRequest)); in SdpServiceBrowse() 327 buffer = MEM_MALLOC.alloc(SDP_BROWSE_LENGTH); in SdpServiceBrowse()
|
/third_party/mesa3d/src/vulkan/wsi/ |
H A D | wsi_common_win32.c | 47 const VkAllocationCallbacks *alloc; member 91 surface = vk_zalloc2(&instance->alloc, pAllocator, sizeof(*surface), 8, in wsi_CreateWin32SurfaceKHR() 507 const VkAllocationCallbacks *alloc, in wsi_win32_init_wsi() 513 wsi = vk_alloc(alloc, sizeof(*wsi), 8, in wsi_win32_init_wsi() 521 wsi->alloc = alloc; in wsi_win32_init_wsi() 544 const VkAllocationCallbacks *alloc) in wsi_win32_finish_wsi() 551 vk_free(alloc, wsi); in wsi_win32_finish_wsi() 506 wsi_win32_init_wsi(struct wsi_device *wsi_device, const VkAllocationCallbacks *alloc, VkPhysicalDevice physical_device) wsi_win32_init_wsi() argument 543 wsi_win32_finish_wsi(struct wsi_device *wsi_device, const VkAllocationCallbacks *alloc) wsi_win32_finish_wsi() argument
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_tracing/ |
H A D | vktRayTracingPositionFetchTests.cpp | 239 auto& alloc = m_context.getDefaultAllocator(); in iterate() local 276 bottomLevelAS->createAndBuild(vkd, device, cmdBuffer, alloc); in iterate() 282 topLevelAS->createAndBuild(vkd, device, cmdBuffer, alloc); in iterate() 292 BufferWithMemory originsBuffer (vkd, device, alloc, originsBufferInfo, MemoryRequirement::HostVisible); in iterate() 324 BufferWithMemory outputPositionsBuffer(vkd, device, alloc, outputPositionsBufferInfo, MemoryRequirement::HostVisible); in iterate() 403 raygenSBT = rayTracingPipeline->createShaderBindingTable(vkd, device, pipeline.get(), alloc, shaderGroupHandleSize, shaderGroupBaseAlignment, 0, 1); in iterate() 406 missSBT = rayTracingPipeline->createShaderBindingTable(vkd, device, pipeline.get(), alloc, shaderGroupHandleSize, shaderGroupBaseAlignment, 1, 1); in iterate() 409 hitSBT = rayTracingPipeline->createShaderBindingTable(vkd, device, pipeline.get(), alloc, shaderGroupHandleSize, shaderGroupBaseAlignment, 2, 1); in iterate()
|
/third_party/skia/src/shaders/ |
H A D | SkPictureShader.cpp | 282 // Keep bitmapShader alive by using alloc instead of stack memory in onAppendStages() 300 skvm::Uniforms* uniforms, SkArenaAlloc* alloc) const { in onProgram() 303 // Keep bitmapShader alive by using alloc instead of stack memory in onProgram() 304 auto& bitmapShader = *alloc->make<sk_sp<SkShader>>(); in onProgram() 313 uniforms,alloc); in onProgram() 319 SkShaderBase::Context* SkPictureShader::onMakeContext(const ContextRec& rec, SkArenaAlloc* alloc) in onMakeContext() 332 alloc->make<PictureShaderContext>(*this, localRec, std::move(bitmapShader), alloc); in onMakeContext() 344 SkArenaAlloc* alloc) in PictureShaderContext() 348 fBitmapShaderContext = as_SB(fBitmapShader)->makeContext(rec, alloc); in PictureShaderContext() 342 PictureShaderContext( const SkPictureShader& shader, const ContextRec& rec, sk_sp<SkShader> bitmapShader, SkArenaAlloc* alloc) PictureShaderContext() argument [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ray_tracing/ |
H A D | vktRayTracingBarycentricCoordinatesTests.cpp | 228 auto& alloc = m_context.getDefaultAllocator(); in iterate() local 252 bottomLevelAS->createAndBuild(vkd, device, cmdBuffer, alloc); in iterate() 257 topLevelAS->createAndBuild(vkd, device, cmdBuffer, alloc); in iterate() 262 BufferWithMemory directionsBuffer (vkd, device, alloc, directionsBufferInfo, MemoryRequirement::HostVisible); in iterate() 303 BufferWithMemory barycoordsBuffer (vkd, device, alloc, barycoordsBufferInfo, MemoryRequirement::HostVisible); in iterate() 380 raygenSBT = rayTracingPipeline->createShaderBindingTable(vkd, device, pipeline.get(), alloc, shaderGroupHandleSize, shaderGroupBaseAlignment, 0, 1); in iterate() 383 missSBT = rayTracingPipeline->createShaderBindingTable(vkd, device, pipeline.get(), alloc, shaderGroupHandleSize, shaderGroupBaseAlignment, 1, 1); in iterate() 386 hitSBT = rayTracingPipeline->createShaderBindingTable(vkd, device, pipeline.get(), alloc, shaderGroupHandleSize, shaderGroupBaseAlignment, 2, 1); in iterate()
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/platform/src/ |
H A D | allocator.c | 27 .alloc = AllocatorMalloc, 31 .alloc = AllocatorCalloc,
|
/third_party/ffmpeg/libavfilter/ |
H A D | framepool.h | 38 * @param alloc a function that will be used to allocate new frame buffers when 47 FFFramePool *ff_frame_pool_video_init(AVBufferRef* (*alloc)(size_t size), 56 * @param alloc a function that will be used to allocate new frame buffers when 65 FFFramePool *ff_frame_pool_audio_init(AVBufferRef* (*alloc)(size_t size),
|
/third_party/jerryscript/jerry-core/api/ |
H A D | external-context-helpers.c | 19 * The alloc function passed to jerry_create_context for bms 45 * The alloc function passed to jerry_create_context for js 74 jerry_context_alloc_t alloc, /**< the alloc function */ in jerry_external_context_init() 75 void *cb_data_p) /**< the cb_data for alloc function */ in jerry_external_context_init() 77 jerry_context_t * external_context = jerry_create_context (heap_size, alloc, NULL); in jerry_external_context_init() 73 jerry_external_context_init(uint32_t heap_size, jerry_context_alloc_t alloc, void *cb_data_p) jerry_external_context_init() argument
|
/third_party/mesa3d/src/freedreno/vulkan/ |
H A D | tu_shader.h | 51 const VkAllocationCallbacks *alloc); 56 const VkAllocationCallbacks *alloc);
|
/third_party/mesa3d/src/gallium/frontends/lavapipe/ |
H A D | lvp_wsi.c | 41 &physical_device->vk.instance->alloc, in lvp_init_wsi() 57 &physical_device->vk.instance->alloc); in lvp_finish_wsi()
|
/third_party/node/test/parallel/ |
H A D | test-stream-unshift-empty-chunk.js | 26 // This test verifies that stream.unshift(Buffer.alloc(0)) or 32 const chunk = Buffer.alloc(10, 'x'); 51 const putBack = Buffer.alloc(readAll ? 0 : 5, 'y');
|
/third_party/node/benchmark/buffers/ |
H A D | buffer-compare-offset.js | 23 fn(Buffer.alloc(size, 'a'), 24 Buffer.alloc(size, 'b'),
|
H A D | buffer-creation.js | 7 'fast-alloc', 8 'fast-alloc-fill', 19 case 'fast-alloc': 20 fn = Buffer.alloc; 22 case 'fast-alloc-fill': 25 Buffer.alloc(len, 0);
|
H A D | buffer-equals.js | 11 const b0 = Buffer.alloc(size, 'a'); 12 const b1 = Buffer.alloc(size + (difflen === 'true' ? 1 : 0), 'a');
|
/third_party/node/benchmark/misc/ |
H A D | freelist.js | 20 // First, alloc `poolSize` items 22 used.push(list.alloc()); 33 // Re-alloc from pool 35 list.alloc();
|
/third_party/node/deps/npm/node_modules/jsonparse/test/ |
H A D | big-token.js | 19 var buf = Buffer.alloc ? Buffer.alloc(chunkSize) : new Buffer(chunkSize);
|
/third_party/mesa3d/src/microsoft/vulkan/ |
H A D | dzn_wsi.c | 38 &physical_device->vk.instance->alloc); in dzn_wsi_finish() 52 &physical_device->vk.instance->alloc, in dzn_wsi_init()
|