Home
last modified time | relevance | path

Searched refs:pool (Results 1 – 17 of 17) sorted by relevance

/drivers/hdf_core/framework/support/platform/src/can/
Dcan_msg.c32 static struct CanMsgHolder *CanMsgPoolAcquireHolder(struct CanMsgPool *pool) in CanMsgPoolAcquireHolder() argument
37 for (i = 0; i < pool->size; i++) { in CanMsgPoolAcquireHolder()
38 holder = &pool->holders[i]; in CanMsgPoolAcquireHolder()
107 struct CanMsg *CanMsgPoolObtainMsg(struct CanMsgPool *pool) in CanMsgPoolObtainMsg() argument
111 if (pool == NULL) { in CanMsgPoolObtainMsg()
116 holder = CanMsgPoolAcquireHolder(pool); in CanMsgPoolObtainMsg()
130 struct CanMsgPool *pool = NULL; in CanMsgPoolCreate() local
136 pool = OsalMemCalloc(sizeof(*pool) + sizeof(struct CanMsgHolder) * size); in CanMsgPoolCreate()
137 if (pool == NULL) { in CanMsgPoolCreate()
142 pool->size = size; in CanMsgPoolCreate()
[all …]
/drivers/hdf_core/framework/support/platform/include/can/
Dcan_msg.h26 struct CanMsg *CanMsgPoolObtainMsg(struct CanMsgPool *pool);
30 void CanMsgPoolDestroy(struct CanMsgPool *pool);
/drivers/peripheral/camera/vdi_base/common/pipeline_core/nodes/src/source_node/
Dsource_node.cpp182 pool = BufferManager::GetInstance()->GetBufferPool(format.bufferPoolId_); in StartCollectBuffers()
183 CHECK_IF_PTR_NULL_RETURN_VALUE(pool, RC_ERROR); in StartCollectBuffers()
184 pool->NotifyStart(); in StartCollectBuffers()
208 CHECK_IF_PTR_NULL_RETURN_VALUE(pool, RC_ERROR); in StopCollectBuffers()
214 pool->NotifyStop(); in StopCollectBuffers()
221 uint32_t n = pool->GetIdleBufferCount(); in StopCollectBuffers()
223 auto buffer = pool->AcquireBuffer(-1); in StopCollectBuffers()
234 CHECK_IF_PTR_NULL_RETURN_VOID(pool); in CollectBuffers()
235 std::shared_ptr<IBuffer> buffer = pool->AcquireBuffer(-1); in CollectBuffers()
Dsource_node.h66 std::shared_ptr<IBufferPool> pool = nullptr; variable
/drivers/peripheral/usb/gadget/function/mtp/src/
Dusbfn_mtp_impl.cpp295 struct DListHead *pool = &mtpPort->writePool; in UsbMtpPortStartTxAsync() local
297 while (!DListIsEmpty(pool)) { in UsbMtpPortStartTxAsync()
307 struct UsbFnRequest *req = DLIST_FIRST_ENTRY(pool, struct UsbFnRequest, list); in UsbMtpPortStartTxAsync()
463 struct DListHead *pool = &mtpDev->ctrlPool; in UsbMtpDeviceGetCtrlReq() local
464 if (DListIsEmpty(pool)) { in UsbMtpDeviceGetCtrlReq()
467 struct UsbFnRequest *req = DLIST_FIRST_ENTRY(pool, struct UsbFnRequest, list); in UsbMtpDeviceGetCtrlReq()
1023 struct DListHead *pool = &mtpPort_->readPool; in Read() local
1024 struct UsbFnRequest *req = DLIST_FIRST_ENTRY(pool, struct UsbFnRequest, list); in Read()
1032 DListInsertTail(&req->list, pool); in Read()
1058 struct DListHead *pool = &mtpPort_->writePool; in WriteEx() local
[all …]
/drivers/liteos/hievent/src/
Dhiview_hievent.c261 static int AppendArrayItem(char **pool, int poolLen, const char *path) in AppendArrayItem() argument
276 if (pool[i] != 0) { in AppendArrayItem()
279 pool[i] = strdup(path); in AppendArrayItem()
280 if (pool[i] == NULL) { in AppendArrayItem()
/drivers/peripheral/usb/gadget/function/ecm/
Dcdcecm.c51 struct DListHead *pool = &port->writePool; in UsbEcmStartTx() local
56 while (!port->writeBusy && !DListIsEmpty(pool)) { in UsbEcmStartTx()
62 req = DLIST_FIRST_ENTRY(pool, struct UsbFnRequest, list); in UsbEcmStartTx()
76 DListInsertTail(&req->list, pool); in UsbEcmStartTx()
90 struct DListHead *pool = &port->readPool; in UsbEcmStartRx() local
93 while (!DListIsEmpty(pool)) { in UsbEcmStartRx()
101 req = DLIST_FIRST_ENTRY(pool, struct UsbFnRequest, list); in UsbEcmStartRx()
107 DListInsertTail(&req->list, pool); in UsbEcmStartRx()
/drivers/peripheral/usb/ddk/host/src/
Dusb_protocol.c57 static int32_t CreateCtrPipe(const struct UsbInterfacePool *pool) in CreateCtrPipe() argument
63 if (pool == NULL) { in CreateCtrPipe()
68 ret = UsbIfCreatInterfaceObj(pool, &interfaceObj); in CreateCtrPipe()
/drivers/peripheral/usb/gadget/function/acm/
Dcdcacm.c52 struct DListHead *pool = &port->writePool; in UsbSerialStartTx() local
57 while (!port->writeBusy && !DListIsEmpty(pool)) { in UsbSerialStartTx()
63 req = DLIST_FIRST_ENTRY(pool, struct UsbFnRequest, list); in UsbSerialStartTx()
78 DListInsertTail(&req->list, pool); in UsbSerialStartTx()
92 struct DListHead *pool = &port->readPool; in UsbSerialStartRx() local
94 while (!DListIsEmpty(pool)) { in UsbSerialStartRx()
102 req = DLIST_FIRST_ENTRY(pool, struct UsbFnRequest, list); in UsbSerialStartRx()
108 DListInsertTail(&req->list, pool); in UsbSerialStartRx()
1088 struct DListHead *pool = &acm->ctrlPool; in AcmGetCtrlReq() local
1090 if (!DListIsEmpty(pool)) { in AcmGetCtrlReq()
[all …]
/drivers/peripheral/camera/vdi_base/common/buffer_manager/src/
Dbuffer_loop_tracking.cpp307 auto pool = manager->GetBufferPool(poolId); in AddTrackingStreamBegin() local
308 if (pool == nullptr) { in AddTrackingStreamBegin()
312 pool->EnableTracking(trackingId); in AddTrackingStreamBegin()
/drivers/peripheral/user_auth/test/unittest/user_auth_test/
DBUILD.gn44 "../../../hdi_service/coauth/src/pool.c",
/drivers/peripheral/user_auth/test/unittest/co_auth/
DBUILD.gn44 "../../../hdi_service/coauth/src/pool.c",
/drivers/peripheral/user_auth/test/unittest/idm_test/
DBUILD.gn44 "../../../hdi_service/coauth/src/pool.c",
/drivers/peripheral/user_auth/test/unittest/database/
DBUILD.gn45 "../../../hdi_service/coauth/src/pool.c",
/drivers/peripheral/user_auth/hdi_service/
DBUILD.gn41 "coauth/src/pool.c",
/drivers/peripheral/usb/test/unittest/device_sdk/
Dusb_device_cdcacm_test.cpp594 struct DListHead *pool = &acm->ctrlPool; in GetCtrlReq() local
595 if (!DListIsEmpty(pool)) { in GetCtrlReq()
596 req = DLIST_FIRST_ENTRY(pool, struct UsbFnRequest, list); in GetCtrlReq()
/drivers/hdf_core/framework/test/unittest/model/usb/device/src/
Dusb_device_lite_cdcacm_test.c584 struct DListHead *pool = &acm->ctrlPool; in GetCtrlReq() local
585 if (!DListIsEmpty(pool)) { in GetCtrlReq()
586 req = DLIST_FIRST_ENTRY(pool, struct UsbFnRequest, list); in GetCtrlReq()