Home
last modified time | relevance | path

Searched refs:alloc (Results 26 - 50 of 72) sorted by relevance

123

/foundation/communication/bluetooth_service/services/bluetooth/hardware/include/
H A Dbt_vendor_lib.h145 malloc_callback alloc; member
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/hci/cmd/
H A Dhci_cmd_le_controller.c452 uint8_t *buf = MEM_MALLOC.alloc(length); in HCI_LeSetExtendedAdvertisingData()
488 uint8_t *buf = MEM_MALLOC.alloc(length); in HCI_LeSetExtendedScanResponseData()
523 uint8_t *buf = MEM_MALLOC.alloc(length); in HCI_LeSetExtendedAdvertisingEnable()
599 uint8_t *buf = MEM_MALLOC.alloc(length); in HCI_LeSetExtendedScanParameters()
658 uint8_t *buf = MEM_MALLOC.alloc(length); in HCI_LeExtenedCreateConnection()
H A Dhci_cmd.c96 HciPacket *hciPacket = MEM_MALLOC.alloc(sizeof(HciPacket)); in HciCmdPushToTxQueue()
203 HciCmd *cmd = MEM_MALLOC.alloc(sizeof(HciCmd)); in HciAllocCmd()
207 cmd->param = MEM_MALLOC.alloc(paramLength); in HciAllocCmd()
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/smp/
H A Dsmp.c207 SMP_RegCbTask_t *ctx = MEM_MALLOC.alloc(sizeof(SMP_RegCbTask_t)); in SMP_RegisterCallback()
290 SMP_StartPairTask_t *ctx = MEM_MALLOC.alloc(sizeof(SMP_StartPairTask_t)); in SMP_StartPair()
351 SMP_CancelPairTask_t *ctx = MEM_MALLOC.alloc(sizeof(SMP_CancelPairTask_t)); in SMP_CancelPair()
390 SMP_AuthReqReplyTask_t *ctx = MEM_MALLOC.alloc(sizeof(SMP_AuthReqReplyTask_t)); in SMP_AuthenticationRequestReply()
445 SMP_RemotePairReqReplyTask_t *ctx = MEM_MALLOC.alloc(sizeof(SMP_RemotePairReqReplyTask_t)); in SMP_RemotePairRequestReply()
508 SMP_RemotePairRspReplyTask_t *ctx = MEM_MALLOC.alloc(sizeof(SMP_RemotePairRspReplyTask_t)); in SMP_RemotePairResponseReply()
551 SMP_RemoteSecReqReplyTask_t *ctx = MEM_MALLOC.alloc(sizeof(SMP_RemoteSecReqReplyTask_t)); in SMP_RemoteSecurityRequestReply()
582 SMP_LongTermKeyReqReplyTask_t *ctx = MEM_MALLOC.alloc(sizeof(SMP_LongTermKeyReqReplyTask_t)); in SMP_LongTermKeyRequestReply()
653 SMP_StartEncTask_t *ctx = MEM_MALLOC.alloc(sizeof(SMP_StartEncTask_t)); in SMP_StartEncryption()
729 SMP_SendSecReqToRemoteTask_t *ctx = MEM_MALLOC.alloc(sizeo in SMP_SendSecurityRequestToRemote()
[all...]
H A Dsmp_hci_event.c316 HciLeRandReturnParam *ctx = MEM_MALLOC.alloc(sizeof(HciLeRandReturnParam)); in SMP_OnLERandComplete()
355 HciLeEncryptReturnParam *ctx = MEM_MALLOC.alloc(sizeof(HciLeEncryptReturnParam)); in SMP_OnLEEncryptComplete()
403 HciEncryptionChangeEventParam *ctx = MEM_MALLOC.alloc(sizeof(HciEncryptionChangeEventParam)); in SMP_OnLEEncryptionChange()
430 MEM_MALLOC.alloc(sizeof(HciEncryptionKeyRefreshCompleteEventParam)); in SMP_OnLEEncryptionKeyRefreshComplete()
462 HciLeLongTermKeyRequestEventParam *ctx = MEM_MALLOC.alloc(sizeof(HciLeLongTermKeyRequestEventParam)); in SMP_OnLELongTermKeyRequest()
516 HciLeLongTermKeyRequestReplyReturnParam *ctx = MEM_MALLOC.alloc(sizeof(HciLeLongTermKeyRequestReplyReturnParam)); in SMP_OnLELongTermKeyRequestReplyComplete()
573 MEM_MALLOC.alloc(sizeof(HciLeReadLocalP256PublicKeyCompleteEventParam)); in SMP_OnLEReadLocalP256PublicKeyComplete()
654 HciLeGenerateDHKeyCompleteEventParam *ctx = MEM_MALLOC.alloc(sizeof(HciLeGenerateDHKeyCompleteEventParam)); in SMP_OnLEGenerateDHKeyComplete()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/jpeg_hw_decode/common/
H A Dmock_jpeg_hw_decode_flow.cpp45 AllocInfo alloc = { in AllocOutputBuffer() local
52 int32_t ret = bufferMgr_->AllocMem(alloc, handle); in AllocOutputBuffer()
54 JPEG_HW_LOGE("failed to alloc output buffer, err=%{public}d", ret); in AllocOutputBuffer()
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/sdp/
H A Dsdp_connect.c138 SdpConnectInfo *ctx = MEM_MALLOC.alloc(sizeof(SdpConnectInfo)); in SdpConnectWaitTime()
176 SdpConnectInfo *ctx = MEM_MALLOC.alloc(sizeof(SdpConnectInfo)); in SdpConnectTimeout()
315 SdpConnectCallbackInfo *ctx = MEM_MALLOC.alloc(sizeof(SdpConnectCallbackInfo)); in SdpConnectReqCallback()
365 SdpConnectCallbackInfo *ctx = MEM_MALLOC.alloc(sizeof(SdpConnectCallbackInfo)); in SdpConfigReqCallback()
398 connect = MEM_MALLOC.alloc(sizeof(SdpConnectInfo)); in SdpConnectRspCallbackTask()
434 SdpConnectCallbackInfo *ctx = MEM_MALLOC.alloc(sizeof(SdpConnectCallbackInfo)); in SdpConnectRspCallback()
504 SdpConnectCallbackInfo *ctx = MEM_MALLOC.alloc(sizeof(SdpConnectCallbackInfo)); in SdpConfigRspCallback()
556 SdpConnectCallbackInfo *ctx = MEM_MALLOC.alloc(sizeof(SdpConnectCallbackInfo)); in SdpDisconnectionRspCallback()
584 connect = MEM_MALLOC.alloc(sizeof(SdpConnectInfo)); in SdpSendConnectRequest()
647 SdpReceiveConnectRequestInfo *ctx = MEM_MALLOC.alloc(sizeo in SdpReceiveConnectRequest()
[all...]
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/hci/
H A Dhdi_wrapper.c31 HDILib *lib = MEM_CALLOC.alloc(sizeof(HDILib)); in LoadHdiLib()
H A Dhci_vendor_if.c32 HCIVendorEventCallbackBlock *block = MEM_MALLOC.alloc(sizeof(HCIVendorEventCallbackBlock)); in HCIVendorAllocCallbackBlock()
/foundation/multimedia/av_codec/test/moduletest/muxer/InnerAPI/
H A DInnerAVMuxerFunctionTest.cpp151 auto alloc = AVAllocatorFactory::CreateSharedAllocator(MemoryFlag::MEMORY_READ_WRITE); in WriteTrackSample() local
152 std::shared_ptr<AVBuffer> data = AVBuffer::CreateAVBuffer(alloc, BUFFER_SIZE_NUM); in WriteTrackSample()
197 auto alloc = AVAllocatorFactory::CreateSharedAllocator(MemoryFlag::MEMORY_READ_WRITE); in WriteTrackSampleShort() local
198 std::shared_ptr<AVBuffer> data = AVBuffer::CreateAVBuffer(alloc, BUFFER_SIZE_NUM); in WriteTrackSampleShort()
347 auto alloc = AVAllocatorFactory::CreateSharedAllocator(MemoryFlag::MEMORY_READ_WRITE); in WriteTrackSampleByFdMem() local
348 avMuxerDemoBuffer = AVBuffer::CreateAVBuffer(alloc, dataSize); in WriteTrackSampleByFdMem()
494 auto alloc = AVAllocatorFactory::CreateSharedAllocator(MemoryFlag::MEMORY_READ_WRITE); in WriteSingleTrackSampleMem() local
495 avMuxerDemoBuffer = AVBuffer::CreateAVBuffer(alloc, dataSize); in WriteSingleTrackSampleMem()
548 auto alloc = AVAllocatorFactory::CreateSharedAllocator(MemoryFlag::MEMORY_READ_WRITE); in WriteTrackCover() local
549 std::shared_ptr<AVBuffer> avMuxerDemoBuffer = AVBuffer::CreateAVBuffer(alloc, siz in WriteTrackCover()
[all...]
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/att/
H A Datt_common.c187 TransactionTimeOutContext *transTimeOutPtr = MEM_MALLOC.alloc(sizeof(TransactionTimeOutContext)); in AttTransactionTimeOut()
386 AttClientDataCallback *attClientDataCallbackAsyncPtr = MEM_MALLOC.alloc(sizeof(AttClientDataCallback)); in ATT_ClientDataRegister()
484 AttServerDataCallback *attServerDataCallbackAsyncPtr = MEM_MALLOC.alloc(sizeof(AttServerDataCallback)); in ATT_ServerDataRegister()
976 MEM_MALLOC.alloc(sizeof(LeRecvSendDataCallbackAsyncContext)); in LeRecvSendDataCallback()
1052 MEM_MALLOC.alloc(sizeof(BREDRRecvSendDataCallbackAsyncContext)); in BREDRRecvSendDataCallback()
1272 AttRecvDataAsyncContext *attRecvDataAsyncPtr = MEM_MALLOC.alloc(sizeof(AttRecvDataAsyncContext)); in AttRecvData()
1347 AttRecvLeDataAsyncContext *attRecvLeDataAsyncPtr = MEM_MALLOC.alloc(sizeof(AttRecvLeDataAsyncContext)); in AttRecvLeData()
1429 AttConnectRegisterContext *attConnRegPtr = MEM_MALLOC.alloc(sizeof(AttConnectRegisterContext)); in ATT_ConnectRegister()
1530 MEM_MALLOC.alloc(sizeof(BREDRRecvSendDataCallbackAsyncContext)); in AttBREDRSendRespCallback()
1587 LeRecvSendDataCallbackAsyncContext *attLeSendRspPtr = MEM_MALLOC.alloc(sizeo in AttLeSendRespCallback()
[all...]
/foundation/graphic/graphic_3d/lume/LumeBase/api/base/containers/
H A Dunordered_map.h577 auto alloc = buckets_.getAllocator(); in allocate() local
578 auto node = static_cast<list_node*>(alloc.alloc(alloc.instance, sizeof(list_node))); in allocate()
588 auto alloc = buckets_.getAllocator(); in release() local
589 alloc.free(alloc.instance, node); in release()
H A Dallocator.h30 void* (*alloc)(void* instance, size_type size) { nullptr }; in alloc() function
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/gap/
H A Dgap_le_conn.c211 deviceInfo->paramUpdateReq = MEM_MALLOC.alloc(sizeof(LeConnParamUpdateReq)); in GapOnLeRemoteConnectionParameterRequestEvent()
437 GapGeneralPointerInfo *ctx = MEM_MALLOC.alloc(sizeof(GapGeneralPointerInfo)); in GapWaitExAdvTerminatedTimeout()
458 deviceInfo = MEM_MALLOC.alloc(sizeof(LeDeviceInfo)); in GapLeConnectionComplete()
483 LOG_ERROR("%{public}s:alloc failed.", __FUNCTION__); in GapLeConnectionComplete()
526 deviceInfo->paramUpdateReq = MEM_MALLOC.alloc(sizeof(LeConnParamUpdateReq)); in GapReceiveL2capParameterUpdateReq()
H A Dgap_hci_receive.c31 hciParam = MEM_MALLOC.alloc(ctxLen); in GapProcessHciEventInTask()
305 hciParam.responses = MEM_MALLOC.alloc(hciParam.numResponses * sizeof(HciInquiryResult)); in GapRecvInquiryResult()
391 hciParam.responses = MEM_MALLOC.alloc(hciParam.numResponses * sizeof(HciInquiryResultWithRssi)); in GapRecvInquiryResultRssi()
739 hciParam.reports = MEM_MALLOC.alloc(hciParam.numReports * sizeof(HciLeAdvertisingReport)); in GapRecvLeAdvertisingReportEvent()
750 hciParam.reports[index].data = MEM_MALLOC.alloc(hciParam.reports[index].lengthData); in GapRecvLeAdvertisingReportEvent()
801 hciParam.reports = MEM_MALLOC.alloc(hciParam.numReports * sizeof(HciLeDirectedAdvertisingReport)); in GapRecvLeDirectedAdvertisingReport()
832 hciParam.reports = MEM_MALLOC.alloc(hciParam.numReports * sizeof(HciLeExtendedAdvertisingReport)); in GapRecvLeExtendedAdvertisingReportEvent()
843 hciParam.reports[i].data = MEM_MALLOC.alloc(hciParam.reports[i].dataLength); in GapRecvLeExtendedAdvertisingReportEvent()
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/btm/
H A Dbtm_thread.c46 BtmTask *block = MEM_MALLOC.alloc(sizeof(BtmTask)); in AllocTask()
71 BtmProcessingQueue *block = MEM_MALLOC.alloc(sizeof(BtmProcessingQueue)); in AllocProcessingQueue()
H A Dbtm_snoop.c222 char *bakPath = MEM_CALLOC.alloc(length); in BtmPrepareSnoopFile()
261 g_outputPath = (char *)MEM_MALLOC.alloc(length + 1); in BTM_SetSnoopFilePath()
H A Dbtm_acl.c160 BtmAclConnection *connection = MEM_CALLOC.alloc(sizeof(BtmAclConnection)); in AllocAclConnection()
188 BtmAclCallbacksBlock *block = MEM_CALLOC.alloc(sizeof(BtmAclCallbacksBlock)); in BtmAllocAclCallbacksBlock()
665 HciLeConnectionParamSet *sets = MEM_MALLOC.alloc(sizeof(HciLeConnectionParamSet) * countOfSets); in BtmLeExtendedCreateConnection()
784 BtmWhiteListPendingAction *action = MEM_MALLOC.alloc(sizeof(BtmWhiteListPendingAction)); in BtmLeCreateConnection()
1010 *addrList = MEM_CALLOC.alloc(sizeof(BtAddr) * count); in BtmGetLeConnectingAddr()
1408 duplicated = MEM_MALLOC.alloc(sizeof(BtmRemoteDeviceSupportRequest)); in BtmGetRemoteDeviceSupportRequests()
1997 BtAddr *cancelAddr = MEM_MALLOC.alloc(sizeof(BtAddr)); in BTM_LeCancelConnect()
2004 BtmWhiteListPendingAction *action = MEM_MALLOC.alloc(sizeof(BtmWhiteListPendingAction)); in BTM_LeCancelConnect()
2042 BtmRemoteDeviceSupportRequest *request = MEM_MALLOC.alloc(sizeof(BtmRemoteDeviceSupportRequest)); in BTM_IsRemoteDeviceSupportHostSecureSimplePairing()
2079 BtmRemoteDeviceSupportRequest *request = MEM_MALLOC.alloc(sizeo in BTM_IsRemoteDeviceSupportConnectionParametersRequest()
[all...]
H A Dbtm_le_sec.c53 BtmLePairedDeviceBlock *block = MEM_MALLOC.alloc(sizeof(BtmLePairedDeviceBlock)); in BtmAllocLePairedDeviceBlock()
459 BtmIdentityResolvingKey *devIrks = MEM_MALLOC.alloc(sizeof(BtmIdentityResolvingKey) * devCount); in BTM_GetAllRemoteIdentityResolvingKey()
498 BtmLePairedDevice *devices_ = MEM_MALLOC.alloc(sizeof(BtmLePairedDevice) * devCount); in BTM_GetAllPairedDevices()
H A Dbtm_inq_db.c34 BtmInquiryDBEntity *entity = MEM_MALLOC.alloc(sizeof(BtmInquiryDBEntity)); in BtmAllocInquiryDBEntity()
H A Dbtm_pm.c67 BtmPmCallbackBlock *block = MEM_MALLOC.alloc(sizeof(BtmPmCallbackBlock)); in BtmPmAllocCallbackBlock()
82 BtmConnectionMode *connectionMode = MEM_MALLOC.alloc(sizeof(BtmConnectionMode)); in BtmAllocConnectionMode()
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/hci/evt/
H A Dhci_evt_info_params_cmd_complete.c156 returnParam.supportedCodecs = MEM_MALLOC.alloc(returnParam.numberOfSupportedCodecs * sizeof(uint8_t)); in HciEventOnReadLocalSupportedCodecs()
175 MEM_MALLOC.alloc(returnParam.numberOfSupportedVendorSpecificCodecs * sizeof(HciVendorSpecificCodec)); in HciEventOnReadLocalSupportedCodecs()
H A Dhci_evt_le.c72 HciLeAdvertisingReport *reports = MEM_MALLOC.alloc(sizeof(HciLeAdvertisingReport) * eventParam.numReports); in HciEventOnLeAdvertisingReportEvent()
269 MEM_MALLOC.alloc(sizeof(HciLeDirectedAdvertisingReport) * eventParam.numReports); in HciEventOnLeDirectedAdvertisingReportCompleteEvent()
384 MEM_MALLOC.alloc(sizeof(HciLeExtendedAdvertisingReport) * eventParam.numReports); in HciEventOnLeExtendedAdvertisingReportEvent()
/foundation/multimedia/av_codec/test/nativedemo/avmuxer/
H A Davmuxer_demo_base.cpp343 auto alloc = AVAllocatorFactory::CreateSharedAllocator(MemoryFlag::MEMORY_READ_WRITE); in ReadSampleDataInfo() local
344 buffer = AVBuffer::CreateAVBuffer(alloc, size); in ReadSampleDataInfo()
525 auto alloc = AVAllocatorFactory::CreateSharedAllocator(MemoryFlag::MEMORY_READ_WRITE); in WriteCoverSample() local
526 std::shared_ptr<AVBuffer> avMemBuffer = AVBuffer::CreateAVBuffer(alloc, size); in WriteCoverSample()
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/hci/acl/
H A Dhci_acl.c86 HciConnectionHandleBlock *block = MEM_MALLOC.alloc(sizeof(HciConnectionHandleBlock)); in HciAllocConnectionHandleBlock()
137 HciTxPackets *entity = MEM_CALLOC.alloc(sizeof(HciTxPackets)); in AllocTxPacketsEntity()
390 HciPacket *hciPacket = MEM_MALLOC.alloc(sizeof(HciPacket)); in HciAclPushToTxQueue()
413 Packet **fargmentedPackets = MEM_MALLOC.alloc(sizeof(Packet *) * count); in HciFargment()

Completed in 25 milliseconds

123