Lines Matching refs:lastByte
271 void TrcPktProcEtmV4I::iNotSync(const uint8_t lastByte) in iNotSync() argument
274 if (lastByte == 0x00) // TBD : add check for forced sync in here? in iNotSync()
286 m_pIPktFn = m_i_table[lastByte].pptkFn; in iNotSync()
297 void TrcPktProcEtmV4I::iPktNoPayload(const uint8_t lastByte) in iPktNoPayload() argument
304 m_curr_packet.setAddressExactMatch(lastByte & 0x3); in iPktNoPayload()
308 m_curr_packet.setEvent(lastByte & 0xF); in iPktNoPayload()
313 m_curr_packet.setDataSyncMarker(lastByte & 0x7); in iPktNoPayload()
329 void TrcPktProcEtmV4I::iPktReserved(const uint8_t lastByte) in iPktReserved() argument
331 m_curr_packet.updateErrType(ETM4_PKT_I_RESERVED, lastByte); // swap type for err type in iPktReserved()
335 void TrcPktProcEtmV4I::iPktInvalidCfg(const uint8_t lastByte) in iPktInvalidCfg() argument
337 m_curr_packet.updateErrType(ETM4_PKT_I_RESERVED_CFG, lastByte); // swap type for err type in iPktInvalidCfg()
341 void TrcPktProcEtmV4I::iPktExtension(const uint8_t lastByte) in iPktExtension() argument
346 if(!m_is_sync && (lastByte != 0x00)) in iPktExtension()
353 switch(lastByte) in iPktExtension()
379 void TrcPktProcEtmV4I::iPktASync(const uint8_t lastByte) in iPktASync() argument
381 if(lastByte != 0x00) in iPktASync()
393 if((m_currPacketData.size() != 12) || (lastByte != 0x80)) in iPktASync()
419 void TrcPktProcEtmV4I::iPktTraceInfo(const uint8_t lastByte) in iPktTraceInfo() argument
431 m_tinfo_sections.sectFlags = (~lastByte) & TINFO_ALL_SECT; in iPktTraceInfo()
434 if((lastByte & 0x80) == 0x0) in iPktTraceInfo()
442 m_tinfo_sections.sectFlags |= (lastByte & 0x80) ? 0 : TINFO_CTRL; in iPktTraceInfo()
446 m_tinfo_sections.sectFlags |= (lastByte & 0x80) ? 0 : TINFO_INFO_SECT; in iPktTraceInfo()
448 m_tinfo_sections.sectFlags |= (lastByte & 0x80) ? 0 : TINFO_KEY_SECT; in iPktTraceInfo()
450 m_tinfo_sections.sectFlags |= (lastByte & 0x80) ? 0 : TINFO_SPEC_SECT; in iPktTraceInfo()
452 m_tinfo_sections.sectFlags |= (lastByte & 0x80) ? 0 : TINFO_CYCT_SECT; in iPktTraceInfo()
454 m_tinfo_sections.sectFlags |= (lastByte & 0x80) ? 0 : TINFO_WNDW_SECT; in iPktTraceInfo()
498 void TrcPktProcEtmV4I::iPktTimestamp(const uint8_t lastByte) in iPktTimestamp() argument
503 m_ccount_done = (bool)((lastByte & 0x1) == 0); // 0 = not present in iPktTimestamp()
512 m_ts_done = (m_ts_bytes == 9) || ((lastByte & 0x80) == 0); in iPktTimestamp()
516 m_ccount_done = (bool)((lastByte & 0x80) == 0); in iPktTimestamp()
551 void TrcPktProcEtmV4I::iPktException(const uint8_t lastByte) in iPktException() argument
558 case 2: if((lastByte & 0x80) == 0x00) in iPktException()
602 void TrcPktProcEtmV4I::iPktCycleCntF123(const uint8_t lastByte) in iPktCycleCntF123() argument
616 m_curr_packet.setCommitElements(((lastByte >> 2) & 0x3) + 1); in iPktCycleCntF123()
619 m_curr_packet.setCycleCount(m_curr_packet.getCCThreshold() + (lastByte & 0x3)); in iPktCycleCntF123()
624 if((lastByte & 0x1) == 0x1) in iPktCycleCntF123()
637 int commit_offset = ((lastByte & 0x1) == 0x1) ? ((int)m_config.MaxSpecDepth() - 15) : 1; in iPktCycleCntF123()
638 int commit_elements = ((lastByte >> 4) & 0xF); in iPktCycleCntF123()
643 m_curr_packet.setCycleCount(m_curr_packet.getCCThreshold() + (lastByte & 0xF)); in iPktCycleCntF123()
651 m_commit_done = ((lastByte & 0x80) == 0x00); in iPktCycleCntF123()
653 m_count_done = ((lastByte & 0x80) == 0x00); in iPktCycleCntF123()
677 void TrcPktProcEtmV4I::iPktSpeclRes(const uint8_t lastByte) in iPktSpeclRes() argument
685 switch(lastByte & 0x3) in iPktSpeclRes()
699 if(lastByte & 0x1) in iPktSpeclRes()
701 m_curr_packet.setCancelElements(((lastByte >> 1) & 0x3) + 2); in iPktSpeclRes()
708 if((lastByte & 0x80) == 0x00) in iPktSpeclRes()
721 void TrcPktProcEtmV4I::iPktCondInstr(const uint8_t lastByte) in iPktCondInstr() argument
729 m_curr_packet.setCondIF2(lastByte & 0x3); in iPktCondInstr()
738 uint8_t num_c_elem = ((lastByte >> 1) & 0x3F) + (lastByte & 0x1); in iPktCondInstr()
739 m_curr_packet.setCondIF3(num_c_elem,(bool)((lastByte & 0x1) == 0x1)); in iPktCondInstr()
745 bF1Done = ((lastByte & 0x80) == 0x00); in iPktCondInstr()
750 bF1Done = ((lastByte & 0x80) == 0x00); in iPktCondInstr()
761 void TrcPktProcEtmV4I::iPktCondResult(const uint8_t lastByte) in iPktCondResult() argument
774 if((lastByte & 0xFC) == 0x6C)// only one payload set in iPktCondResult()
782 m_curr_packet.setCondRF2((lastByte & 0x4) ? 2 : 1, lastByte & 0x3); in iPktCondResult()
790 m_curr_packet.setCondRF4(lastByte & 0x3); in iPktCondResult()
807 m_F1P1_done = ((lastByte & 0x80) == 0x00); in iPktCondResult()
809 m_F1P2_done = ((lastByte & 0x80) == 0x00); in iPktCondResult()
831 void TrcPktProcEtmV4I::iPktContext(const uint8_t lastByte) in iPktContext() argument
837 if((lastByte & 0x1) == 0) in iPktContext()
845 if((lastByte & 0xC0) == 0) // no VMID or CID in iPktContext()
851 m_vmidBytes = ((lastByte & 0x40) == 0x40) ? (m_config.vmidSize()/8) : 0; in iPktContext()
852 m_ctxtidBytes = ((lastByte & 0x80) == 0x80) ? (m_config.cidSize()/8) : 0; in iPktContext()
908 void TrcPktProcEtmV4I::iPktAddrCtxt(const uint8_t lastByte) in iPktAddrCtxt() argument
941 m_vmidBytes = ((lastByte & 0x40) == 0x40) ? (m_config.vmidSize()/8) : 0; in iPktAddrCtxt()
942 m_ctxtidBytes = ((lastByte & 0x80) == 0x80) ? (m_config.cidSize()/8) : 0; in iPktAddrCtxt()
976 void TrcPktProcEtmV4I::iPktShortAddr(const uint8_t lastByte) in iPktShortAddr() argument
982 if ((lastByte == ETM4_PKT_I_ADDR_S_IS1) || in iPktShortAddr()
983 (lastByte == ETE_PKT_I_SRC_ADDR_S_IS1)) in iPktShortAddr()
988 m_addr_done = (m_currPacketData.size() == 3) || ((lastByte & 0x80) == 0x00); in iPktShortAddr()
1022 void TrcPktProcEtmV4I::iPktLongAddr(const uint8_t lastByte) in iPktLongAddr() argument
1070 void TrcPktProcEtmV4I::iPktQ(const uint8_t lastByte) in iPktQ() argument
1074 m_Q_type = lastByte & 0xF; in iPktQ()
1132 if((lastByte & 0x80) == 0x00) in iPktQ()
1139 m_count_done = ((lastByte & 0x80) == 0x00); in iPktQ()
1182 void TrcPktProcEtmV4I::iAtom(const uint8_t lastByte) in iAtom() argument
1199 m_curr_packet.setAtomPacket(ATOM_PATTERN,(lastByte & 0x1), 1); // 1xE or N in iAtom()
1203 m_curr_packet.setAtomPacket(ATOM_PATTERN,(lastByte & 0x3), 2); // 2x (E or N) in iAtom()
1207 m_curr_packet.setAtomPacket(ATOM_PATTERN,(lastByte & 0x7), 3); // 3x (E or N) in iAtom()
1211 … m_curr_packet.setAtomPacket(ATOM_PATTERN,f4_patterns[(lastByte & 0x3)], 4); // 4 atom pattern in iAtom()
1215 pattIdx = ((lastByte & 0x20) >> 3) | (lastByte & 0x3); in iAtom()
1241 pattCount = (lastByte & 0x1F) + 3; // count of E's in iAtom()
1244 if((lastByte & 0x20) == 0x00) // last atom is E? in iAtom()
1663 bool lastByte = false; in extractContField() local
1666 while(!lastByte && (idx < byte_limit)) // max 5 bytes for 32 bit value; in extractContField()
1672 lastByte = (byteVal & 0x80) != 0x80; in extractContField()
1688 bool lastByte = false; in extractTSField64() local
1694 while(!lastByte) // max 9 bytes for 64 bit value; in extractTSField64()
1705 lastByte = true; in extractTSField64()
1708 lastByte = (byteVal & 0x80) != 0x80; in extractTSField64()
1725 bool lastByte = false; in extractCondResult() local
1730 while(!lastByte && (idx < 6)) // cannot be more than 6 bytes for res + 32 bit key in extractCondResult()
1745 lastByte = (bool)((buffer[st_idx+idx] & 0x80) == 0); in extractCondResult()