Lines Matching defs:enables

209 	 * Can we disable interrupts the global enables receive irq
492 * Global enables we care about.
500 u8 enables = 0;
503 enables |= IPMI_BMC_EVT_MSG_BUFF;
508 enables |= IPMI_BMC_RCV_MSG_INTR;
513 enables |= IPMI_BMC_EVT_MSG_INTR;
515 *irq_on = enables & (IPMI_BMC_EVT_MSG_INTR | IPMI_BMC_RCV_MSG_INTR);
517 return enables;
679 u8 enables;
692 enables = current_global_enables(smi_info, 0, &irq_on);
696 if (enables != (msg[3] & GLOBAL_ENABLES_MASK)) {
700 msg[2] = enables | (msg[3] & ~GLOBAL_ENABLES_MASK);
724 "Could not set the global enables: 0x%x.\n",
1365 static int get_global_enables(struct smi_info *smi_info, u8 *enables)
1383 "Error getting response from get global enables command: %d\n",
1396 "Invalid return from get global enables command: %ld %x %x %x\n",
1401 *enables = resp[3];
1412 static int set_global_enables(struct smi_info *smi_info, u8 enables)
1425 msg[2] = enables;
1431 "Error getting response from set global enables command: %d\n",
1443 "Invalid return from set global enables command: %ld %x %x\n",
1459 * enables (even if they don't support interrupts on the BMC). Check
1464 u8 enables = 0;
1467 rv = get_global_enables(smi_info, &enables);
1469 if ((enables & IPMI_BMC_RCV_MSG_INTR) == 0)
1473 enables &= ~IPMI_BMC_RCV_MSG_INTR;
1474 rv = set_global_enables(smi_info, enables);
1496 * enables even if they support interrupts. Clearly bad, but we can
1501 u8 enables = 0;
1507 rv = get_global_enables(smi_info, &enables);
1509 enables |= IPMI_BMC_RCV_MSG_INTR;
1510 rv = set_global_enables(smi_info, enables);
1548 pr_warn("Error getting response from get global enables command, the event buffer is not enabled\n");
1559 pr_warn("Invalid return from get global enables command, cannot enable the event buffer\n");
1577 pr_warn("Error getting response from set global, enables command, the event buffer is not enabled\n");
1587 pr_warn("Invalid return from get global, enables command, not enable the event buffer\n");