Lines Matching refs:msgBuf
171 unsigned char msgBuf[CEC_MESSAGE_BODY_MAX_LENGTH]; in sendMessageToFifo() local
174 memset(msgBuf, 0, sizeof(msgBuf)); in sendMessageToFifo()
175 msgBuf[0] = ((static_cast<uint8_t>(message.initiator) & 0xf) << 4) | in sendMessageToFifo()
181 msgBuf[i + 1] = static_cast<unsigned char>(message.body[i]); in sendMessageToFifo()
192 ret = write(mOutputFile, msgBuf, length + 1); in sendMessageToFifo()
211 void HdmiCecMock::handleHotplugMessage(unsigned char* msgBuf) { in handleHotplugMessage() argument
212 HotplugEvent hotplugEvent{.connected = ((msgBuf[3]) & 0xf) > 0, in handleHotplugMessage()
213 .portId = static_cast<uint32_t>(msgBuf[0] & 0xf)}; in handleHotplugMessage()
220 ALOGD("[halimp] hot plug port id %x, is connected %x", (msgBuf[0] & 0xf), (msgBuf[3] & 0xf)); in handleHotplugMessage()
223 ((hotplugEvent.connected == 0) ? 0xffff : ((msgBuf[1] << 8) | (msgBuf[2]))); in handleHotplugMessage()
235 void HdmiCecMock::handleCecMessage(unsigned char* msgBuf, int megSize) { in handleCecMessage() argument
242 message.body[i] = static_cast<uint8_t>(msgBuf[i + 1]); in handleCecMessage()
246 message.initiator = static_cast<CecLogicalAddress>((msgBuf[0] >> 4) & 0xf); in handleCecMessage()
248 message.destination = static_cast<CecLogicalAddress>((msgBuf[0] >> 0) & 0xf); in handleCecMessage()
260 unsigned char msgBuf[CEC_MESSAGE_BODY_MAX_LENGTH]; in threadLoop() local
276 memset(msgBuf, 0, sizeof(msgBuf)); in threadLoop()
279 r = readMessageFromFifo(msgBuf, CEC_MESSAGE_BODY_MAX_LENGTH); in threadLoop()
285 printCecMsgBuf((const char*)msgBuf, r); in threadLoop()
287 if (((msgBuf[0] >> 4) & 0xf) == 0xf) { in threadLoop()
289 handleHotplugMessage(msgBuf); in threadLoop()
293 handleCecMessage(msgBuf, r); in threadLoop()