Lines Matching refs:ctxId

239     VirtioGpuCtxId ctxId;  member
305 VirtioGpuCtxId ctxId; member
814 int setContextAddressSpaceHandleLocked(VirtioGpuCtxId ctxId, uint32_t handle, in setContextAddressSpaceHandleLocked() argument
816 auto ctxIt = mContexts.find(ctxId); in setContextAddressSpaceHandleLocked()
818 stream_renderer_error("ctx id %u is not found", ctxId); in setContextAddressSpaceHandleLocked()
829 uint32_t getAddressSpaceHandleLocked(VirtioGpuCtxId ctxId, uint32_t resourceId) { in getAddressSpaceHandleLocked() argument
830 auto ctxIt = mContexts.find(ctxId); in getAddressSpaceHandleLocked()
832 stream_renderer_error("ctx id %u is not found", ctxId); in getAddressSpaceHandleLocked()
850 int addressSpaceProcessCmd(VirtioGpuCtxId ctxId, uint32_t* dwords) { in addressSpaceProcessCmd() argument
864 auto ctxIt = mContexts.find(ctxId); in addressSpaceProcessCmd()
866 stream_renderer_error("ctx id %u not found", ctxId); in addressSpaceProcessCmd()
885 .virtioGpuContextId = ctxId, in addressSpaceProcessCmd()
892 if (setContextAddressSpaceHandleLocked(ctxId, handle, contextCreate.resourceId)) { in addressSpaceProcessCmd()
904 getAddressSpaceHandleLocked(ctxId, contextPing.resourceId), &ping); in addressSpaceProcessCmd()
1318 if (resetPipe((GoldfishHwPipe*)(uintptr_t)(res->ctxId), hostPipe)) { in handleTransferWritePipe()
1551 void attachResource(uint32_t ctxId, uint32_t resId) { in attachResource() argument
1552 stream_renderer_debug("ctxid: %u resid: %u", ctxId, resId); in attachResource()
1554 auto resourcesIt = mContextResources.find(ctxId); in attachResource()
1559 mContextResources[ctxId] = ids; in attachResource()
1570 ids.push_back(ctxId); in attachResource()
1574 auto idIt = std::find(ids.begin(), ids.end(), ctxId); in attachResource()
1575 if (idIt == ids.end()) ids.push_back(ctxId); in attachResource()
1581 auto ctxEntryIt = mContexts.find(ctxId); in attachResource()
1588 resEntryIt->second.ctxId = ctxId; in attachResource()
1591 void detachResource(uint32_t ctxId, uint32_t toUnrefId) { in detachResource() argument
1592 stream_renderer_debug("ctxid: %u resid: %u", ctxId, toUnrefId); in detachResource()
1593 detachResourceLocked(ctxId, toUnrefId); in detachResource()
1906 void detachResourceLocked(uint32_t ctxId, uint32_t toUnrefId) { in detachResourceLocked() argument
1907 stream_renderer_debug("ctxid: %u resid: %u", ctxId, toUnrefId); in detachResourceLocked()
1909 auto it = mContextResources.find(ctxId); in detachResourceLocked()
1918 mContextResources[ctxId] = withoutRes; in detachResourceLocked()
1925 resource.ctxId = 0; in detachResourceLocked()
1927 auto ctxIt = mContexts.find(ctxId); in detachResourceLocked()