Lines Matching refs:ctrl
594 auto ctrl = BuildCtrlString(SP_STOP_SESSION, 0, nullptr, 0); in FreeSessionOpeate() local
595 Base::SendToPollFd(hSession->ctrlFd[STREAM_MAIN], ctrl.data(), ctrl.size()); in FreeSessionOpeate()
1088 CtrlStruct ctrl = {}; in BuildCtrlString() local
1089 ctrl.command = command; in BuildCtrlString()
1090 ctrl.channelId = channelId; in BuildCtrlString()
1091 ctrl.dataSize = dataSize; in BuildCtrlString()
1092 …if (dataSize > 0 && data != nullptr && memcpy_s(ctrl.data, sizeof(ctrl.data), data, dataSize) != E… in BuildCtrlString()
1095 uint8_t *buf = reinterpret_cast<uint8_t *>(&ctrl); in BuildCtrlString()
1102 bool HdcSessionBase::DispatchMainThreadCommand(HSession hSession, const CtrlStruct *ctrl) in DispatchMainThreadCommand() argument
1105 uint32_t channelId = ctrl->channelId; // if send not set, it is zero in DispatchMainThreadCommand()
1106 switch (ctrl->command) { in DispatchMainThreadCommand()
1180 CtrlStruct *ctrl = reinterpret_cast<CtrlStruct *>(buf + index); in ReadCtrlFromMain() local
1181 if (!hSessionBase->DispatchMainThreadCommand(hSession, ctrl)) { in ReadCtrlFromMain()
1183 hSession->sessionId, ctrl->channelId, ctrl->command); in ReadCtrlFromMain()