/third_party/node/test/parallel/ |
H A D | test-buffer-alloc.js | 38 const b = Buffer.alloc(128); 94 Buffer.alloc(0); 120 b.copy(Buffer.alloc(0), 0, 0, 0); 123 b.copy(Buffer.alloc(0), 1, 1, 1); 124 b.copy(Buffer.alloc(1), 1, 1, 1); 127 b.copy(Buffer.alloc(1), 0, 1024, 1024); 146 Buffer.alloc(1).write('', 1, 0); 870 // Test alloc with fill option 871 const buf = Buffer.alloc(5, '800A', 'hex'); 886 Buffer.alloc(3. [all...] |
H A D | test-buffer-safe-unsafe.js | 6 const safe = Buffer.alloc(10); 24 assert(isZeroFilled(Buffer.alloc(10)));
|
H A D | test-crypto-authenticated.js | 218 Buffer.alloc(0) 475 cipher().setAAD(Buffer.alloc(0), { 480 const msg = Buffer.alloc(maxMessageSize + 1); 486 c.setAAD(Buffer.alloc(0), { 671 const key = Buffer.alloc(16); 672 const iv = Buffer.alloc(12); 690 const key = Buffer.alloc(32); 691 const iv = Buffer.alloc(12); 706 const key = Buffer.alloc(32); 707 const iv = Buffer.alloc(1 [all...] |
/third_party/lzma/C/ |
H A D | LzmaDec.c | 1240 void LzmaDec_FreeProbs(CLzmaDec *p, ISzAllocPtr alloc)
in LzmaDec_FreeProbs() argument 1242 ISzAlloc_Free(alloc, p->probs);
in LzmaDec_FreeProbs() 1246 static void LzmaDec_FreeDict(CLzmaDec *p, ISzAllocPtr alloc)
in LzmaDec_FreeDict() argument 1248 ISzAlloc_Free(alloc, p->dic);
in LzmaDec_FreeDict() 1252 void LzmaDec_Free(CLzmaDec *p, ISzAllocPtr alloc)
in LzmaDec_Free() argument 1254 LzmaDec_FreeProbs(p, alloc);
in LzmaDec_Free() 1255 LzmaDec_FreeDict(p, alloc);
in LzmaDec_Free() 1284 static SRes LzmaDec_AllocateProbs2(CLzmaDec *p, const CLzmaProps *propNew, ISzAllocPtr alloc)
in LzmaDec_AllocateProbs2() argument 1289 LzmaDec_FreeProbs(p, alloc);
in LzmaDec_AllocateProbs2() 1290 p->probs = (CLzmaProb *)ISzAlloc_Alloc(alloc, numProb in LzmaDec_AllocateProbs2() 1299 LzmaDec_AllocateProbs(CLzmaDec *p, const Byte *props, unsigned propsSize, ISzAllocPtr alloc) LzmaDec_AllocateProbs() argument 1308 LzmaDec_Allocate(CLzmaDec *p, const Byte *props, unsigned propsSize, ISzAllocPtr alloc) LzmaDec_Allocate() argument 1340 LzmaDecode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, const Byte *propData, unsigned propSize, ELzmaFinishMode finishMode, ELzmaStatus *status, ISzAllocPtr alloc) LzmaDecode() argument [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/smp/ |
H A D | smp_send.c | 203 encCmd->M = MEM_MALLOC.alloc(encCmd->length); in SMP_SendLeEncryptCmd() 231 SMP_SendL2capDataCbTask_t *ctx = MEM_MALLOC.alloc(sizeof(SMP_SendL2capDataCbTask_t)); in SMP_SendDataCallback() 264 SMP_SendL2capDataCbTask_t *ctx = MEM_MALLOC.alloc(sizeof(SMP_SendL2capDataCbTask_t)); in SMP_SendPairingResponseCallback() 316 SMP_SendL2capDataCbTask_t *ctx = MEM_MALLOC.alloc(sizeof(SMP_SendL2capDataCbTask_t)); in SMP_SendEncryptionInformationCallback() 342 SMP_SendL2capDataCbTask_t *ctx = MEM_MALLOC.alloc(sizeof(SMP_SendL2capDataCbTask_t)); in SMP_SendMasterIdentificationCallback() 368 SMP_SendL2capDataCbTask_t *ctx = MEM_MALLOC.alloc(sizeof(SMP_SendL2capDataCbTask_t)); in SMP_SendIdentityInformationCallback() 394 SMP_SendL2capDataCbTask_t *ctx = MEM_MALLOC.alloc(sizeof(SMP_SendL2capDataCbTask_t)); in SMP_SendIdentityAddressInformationCallback() 420 SMP_SendL2capDataCbTask_t *ctx = MEM_MALLOC.alloc(sizeof(SMP_SendL2capDataCbTask_t)); in SMP_SendSigningInformationCallback() 463 SMP_EncCmd *pEncCmd = MEM_MALLOC.alloc(sizeof(SMP_EncCmd)); in SMP_AllocEncCmd() 477 SMP_EncTimeoutParam *ctx = MEM_MALLOC.alloc(sizeo in SMP_EncCmdTimeout() [all...] |
/third_party/skia/src/utils/ |
H A D | SkJSON.cpp | 83 static void* MakeVector(const void* src, size_t size, SkArenaAlloc& alloc) { in MakeVector() argument 86 auto* size_ptr = reinterpret_cast<size_t*>(alloc.makeBytesAlignedTo(total_size, kRecAlign)); in MakeVector() 94 ArrayValue::ArrayValue(const Value* src, size_t size, SkArenaAlloc& alloc) { in ArrayValue() argument 95 this->init_tagged_pointer(Tag::kArray, MakeVector<Value>(src, size, alloc)); in ArrayValue() 119 FastString(const char* src, size_t size, const char* eos, SkArenaAlloc& alloc) { in FastString() argument 123 this->initLongString(src, size, alloc); in FastString() 142 void initLongString(const char* src, size_t size, SkArenaAlloc& alloc) { in initLongString() argument 145 this->init_tagged_pointer(Tag::kString, MakeVector<char, 1>(src, size, alloc)); in initLongString() 187 StringValue::StringValue(const char* src, size_t size, SkArenaAlloc& alloc) { in StringValue() argument 188 new (this) FastString(src, size, src, alloc); in StringValue() 191 ObjectValue(const Member* src, size_t size, SkArenaAlloc& alloc) ObjectValue() argument 296 DOMParser(SkArenaAlloc& alloc) DOMParser() argument [all...] |
/third_party/f2fs-tools/fsck/ |
H A D | compress.c | 53 size_t alloc = size + lzo1x_worst_compress(size) in lzo_compress_init() local 55 cc->private = malloc(alloc); in lzo_compress_init() 74 size_t alloc = size + LZ4_COMPRESSBOUND(size) in lz4_compress_init() local 76 cc->private = malloc(alloc); in lz4_compress_init()
|
/third_party/mesa3d/src/vulkan/runtime/ |
H A D | vk_image.h | 87 const VkAllocationCallbacks *alloc, 90 const VkAllocationCallbacks *alloc, 296 const VkAllocationCallbacks *alloc, 299 const VkAllocationCallbacks *alloc,
|
/third_party/mesa3d/src/nouveau/drm-shim/ |
H A D | nouveau_noop.c | 121 struct drm_nouveau_channel_alloc *alloc = arg; in nouveau_ioctl_channel_alloc() local 123 alloc->pushbuf_domains = NOUVEAU_GEM_DOMAIN_VRAM | NOUVEAU_GEM_DOMAIN_GART; in nouveau_ioctl_channel_alloc() 125 alloc->pushbuf_domains = NOUVEAU_GEM_DOMAIN_GART; in nouveau_ioctl_channel_alloc() 134 alloc->notifier_handle = drm_shim_bo_get_handle(shim_fd, ¬ify->base); in nouveau_ioctl_channel_alloc()
|
/third_party/rust/crates/cxx/src/ |
H A D | lib.rs | 409 #[cfg(feature = "alloc")] 411 pub extern crate alloc; 413 #[cfg(not(feature = "alloc"))] 414 extern crate core as alloc; 425 #[cfg(not(any(feature = "alloc", cxx_experimental_no_alloc)))] 427 r#"cxx support for no_alloc is incomplete and semver exempt; you must build with at least one of feature="std", feature="alloc", or RUSTFLAGS='--cfg cxx_experimental_no_alloc'"# 430 #[cfg(all(compile_error_if_alloc, feature = "alloc"))] 432 r#"feature="alloc" is unexpectedly enabled"# 471 #[cfg(feature = "alloc")] 503 #[cfg(feature = "alloc")] [all...] |
/third_party/skia/src/core/ |
H A D | SkDraw_text.cpp | 41 SkSTArenaAlloc<3308> alloc; in paintMasks() local 43 SkBlitter::Choose(fDst, *fMatrixProvider, paint, &alloc, false, fRC->clipShader()); in paintMasks() 45 blitter = alloc.make<SkPairBlitter>( in paintMasks() 48 *fCoverage, *fMatrixProvider, SkPaint(), &alloc, true, fRC->clipShader())); in paintMasks()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/container/ |
H A D | node_hash_set.h | 451 static T* new_element(Allocator* alloc, Args&&... args) { in new_element() 454 ValueAlloc value_alloc(*alloc); in new_element() 462 static void delete_element(Allocator* alloc, T* elem) { in delete_element() 465 ValueAlloc value_alloc(*alloc); in delete_element()
|
/kernel/linux/linux-5.10/arch/x86/events/intel/ |
H A D | uncore_nhmex.c | 673 int i, idx[2], alloc = 0; in nhmex_mbox_get_constraint() local 680 if (!uncore_box_is_fake(box) && (reg1->alloc & (0x1 << i))) in nhmex_mbox_get_constraint() 689 alloc |= (0x1 << i); in nhmex_mbox_get_constraint() 694 (uncore_box_is_fake(box) || !reg2->alloc) && in nhmex_mbox_get_constraint() 702 * on each event, this avoids the need for reg->alloc. in nhmex_mbox_get_constraint() 707 reg1->alloc |= alloc; in nhmex_mbox_get_constraint() 709 reg2->alloc = 1; in nhmex_mbox_get_constraint() 713 if (idx[0] != 0xff && !(alloc & 0x1) && in nhmex_mbox_get_constraint() 731 if (alloc in nhmex_mbox_get_constraint() [all...] |
/kernel/linux/linux-6.6/arch/x86/events/intel/ |
H A D | uncore_nhmex.c | 673 int i, idx[2], alloc = 0; in nhmex_mbox_get_constraint() local 680 if (!uncore_box_is_fake(box) && (reg1->alloc & (0x1 << i))) in nhmex_mbox_get_constraint() 689 alloc |= (0x1 << i); in nhmex_mbox_get_constraint() 694 (uncore_box_is_fake(box) || !reg2->alloc) && in nhmex_mbox_get_constraint() 702 * on each event, this avoids the need for reg->alloc. in nhmex_mbox_get_constraint() 707 reg1->alloc |= alloc; in nhmex_mbox_get_constraint() 709 reg2->alloc = 1; in nhmex_mbox_get_constraint() 713 if (idx[0] != 0xff && !(alloc & 0x1) && in nhmex_mbox_get_constraint() 731 if (alloc in nhmex_mbox_get_constraint() [all...] |
/third_party/node/benchmark/buffers/ |
H A D | buffer-compare.js | 31 const b0 = Buffer.alloc(size, 'a'); 32 const b1 = Buffer.alloc(size, 'a');
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/ |
H A D | mthca_mcg.c | 148 index = mthca_alloc(&dev->mcg_table.alloc); in mthca_multicast_attach() 206 mthca_free(&dev->mcg_table.alloc, index); in mthca_multicast_attach() 286 mthca_free(&dev->mcg_table.alloc, amgm_index_to_free); in mthca_multicast_detach() 305 mthca_free(&dev->mcg_table.alloc, index); in mthca_multicast_detach() 320 err = mthca_alloc_init(&dev->mcg_table.alloc, in mthca_init_mcg_table() 334 mthca_alloc_cleanup(&dev->mcg_table.alloc); in mthca_cleanup_mcg_table()
|
/kernel/linux/linux-6.6/drivers/infiniband/hw/mthca/ |
H A D | mthca_mcg.c | 148 index = mthca_alloc(&dev->mcg_table.alloc); in mthca_multicast_attach() 206 mthca_free(&dev->mcg_table.alloc, index); in mthca_multicast_attach() 286 mthca_free(&dev->mcg_table.alloc, amgm_index_to_free); in mthca_multicast_detach() 305 mthca_free(&dev->mcg_table.alloc, index); in mthca_multicast_detach() 320 err = mthca_alloc_init(&dev->mcg_table.alloc, in mthca_init_mcg_table() 334 mthca_alloc_cleanup(&dev->mcg_table.alloc); in mthca_cleanup_mcg_table()
|
/third_party/node/lib/internal/debugger/ |
H A D | inspect_client.js | 70 additionalLength = Buffer.alloc(8); 78 additionalLength = Buffer.alloc(2); 82 additionalLength = Buffer.alloc(0); 91 const mask = Buffer.alloc(4); 92 const masked = Buffer.alloc(dataLength); 236 this._unprocessed = Buffer.alloc(0);
|
/third_party/skia/src/gpu/vk/ |
H A D | GrVkImage.h | 64 static void DestroyAndFreeImageMemory(const GrVkGpu* gpu, const GrVkAlloc& alloc, const VkImage& image); 74 const GrVkAlloc& alloc() const { in alloc() function in GrVkImage 288 Resource(const GrVkGpu* gpu, VkImage image, const GrVkAlloc& alloc, VkImageTiling tiling) in Resource() argument 291 , fAlloc(alloc) {} in Resource() 318 BorrowedResource(const GrVkGpu* gpu, VkImage image, const GrVkAlloc& alloc, in BorrowedResource() argument 320 : Resource(gpu, image, alloc, tiling) { in BorrowedResource()
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
H A D | hb-vector.hh | 44 alloc (lst.size ()); in hb_vector_t() 53 alloc (hb_len (hb_iter (o))); in hb_vector_t() 58 alloc (o.length); in hb_vector_t() 113 alloc (o.length); in operator =() 208 bool alloc (unsigned int size) in alloc() function 245 if (!alloc (size)) in resize()
|
/kernel/linux/linux-5.10/drivers/md/bcache/ |
H A D | alloc.c | 569 struct bkey *alloc) in pick_data_bucket() 585 if (!ret->sectors_free && KEY_PTRS(alloc)) { in pick_data_bucket() 587 bkey_copy(&ret->key, alloc); in pick_data_bucket() 588 bkey_init(alloc); in pick_data_bucket() 615 BKEY_PADDED(key) alloc; in bch_alloc_sectors() 621 * and then retry. KEY_PTRS() indicates whether alloc points to in bch_alloc_sectors() 625 bkey_init(&alloc.key); in bch_alloc_sectors() 628 while (!(b = pick_data_bucket(c, k, write_point, &alloc.key))) { in bch_alloc_sectors() 635 if (bch_bucket_alloc_set(c, watermark, &alloc.key, wait)) in bch_alloc_sectors() 646 if (KEY_PTRS(&alloc in bch_alloc_sectors() 566 pick_data_bucket(struct cache_set *c, const struct bkey *search, unsigned int write_point, struct bkey *alloc) pick_data_bucket() argument [all...] |
/kernel/linux/linux-6.6/drivers/md/bcache/ |
H A D | alloc.c | 568 struct bkey *alloc) in pick_data_bucket() 584 if (!ret->sectors_free && KEY_PTRS(alloc)) { in pick_data_bucket() 586 bkey_copy(&ret->key, alloc); in pick_data_bucket() 587 bkey_init(alloc); in pick_data_bucket() 614 BKEY_PADDED(key) alloc; in bch_alloc_sectors() 620 * and then retry. KEY_PTRS() indicates whether alloc points to in bch_alloc_sectors() 624 bkey_init(&alloc.key); in bch_alloc_sectors() 627 while (!(b = pick_data_bucket(c, k, write_point, &alloc.key))) { in bch_alloc_sectors() 634 if (bch_bucket_alloc_set(c, watermark, &alloc.key, wait)) in bch_alloc_sectors() 645 if (KEY_PTRS(&alloc in bch_alloc_sectors() 565 pick_data_bucket(struct cache_set *c, const struct bkey *search, unsigned int write_point, struct bkey *alloc) pick_data_bucket() argument [all...] |
/third_party/libunwind/libunwind/tests/ |
H A D | ia64-test-nat-asm.S | 65 alloc loc0 = ar.pfs, 2, 7, 2, 0 103 alloc loc0 = ar.pfs, 2, 3, 2, 0 140 alloc loc0 = ar.pfs, 2, 6, 2, 0 180 alloc loc0 = ar.pfs, 2, 4, 2, 0 217 alloc loc0 = ar.pfs, 2, 5, 2, 0 254 alloc loc0 = ar.pfs, 2, 5, 2, 0 296 alloc loc0 = ar.pfs, 2, 5, 2, 0 339 alloc loc0 = ar.pfs, 2, 5, 2, 0 439 alloc loc0 = ar.pfs, 2, 14, 2, 16 487 alloc loc [all...] |
/third_party/mesa3d/src/asahi/lib/ |
H A D | decode.c | 273 struct agx_bo *alloc = agxdecode_find_mapped_gpu_mem_containing(va); in agxdecode_stateful() local 274 assert(alloc != NULL && "nonexistant object"); in agxdecode_stateful() 275 fprintf(agxdecode_dump_stream, "%s (%" PRIx64 ", handle %u)\n", label, va, alloc->handle); in agxdecode_stateful() 279 uint8_t *end = (uint8_t *) alloc->ptr.cpu + alloc->size; in agxdecode_stateful() 282 agxdecode_dump_bo(alloc, label); in agxdecode_stateful() 583 agxdecode_track_alloc(struct agx_bo *alloc) in agxdecode_track_alloc() argument 589 bool match = (bo->handle == alloc->handle && bo->type == alloc->type); in agxdecode_track_alloc() 590 assert(!match && "tried to alloc alread in agxdecode_track_alloc() [all...] |
/third_party/mesa3d/src/amd/vulkan/ |
H A D | radv_meta_decompress.c | 103 radv_device_to_handle(device), &ds_create_info, &device->meta_state.alloc, in create_expand_depth_stencil_compute() 117 radv_device_to_handle(device), &pl_create_info, &device->meta_state.alloc, in create_expand_depth_stencil_compute() 163 &device->meta_state.alloc, layout); in create_pipeline_layout() 295 &extra, &device->meta_state.alloc, pipeline); in create_pipeline() 311 &state->alloc); in radv_device_finish_meta_depth_decomp_state() 314 state->depth_decomp[i].decompress_pipeline, &state->alloc); in radv_device_finish_meta_depth_decomp_state() 316 state->depth_decomp[i].resummarize_pipeline, &state->alloc); in radv_device_finish_meta_depth_decomp_state() 320 state->expand_depth_stencil_compute_pipeline, &state->alloc); in radv_device_finish_meta_depth_decomp_state() 322 state->expand_depth_stencil_compute_p_layout, &state->alloc); in radv_device_finish_meta_depth_decomp_state() 324 radv_device_to_handle(device), state->expand_depth_stencil_compute_ds_layout, &state->alloc); in radv_device_finish_meta_depth_decomp_state() [all...] |