Home
last modified time | relevance | path

Searched refs:netFn (Results 1 – 25 of 28) sorted by relevance

12

/openbmc/ipmitool/src/plugins/serial/
H A Dserial_basic.c77 unsigned char netFn; /* NET FN | RS LUN */ member
99 unsigned char netFn; member
141 uint8_t netFn; member
638 hdr->netFn = 0x18; in serial_bm_build_msg()
648 outer_rq->msg.netFn = 0x18; in serial_bm_build_msg()
649 outer_rq->msg.csum1 = -(outer_rq->msg.rsSA + outer_rq->msg.netFn); in serial_bm_build_msg()
664 inner_rq->msg.netFn = (req->msg.netfn << 2) | req->msg.lun; in serial_bm_build_msg()
665 inner_rq->msg.csum1 = -(inner_rq->msg.rsSA + inner_rq->msg.netFn); in serial_bm_build_msg()
686 ctx[1].netFn = outer_rq->msg.netFn; in serial_bm_build_msg()
695 hdr->netFn = (req->msg.netfn << 2) | req->msg.lun; in serial_bm_build_msg()
[all …]
H A Dserial_terminal.c75 unsigned char netFn; /* NET FN | RS LUN */ member
97 unsigned char netFn; member
109 unsigned char netFn; member
118 uint8_t netFn; member
499 term_hdr->netFn = 0x18; in serial_term_build_msg()
510 outer_rq->msg.netFn = 0x18; in serial_term_build_msg()
511 outer_rq->msg.csum1 = -(outer_rq->msg.rsSA + outer_rq->msg.netFn); in serial_term_build_msg()
526 inner_rq->msg.netFn = (req->msg.netfn << 2) | req->msg.lun; in serial_term_build_msg()
527 inner_rq->msg.csum1 = -(inner_rq->msg.rsSA + inner_rq->msg.netFn); in serial_term_build_msg()
547 ctx[1].netFn = outer_rq->msg.netFn; in serial_term_build_msg()
[all …]
/openbmc/phosphor-host-ipmid/
H A Dipmid-new.cpp135 bool registerHandler(int prio, NetFn netFn, Cmd cmd, Privilege priv, in registerHandler()
139 if (netFn & 1 || (netFn > netFnTransport && netFn < netFnGroup) || in registerHandler()
140 netFn > netFnOemEight) in registerHandler()
146 unsigned int netFnCmd = makeCmdKey(netFn, cmd); in registerHandler()
330 NetFn netFn = request->ctx->netFn; in executeIpmiCommand()
331 if (netFnGroup == netFn) in executeIpmiCommand()
335 else if (netFnOem == netFn)
129 registerHandler(int prio,NetFn netFn,Cmd cmd,Privilege priv,HandlerBase::ptr handler) registerHandler() argument
324 NetFn netFn = request->ctx->netFn; executeIpmiCommand() local
483 executionEntry(boost::asio::yield_context yield,sdbusplus::message_t & m,NetFn netFn,uint8_t lun,Cmd cmd,ipmi::SecureBuffer & data,std::map<std::string,ipmi::Value> & options) executionEntry() argument
683 ipmi_register_callback(ipmi_netfn_t netFn,ipmi_cmd_t cmd,ipmi_context_t context,ipmid_callback_t handler,ipmi_cmd_privilege_t priv) ipmi_register_callback() argument
765 unsigned char seq = 0, netFn = 0, lun = 0, cmd = 0; handleLegacyIpmiCommand() local
[all...]
H A Dwhitelist-filter.cpp235 std::make_pair(request->ctx->netFn, request->ctx->cmd))) in filterMessage()
239 "NETFN", lg2::hex, request->ctx->netFn, "CMD", lg2::hex, in filterMessage()
/openbmc/phosphor-host-ipmid/include/ipmid/
H A Dhandler.hpp272 "NETFN", lg2::hex, request->ctx->netFn, "CMD", lg2::hex, in executeCallback()
280 "NETFN", lg2::hex, request->ctx->netFn, "CMD", lg2::hex, in executeCallback()
293 "NETFN", lg2::hex, request->ctx->netFn, "CMD", lg2::hex, in executeCallback()
361 handler_(request->ctx->netFn, request->ctx->cmd, in executeCallback()
369 "NETFN", lg2::hex, request->ctx->netFn, "CMD", lg2::hex, in executeCallback()
377 "NETFN", lg2::hex, request->ctx->netFn, "CMD", lg2::hex, in executeCallback()
390 "NETFN", lg2::hex, request->ctx->netFn, "CMD", lg2::hex, in executeCallback()
455 "NETFN", lg2::hex, request->ctx->netFn, "CMD", lg2::hex, in executeCallback()
463 "NETFN", lg2::hex, request->ctx->netFn, "CMD", lg2::hex, in executeCallback()
476 "NETFN", lg2::hex, request->ctx->netFn, "CMD", lg2::hex, in executeCallback()
[all …]
H A Dmessage.hpp46 Context(std::shared_ptr<sdbusplus::asio::connection> bus, NetFn netFn, in Context()
50 bus(bus), netFn(netFn), lun(lun), cmd(cmd), channel(channel), in Context()
57 NetFn netFn; member
/openbmc/ipmbbridge/
H A Dipmbbridged.hpp91 constexpr uint8_t ipmbNetFnLunSet(uint8_t netFn, uint8_t lun) in ipmbNetFnLunSet() argument
93 return ((netFn << 2) | (lun & ipmbLunMask)); in ipmbNetFnLunSet()
106 constexpr uint8_t ipmbRespNetFn(uint8_t netFn) in ipmbRespNetFn() argument
108 return netFn |= 1; in ipmbRespNetFn()
168 uint8_t netFn; member
179 IpmbResponse(uint8_t address, uint8_t netFn, uint8_t rqLun, uint8_t rsSA,
194 uint8_t netFn; member
210 IpmbRequest(uint8_t address, uint8_t netFn, uint8_t rsLun, uint8_t rqSA,
H A Dipmbbridged.cpp56 IpmbRequest::IpmbRequest(uint8_t address, uint8_t netFn, uint8_t rsLun, in IpmbRequest() argument
59 address(address), netFn(netFn), rsLun(rsLun), rqSA(rqSA), seq(seq), in IpmbRequest()
75 netFn = ipmbNetFnGet(ipmbBuffer->Header.Req.rsNetFnLUN); in i2cToIpmbConstruct()
112 ipmbBuffer->Header.Req.rsNetFnLUN = ipmbNetFnLunSet(netFn, rsLun); in ipmbToi2cConstruct()
136 static_cast<int>(ipmbResponseStatus::success), matchedResponse->netFn, in returnMatchedResponse()
157 IpmbResponse::IpmbResponse(uint8_t address, uint8_t netFn, uint8_t rqLun, in IpmbResponse() argument
161 address(address), netFn(netFn), rqLun(rqLun), rsSA(rsSA), seq(seq), in IpmbResponse()
175 netFn = ipmbNetFnGet(ipmbBuffer->Header.Resp.rqNetFnLUN); in i2cToIpmbConstruct()
213 ipmbBuffer->Header.Resp.rqNetFnLUN = ipmbNetFnLunSet(netFn, rqLun); in ipmbToi2cConstruct()
335 if (((ipmbRespNetFn(request->netFn)) == (response->netFn)) && in responseMatch()
[all …]
/openbmc/intel-ipmi-oem/src/
H A Dbridgingcommands.cpp132 netFn = ipmbNetFnGet(ipmbBuffer->Header.Req.rsNetFnLUN); in IpmbRequest()
150 IpmbResponse::IpmbResponse(uint8_t address, uint8_t netFn, uint8_t rqLun, in IpmbResponse() argument
154 address(address), netFn(netFn), rqLun(rqLun), rsSA(rsSA), seq(seq), in IpmbResponse()
170 ipmbBuffer->Header.Resp.rqNetFnLUN = ipmbNetFnLunSet(netFn, rqLun); in ipmbToi2cConstruct()
196 mesg.append(ipmbMeChannelNum, netFn, rqLun, cmd, data); in prepareRequest()
199 static constexpr unsigned int makeCmdKey(unsigned int netFn, unsigned int cmd) in makeCmdKey() argument
201 return (netFn << 8) | cmd; in makeCmdKey()
204 static constexpr bool isMeCmdAllowed(uint8_t netFn, uint8_t cmd) in isMeCmdAllowed() argument
220 switch (makeCmdKey(netFn, cmd)) in isMeCmdAllowed()
309 ipmbMeChannelNum, ipmbRequest.netFn, ipmbRequest.rqLun, ipmbRequest.cmd, in handleIpmbChannel()
[all …]
H A Dallowlist-filter.cpp393 std::make_tuple(request->ctx->netFn, request->ctx->cmd, channelMask), in filterMessage()
410 entry("NETFN=0x%X", int(request->ctx->netFn)), in filterMessage()
457 entry("NETFN=0x%X", int(request->ctx->netFn)), in filterMessage()
H A Dmanufacturingcommands.cpp829 static constexpr unsigned int makeCmdKey(unsigned int netFn, unsigned int cmd) in makeCmdKey() argument
831 return (netFn << 8) | cmd; in makeCmdKey()
837 switch (makeCmdKey(request->ctx->netFn, request->ctx->cmd)) in mfgFilterMessage()
/openbmc/intel-ipmi-oem/include/
H A Dbridgingcommands.hpp60 constexpr uint8_t ipmbNetFnLunSet(uint8_t netFn, uint8_t lun) in ipmbNetFnLunSet() argument
62 return ((netFn << 2) | (lun & ipmbLunMask)); in ipmbNetFnLunSet()
146 uint8_t netFn; member
162 uint8_t netFn; member
171 IpmbResponse(uint8_t address, uint8_t netFn, uint8_t rqLun, uint8_t rsSA,
/openbmc/phosphor-net-ipmid/
H A Dcommand_table.cpp48 "Table: refuse to forward session-zero command: lun: {LUN}, netFn: {NETFN}, command: {COMMAND}", in executeCommand()
49 "LUN", command.lun(), "NETFN", command.netFn(), "COMMAND", in executeCommand()
68 uint8_t netFn = command.netFn(); in executeCommand() local
102 "xyz.openbmc_project.Ipmi.Server", "execute", netFn, lun, cmd, in executeCommand()
152 "Table: Insufficient privilege for command: lun: {LUN}, netFn: {NETFN}, command: {COMMAND}", in executeCommand()
153 "LUN", command.lun(), "NETFN", command.netFn(), "COMMAND", in executeCommand()
H A Dcommand_table.hpp23 uint8_t netFn() const in netFn() function
/openbmc/sdbusplus/example/
H A Dasio-example.cpp103 constexpr uint8_t netFn = 6; in do_start_async_ipmi_call() local
109 method.append(netFn, lun, cmd, commandData, options); in do_start_async_ipmi_call()
125 if (rnetFn == uint8_t(netFn + 1) && rlun == lun && rcmd == cmd && cc == 0 && in do_start_async_ipmi_call()
136 auto ipmiInterface(boost::asio::yield_context /*yield*/, uint8_t netFn, in ipmiInterface() argument
142 std::cerr << "ipmiInterface:execute(" << int(netFn) << int(cmd) << ")\n"; in ipmiInterface()
143 return std::make_tuple(uint8_t(netFn + 1), lun, cmd, cc, reply); in ipmiInterface()
/openbmc/ipmitool/src/plugins/imb/
H A Dimbapi.c196 requestData.netFn = APP_NETFN ; in open_imb()
277 requestData.netFn = APP_NETFN ; in open_imb()
519 req->req.netFn = APP_NETFN; in SendTimedI2cRequest()
606 req->req.netFn = APP_NETFN; in SendTimedEmpMessageResponse()
714 req->req.netFn = APP_NETFN; in SendTimedEmpMessageResponse_Ex()
855 req->req.netFn = APP_NETFN; in SendTimedLanMessageResponse()
963 req->req.netFn = APP_NETFN; in SendTimedLanMessageResponse_Ex()
1097 req->req.netFn = reqPtr->netFn; in SendTimedImbpRequest()
1112 req->req.rsSa, req->req.cmd, req->req.netFn, req->req.rsLun); in SendTimedImbpRequest()
1130 __FUNCTION__, req->req.rsSa, req->req.cmd, req->req.netFn, in SendTimedImbpRequest()
[all …]
H A Dimb.c87 imbreq.netFn = req->msg.netfn; in ipmi_imb_send_cmd()
95 printf("IMB netFn : %x\n", imbreq.netFn); in ipmi_imb_send_cmd()
H A Dimbapi.h317 BYTE netFn; member
490 unsigned char netFn; member
/openbmc/dbus-sensors/src/ipmb/
H A DIpmbSensor.cpp170 netfn = ipmi::sensor::netFn; in loadDefaults()
178 netfn = ipmi::me_bridge::netFn; in loadDefaults()
194 netfn = ipmi::me_bridge::netFn; in loadDefaults()
218 netfn = ipmi::me_bridge::netFn; in loadDefaults()
226 netfn = ipmi::sensor::netFn; in loadDefaults()
238 netfn = ipmi::me_bridge::netFn; in loadDefaults()
H A DIpmbSensor.hpp61 constexpr uint8_t netFn = 0x04; variable
88 constexpr uint8_t netFn = 0x2e; variable
/openbmc/fb-ipmi-oem/src/
H A Dbiccommands.cpp68 ctx->netFn = ((uint8_t)netFnReq); in ipmiOemBicHandler()
228 if (sendBicCmd(ctx->netFn, ctx->cmd, bicAddr, reqIana, respData)) in ipmiOemGetBicGpioState()
314 if (sendBicCmd(ctx->netFn, ctx->cmd, bicAddr, reqData, respData)) in ipmiOemGetBiosFlashSize()
365 if (sendBicCmd(ctx->netFn, ctx->cmd, bicAddr, reqData, respData)) in ipmiOemClearCmos()
H A Dusb-dbg.cpp550 int sendBicCmd(uint8_t netFn, uint8_t cmd, uint8_t bicAddr, in sendBicCmd() argument
560 method.append(bicAddr, netFn, lun, cmd, cmdData); in sendBicCmd()
579 int sendMeCmd(uint8_t netFn, uint8_t cmd, std::vector<uint8_t>& cmdData, in sendMeCmd() argument
586 std::cout << "ME NetFn:cmd " << (int)netFn << ":" << (int)cmd << "\n"; in sendMeCmd()
598 method.append(meAddress, netFn, lun, cmd, cmdData); in sendMeCmd()
H A Dappcommands.cpp234 if (sendBicCmd(ctx->netFn, ctx->cmd, bicAddr, reqData, respData)) in ipmiAppGetSysGUID()
/openbmc/docs/architecture/
H A Dipmi-architecture.md55 byte:LUN - LUN from netFn/LUN pair (0-3, as per the IPMI spec)
56 byte:netFn - netFn from netFn/LUN pair (as per the IPMI spec)
167 NetFn netFn;
/openbmc/phosphor-host-ipmid/libipmid/
H A Dutils.cpp381 "INTERFACE", interface, "NETFN", lg2::hex, ctx->netFn, "CMD", in getDbusObject()
406 "MATCH", match, "NETFN", lg2::hex, ctx->netFn, "CMD", in getDbusObject()
495 lg2::hex, ctx->netFn, "CMD", lg2::hex, ctx->cmd, "ERROR", in deleteAllDbusObjects()

12