/openbmc/pldm/fw-update/ |
H A D | inventory_manager.cpp | 20 for (const auto& eid : eids) in discoverFDs() local 24 sendQueryDeviceIdentifiersRequest(eid); in discoverFDs() 29 "Failed to discover file descriptors for endpoint ID {EID} with {ERROR}", in discoverFDs() 30 "EID", eid, "ERROR", e); in discoverFDs() 35 void InventoryManager::sendQueryDeviceIdentifiersRequest(mctp_eid_t eid) in sendQueryDeviceIdentifiersRequest() argument 37 auto instanceId = instanceIdDb.next(eid); in sendQueryDeviceIdentifiersRequest() 45 instanceIdDb.free(eid, instanceId); in sendQueryDeviceIdentifiersRequest() 47 … "Failed to encode query device identifiers request for endpoint ID {EID} with response code {RC}", in sendQueryDeviceIdentifiersRequest() 48 "EID", eid, "RC", rc); in sendQueryDeviceIdentifiersRequest() 54 eid, instanceId, PLDM_FWUP, PLDM_QUERY_DEVICE_IDENTIFIERS, in sendQueryDeviceIdentifiersRequest() [all …]
|
H A D | device_updater.cpp | 22 auto instanceId = updateManager->instanceIdDb.next(eid); in startFwUpdateFlow() 52 updateManager->instanceIdDb.free(eid, instanceId); in startFwUpdateFlow() 54 "Failed to encode request update request for endpoint ID '{EID}', response code '{RC}'", in startFwUpdateFlow() 55 "EID", eid, "RC", rc); in startFwUpdateFlow() 59 eid, instanceId, PLDM_FWUP, PLDM_REQUEST_UPDATE, std::move(request), in startFwUpdateFlow() 65 "Failed to send request update for endpoint ID '{EID}', response code '{RC}'", in startFwUpdateFlow() 66 "EID", eid, "RC", rc); in startFwUpdateFlow() 70 void DeviceUpdater::requestUpdate(mctp_eid_t eid, const pldm_msg* response, in requestUpdate() argument 76 error("No response received for request update for endpoint ID '{EID}'", in requestUpdate() 77 "EID", eid); in requestUpdate() [all …]
|
H A D | inventory_manager.hpp | 70 * @param[in] eid - Remote MCTP endpoint 74 void queryDeviceIdentifiers(mctp_eid_t eid, const pldm_msg* response, 79 * @param[in] eid - Remote MCTP endpoint 83 void queryDownstreamDevices(mctp_eid_t eid, const pldm_msg* response, 88 * @param[in] eid - Remote MCTP endpoint 92 void queryDownstreamIdentifiers(mctp_eid_t eid, const pldm_msg* response, 97 * @param[in] eid - Remote MCTP endpoint 102 mctp_eid_t eid, const pldm_msg* response, size_t respMsgLen); 109 * @param[in] eid - Remote MCTP endpoint 113 void getFirmwareParameters(mctp_eid_t eid, const pldm_msg* response, [all …]
|
H A D | device_updater.hpp | 37 * @param[in] eid - Endpoint ID of the firmware device 50 explicit DeviceUpdater(mctp_eid_t eid, std::ifstream& package, in DeviceUpdater() argument 56 eid(eid), package(package), fwDeviceIDRecord(fwDeviceIDRecord), in DeviceUpdater() 73 * @param[in] eid - Remote MCTP endpoint 77 void requestUpdate(mctp_eid_t eid, const pldm_msg* response, 93 * @param[in] eid - Remote MCTP endpoint 97 void passCompTable(mctp_eid_t eid, const pldm_msg* response, 105 * @param[in] eid - Remote MCTP endpoint 109 void updateComponent(mctp_eid_t eid, const pldm_msg* response, 149 * @param[in] eid - Remote MCTP endpoint [all …]
|
/openbmc/pldm/requester/ |
H A D | handler.hpp | 41 mctp_eid_t eid; //!< MCTP endpoint ID member 48 return ((eid == e.eid) && (instanceId == e.instanceId) && in operator ==() 62 return (key.eid << 24 | key.instanceId << 16 | key.type << 8 | in operator ()() 68 mctp_eid_t eid, const pldm_msg* response, size_t respMsgLen)>; 95 * the existing of the request message to the endpoint with its' EID. 99 mctp_eid_t eid; //!< Responder MCTP endpoint ID member 105 return (eid == mctpEid); in operator ==() 156 auto eid = key.eid; in instanceIdExpiryCallBack() local 160 "Instance ID expiry for EID '{EID}' using InstanceID '{INSTANCEID}'", in instanceIdExpiryCallBack() 161 "EID", key.eid, "INSTANCEID", key.instanceId); in instanceIdExpiryCallBack() [all …]
|
H A D | mctp_endpoint_discovery.cpp | 86 mctpInfoMap[MctpInfo(std::get<eid>(epProps), uuid, "", in getMctpInfos() 102 if (properties.contains("NetworkId") && properties.contains("EID") && in getMctpEndpointProps() 106 auto eid = std::get<mctp_eid_t>(properties.at("EID")); in getMctpEndpointProps() local 109 return MctpEndpointProps(networkId, eid, types); in getMctpEndpointProps() 211 properties.contains("EID") && in getAddedMctpInfos() 216 auto eid = std::get<mctp_eid_t>(properties.at("EID")); in getAddedMctpInfos() local 225 "mctpd added a DEGRADED endpoint {EID} networkId {NET} to D-Bus", in getAddedMctpInfos() 226 "NET", networkId, "EID", static_cast<unsigned>(eid)); in getAddedMctpInfos() 232 "Adding Endpoint networkId '{NETWORK}' and EID '{EID}' UUID '{UUID}'", in getAddedMctpInfos() 233 "NETWORK", networkId, "EID", eid, "UUID", uuid); in getAddedMctpInfos() [all …]
|
/openbmc/qemu/scripts/ |
H A D | replay-dump.py | 95 Decoder = namedtuple("Decoder", "eid name fn") 99 decoder = next((d for d in table if d.eid == index), None) 106 return decoder.fn(decoder.eid, decoder.name, dumpfile) 109 def print_event(eid, name, string=None, event_count=None): argument 115 print("%d:%s(%d) %s" % (event_count, name, eid, string)) 117 print("%d:%s(%d)" % (event_count, name, eid)) 122 def decode_unimp(eid, name, _unused_dumpfile): argument 127 def decode_plain(eid, name, _unused_dumpfile): argument 129 print_event(eid, name, "no data") 133 def swallow_async_qword(eid, name, dumpfile): argument [all …]
|
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/state/phosphor-state-manager/ |
H A D | rescan-cxl-eid | 3 # Function to check if an EID is already set 5 local eid="$1" 6 …TP1 /au/com/codeconstruct/mctp1/networks/1/endpoints/"$eid" xyz.openbmc_project.MCTP.Endpoint EID … 10 # Function to set up EID for CXL1 or CXL2 18 # Function to check readiness and setup EID 20 local eid="$1" 26 echo "${cxl_type} EID ${eid} is ready; attempting setup." 28 echo "${cxl_type} EID $eid setup was successful." 30 echo "${cxl_type} EID $eid setup failed." 33 echo "${cxl_type} EID $eid is not ready for setup." [all …]
|
H A D | wait-until-mctp-EID-remove | 15 echo "Starting MCTP EID check for SLOT: $SLOT" 20 …/com/codeconstruct/mctp1/networks/1/endpoints/"$SD_EID" xyz.openbmc_project.MCTP.Endpoint EID 2>&1) 21 …/com/codeconstruct/mctp1/networks/1/endpoints/"$WF_EID" xyz.openbmc_project.MCTP.Endpoint EID 2>&1) 31 echo "SD EID $SD_EID is removed." 34 echo "SD EID $SD_EID is still present." 38 echo "WF EID $WF_EID is removed." 41 echo "WF EID $WF_EID is still present." 45 echo "Both SD EID $SD_EID and WF EID $WF_EID are removed successfully." 50 echo "SD EID $SD_EID not removed yet." 53 echo "WF EID $WF_EID not removed yet." [all …]
|
H A D | wait-until-mctp-connection-done | 3 EID=$(($1*10)) 7 …MCTP1 /au/com/codeconstruct/mctp1/networks/1/endpoints/"$EID" xyz.openbmc_project.MCTP.Endpoint EID 11 echo "MCTP ETD $EID connection successfully." 15 echo "MCTP EID $EID not connection yet." 20 echo "timeout waiting for MCTP EID $EID connection."
|
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/gpio/phosphor-gpio-monitor/ |
H A D | rescan-wf-bic | 9 # slot and not probe MCTP EID yet, and then go to the workaround to probe 10 # MCTP EID again. In this case we found that MCTP EID was already probed 12 # MCTP response timeout for EID e.g. 72 (WF-7) occurred and it caused mctpd 13 # to remove this EID 72 due to this timeout and then PLDM sensor missing happened. 20 # This method of probing the Wf EID through SetupEndpointByConfigPath 21 # should ensure that it only executes if the Wf EID has truly not been probed. 22 # Check if we got WF BIC's EID 24 …P1 /au/com/codeconstruct/mctp1/networks/1/endpoints/"$wf_eid" xyz.openbmc_project.MCTP.Endpoint EID 28 echo "WF BIC's EID $wf_eid found successfully" 31 echo "WF BIC's EID $wf_eid not found yet." [all …]
|
/openbmc/pldm/requester/test/ |
H A D | handler_test.cpp | 31 mctp_eid_t eid = 0; member in HandlerTest 61 void pldmResponseCallBack(mctp_eid_t /*eid*/, const pldm_msg* response, in pldmResponseCallBack() 82 auto instanceId = instanceIdDb.next(eid); in TEST_F() 85 eid, instanceId, 0, 0, std::move(request), in TEST_F() 91 reqHandler.handleResponse(eid, instanceId, 0, 0, responsePtr, in TEST_F() 103 auto instanceId = instanceIdDb.next(eid); in TEST_F() 106 eid, instanceId, 0, 0, std::move(request), in TEST_F() 122 auto instanceId = instanceIdDb.next(eid); in TEST_F() 125 eid, instanceId, 0, 0, std::move(request), in TEST_F() 130 auto instanceIdNxt = instanceIdDb.next(eid); in TEST_F() [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ath10k/ |
H A D | htc.c | 58 ep->eid, skb); in ath10k_htc_notify_tx_completion() 73 ath10k_warn(ar, "no tx handler for eid %d\n", ep->eid); in ath10k_htc_notify_tx_completion() 95 hdr->eid = ep->eid; in ath10k_htc_prepare_tx_skb() 112 enum ath10k_htc_ep_id eid = ep->eid; in ath10k_htc_consume_credit() local 124 eid, credits, ep->tx_credits, consume); in ath10k_htc_consume_credit() 133 eid, credits, ep->tx_credits); in ath10k_htc_consume_credit() 145 enum ath10k_htc_ep_id eid = ep->eid; in ath10k_htc_release_credit() local 156 eid, credits, ep->tx_credits); in ath10k_htc_release_credit() 164 enum ath10k_htc_ep_id eid, in ath10k_htc_send() argument 168 struct ath10k_htc_ep *ep = &htc->endpoint[eid]; in ath10k_htc_send() [all …]
|
/openbmc/libpldm/include/libpldm/ |
H A D | pldm.h | 45 * @param[in] eid - destination MCTP eid 57 pldm_requester_rc_t pldm_send_recv(mctp_eid_t eid, int mctp_fd, 68 * @param[in] eid - destination MCTP eid 75 pldm_requester_rc_t pldm_send(mctp_eid_t eid, int mctp_fd, 80 * data is a PLDM response message that matches eid and instance_id. 82 * @param[in] eid - destination MCTP eid 92 * when data was read, but didn't match eid or instance_id. 94 pldm_requester_rc_t pldm_recv(mctp_eid_t eid, int mctp_fd, uint8_t instance_id, 101 * @param[in] eid - destination MCTP eid 112 pldm_requester_rc_t pldm_recv_any(mctp_eid_t eid, int mctp_fd,
|
/openbmc/linux/net/mctp/ |
H A D | neigh.c | 24 static int mctp_neigh_add(struct mctp_dev *mdev, mctp_eid_t eid, in mctp_neigh_add() argument 33 if (mctp_neigh_lookup(mdev, eid, NULL) == 0) { in mctp_neigh_add() 51 neigh->eid = eid; in mctp_neigh_add() 88 static int mctp_neigh_remove(struct mctp_dev *mdev, mctp_eid_t eid, in mctp_neigh_remove() argument 97 if (neigh->dev == mdev && neigh->eid == eid && in mctp_neigh_remove() 124 mctp_eid_t eid; in mctp_rtm_newneigh() local 136 NL_SET_ERR_MSG(extack, "Neighbour EID must be specified"); in mctp_rtm_newneigh() 145 eid = nla_get_u8(tb[NDA_DST]); in mctp_rtm_newneigh() 146 if (!mctp_address_unicast(eid)) { in mctp_rtm_newneigh() 147 NL_SET_ERR_MSG(extack, "Invalid neighbour EID"); in mctp_rtm_newneigh() [all …]
|
/openbmc/pldm/platform-mc/ |
H A D | terminus_manager.cpp | 251 mctp_eid_t eid = std::get<0>(mctpInfo); in initMctpTerminus() local 254 auto rc = co_await getTidOverMctp(eid, &tid); in initMctpTerminus() 321 rc = co_await setTidOverMctp(eid, tid); in initMctpTerminus() 416 mctp_eid_t eid, Request& request, const pldm_msg** responseMsg, in sendRecvPldmMsgOverMctp() argument 423 co_await handler.sendRecvMsg(eid, std::move(request)); in sendRecvPldmMsgOverMctp() 443 exec::task<int> TerminusManager::getTidOverMctp(mctp_eid_t eid, pldm_tid_t* tid) in getTidOverMctp() argument 445 auto instanceId = instanceIdDb.next(eid); in getTidOverMctp() 451 instanceIdDb.free(eid, instanceId); in getTidOverMctp() 453 "Failed to encode request GetTID for endpoint ID {EID}, error {RC} ", in getTidOverMctp() 454 "EID", ei in getTidOverMctp() 489 setTidOverMctp(mctp_eid_t eid,pldm_tid_t tid) setTidOverMctp() argument 663 auto eid = std::get<0>(mctpInfo.value()); sendRecvPldmMsg() local [all...] |
H A D | terminus_manager.hpp | 94 /** @brief Send request PLDM message to eid. The function will 97 * @param[in] eid - Destination EID 104 mctp_eid_t eid, Request& request, const pldm_msg** responseMsg, 149 /** @brief getter of local EID 151 * @return uint8_t - local EID 174 /** @brief Member functions to get the MCTP eid of active MCTP medium 179 * @return option mctp_eid_t - the mctp eid or std::nullopt 205 /** @brief Send getTID PLDM command to destination EID and then return the 208 * @param[in] eid [all...] |
/openbmc/libpldm/src/transport/ |
H A D | mctp-demux.c | 29 /* In the future this probably needs to move to a tid-eid-uuid/network 84 pldm_tid_t tid, mctp_eid_t *eid) in pldm_transport_mctp_demux_get_eid() argument 89 *eid = i; in pldm_transport_mctp_demux_get_eid() 93 *eid = -1; in pldm_transport_mctp_demux_get_eid() 99 mctp_eid_t eid, pldm_tid_t *tid) in pldm_transport_mctp_demux_get_tid() argument 102 if (ctx->tid_eid_map[eid] != 0) { in pldm_transport_mctp_demux_get_tid() 103 *tid = ctx->tid_eid_map[eid]; in pldm_transport_mctp_demux_get_tid() 111 pldm_tid_t tid, mctp_eid_t eid) in pldm_transport_mctp_demux_map_tid() argument 113 ctx->tid_eid_map[eid] = tid; in pldm_transport_mctp_demux_map_tid() 121 mctp_eid_t eid) in pldm_transport_mctp_demux_unmap_tid() argument [all …]
|
H A D | af-mctp.c | 65 pldm_tid_t tid, mctp_eid_t *eid) in pldm_transport_af_mctp_get_eid() argument 70 *eid = i; in pldm_transport_af_mctp_get_eid() 74 *eid = -1; in pldm_transport_af_mctp_get_eid() 79 mctp_eid_t eid, pldm_tid_t *tid) in pldm_transport_af_mctp_get_tid() argument 81 if (ctx->tid_eid_map[eid] != 0) { in pldm_transport_af_mctp_get_tid() 82 *tid = ctx->tid_eid_map[eid]; in pldm_transport_af_mctp_get_tid() 90 pldm_tid_t tid, mctp_eid_t eid) in pldm_transport_af_mctp_map_tid() argument 92 ctx->tid_eid_map[eid] = tid; in pldm_transport_af_mctp_map_tid() 100 mctp_eid_t eid) in pldm_transport_af_mctp_unmap_tid() argument 102 ctx->tid_eid_map[eid] = 0; in pldm_transport_af_mctp_unmap_tid() [all …]
|
/openbmc/phosphor-debug-collector/host-transport-extensions/pldm/oem/ibm/ |
H A D | pldm_oem_cmds.cpp | 71 mctp_eid_t eid = defaultEIDValue; in readEID() local 76 lg2::error("Could not open host EID file"); in readEID() 86 eid = strtol(eidStr.c_str(), nullptr, 10); in readEID() 90 lg2::error("EID file was empty"); in readEID() 97 return eid; in readEID() 113 mctp_eid_t eid = readEID(); in requestOffload() local 115 auto instanceID = getPLDMInstanceID(eid); in requestOffload() 124 freePLDMInstanceID(instanceID, eid); in requestOffload() 130 rc = openPLDM(eid); in requestOffload() 133 freePLDMInstanceID(instanceID, eid); in requestOffload() [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ath11k/ |
H A D | htc.c | 61 hdr->htc_info = FIELD_PREP(HTC_HDR_ENDPOINTID, ep->eid) | in ath11k_htc_prepare_tx_skb() 75 enum ath11k_htc_ep_id eid, in ath11k_htc_send() argument 78 struct ath11k_htc_ep *ep = &htc->endpoint[eid]; in ath11k_htc_send() 87 if (eid >= ATH11K_HTC_EP_COUNT) { in ath11k_htc_send() 88 ath11k_warn(ab, "Invalid endpoint id: %d\n", eid); in ath11k_htc_send() 100 eid, credits, ep->tx_credits); in ath11k_htc_send() 108 eid, credits, ep->tx_credits); in ath11k_htc_send() 114 skb_cb->eid = eid; in ath11k_htc_send() 122 ath11k_dbg(ab, ATH11K_DBG_HTC, "tx skb %p eid %d paddr %pad\n", in ath11k_htc_send() 123 skb, skb_cb->eid, &skb_cb->paddr); in ath11k_htc_send() [all …]
|
/openbmc/pldm/common/ |
H A D | types.hpp | 18 using eid = uint8_t; typedef 36 * eid : Endpoint EID in byte. Defined to match with MCTP D-Bus 42 using MctpInfo = std::tuple<eid, UUID, MctpMedium, NetworkId>; 48 * eid : Endpoint EID in byte. Defined to match with MCTP D-Bus 52 using MctpEndpointProps = std::tuple<NetworkId, eid, MCTPMsgTypes>; 60 * EID from 1 to 7 is reserved EID. So the start valid EID is 8 109 using DescriptorMap = std::unordered_map<eid, Descriptors>; 110 using DownstreamDescriptorMap = std::unordered_map<eid, DownstreamDeviceInfo>; 118 using ComponentInfoMap = std::unordered_map<eid, ComponentInfo>; 169 using EID = uint8_t; typedef
|
/openbmc/openbmc/meta-facebook/meta-harma/recipes-networking/mctp/ |
H A D | mctp_%.bbappend | 5 file://setup-eid.conf \ 6 file://setup-local-eid \ 7 file://setup-bic-eid \ 17 install -m 0644 ${UNPACKDIR}/setup-eid.conf \ 18 ${override_dir}/setup-eid.conf 22 install -m 0755 ${UNPACKDIR}/setup-local-eid \ 24 install -m 0755 ${UNPACKDIR}/setup-bic-eid \
|
/openbmc/libmctp/ |
H A D | i2c.c | 29 static bool mctp_i2c_valid_eid(uint8_t eid) in mctp_i2c_valid_eid() argument 32 return eid >= 8 && eid < 0xff; in mctp_i2c_valid_eid() 43 static int mctp_i2c_neigh_get(struct mctp_binding_i2c *i2c, uint8_t eid, in mctp_i2c_neigh_get() argument 48 if (n->used && n->eid == eid) { in mctp_i2c_neigh_get() 58 * entry will be evicted. If eid already exists, that entry will 60 static void mctp_i2c_neigh_add(struct mctp_binding_i2c *i2c, uint8_t eid, in mctp_i2c_neigh_add() argument 73 if (n->eid == eid) { in mctp_i2c_neigh_add() 88 entry->eid = eid; in mctp_i2c_neigh_add() 130 int mctp_i2c_set_neighbour(struct mctp_binding_i2c *i2c, uint8_t eid, in mctp_i2c_set_neighbour() argument 133 if (!mctp_i2c_valid_eid(eid)) { in mctp_i2c_set_neighbour() [all …]
|
/openbmc/libpldm/src/requester/ |
H A D | pldm.c | 65 #define PLDM_REQ_FN(eid, fd, fn, rc, ...) \ argument 69 pldm_tid_t tid = eid; \ 86 rc = pldm_transport_mctp_demux_map_tid(demux, tid, eid); \ 100 pldm_requester_rc_t pldm_recv_any(mctp_eid_t eid, int mctp_fd, in pldm_recv_any() argument 107 pldm_tid_t tid = eid; in pldm_recv_any() 124 rc = pldm_transport_mctp_demux_map_tid(demux, tid, eid); in pldm_recv_any() 158 pldm_requester_rc_t pldm_recv(mctp_eid_t eid, int mctp_fd, in pldm_recv() argument 163 pldm_recv_any(eid, mctp_fd, pldm_resp_msg, resp_msg_len); in pldm_recv() 175 pldm_requester_rc_t pldm_send_recv(mctp_eid_t eid, int mctp_fd, in pldm_send_recv() argument 185 PLDM_REQ_FN(eid, mctp_fd, pldm_transport_send_recv_msg, rc, in pldm_send_recv() [all …]
|