Home
last modified time | relevance | path

Searched refs:pldmTransport (Results 1 – 22 of 22) sorted by relevance

/openbmc/pldm/common/
H A Dtransport.cpp55 pldm_transport* pldmTransport = in pldm_transport_impl_mctp_demux_init() local
58 if (pldmTransport != nullptr) in pldm_transport_impl_mctp_demux_init()
60 pldm_transport_mctp_demux_init_pollfd(pldmTransport, &pollfd); in pldm_transport_impl_mctp_demux_init()
63 return pldmTransport; in pldm_transport_impl_mctp_demux_init()
93 pldm_transport* pldmTransport = pldm_transport_af_mctp_core(impl.af_mctp); in pldm_transport_impl_af_mctp_init() local
95 if (pldmTransport != nullptr) in pldm_transport_impl_af_mctp_init()
97 pldm_transport_af_mctp_init_pollfd(pldmTransport, &pollfd); in pldm_transport_impl_af_mctp_init()
100 return pldmTransport; in pldm_transport_impl_af_mctp_init()
/openbmc/pldm/utilities/requester/
H A Dset_state_effecter_async.cpp48 PldmTransport pldmTransport{}; in main() local
53 &pldmTransport](IO& io, int fd, uint32_t revents) mutable { in main()
59 if (pldmTransport.getEventSource() != fd) in main()
67 auto rc = pldmTransport.recvMsg(srcTid, responseMsg, responseMsgSize); in main()
84 IO io(event, pldmTransport.getEventSource(), EPOLLIN, std::move(callback)); in main()
86 rc = pldmTransport.sendMsg(dstTid, requestMsg.data(), requestMsg.size()); in main()
H A Dset_state_effecter.cpp41 PldmTransport pldmTransport{}; in main() local
46 rc = pldmTransport.sendRecvMsg(static_cast<pldm_tid_t>(mctpEid), in main()
/openbmc/pldm/requester/
H A Drequest.hpp153 explicit Request(PldmTransport* pldmTransport, mctp_eid_t eid, in Request() argument
158 pldmTransport(pldmTransport), eid(eid), in Request()
163 PldmTransport* pldmTransport; //!< PLDM transport member in pldm::requester::Request
187 if (pldmTransport == nullptr) in send()
193 auto rc = pldmTransport->sendMsg(static_cast<pldm_tid_t>(eid), in send()
H A Dhandler.hpp142 PldmTransport* pldmTransport, sdeventplus::Event& event, in Handler() argument
149 pldmTransport(pldmTransport), event(event), instanceIdDb(instanceIdDb), in Handler()
210 pldmTransport, requestMsg->key.eid, event, in pollEndpointQueue()
421 PldmTransport* pldmTransport; //!< PLDM transport object member in pldm::requester::Handler
/openbmc/pldm/pldmd/
H A Dpldmd.cpp198 PldmTransport pldmTransport{}; in main() local
213 requester::Handler<requester::Request> reqHandler(&pldmTransport, event, in main()
230 &instanceIdDb, pldmTransport.getEventSource(), pdrRepo.get(), in main()
263 pldmTransport.getEventSource(), hostEID, event, pdrRepo.get(), in main()
272 pldmTransport.getEventSource(), hostEID, instanceIdDb, &reqHandler); in main()
313 pldmTransport.getEventSource(), hostEID, &instanceIdDb, &reqHandler, in main()
320 &dbusHandler, pldmTransport.getEventSource(), pdrRepo.get(), in main()
328 &dbusHandler, pldmTransport.getEventSource(), hostEID, pdrRepo.get(), in main()
351 auto callback = [verbose, &invoker, &reqHandler, &fwManager, &pldmTransport, in main()
365 returnCode = pldmTransport.recvMsg(TID, requestMsg, recvDataLength); in main()
[all …]
/openbmc/pldm/requester/test/
H A Drequest_test.cpp45 PldmTransport* pldmTransport = nullptr; member in RequestIntfTest
52 MockRequest request(pldmTransport, eid, event, std::move(requestMsg), 0,
64 MockRequest request(pldmTransport, eid, event, std::move(requestMsg), 2,
76 MockRequest request(pldmTransport, eid, event, std::move(requestMsg), 9,
100 MockRequest request(pldmTransport, eid, event, std::move(requestMsg), 2,
H A Dhandler_test.cpp32 PldmTransport* pldmTransport = nullptr; member in HandlerTest
79 pldmTransport, event, instanceIdDb, false, seconds(1), 2, in TEST_F()
100 pldmTransport, event, instanceIdDb, false, seconds(1), 2, in TEST_F()
119 pldmTransport, event, instanceIdDb, false, seconds(2), 2, in TEST_F()
160 pldmTransport, event, instanceIdDb, false, seconds(1), 2, in TEST_F()
207 pldmTransport, event, instanceIdDb, false, seconds(1), 2, in TEST_F()
264 Handler<MockRequest> reqHandler(pldmTransport, event, instanceIdDb, false, in TEST_F()
/openbmc/phosphor-debug-collector/host-transport-extensions/pldm/common/
H A Dpldm_utils.cpp27 pldm_transport* pldmTransport = nullptr; variable
100 if (pldmTransport) in openPLDM()
142 pldmTransport = pldm_transport_mctp_demux_core(mctpDemux); in openMctpDemuxTransport()
145 rc = pldm_transport_mctp_demux_init_pollfd(pldmTransport, &pollfd); in openMctpDemuxTransport()
160 pldmTransport = nullptr; in pldmClose()
H A Dpldm_utils.hpp15 extern struct pldm_transport* pldmTransport;
/openbmc/phosphor-logging/extensions/openpower-pels/
H A Dpldm_interface.cpp54 pldmTransport = nullptr; in closeFD()
83 if (pldmTransport) in open()
119 pldmTransport = pldm_transport_mctp_demux_core(mctpDemux); in openMctpDemuxTransport()
122 rc = pldm_transport_mctp_demux_init_pollfd(pldmTransport, &pollfd); in openMctpDemuxTransport()
232 std::placeholders::_3, pldmTransport)); in registerReceiveCallback()
251 rc = pldm_transport_send_msg(pldmTransport, pldmTID, requestMsg.data(), in doSend()
H A Dpldm_interface.hpp215 pldm_transport* pldmTransport = nullptr; member in openpower::pels::PLDMInterface
/openbmc/openpower-hw-diags/util/
H A Dpldm.cpp79 struct pldm_transport* pldmTransport = NULL; member in util::pldm::PLDMInstanceManager
151 if (pldmTransport) in openPLDM()
194 pldmTransport = pldm_transport_mctp_demux_core(impl.mctpDemux); in openMctpDemuxTransport()
196 rc = pldm_transport_mctp_demux_init_pollfd(pldmTransport, &pollfd); in openMctpDemuxTransport()
227 pldmTransport = pldm_transport_af_mctp_core(impl.afMctp); in openAfMctpTransport()
229 rc = pldm_transport_af_mctp_init_pollfd(pldmTransport, &pollfd); in openAfMctpTransport()
249 pldmTransport = NULL; in closePLDM()
272 auto pldmRc = pldm_transport_send_msg(pldmTransport, pldmTID, in sendPldm()
/openbmc/pldm/softoff/
H A Dsoftoff.cpp273 PldmTransport pldmTransport{}; in hostSoftOff() local
316 auto callback = [=, &pldmTransport, in hostSoftOff()
318 if (fd != pldmTransport.getEventSource()) in hostSoftOff()
332 auto rc = pldmTransport.recvMsg(pldmTID, responseMsg, responseMsgSize); in hostSoftOff()
390 IO io(event, pldmTransport.getEventSource(), EPOLLIN, std::move(callback)); in hostSoftOff()
393 rc = pldmTransport.sendMsg(pldmTID, requestMsg.data(), requestMsg.size()); in hostSoftOff()
/openbmc/openpower-occ-control/
H A Dpldm.cpp598 pldmTransport = pldm_transport_mctp_demux_core(impl.mctpDemux); in openMctpDemuxTransport()
601 if (pldm_transport_mctp_demux_init_pollfd(pldmTransport, &pollfd)) in openMctpDemuxTransport()
637 pldmTransport = pldm_transport_af_mctp_core(impl.afMctp); in openAfMctpTransport()
640 if (pldm_transport_af_mctp_init_pollfd(pldmTransport, &pollfd)) in openAfMctpTransport()
658 if (pldmTransport) in pldmOpen()
722 auto pldmRc = pldm_transport_send_msg(pldmTransport, pldmTID, in sendPldm()
752 auto rc = pldm_transport_send_msg(pldmTransport, pldmTID, in sendPldm()
842 pldmTransport = NULL; in pldmClose()
874 auto rc = pldm_transport_recv_msg(pldmIface->pldmTransport, &pldmTID, in pldmRspCallback()
1013 auto rc = pldm_transport_recv_msg(pldmIface->pldmTransport, &pldmTID, in pldmResetCallback()
H A Dpldm.hpp278 struct pldm_transport* pldmTransport = NULL; member in pldm::Interface
/openbmc/pldm/pldmtool/
H A Dpldm_cmd_helper.cpp67 PldmTransport pldmTransport{}; in pldmSendRecv() local
77 pldmTransport.sendRecvMsg(tid, requestMsg.data(), requestMsg.size(), in pldmSendRecv()
/openbmc/pldm/platform-mc/test/
H A Dsensor_manager_test.cpp20 reqHandler(pldmTransport, event, instanceIdDb, false), in SensorManagerTest()
26 PldmTransport* pldmTransport = nullptr; member in SensorManagerTest
H A Devent_manager_test.cpp25 reqHandler(pldmTransport, event, instanceIdDb, false, in EventManagerTest()
32 PldmTransport* pldmTransport = nullptr; member in EventManagerTest
H A Dplatform_manager_test.cpp19 reqHandler(pldmTransport, event, instanceIdDb, false, in PlatformManagerTest()
25 PldmTransport* pldmTransport = nullptr; member in PlatformManagerTest
H A Dterminus_manager_test.cpp34 reqHandler(pldmTransport, event, instanceIdDb, false, in TerminusManagerTest()
42 PldmTransport* pldmTransport = nullptr; member in TerminusManagerTest
/openbmc/phosphor-debug-collector/host-transport-extensions/pldm/oem/ibm/
H A Dpldm_oem_cmds.cpp143 rc = pldm_transport_send_msg(pldmTransport, pldmTID, requestMsg.data(), in requestOffload()
218 pldmTransport, pldmTID, fileAckReqMsg.data(), fileAckReqMsg.size()); in requestDelete()