Lines Matching defs:enables

210 	 * Can we disable interrupts the global enables receive irq
494 * Global enables we care about.
502 u8 enables = 0;
505 enables |= IPMI_BMC_EVT_MSG_BUFF;
510 enables |= IPMI_BMC_RCV_MSG_INTR;
515 enables |= IPMI_BMC_EVT_MSG_INTR;
517 *irq_on = enables & (IPMI_BMC_EVT_MSG_INTR | IPMI_BMC_RCV_MSG_INTR);
519 return enables;
681 u8 enables;
694 enables = current_global_enables(smi_info, 0, &irq_on);
698 if (enables != (msg[3] & GLOBAL_ENABLES_MASK)) {
702 msg[2] = enables | (msg[3] & ~GLOBAL_ENABLES_MASK);
726 "Could not set the global enables: 0x%x.\n",
1359 static int get_global_enables(struct smi_info *smi_info, u8 *enables)
1377 "Error getting response from get global enables command: %d\n",
1390 "Invalid return from get global enables command: %ld %x %x %x\n",
1395 *enables = resp[3];
1406 static int set_global_enables(struct smi_info *smi_info, u8 enables)
1419 msg[2] = enables;
1425 "Error getting response from set global enables command: %d\n",
1437 "Invalid return from set global enables command: %ld %x %x\n",
1453 * enables (even if they don't support interrupts on the BMC). Check
1458 u8 enables = 0;
1461 rv = get_global_enables(smi_info, &enables);
1463 if ((enables & IPMI_BMC_RCV_MSG_INTR) == 0)
1467 enables &= ~IPMI_BMC_RCV_MSG_INTR;
1468 rv = set_global_enables(smi_info, enables);
1490 * enables even if they support interrupts. Clearly bad, but we can
1495 u8 enables = 0;
1501 rv = get_global_enables(smi_info, &enables);
1503 enables |= IPMI_BMC_RCV_MSG_INTR;
1504 rv = set_global_enables(smi_info, enables);
1542 pr_warn("Error getting response from get global enables command, the event buffer is not enabled\n");
1553 pr_warn("Invalid return from get global enables command, cannot enable the event buffer\n");
1571 pr_warn("Error getting response from set global, enables command, the event buffer is not enabled\n");
1581 pr_warn("Invalid return from get global, enables command, not enable the event buffer\n");