Lines Matching refs:msgBuf

222     unsigned char msgBuf[CEC_MESSAGE_BODY_MAX_LENGTH];  in sendMessageToFifo()  local
225 memset(msgBuf, 0, sizeof(msgBuf)); in sendMessageToFifo()
226 msgBuf[0] = ((static_cast<uint8_t>(message.initiator) & 0xf) << 4) | in sendMessageToFifo()
232 msgBuf[i + 1] = static_cast<unsigned char>(message.body[i]); in sendMessageToFifo()
243 ret = write(mOutputFile, msgBuf, length + 1); in sendMessageToFifo()
262 void HdmiCecMock::handleHotplugMessage(unsigned char* msgBuf) { in handleHotplugMessage() argument
263 HotplugEvent hotplugEvent{.connected = ((msgBuf[3]) & 0xf) > 0, in handleHotplugMessage()
264 .portId = static_cast<uint32_t>(msgBuf[0] & 0xf)}; in handleHotplugMessage()
271 ALOGD("[halimp] hot plug port id %x, is connected %x", (msgBuf[0] & 0xf), (msgBuf[3] & 0xf)); in handleHotplugMessage()
274 ((hotplugEvent.connected == 0) ? 0xffff : ((msgBuf[1] << 8) | (msgBuf[2]))); in handleHotplugMessage()
286 void HdmiCecMock::handleCecMessage(unsigned char* msgBuf, int megSize) { in handleCecMessage() argument
293 message.body[i] = static_cast<uint8_t>(msgBuf[i + 1]); in handleCecMessage()
298 (msgBuf[0] >> 4) & 0xf); in handleCecMessage()
301 (msgBuf[0] >> 0) & 0xf); in handleCecMessage()
313 unsigned char msgBuf[CEC_MESSAGE_BODY_MAX_LENGTH]; in threadLoop() local
329 memset(msgBuf, 0, sizeof(msgBuf)); in threadLoop()
332 r = readMessageFromFifo(msgBuf, CEC_MESSAGE_BODY_MAX_LENGTH); in threadLoop()
338 printCecMsgBuf((const char*)msgBuf, r); in threadLoop()
340 if (((msgBuf[0] >> 4) & 0xf) == 0xf) { in threadLoop()
342 handleHotplugMessage(msgBuf); in threadLoop()
346 handleCecMessage(msgBuf, r); in threadLoop()