Home
last modified time | relevance | path

Searched refs:pool (Results 1 - 12 of 12) sorted by relevance

/drivers/hdf_core/framework/support/platform/src/can/
H A 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()
112 HDF_LOGE("CanMsgPoolObtainMsg: pool is null!"); in CanMsgPoolObtainMsg()
116 holder = CanMsgPoolAcquireHolder(pool); in CanMsgPoolObtainMsg()
130 struct CanMsgPool *pool = NULL; in CanMsgPoolCreate() local
133 HDF_LOGE("CanMsgPoolCreate: invalid pool size %zu", size); in CanMsgPoolCreate()
136 pool in CanMsgPoolCreate()
152 CanMsgPoolDestroy(struct CanMsgPool *pool) CanMsgPoolDestroy() argument
[all...]
/drivers/hdf_core/framework/support/platform/include/can/
H A 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/
H A Dsource_node.cpp192 pool = BufferManager::GetInstance()->GetBufferPool(format.bufferPoolId_); in StartCollectBuffers()
193 CHECK_IF_PTR_NULL_RETURN_VALUE(pool, RC_ERROR); in StartCollectBuffers()
194 pool->NotifyStart(); in StartCollectBuffers()
224 CHECK_IF_PTR_NULL_RETURN_VALUE(pool, RC_ERROR); in CollectorJoin()
230 pool->NotifyStop(); in CollectorJoin()
246 uint32_t n = pool->GetIdleBufferCount(); in StopCollectBuffers()
248 auto buffer = pool->AcquireBuffer(-1); in StopCollectBuffers()
259 CHECK_IF_PTR_NULL_RETURN_VOID(pool); in CollectBuffers()
260 std::shared_ptr<IBuffer> buffer = pool->AcquireBuffer(-1); in CollectBuffers()
H A Dsource_node.h69 std::shared_ptr<IBufferPool> pool = nullptr; member in OHOS::Camera::SourceNode::PortHandler
/drivers/peripheral/usb/gadget/function/mtp/src/
H A Dusbfn_mtp_impl.cpp296 struct DListHead *pool = &mtpPort->writePool; in UsbMtpPortStartTxAsync() local
298 while (!DListIsEmpty(pool)) { in UsbMtpPortStartTxAsync()
308 struct UsbFnRequest *req = DLIST_FIRST_ENTRY(pool, struct UsbFnRequest, list); in UsbMtpPortStartTxAsync()
464 struct DListHead *pool = &mtpDev->ctrlPool; in UsbMtpDeviceGetCtrlReq() local
465 if (DListIsEmpty(pool)) { in UsbMtpDeviceGetCtrlReq()
468 struct UsbFnRequest *req = DLIST_FIRST_ENTRY(pool, struct UsbFnRequest, list); in UsbMtpDeviceGetCtrlReq()
559 HDF_LOGE("%{public}s: control req pool is empty", __func__); in UsbMtpDeviceSetup()
1041 struct DListHead *pool = &mtpPort_->readPool;
1042 struct UsbFnRequest *req = DLIST_FIRST_ENTRY(pool, struct UsbFnRequest, list);
1050 DListInsertTail(&req->list, pool);
1076 struct DListHead *pool = &mtpPort_->writePool; WriteEx() local
1263 struct DListHead *pool = &mtpPort->readPool; UsbMtpPortStartSubmitRxReq() local
1294 struct DListHead *pool = &mtpPort->readPool; UsbMtpPortStartRxAsync() local
1420 struct DListHead *pool = &mtpPort_->writePool; UsbMtpPortSendFileEx() local
[all...]
/drivers/peripheral/usb/gadget/function/ecm/
H A Dcdcecm.c54 struct DListHead *pool = &port->writePool; in UsbEcmStartTx() local
59 while (!port->writeBusy && !DListIsEmpty(pool)) { in UsbEcmStartTx()
65 req = DLIST_FIRST_ENTRY(pool, struct UsbFnRequest, list); in UsbEcmStartTx()
79 DListInsertTail(&req->list, pool); in UsbEcmStartTx()
93 struct DListHead *pool = &port->readPool; in UsbEcmStartRx() local
96 while (!DListIsEmpty(pool)) { in UsbEcmStartRx()
104 req = DLIST_FIRST_ENTRY(pool, struct UsbFnRequest, list); in UsbEcmStartRx()
110 DListInsertTail(&req->list, pool); in UsbEcmStartRx()
/drivers/peripheral/usb/ddk/host/src/
H A Dusb_protocol.c40 static int32_t CreateCtrPipe(const struct UsbInterfacePool *pool) in CreateCtrPipe() argument
46 if (pool == NULL) { in CreateCtrPipe()
47 HDF_LOGE("%{public}s:%{public}d invalid param pool", __func__, __LINE__); in CreateCtrPipe()
51 ret = UsbIfCreatInterfaceObj(pool, &interfaceObj); in CreateCtrPipe()
/drivers/liteos/hievent/src/
H A 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/camera/vdi_base/common/buffer_manager/src/
H A Dbuffer_loop_tracking.cpp307 auto pool = manager->GetBufferPool(poolId); in AddTrackingStreamBegin() local
308 if (pool == nullptr) { in AddTrackingStreamBegin()
309 CAMERA_LOGE("can't get buffer pool, id = %{public}" PRId64 "", poolId); in AddTrackingStreamBegin()
312 pool->EnableTracking(trackingId); in AddTrackingStreamBegin()
416 CAMERA_LOGI("buffer %{public}" PRIu64 " return back to pool.", message->frameNumber); in HandleMessage()
/drivers/peripheral/usb/gadget/function/acm/
H A Dcdcacm.c54 struct DListHead *pool = &port->writePool; in UsbSerialStartTx() local
59 while (!port->writeBusy && !DListIsEmpty(pool)) { in UsbSerialStartTx()
65 req = DLIST_FIRST_ENTRY(pool, struct UsbFnRequest, list); in UsbSerialStartTx()
80 DListInsertTail(&req->list, pool); in UsbSerialStartTx()
94 struct DListHead *pool = &port->readPool; in UsbSerialStartRx() local
96 while (!DListIsEmpty(pool)) { in UsbSerialStartRx()
104 req = DLIST_FIRST_ENTRY(pool, struct UsbFnRequest, list); in UsbSerialStartRx()
110 DListInsertTail(&req->list, pool); in UsbSerialStartRx()
1092 struct DListHead *pool = &acm->ctrlPool; in AcmGetCtrlReq() local
1094 if (!DListIsEmpty(pool)) { in AcmGetCtrlReq()
[all...]
/drivers/peripheral/usb/test/unittest/device_sdk/
H A 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/
H A 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()

Completed in 11 milliseconds