Home
last modified time | relevance | path

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

12

/freebsd-12.1/stand/libsa/
H A Dzalloc_malloc.c56 Malloc(size_t bytes, const char *file __unused, int line __unused) in Malloc() function
154 if ((res = Malloc(bytes, file, line)) != NULL) { in Calloc()
176 if ((res = Malloc(size, file, line)) != NULL) { in Realloc()
H A Dstand.h429 void *Malloc(size_t, const char *, int);
438 #define malloc(x) Malloc(x, __FILE__, __LINE__)
445 #define malloc(x) Malloc(x, NULL, 0)
/freebsd-12.1/sbin/fsck_ffs/
H A Dsetup.c438 sblk.b_un.b_buf = Malloc(SBLOCKSIZE); in sblock_init()
439 asblk.b_un.b_buf = Malloc(SBLOCKSIZE); in sblock_init()
468 fsrbuf = Malloc(secsize); in calcsb()
504 (fsrbuf = Malloc(secsize)) == NULL || in chkrecovery()
538 (fsrbuf = Malloc(secsize)) == NULL || in saverecovery()
H A Dfsutil.c189 bufp = Malloc((unsigned int)sblock.fs_bsize); in bufinit()
199 bp = (struct bufarea *)Malloc(sizeof(struct bufarea)); in bufinit()
200 bufp = Malloc((unsigned int)sblock.fs_bsize); in bufinit()
H A Dinode.c433 if ((inobuf.b_un.b_buf = Malloc((unsigned)inobufsize)) == NULL) in setinodebuf()
466 Malloc(sizeof(*inp) + (blks - 1) * sizeof(ufs2_daddr_t)); in cacheino()
H A Dfsck.h382 Malloc(size_t size) in Malloc() function
H A Dpass1.c538 new = (struct dups *)Malloc(sizeof(struct dups)); in pass1check()
/freebsd-12.1/usr.sbin/ctm/ctm/
H A Dctm.c96 if (NULL == (nfilter = Malloc(sizeof(struct CTM_Filter)))) { in main()
155 Buffer = (u_char *)Malloc(BUFSIZ + strlen(SUBSUFF) +1); in main()
159 Buffer = (u_char *)Malloc(strlen(basedir)+ BUFSIZ + strlen(SUBSUFF) +1); in main()
H A Dctm_input.c88 u_char *p = Malloc(u_chars+1); in Fdata()
H A Dctm.h71 #define Malloc malloc macro
/freebsd-12.1/sys/kern/
H A Dsubr_unit.c94 #define Malloc(foo) malloc(foo, M_UNIT, M_WAITOK | M_ZERO) macro
134 #define Malloc(foo) _Malloc(foo, __LINE__) macro
367 uh = Malloc(sizeof *uh); in new_unrhdr()
774 p1 = Malloc(sizeof(struct unr)); in alloc_unr_specific()
775 p2 = Malloc(sizeof(struct unr)); in alloc_unr_specific()
908 p1 = Malloc(sizeof(struct unr)); in free_unr()
909 p2 = Malloc(sizeof(struct unr)); in free_unr()
/freebsd-12.1/tools/tools/bootparttest/
H A Dstub.c34 Malloc(size_t size, const char *file, int line) in Malloc() function
/freebsd-12.1/contrib/llvm/tools/lldb/source/Expression/
H A DLLVMUserExpression.cpp316 m_materialized_address = m_execution_unit_sp->Malloc( in PrepareToExecuteJITExpression()
340 m_stack_frame_bottom = m_execution_unit_sp->Malloc( in PrepareToExecuteJITExpression()
H A DIRInterpreter.cpp309 lldb::addr_t data_address = Malloc(value->getType()); in MakeArgument()
364 lldb::addr_t Malloc(size_t size, uint8_t byte_alignment) { in Malloc() function in InterpreterStackFrame
377 lldb::addr_t Malloc(llvm::Type *type) { in Malloc() function in InterpreterStackFrame
380 return Malloc(m_target_data.getTypeAllocSize(type), in Malloc()
416 lldb::addr_t data_address = Malloc(value->getType()); in ResolveValue()
846 lldb::addr_t R = frame.Malloc(T); in Interpret()
856 lldb::addr_t P = frame.Malloc(Tptr); in Interpret()
H A DMaterializer.cpp83 lldb::addr_t mem = map.Malloc( in MakeAllocation()
556 m_temporary_allocation = map.Malloc( in Materialize()
812 m_temporary_allocation = map.Malloc( in Materialize()
H A DIRExecutionUnit.cpp57 Malloc(size, 8, lldb::ePermissionsWritable | lldb::ePermissionsReadable, in WriteNow()
1111 Malloc(record.m_size, record.m_alignment, record.m_permissions, in CommitOneAllocation()
H A DIRMemoryMap.cpp289 lldb::addr_t IRMemoryMap::Malloc(size_t size, uint8_t alignment, in Malloc() function in IRMemoryMap
/freebsd-12.1/contrib/llvm/tools/lldb/include/lldb/Expression/
H A DIRMemoryMap.h56 lldb::addr_t Malloc(size_t size, uint8_t alignment, uint32_t permissions,
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp939 auto *Malloc = dyn_cast<CallInst>(Memset->getArgOperand(0)); in foldMallocMemset() local
940 if (!Malloc || !Malloc->hasOneUse()) in foldMallocMemset()
944 Function *InnerCallee = Malloc->getCalledFunction(); in foldMallocMemset()
954 if (Memset->getArgOperand(2) != Malloc->getArgOperand(0)) in foldMallocMemset()
959 B.SetInsertPoint(Malloc->getParent(), ++Malloc->getIterator()); in foldMallocMemset()
960 const DataLayout &DL = Malloc->getModule()->getDataLayout(); in foldMallocMemset()
963 Malloc->getArgOperand(0), Malloc->getAttributes(), in foldMallocMemset()
968 Malloc->replaceAllUsesWith(Calloc); in foldMallocMemset()
969 eraseFromParent(Malloc); in foldMallocMemset()
H A DBuildLibCalls.cpp1165 Value *Malloc = M->getOrInsertFunction(MallocName, B.getInt8PtrTy(), in emitMalloc() local
1168 CallInst *CI = B.CreateCall(Malloc, Num, MallocName); in emitMalloc()
1170 if (const Function *F = dyn_cast<Function>(Malloc->stripPointerCasts())) in emitMalloc()
/freebsd-12.1/stand/efi/boot1/
H A Dboot1.c65 Malloc(size_t len, const char *file __unused, int line __unused) in Malloc() function
89 if ((res = Malloc(bytes, file, line)) != NULL) in Calloc()
/freebsd-12.1/crypto/heimdal/lib/roken/
H A Dglob.hin93 #define GLOB_NOSPACE (-1) /* Malloc call failed. */
/freebsd-12.1/contrib/tcsh/
H A Dsrc.desc43 tc.alloc.c: Malloc/Free
/freebsd-12.1/sys/netgraph/
H A DNOTES74 - Malloc all memory with type M_NETGRAPH. -DONE
/freebsd-12.1/contrib/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp1539 Instruction *Malloc = in tryToOptimizeStoreOfMallocToGlobal() local
1542 Instruction *Cast = new BitCastInst(Malloc, CI->getType(), "tmp", CI); in tryToOptimizeStoreOfMallocToGlobal()
1545 if (BitCastInst *BCI = dyn_cast<BitCastInst>(Malloc)) in tryToOptimizeStoreOfMallocToGlobal()
1548 CI = cast<CallInst>(Malloc); in tryToOptimizeStoreOfMallocToGlobal()

12