Lines Matching refs:trans
73 payload2packet(MasterID masterId, tlm::tlm_generic_payload &trans)
77 switch (trans.get_command()) {
93 trans.get_address(), trans.get_data_length(), flags, masterId);
100 pkt->dataStatic(trans.get_data_ptr());
107 TlmToGem5Bridge<BITWIDTH>::sendEndReq(tlm::tlm_generic_payload &trans)
112 auto status = socket->nb_transport_bw(trans, phase, delay);
119 TlmToGem5Bridge<BITWIDTH>::sendBeginResp(tlm::tlm_generic_payload &trans,
124 trans.set_response_status(tlm::TLM_OK_RESPONSE);
126 auto status = socket->nb_transport_bw(trans, phase, delay);
142 TlmToGem5Bridge<BITWIDTH>::handleBeginReq(tlm::tlm_generic_payload &trans)
148 trans.acquire();
153 trans.get_extension(extension);
162 pkt = payload2packet(masterId, trans);
165 auto tlmSenderState = new TlmSenderState(trans);
169 sendEndReq(trans);
170 trans.release();
173 pendingRequest = &trans;
180 TlmToGem5Bridge<BITWIDTH>::handleEndResp(tlm::tlm_generic_payload &trans)
186 checkTransaction(trans);
203 TlmToGem5Bridge<BITWIDTH>::checkTransaction(tlm::tlm_generic_payload &trans)
205 if (trans.is_response_error()) {
208 << trans.get_response_string();
223 TlmToGem5Bridge<BITWIDTH>::peq_cb(tlm::tlm_generic_payload &trans,
228 handleBeginReq(trans);
231 handleEndResp(trans);
241 tlm::tlm_generic_payload &trans, tlm::tlm_phase &phase,
244 unsigned len = trans.get_data_length();
245 unsigned char *byteEnable = trans.get_byte_enable_ptr();
246 unsigned width = trans.get_streaming_width();
250 trans.set_response_status(tlm::TLM_BYTE_ENABLE_ERROR_RESPONSE);
254 trans.set_response_status(tlm::TLM_BURST_ERROR_RESPONSE);
259 trans.acquire();
260 peq.notify(trans, phase, delay);
266 TlmToGem5Bridge<BITWIDTH>::b_transport(tlm::tlm_generic_payload &trans,
270 trans.get_extension(extension);
280 pkt = payload2packet(masterId, trans);
286 trans.set_dmi_allowed(true);
301 trans.set_response_status(tlm::TLM_OK_RESPONSE);
306 TlmToGem5Bridge<BITWIDTH>::transport_dbg(tlm::tlm_generic_payload &trans)
309 trans.get_extension(extension);
317 auto pkt = payload2packet(masterId, trans);
324 return trans.get_data_length();
329 TlmToGem5Bridge<BITWIDTH>::get_direct_mem_ptr(tlm::tlm_generic_payload &trans,
333 trans.get_extension(extension);
343 pkt = payload2packet(masterId, trans);
350 trans.set_dmi_allowed(true);
374 trans.set_response_status(tlm::TLM_OK_RESPONSE);
406 auto &trans = tlmSenderState->trans;
409 trans.get_extension(extension);
421 sendBeginResp(trans, delay);
422 trans.release();
439 auto &trans = *pendingRequest;
440 sendEndReq(trans);
441 trans.release();