Lines Matching refs:msgBuf
156 unsigned char msgBuf[CEC_MESSAGE_BODY_MAX_LENGTH + 1] = {0}; in sendMessageToFifo() local
159 msgBuf[0] = ((static_cast<uint8_t>(message.initiator) & 0xf) << 4) | in sendMessageToFifo()
165 msgBuf[i + 1] = static_cast<unsigned char>(message.body[i]); in sendMessageToFifo()
176 ret = write(mOutputFile, msgBuf, length + 1); in sendMessageToFifo()
198 void HdmiCecMock::handleCecMessage(unsigned char* msgBuf, int msgSize) { in handleCecMessage() argument
205 message.body[i] = static_cast<uint8_t>(msgBuf[i + 1]); in handleCecMessage()
209 message.initiator = static_cast<CecLogicalAddress>((msgBuf[0] >> 4) & 0xf); in handleCecMessage()
211 message.destination = static_cast<CecLogicalAddress>((msgBuf[0] >> 0) & 0xf); in handleCecMessage()
221 unsigned char msgBuf[CEC_MESSAGE_BODY_MAX_LENGTH]; in threadLoop() local
237 memset(msgBuf, 0, sizeof(msgBuf)); in threadLoop()
240 r = readMessageFromFifo(msgBuf, CEC_MESSAGE_BODY_MAX_LENGTH); in threadLoop()
246 printCecMsgBuf((const char*)msgBuf, r); in threadLoop()
248 if (((msgBuf[0] >> 4) & 0xf) == 0xf) { in threadLoop()
253 handleCecMessage(msgBuf, r); in threadLoop()