Home
last modified time | relevance | path

Searched refs:Malloc (Results 1 – 25 of 29) sorted by relevance

12

/freebsd-14.2/stand/libsa/
H A Dzalloc_malloc.c57 Malloc(size_t bytes, const char *file __unused, int line __unused) in Malloc() function
160 if ((res = Malloc(bytes, file, line)) != NULL) { in Calloc()
182 if ((res = Malloc(size, file, line)) != NULL) { in Realloc()
H A Dstand.h459 void *Malloc(size_t, const char *, int);
477 #define malloc(x) Malloc(x, __FILE__, __LINE__)
484 #define malloc(x) Malloc(x, NULL, 0)
/freebsd-14.2/sbin/fsck_ffs/
H A Dsetup.c217 copybuf = Malloc(sblock.fs_bsize); in setup()
504 sblk.b_un.b_buf = Malloc(SBLOCKSIZE); in sblock_init()
533 fsrbuf = Malloc(secsize); in calcsb()
576 (fsrbuf = Malloc(rdsize)) == NULL || in chkrecovery()
615 (fsrbuf = Malloc(rdsize)) == NULL || in saverecovery()
H A Dfsutil.c192 if ((cgblk.b_un.b_buf = Malloc((unsigned int)sblock.fs_bsize)) == NULL) in bufinit()
213 bp = (struct bufarea *)Malloc(sizeof(struct bufarea)); in allocbuf()
214 bufp = Malloc((unsigned int)sblock.fs_bsize); in allocbuf()
253 cgp = Malloc((unsigned int)sblock.fs_cgsize); in cglookup()
H A Dfsck.h418 Malloc(size_t size) in Malloc() function
H A Dpass1.c580 new = (struct dups *)Malloc(sizeof(struct dups)); in pass1check()
H A Dinode.c649 if ((inobuf.b_un.b_buf = Malloc((unsigned)inobufsize)) == NULL) in setinodebuf()
1141 Malloc(sizeof(*inp) + (blks - 1) * sizeof(ufs2_daddr_t)); in cacheino()
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dwrappers_c.inc60 void *Ptr = SCUDO_ALLOCATOR.allocate(Product, scudo::Chunk::Origin::Malloc,
68 SCUDO_ALLOCATOR.deallocate(ptr, scudo::Chunk::Origin::Malloc);
110 void *Ptr = SCUDO_ALLOCATOR.allocate(size, scudo::Chunk::Origin::Malloc,
185 void *Ptr = SCUDO_ALLOCATOR.allocate(size, scudo::Chunk::Origin::Malloc,
192 SCUDO_ALLOCATOR.deallocate(ptr, scudo::Chunk::Origin::Malloc);
308 SCUDO_ALLOCATOR.allocate(size, scudo::Chunk::Origin::Malloc, alignment);
H A Dchunk.h56 Malloc = 0, enumerator
H A Dcombined.h565 Origin != Chunk::Origin::Malloc)
597 void *NewPtr = allocate(NewSize, Chunk::Origin::Malloc, Alignment);
625 if (UNLIKELY(Header.OriginOrWasZeroed != Chunk::Origin::Malloc))
628 Chunk::Origin::Malloc);
673 void *NewPtr = allocate(NewSize, Chunk::Origin::Malloc, Alignment);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DDeadStoreElimination.cpp1869 if (!Malloc) in tryFoldIntoCalloc()
1871 auto *InnerCallee = Malloc->getCalledFunction(); in tryFoldIntoCalloc()
1886 auto *MallocBB = Malloc->getParent(), in tryFoldIntoCalloc()
1902 if (Malloc->getOperand(0) != MemSet->getLength()) in tryFoldIntoCalloc()
1904 if (!shouldCreateCalloc(Malloc, MemSet) || in tryFoldIntoCalloc()
1905 !DT.dominates(Malloc, MemSet) || in tryFoldIntoCalloc()
1908 IRBuilder<> IRB(Malloc); in tryFoldIntoCalloc()
1909 Type *SizeTTy = Malloc->getArgOperand(0)->getType(); in tryFoldIntoCalloc()
1911 Malloc->getArgOperand(0), IRB, TLI); in tryFoldIntoCalloc()
1921 Malloc->replaceAllUsesWith(Calloc); in tryFoldIntoCalloc()
[all …]
/freebsd-14.2/tools/tools/bootparttest/
H A Dstub.c32 Malloc(size_t size, const char *file, int line) in Malloc() function
/freebsd-14.2/sys/kern/
H A Dsubr_unit.c92 #define Malloc(foo) malloc(foo, M_UNIT, M_WAITOK | M_ZERO) macro
119 #define Malloc(foo) _Malloc(foo, __LINE__) macro
242 iter = Malloc(sizeof(*iter)); in create_iter_unr()
492 uh = Malloc(sizeof *uh); in new_unrhdr()
897 p1 = Malloc(sizeof(struct unr)); in alloc_unr_specific()
898 p2 = Malloc(sizeof(struct unr)); in alloc_unr_specific()
1033 p1 = Malloc(sizeof(struct unr)); in free_unr()
1034 p2 = Malloc(sizeof(struct unr)); in free_unr()
/freebsd-14.2/sys/sys/
H A Dmalloc.h295 extern void *Malloc(size_t bytes, const char *file, int line);
309 void *p = Malloc((size), __FILE__, __LINE__); \
/freebsd-14.2/contrib/llvm-project/lldb/source/Expression/
H A DLLVMUserExpression.cpp317 m_materialized_address = m_execution_unit_sp->Malloc( in PrepareToExecuteJITExpression()
348 m_stack_frame_bottom = m_execution_unit_sp->Malloc( in PrepareToExecuteJITExpression()
H A DIRInterpreter.cpp340 lldb::addr_t data_address = Malloc(value->getType()); in MakeArgument()
395 lldb::addr_t Malloc(size_t size, uint8_t byte_alignment) { in Malloc() function in InterpreterStackFrame
408 lldb::addr_t Malloc(llvm::Type *type) { in Malloc() function in InterpreterStackFrame
411 return Malloc(m_target_data.getTypeAllocSize(type), in Malloc()
447 lldb::addr_t data_address = Malloc(value->getType()); in ResolveValue()
908 lldb::addr_t R = frame.Malloc(T); in Interpret()
917 lldb::addr_t P = frame.Malloc(Tptr); in Interpret()
H A DMaterializer.cpp80 lldb::addr_t mem = map.Malloc( in MakeAllocation()
559 m_temporary_allocation = map.Malloc( in Materialize()
957 m_temporary_allocation = map.Malloc( in Materialize()
H A DIRExecutionUnit.cpp61 Malloc(size, 8, lldb::ePermissionsWritable | lldb::ePermissionsReadable, in WriteNow()
1071 Malloc(record.m_size, record.m_alignment, record.m_permissions, in CommitOneAllocation()
/freebsd-14.2/contrib/llvm-project/lldb/include/lldb/Expression/
H A DIRMemoryMap.h53 lldb::addr_t Malloc(size_t size, uint8_t alignment, uint32_t permissions,
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp70 Malloc, enumerator
83 case MallocFamily::Malloc: in mangledNameForMallocFamily()
152 …ibFunc_strdup, {StrDupLike, 1, -1, -1, -1, MallocFamily::Malloc}},
153 …ibFunc_dunder_strdup, {StrDupLike, 1, -1, -1, -1, MallocFamily::Malloc}},
154 …ibFunc_strndup, {StrDupLike, 2, 1, -1, -1, MallocFamily::Malloc}},
155 …ibFunc_dunder_strndup, {StrDupLike, 2, 1, -1, -1, MallocFamily::Malloc}},
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_flags.inc66 // Malloc / free bisection. Only tag malloc and free calls when a hash of
/freebsd-14.2/contrib/tcsh/
H A Dsrc.desc43 tc.alloc.c: Malloc/Free
/freebsd-14.2/crypto/heimdal/lib/roken/
H A Dglob.hin93 #define GLOB_NOSPACE (-1) /* Malloc call failed. */
/freebsd-14.2/sys/netgraph/
H A DNOTES73 - Malloc all memory with type M_NETGRAPH. -DONE
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DBuildLibCalls.cpp1908 FunctionCallee Malloc = getOrInsertLibFunc(M, *TLI, LibFunc_malloc, in emitMalloc() local
1911 CallInst *CI = B.CreateCall(Malloc, Num, MallocName); in emitMalloc()
1914 dyn_cast<Function>(Malloc.getCallee()->stripPointerCasts())) in emitMalloc()

12