Lines Matching refs:cmd
232 req.msg.cmd = BMC_GET_NETFN_SUPPORT; in _get_netfn_support()
284 req.msg.cmd = BMC_GET_COMMAND_SUPPORT; in _get_command_support()
311 req.msg.cmd = BMC_GET_COMMAND_SUPPORT; in _get_command_support()
363 req.msg.cmd = BMC_GET_CONFIGURABLE_COMMANDS; in _get_command_configurable()
390 req.msg.cmd = BMC_GET_CONFIGURABLE_COMMANDS; in _get_command_configurable()
442 req.msg.cmd = BMC_GET_COMMAND_ENABLES; in _get_command_enables()
469 req.msg.cmd = BMC_GET_COMMAND_ENABLES; in _get_command_enables()
552 req.msg.cmd = BMC_SET_COMMAND_ENABLES; in _set_command_enables()
573 req.msg.cmd = BMC_SET_COMMAND_ENABLES; in _set_command_enables()
606 struct ipmi_function_params * p, struct command_support * cmd) in _get_subfn_support() argument
612 if (!p || !cmd) { in _get_subfn_support()
619 req.msg.cmd = BMC_GET_COMMAND_SUBFUNCTION_SUPPORT; in _get_subfn_support()
638 memcpy(cmd->subfn_support, rsp->data, sizeof(cmd->subfn_support)); in _get_subfn_support()
653 struct ipmi_function_params * p, struct command_support * cmd) in _get_subfn_configurable() argument
659 if (!p || !cmd) { in _get_subfn_configurable()
666 req.msg.cmd = BMC_GET_CONFIGURABLE_COMMAND_SUBFUNCTIONS; in _get_subfn_configurable()
685 memcpy(cmd->subfn_config, rsp->data, sizeof(cmd->subfn_config)); in _get_subfn_configurable()
700 struct ipmi_function_params * p, struct command_support * cmd) in _get_subfn_enables() argument
706 if (!p || !cmd) { in _get_subfn_enables()
713 req.msg.cmd = BMC_GET_COMMAND_SUBFUNCTION_ENABLES; in _get_subfn_enables()
732 memcpy(cmd->subfn_enable, rsp->data, sizeof(cmd->subfn_enable)); in _get_subfn_enables()
748 struct ipmi_function_params * p, struct command_support * cmd, in _set_subfn_enables() argument
756 if (!p || !cmd) { in _set_subfn_enables()
762 print_bitfield(cmd->subfn_support, MAX_SUBFN_BYTES, 1, LOG_INFO); in _set_subfn_enables()
764 print_bitfield(cmd->subfn_config, MAX_SUBFN_BYTES, 0, LOG_INFO); in _set_subfn_enables()
766 print_bitfield(cmd->subfn_enable, MAX_SUBFN_BYTES, 0, LOG_INFO); in _set_subfn_enables()
771 for (c=0; c<sizeof(cmd->subfn_enable); c++) { in _set_subfn_enables()
772 enable[c] = (cmd->subfn_config[c] & enable[c]) | in _set_subfn_enables()
773 (~cmd->subfn_config[c] & cmd->subfn_enable[c]); in _set_subfn_enables()
780 req.msg.cmd = BMC_SET_COMMAND_SUBFUNCTION_ENABLES; in _set_subfn_enables()
921 struct command_support * cmd; in ipmi_firewall_info() local
932 cmd = in ipmi_firewall_info()
934 c = cmd->support; in ipmi_firewall_info()
945 (!bit_test(cmd->subfn_support, n)) ? 'X' : ' ', in ipmi_firewall_info()
946 (bit_test(cmd->subfn_config, n)) ? 'X' : ' ', in ipmi_firewall_info()
947 (bit_test(cmd->subfn_enable, n)) ? 'X' : ' '); in ipmi_firewall_info()