Home
last modified time | relevance | path

Searched refs:reqBytes (Results 1 – 13 of 13) sorted by relevance

/external/OpenCSD/decoder/source/mem_acc/
Dtrc_mem_acc_cache.cpp66 uint32_t bytesRead = 0, reqBytes = *numBytes; in readBytesFromCache() local
75 if (blockInCache(address, reqBytes)) in readBytesFromCache()
77 bytesRead = reqBytes; in readBytesFromCache()
78 … memcpy(byteBuffer, &m_mru[m_mru_idx].data[address - m_mru[m_mru_idx].st_addr], reqBytes); in readBytesFromCache()
80 … << m_mru_idx << "[addr:0x" << std::hex << address << ", bytes: " << std::dec << reqBytes << "]\n"; in readBytesFromCache()
89 …emAccCache:: miss [addr:0x" << std::hex << address << ", bytes: " << std::dec << reqBytes << "]\n"; in readBytesFromCache()
123 if (blockInPage(address, reqBytes)) /* check we got the data we needed */ in readBytesFromCache()
125 bytesRead = reqBytes; in readBytesFromCache()
126 … memcpy(byteBuffer, &m_mru[m_mru_idx].data[address - m_mru[m_mru_idx].st_addr], reqBytes); in readBytesFromCache()
Dtrc_mem_acc_cb.cpp22 …onst ocsd_mem_space_acc_t memSpace, const uint8_t trcID, const uint32_t reqBytes, uint8_t *byteBuf… in readBytes() argument
26 return m_p_CBclass->readBytes(address,memSpace,reqBytes,byteBuffer); in readBytes()
28 return m_p_CBfn(m_p_cbfn_context, address,memSpace,reqBytes,byteBuffer); in readBytes()
30 return m_p_CBIDfn(m_p_cbfn_context, address, memSpace, trcID, reqBytes, byteBuffer); in readBytes()
Dtrc_mem_acc_file.cpp202 …nst ocsd_mem_space_acc_t mem_space, const uint8_t trcID, const uint32_t reqBytes, uint8_t *byteBuf… in readBytes() argument
210 …bytesRead = TrcMemAccessorBase::bytesInRange(address,reqBytes); // get avialable bytes in range. in readBytes()
222 bytesRead = bytesInRange(address,reqBytes); in readBytes()
330 …t32_t TrcMemAccessorFile::bytesInRange(const ocsd_vaddr_t s_address, const uint32_t reqBytes) const in bytesInRange()
334 bytesInRange = TrcMemAccessorBase::bytesInRange(s_address,reqBytes); in bytesInRange()
339 bytesInRange = p_region->bytesInRange(s_address,reqBytes); in bytesInRange()
Dtrc_mem_acc_bufptr.cpp45 …nst ocsd_mem_space_acc_t mem_space, const uint8_t trcID, const uint32_t reqBytes, uint8_t *byteBuf… in readBytes() argument
48 uint32_t bytesRead = bytesInRange(address,reqBytes); // check bytes available in readBytes()
/external/OpenCSD/decoder/include/mem_acc/
Dtrc_mem_acc_cache.h80 …bool blockInCache(const ocsd_vaddr_t address, const uint32_t reqBytes); // run through each page t…
81 bool blockInPage(const ocsd_vaddr_t address, const uint32_t reqBytes);
113 inline bool TrcMemAccCache::blockInPage(const ocsd_vaddr_t address, const uint32_t reqBytes) in blockInPage() argument
116 m_mru[m_mru_idx].st_addr + m_mru[m_mru_idx].valid_len >= (address + reqBytes)) in blockInPage()
121 inline bool TrcMemAccCache::blockInCache(const ocsd_vaddr_t address, const uint32_t reqBytes) in blockInCache() argument
126 if (blockInPage(address, reqBytes)) in blockInCache()
Dtrc_mem_acc_base.h110 … virtual const uint32_t bytesInRange(const ocsd_vaddr_t s_address, const uint32_t reqBytes) const;
132 …onst ocsd_mem_space_acc_t memSpace, const uint8_t trcID, const uint32_t reqBytes, uint8_t *byteBuf…
192 …t32_t TrcMemAccessorBase::bytesInRange(const ocsd_vaddr_t s_address, const uint32_t reqBytes) const in bytesInRange() argument
199 if(bytesInRange > reqBytes) in bytesInRange()
200 bytesInRange = reqBytes; in bytesInRange()
Dtrc_mem_acc_file.h59 …onst ocsd_mem_space_acc_t memSpace, const uint8_t trcID, const uint32_t reqBytes, uint8_t *byteBuf… in readBytes() argument
80 …onst ocsd_mem_space_acc_t memSpace, const uint8_t trcID, const uint32_t reqBytes, uint8_t *byteBuf…
156 … virtual const uint32_t bytesInRange(const ocsd_vaddr_t s_address, const uint32_t reqBytes) const;
Dtrc_mem_acc_cb_if.h66 …_vaddr_t s_address, const ocsd_mem_space_acc_t memSpace, const uint32_t reqBytes, uint8_t *byteBuf…
Dtrc_mem_acc_bufptr.h67 …onst ocsd_mem_space_acc_t memSpace, const uint8_t trcID, const uint32_t reqBytes, uint8_t *byteBuf…
Dtrc_mem_acc_cb.h52 …onst ocsd_mem_space_acc_t memSpace, const uint8_t trcID, const uint32_t reqBytes, uint8_t *byteBuf…
/external/OpenCSD/decoder/tests/source/
Dc_api_pkt_print_test.c254 …st ocsd_mem_space_acc_t mem_space, const uint8_t trc_id, const uint32_t reqBytes, uint8_t *byteBuf… in do_mem_acc_cb() argument
270 read_bytes = reqBytes; in do_mem_acc_cb()
272 if((address + reqBytes - 1) > mem_file_en_address) in do_mem_acc_cb()
288 …sprintf(packet_str, "mem_acc_cb(addr 0x%08llX, size %d, trcID 0x%02X)\n", address, reqBytes, trc_i… in do_mem_acc_cb()
294 …d_vaddr_t address, const ocsd_mem_space_acc_t mem_space, const uint32_t reqBytes, uint8_t *byteBuf… in mem_acc_cb() argument
296 return do_mem_acc_cb(p_context, address, mem_space, 0xff, reqBytes, byteBuffer); in mem_acc_cb()
299 …st ocsd_mem_space_acc_t mem_space, const uint8_t trc_id, const uint32_t reqBytes, uint8_t *byteBuf… in mem_acc_id_cb() argument
301 return do_mem_acc_cb(p_context, address, mem_space, trc_id, reqBytes, byteBuffer); in mem_acc_id_cb()
Dmem_buff_demo.cpp89 …d_vaddr_t address, const ocsd_mem_space_acc_t mem_space, const uint32_t reqBytes, uint8_t *byteBuf…
323 const ocsd_mem_space_acc_t mem_space, const uint32_t reqBytes, uint8_t *byteBuffer) in mem_access_callback_fn() argument
326 uint32_t read_bytes = reqBytes; in mem_access_callback_fn()
337 if ((address + reqBytes - 1) > buf_end_address) in mem_access_callback_fn()
/external/OpenCSD/decoder/include/opencsd/
Docsd_if_types.h460 …d_vaddr_t address, const ocsd_mem_space_acc_t mem_space, const uint32_t reqBytes, uint8_t *byteBuf…
484 …nst ocsd_mem_space_acc_t mem_space, const uint8_t trcID, const uint32_t reqBytes, uint8_t *byteBuf…