Lines Matching +full:clip +full:- +full:x +full:- +full:low

22  * PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
66 sel_event.sel_type.standard_type.evm_rev = pmsg->evm_rev; in ipmi_event_msg_print()
67 sel_event.sel_type.standard_type.sensor_type = pmsg->sensor_type; in ipmi_event_msg_print()
68 sel_event.sel_type.standard_type.sensor_num = pmsg->sensor_num; in ipmi_event_msg_print()
69 sel_event.sel_type.standard_type.event_type = pmsg->event_type; in ipmi_event_msg_print()
70 sel_event.sel_type.standard_type.event_dir = pmsg->event_dir; in ipmi_event_msg_print()
71 sel_event.sel_type.standard_type.event_data[0] = pmsg->event_data[0]; in ipmi_event_msg_print()
72 sel_event.sel_type.standard_type.event_data[1] = pmsg->event_data[1]; in ipmi_event_msg_print()
73 sel_event.sel_type.standard_type.event_data[2] = pmsg->event_data[2]; in ipmi_event_msg_print()
100 rqdata[0] = 0x41; // As per Fig. 29-2 and Table 5-4 in ipmi_send_platform_event()
110 rsp = intf->sendrecv(intf, &req); in ipmi_send_platform_event()
113 return -1; in ipmi_send_platform_event()
115 else if (rsp->ccode > 0) { in ipmi_send_platform_event()
117 val2str(rsp->ccode, completion_code_vals)); in ipmi_send_platform_event()
118 return -1; in ipmi_send_platform_event()
166 printf("Sending SAMPLE event: Temperature - " in ipmi_send_platform_event_num()
167 "Upper Critical - Going High\n"); in ipmi_send_platform_event_num()
178 printf("Sending SAMPLE event: Voltage Threshold - " in ipmi_send_platform_event_num()
179 "Lower Critical - Going Low\n"); in ipmi_send_platform_event_num()
190 printf("Sending SAMPLE event: Memory - Correctable ECC\n"); in ipmi_send_platform_event_num()
202 return -1; in ipmi_send_platform_event_num()
216 while (evt->type) { in ipmi_event_find_offset()
217 if (evt->code == code && evt->desc != NULL && in ipmi_event_find_offset()
218 strncasecmp(desc, evt->desc, __maxlen(desc, evt->desc)) == 0) in ipmi_event_find_offset()
219 return evt->offset; in ipmi_event_find_offset()
224 return -1; in ipmi_event_find_offset()
248 return -1; in ipmi_event_fromsensor()
262 return -1; in ipmi_event_fromsensor()
269 return -1; in ipmi_event_fromsensor()
273 switch (sdr->type) in ipmi_event_fromsensor()
278 emsg.sensor_type = sdr->record.common->sensor.type; in ipmi_event_fromsensor()
279 emsg.sensor_num = sdr->record.common->keys.sensor_num; in ipmi_event_fromsensor()
280 emsg.event_type = sdr->record.common->event_type; in ipmi_event_fromsensor()
281 target = sdr->record.common->keys.owner_id; in ipmi_event_fromsensor()
282 lun = sdr->record.common->keys.lun; in ipmi_event_fromsensor()
283 channel = sdr->record.common->keys.channel; in ipmi_event_fromsensor()
287 return -1; in ipmi_event_fromsensor()
306 printf(" lnr : Lower Non-Recoverable \n"); in ipmi_event_fromsensor()
308 printf(" lnc : Lower Non-Critical\n"); in ipmi_event_fromsensor()
309 printf(" unc : Upper Non-Critical\n"); in ipmi_event_fromsensor()
311 printf(" unr : Upper Non-Recoverable\n"); in ipmi_event_fromsensor()
312 return -1; in ipmi_event_fromsensor()
323 return -1; in ipmi_event_fromsensor()
344 return -1; in ipmi_event_fromsensor()
352 return (-1); in ipmi_event_fromsensor()
353 } else if (rsp->ccode != 0) { in ipmi_event_fromsensor()
355 val2str(rsp->ccode, completion_code_vals)); in ipmi_event_fromsensor()
356 return (-1); in ipmi_event_fromsensor()
360 emsg.event_data[2] = rsp->data[(emsg.event_data[0] / 2) + 1]; in ipmi_event_fromsensor()
364 if (rsp != NULL && rsp->ccode == 0) in ipmi_event_fromsensor()
365 off = dir ? rsp->data[0] : rsp->data[1]; in ipmi_event_fromsensor()
377 if ((emsg.event_data[2] - off) < 0) in ipmi_event_fromsensor()
380 emsg.event_data[1] = emsg.event_data[2] - off; in ipmi_event_fromsensor()
393 int x; in ipmi_event_fromsensor() local
404 for (x = 0; x < sizeof(digi_on)/sizeof(*digi_on); x++) { in ipmi_event_fromsensor()
405 printf(" %-9s %-9s\n", digi_on[x], digi_off[x]); in ipmi_event_fromsensor()
411 for (x = 0; x < sizeof(digi_on)/sizeof(*digi_on); x++) { in ipmi_event_fromsensor()
412 if (strncasecmp(state, digi_on[x], strlen(digi_on[x])) == 0) { in ipmi_event_fromsensor()
417 else if (strncasecmp(state, digi_off[x], strlen(digi_off[x])) == 0) { in ipmi_event_fromsensor()
427 return -1; in ipmi_event_fromsensor()
448 return -1; in ipmi_event_fromsensor()
454 * Sensor-Specific Discrete in ipmi_event_fromsensor()
468 return -1; in ipmi_event_fromsensor()
474 return -1; in ipmi_event_fromsensor()
496 return -1; in ipmi_event_fromfile()
510 rqdata[0] = 0x41; // As per Fig. 29-2 and Table 5-4 in ipmi_event_fromfile()
516 return -1; in ipmi_event_fromfile()
522 /* clip off optional comment tail indicated by # */ in ipmi_event_fromfile()
529 /* clip off trailing and leading whitespace */ in ipmi_event_fromfile()
530 ptr--; in ipmi_event_fromfile()
532 *ptr-- = '\0'; in ipmi_event_fromfile()
574 rsp = intf->sendrecv(intf, &req); in ipmi_event_fromfile()
577 rc = -1; in ipmi_event_fromfile()
579 else if (rsp->ccode > 0) { in ipmi_event_fromfile()
581 val2str(rsp->ccode, completion_code_vals)); in ipmi_event_fromfile()
582 rc = -1; in ipmi_event_fromfile()
596 lprintf(LOG_NOTICE, " 1 : Temperature - Upper Critical - Going High"); in ipmi_event_usage()
597 lprintf(LOG_NOTICE, " 2 : Voltage Threshold - Lower Critical - Going Low"); in ipmi_event_usage()
598 lprintf(LOG_NOTICE, " 3 : Memory - Correctable ECC"); in ipmi_event_usage()