/openbmc/ipmitool/lib/ |
H A D | ipmi_firewall.c | 151 if (str2int(argv[i], &(p->netfn)) != 0) { in ipmi_firewall_parse_args() 183 if (p->netfn >= MAX_NETFN) { in ipmi_firewall_parse_args() 191 if (p->netfn >= 0 && p->lun < 0) { in ipmi_firewall_parse_args() 195 if (p->command >= 0 && p->netfn < 0) { in ipmi_firewall_parse_args() 218 _get_netfn_support(struct ipmi_intf * intf, int channel, unsigned char * lun, unsigned char * netfn) in _get_netfn_support() argument 225 if (!lun || !netfn) { in _get_netfn_support() 231 req.msg.netfn = IPMI_NETFN_APP; in _get_netfn_support() 254 memcpy(netfn, d, 16); in _get_netfn_support() 283 req.msg.netfn = IPMI_NETFN_APP; in _get_command_support() 286 rqdata[1] = p->netfn; in _get_command_support() [all …]
|
H A D | ipmi_raw.c | 82 req.msg.netfn = IPMI_NETFN_APP; in ipmi_master_write_read() 320 uint8_t netfn, cmd, lun; in ipmi_raw_main() local 343 if (is_valid_param(argv[0], &netfn, "netfn") != 0) in ipmi_raw_main() 350 netfn = netfn_tmp; in ipmi_raw_main() 358 req.msg.netfn = netfn; in ipmi_raw_main() 375 intf->target_channel & 0x0f, req.msg.netfn,req.msg.lun , in ipmi_raw_main() 385 intf->target_channel & 0x0f, req.msg.netfn, req.msg.lun, req.msg.cmd); in ipmi_raw_main() 391 intf->target_channel & 0x0f, req.msg.netfn, req.msg.lun, req.msg.cmd, rsp->ccode, in ipmi_raw_main()
|
H A D | ipmi_vita.c | 180 req.msg.netfn = IPMI_NETFN_PICMG; in vita_discover() 234 req.msg.netfn = IPMI_NETFN_PICMG; in ipmi_vita_ipmb_address() 270 req.msg.netfn = IPMI_NETFN_PICMG; in ipmi_vita_getaddr() 326 req.msg.netfn = IPMI_NETFN_PICMG; in ipmi_vita_get_vso_capabilities() 392 req.msg.netfn = IPMI_NETFN_PICMG; in ipmi_vita_set_fru_activation() 435 req.msg.netfn = IPMI_NETFN_PICMG; in ipmi_vita_get_fru_state_policy_bits() 484 req.msg.netfn = IPMI_NETFN_PICMG; in ipmi_vita_set_fru_state_policy_bits() 531 req.msg.netfn = IPMI_NETFN_PICMG; in ipmi_vita_get_led_properties() 573 req.msg.netfn = IPMI_NETFN_PICMG; in ipmi_vita_get_led_color_capabilities() 637 req.msg.netfn = IPMI_NETFN_PICMG; in ipmi_vita_get_led_state() [all …]
|
H A D | ipmi_pef.c | 224 req.msg.netfn = IPMI_NETFN_SE; in ipmi_pef_get_policy_table() 276 req.msg.netfn = IPMI_NETFN_TRANSPORT; in ipmi_pef_print_lan_dest() 353 req.msg.netfn = IPMI_NETFN_TRANSPORT; in ipmi_pef_print_serial_dest_dial() 401 req.msg.netfn = IPMI_NETFN_TRANSPORT; in ipmi_pef_print_serial_dest_tap() 472 req.msg.netfn = IPMI_NETFN_TRANSPORT; in ipmi_pef_print_serial_dest() 632 req.msg.netfn = IPMI_NETFN_SE; in ipmi_pef_list_entries() 642 req.msg.netfn = IPMI_NETFN_SE; in ipmi_pef_list_entries() 684 req.msg.netfn = IPMI_NETFN_APP; in ipmi_pef_list_policies() 751 req.msg.netfn = IPMI_NETFN_SE; in ipmi_pef_get_status() 775 req.msg.netfn = IPMI_NETFN_SE; in ipmi_pef_get_status() [all …]
|
H A D | ipmi_picmg.c | 560 req.msg.netfn = IPMI_NETFN_PICMG; in ipmi_picmg_getaddr() 641 req.msg.netfn = IPMI_NETFN_PICMG; in ipmi_picmg_properties() 693 req.msg.netfn = IPMI_NETFN_PICMG; in ipmi_picmg_fru_activation() 727 req.msg.netfn = IPMI_NETFN_PICMG; in ipmi_picmg_fru_activation_policy_get() 766 req.msg.netfn = IPMI_NETFN_PICMG; in ipmi_picmg_fru_activation_policy_set() 822 req.msg.netfn = IPMI_NETFN_PICMG; in ipmi_picmg_portstate_get() 961 req.msg.netfn = IPMI_NETFN_PICMG; in ipmi_picmg_portstate_set() 1008 req.msg.netfn = IPMI_NETFN_PICMG; in ipmi_picmg_amc_portstate_get() 1146 req.msg.netfn = IPMI_NETFN_PICMG; in ipmi_picmg_amc_portstate_set() 1193 req.msg.netfn = IPMI_NETFN_PICMG; in ipmi_picmg_get_led_properties() [all …]
|
H A D | ipmi_mc.c | 72 req.msg.netfn = IPMI_NETFN_APP; in ipmi_mc_reset() 254 req.msg.netfn = IPMI_NETFN_APP; in ipmi_mc_get_enables() 304 req.msg.netfn = IPMI_NETFN_APP; in ipmi_mc_set_enables() 395 req.msg.netfn = IPMI_NETFN_APP; in ipmi_mc_get_deviceid() 498 req.msg.netfn = IPMI_NETFN_APP; in ipmi_mc_get_guid() 549 req.msg.netfn = IPMI_NETFN_APP; in ipmi_mc_get_selftest() 665 req.msg.netfn = IPMI_NETFN_APP; in ipmi_mc_get_watchdog() 714 req.msg.netfn = IPMI_NETFN_APP; in ipmi_mc_shutoff_watchdog() 769 req.msg.netfn = IPMI_NETFN_APP; in ipmi_mc_rst_watchdog() 948 req.msg.netfn = IPMI_NETFN_APP; in ipmi_mc_getsysinfo() [all …]
|
H A D | ipmi_dcmi.c | 719 req.msg.netfn = IPMI_NETFN_DCGRP; /* 0x2C per 1.0 spec */ in ipmi_dcmi_getcapabilities() 977 req.msg.netfn = IPMI_NETFN_DCGRP; /* 0x2C per 1.1 spec */ in ipmi_dcmi_getassettag() 1055 req.msg.netfn = IPMI_NETFN_DCGRP; /* 0x2C per 1.1 spec */ in ipmi_dcmi_setassettag() 1120 req.msg.netfn = IPMI_NETFN_DCGRP; /* 0x2C per 1.1 spec */ in ipmi_dcmi_getmngctrlids() 1187 req.msg.netfn = IPMI_NETFN_DCGRP; /* 0x2C per 1.1 spec */ in ipmi_dcmi_setmngctrlids() 1269 req.msg.netfn = IPMI_NETFN_DCGRP; in ipmi_dcmi_discvry_snsr() 1354 req.msg.netfn = IPMI_NETFN_DCGRP; in ipmi_dcmi_pwr_rd() 1416 req.msg.netfn = IPMI_NETFN_DCGRP; in ipmi_dcmi_getthermalpolicy() 1475 req.msg.netfn = IPMI_NETFN_DCGRP; in ipmi_dcmi_setthermalpolicy() 1514 req.msg.netfn = IPMI_NETFN_DCGRP; in ipmi_dcmi_get_temp_readings() [all …]
|
/openbmc/intel-ipmi-oem/include/ |
H A D | commandutils.hpp | 31 inline static void printRegistration(unsigned int netfn, unsigned int cmd) in printRegistration() argument 36 << netfn << "], Cmd:[0x" << cmd << "]\n"; in printRegistration() 41 ipmi_netfn_t netfn, ipmi_cmd_t cmd, ipmi_context_t context, in ipmiPrintAndRegister() argument 44 printRegistration(netfn, cmd); in ipmiPrintAndRegister() 45 ipmi_register_callback(netfn, cmd, context, handler, priv); in ipmiPrintAndRegister() 48 inline static void printCommand(unsigned int netfn, unsigned int cmd) in printCommand() argument 53 << netfn << "], Cmd:[0x" << cmd << "]\n"; in printCommand()
|
/openbmc/skeleton/pyipmitest/ |
H A D | ipmi_debug.py | 18 def header(seq, netfn, lun, cmd): argument 21 netfn, 27 def print_request(seq, netfn, lun, cmd, data): argument 28 str = header(seq, netfn, lun, cmd) 33 def print_response(seq, netfn, lun, cmd, cc, data): argument 34 str = header(seq, netfn, lun, cmd) 47 def ReceivedMessage(self, seq, netfn, lun, cmd, data): argument 49 print_request(seq, netfn, lun, cmd, data) 52 def sendMessage(self, seq, netfn, lun, cmd, ccode, data): argument 54 print_response(seq, netfn, lun, cmd, ccode, data)
|
/openbmc/fb-ipmi-oem/include/ |
H A D | commandutils.hpp | 73 inline static void printRegistration(unsigned int netfn, unsigned int cmd) in printRegistration() argument 78 << netfn << "], Cmd:[0x" << cmd << "]\n"; in printRegistration() 83 ipmi_netfn_t netfn, ipmi_cmd_t cmd, ipmi_context_t context, in ipmiPrintAndRegister() argument 86 printRegistration(netfn, cmd); in ipmiPrintAndRegister() 87 ipmi_register_callback(netfn, cmd, context, handler, priv); in ipmiPrintAndRegister() 90 inline static void printCommand(unsigned int netfn, unsigned int cmd) in printCommand() argument 95 << netfn << "], Cmd:[0x" << cmd << "]\n"; in printCommand()
|
/openbmc/intel-ipmi-oem/ |
H A D | generate-allowlist.py | 44 self.netfn = int(m[0], 16) 70 if self.netfn == other.netfn: 72 return self.netfn < other.netfn 75 return (self.netfn == other.netfn) and (self.cmd == other.cmd)
|
/openbmc/ipmitool/src/plugins/dummy/ |
H A D | dummy.c | 156 req.msg.netfn = 0x3f; in ipmi_dummyipmi_close() 218 req_dummy.msg.netfn = req->msg.netfn; in ipmi_dummyipmi_send_cmd() 228 lprintf(LOG_NOTICE, "msg.netfn: %x", req_dummy.msg.netfn); in ipmi_dummyipmi_send_cmd() 258 rsp.msg.netfn = rsp_dummy.msg.netfn; in ipmi_dummyipmi_send_cmd() 266 lprintf(LOG_NOTICE, "msg.netfn: %x", rsp.msg.netfn); in ipmi_dummyipmi_send_cmd()
|
H A D | dummy.h | 8 uint8_t netfn; member 19 uint8_t netfn; member
|
/openbmc/ipmitool/src/plugins/bmc/ |
H A D | bmc_intf.h | 67 #define GET_NETFN(netfn) (((netfn) >> 2) & 0x3f) argument 68 #define GET_LUN(netfn) (netfn & 0x3) argument
|
/openbmc/linux/drivers/char/ipmi/ |
H A D | ipmi_poweroff.c | 194 send_msg.netfn = IPMI_NETFN_OEM; in pps_poweroff_atca() 224 send_msg.netfn = IPMI_NETFN_ATCA; in ipmi_atca_detect() 261 send_msg.netfn = IPMI_NETFN_ATCA; in ipmi_poweroff_atca() 336 send_msg.netfn = IPMI_NETFN_OEM_8 >> 2; in ipmi_poweroff_cpi1() 351 send_msg.netfn = IPMI_NETFN_SENSOR_EVT >> 2; in ipmi_poweroff_cpi1() 374 send_msg.netfn = IPMI_NETFN_OEM_8 >> 2; in ipmi_poweroff_cpi1() 385 send_msg.netfn = IPMI_NETFN_OEM_1 >> 2; in ipmi_poweroff_cpi1() 399 send_msg.netfn = IPMI_NETFN_OEM_1 >> 2; in ipmi_poweroff_cpi1() 485 send_msg.netfn = IPMI_NETFN_CHASSIS_REQUEST; in ipmi_poweroff_chassis() 582 send_msg.netfn = IPMI_NETFN_APP_REQUEST; in ipmi_po_new_smi()
|
H A D | ipmi_devintf.c | 155 msg.netfn = req->msg.netfn; in handle_send_req() 245 rsp->msg.netfn = msg->msg.netfn; in handle_recv() 362 rv = ipmi_register_for_cmd(priv->user, val.netfn, val.cmd, in ipmi_ioctl() 376 rv = ipmi_unregister_for_cmd(priv->user, val.netfn, val.cmd, in ipmi_ioctl() 390 rv = ipmi_register_for_cmd(priv->user, val.netfn, val.cmd, in ipmi_ioctl() 404 rv = ipmi_unregister_for_cmd(priv->user, val.netfn, val.cmd, in ipmi_ioctl() 634 u8 netfn; member 667 p64->netfn = p32->netfn; in get_compat_ipmi_msg() 709 v32.msg.netfn = p64->msg.netfn; in copyout_recv32()
|
H A D | ipmi_msghandler.c | 231 unsigned char netfn; member 975 msg->msg.netfn |= 1; /* Convert to a response. */ in deliver_err_response() 1102 unsigned char netfn, in intf_find_seq() argument 1117 && (msg->msg.netfn == netfn) in intf_find_seq() 1654 unsigned char netfn, in find_cmd_rcvr() argument 1662 if ((rcvr->netfn == netfn) && (rcvr->cmd == cmd) in find_cmd_rcvr() 1670 unsigned char netfn, in is_cmd_rcvr_exclusive() argument 1678 if ((rcvr->netfn == netfn) && (rcvr->cmd == cmd) in is_cmd_rcvr_exclusive() 1686 unsigned char netfn, in ipmi_register_for_cmd() argument 1704 rcvr->netfn = netfn; in ipmi_register_for_cmd() [all …]
|
/openbmc/ipmitool/src/plugins/open/ |
H A D | open.c | 195 fprintf(stderr, " netfn = 0x%x\n", req->msg.netfn ); in ipmi_openipmi_send_cmd() 235 fprintf(stderr, " netfn = 0x%x\n", req->msg.netfn ); in ipmi_openipmi_send_cmd() 260 data[index++] = ( req->msg.netfn << 2 ) | req->msg.lun ; in ipmi_openipmi_send_cmd() 297 _req.msg.netfn = IPMI_NETFN_APP; in ipmi_openipmi_send_cmd() 303 _req.msg.netfn = req->msg.netfn; in ipmi_openipmi_send_cmd() 370 fprintf(stderr, " netfn = 0x%x\n", recv.msg.netfn); in ipmi_openipmi_send_cmd() 388 recv.msg.netfn = recv.msg.data[2] >> 2; in ipmi_openipmi_send_cmd() 396 fprintf(stderr, " netfn = 0x%x\n", recv.msg.netfn ); in ipmi_openipmi_send_cmd()
|
/openbmc/linux/include/uapi/linux/ |
H A D | ipmi.h | 149 unsigned char netfn; member 156 unsigned char netfn; member 340 unsigned char netfn; member 368 unsigned int netfn; member
|
/openbmc/kcsbridge/src/ |
H A D | cmd.cpp | 44 const auto& [netfn, lun, cmd, cc, data] = ret; in write() 52 buffer[0] = (netfn | 1) << 2; in write() 91 uint8_t netfn = in[0] >> 2, lun = in[0] & 3, cmd = in[1]; in read() local 92 m.append(netfn, lun, cmd, in.subspan(2), options); in read()
|
/openbmc/phosphor-net-ipmid/ |
H A D | message.hpp | 59 uint8_t netfn; member 72 uint8_t netfn; member 178 command |= request->netfn << 8; in getCommand() 219 respHeader->netfn = reqHeader->netfn | 0x04; in createResponse()
|
/openbmc/btbridge/ |
H A D | btbridged.c | 59 uint8_t netfn; member 177 n->req.netfn = bt_data[1] >> 2; in bt_q_enqueue() 287 uint8_t netfn, lun, seq, cmd, cc; in method_send_message() local 300 r = sd_bus_message_read(msg, "yyyyy", &seq, &netfn, &lun, &cmd, &cc); in method_send_message() 324 bt_msg->rsp.netfn = netfn; in method_send_message() 371 data[1] = (bt_msg->rsp.netfn << 2) | (bt_msg->rsp.lun & 0x3); in bt_host_write() 469 head->rsp.netfn = head->req.netfn + 1; in dispatch_timer() 546 r = sd_bus_message_append(msg, "yyyy", new->req.seq, new->req.netfn, new->req.lun, new->req.cmd); in dispatch_bt() 559 new->req.seq, new->req.netfn, new->req.lun, new->req.cmd); in dispatch_bt() 600 "out to %s", bt_msg->rsp.seq, bt_msg->rsp.netfn, bt_msg->rsp.lun, in dispatch_bt() [all …]
|
/openbmc/dbus-sensors/src/ipmb/ |
H A D | IpmbSensor.cpp | 165 "sendRequest", commandAddress, netfn, lun, *initCommand, initData); in runInitCmd() 173 netfn = ipmi::sensor::netFn; in loadDefaults() 181 netfn = ipmi::me_bridge::netFn; in loadDefaults() 197 netfn = ipmi::me_bridge::netFn; in loadDefaults() 221 netfn = ipmi::me_bridge::netFn; in loadDefaults() 229 netfn = ipmi::sensor::netFn; in loadDefaults() 241 netfn = ipmi::me_bridge::netFn; in loadDefaults() 262 netfn = 0x30; in loadDefaults() 517 "sendRequest", commandAddress, netfn, lun, command, commandData); in sendIpmbRequest()
|
/openbmc/openbmc-tools/dbus-vis/ |
H A D | ipmi_parse.js | 122 netfn: 0, property in munchLegacyMessageStart.entry 146 entry.netfn = x[0]; 197 if (entry.netfn + 1 == x[0]) { 243 netfn: 0, property in munchNewMessageStart.entry 259 entry.netfn = x[0]; 304 if (entry.netfn + 1 != x[0]) { 454 entry.netfn, entry.cmd, parseInt(entry.start_usec - time_shift),
|
/openbmc/ipmitool/src/plugins/free/ |
H A D | free.c | 208 uint8_t netfn = req->msg.netfn; in ipmi_free_send_cmd() local 246 netfn, in ipmi_free_send_cmd() 280 netfn, in ipmi_free_send_cmd()
|