Lines Matching refs:ctrl
611 auto ctrl = BuildCtrlString(SP_STOP_SESSION, 0, nullptr, 0); in FreeSessionOpeate() local
612 Base::SendToPollFd(hSession->ctrlFd[STREAM_MAIN], ctrl.data(), ctrl.size()); in FreeSessionOpeate()
1110 CtrlStruct ctrl = {}; in BuildCtrlString() local
1111 ctrl.command = command; in BuildCtrlString()
1112 ctrl.channelId = channelId; in BuildCtrlString()
1113 ctrl.dataSize = dataSize; in BuildCtrlString()
1114 …if (dataSize > 0 && data != nullptr && memcpy_s(ctrl.data, sizeof(ctrl.data), data, dataSize) != E… in BuildCtrlString()
1117 uint8_t *buf = reinterpret_cast<uint8_t *>(&ctrl); in BuildCtrlString()
1124 bool HdcSessionBase::DispatchMainThreadCommand(HSession hSession, const CtrlStruct *ctrl) in DispatchMainThreadCommand() argument
1127 uint32_t channelId = ctrl->channelId; // if send not set, it is zero in DispatchMainThreadCommand()
1128 switch (ctrl->command) { in DispatchMainThreadCommand()
1202 CtrlStruct *ctrl = reinterpret_cast<CtrlStruct *>(buf + index); in ReadCtrlFromMain() local
1203 if (!hSessionBase->DispatchMainThreadCommand(hSession, ctrl)) { in ReadCtrlFromMain()
1205 hSession->sessionId, ctrl->channelId, ctrl->command); in ReadCtrlFromMain()