Lines Matching refs:sdr

530 	struct sdr_record_list *sdr;  in ipmi_sensor_set_threshold()  local
614 sdr = ipmi_sdr_find_sdr_byid(intf, id); in ipmi_sensor_set_threshold()
615 if (sdr == NULL) { in ipmi_sensor_set_threshold()
620 if (sdr->type != SDR_RECORD_TYPE_FULL_SENSOR) { in ipmi_sensor_set_threshold()
621 lprintf(LOG_ERR, "Invalid sensor type %02x", sdr->type); in ipmi_sensor_set_threshold()
625 if (!IS_THRESHOLD_SENSOR(sdr->record.common)) { in ipmi_sensor_set_threshold()
626 lprintf(LOG_ERR, "Invalid sensor event type %02x", sdr->record.common->event_type); in ipmi_sensor_set_threshold()
634 sdr->record.full->id_string, in ipmi_sensor_set_threshold()
637 sdr->record.common->keys. in ipmi_sensor_set_threshold()
639 __ipmi_sensor_threshold_value_to_raw(sdr->record.full, setting1), in ipmi_sensor_set_threshold()
640 sdr->record.common->keys.owner_id, in ipmi_sensor_set_threshold()
641 sdr->record.common->keys.lun, in ipmi_sensor_set_threshold()
642 sdr->record.common->keys.channel); in ipmi_sensor_set_threshold()
646 sdr->record.full->id_string, in ipmi_sensor_set_threshold()
649 sdr->record.common->keys. in ipmi_sensor_set_threshold()
651 __ipmi_sensor_threshold_value_to_raw(sdr->record.full, setting2), in ipmi_sensor_set_threshold()
652 sdr->record.common->keys.owner_id, in ipmi_sensor_set_threshold()
653 sdr->record.common->keys.lun, in ipmi_sensor_set_threshold()
654 sdr->record.common->keys.channel); in ipmi_sensor_set_threshold()
658 sdr->record.full->id_string, in ipmi_sensor_set_threshold()
661 sdr->record.common->keys. in ipmi_sensor_set_threshold()
663 __ipmi_sensor_threshold_value_to_raw(sdr->record.full, setting3), in ipmi_sensor_set_threshold()
664 sdr->record.common->keys.owner_id, in ipmi_sensor_set_threshold()
665 sdr->record.common->keys.lun, in ipmi_sensor_set_threshold()
666 sdr->record.common->keys.channel); in ipmi_sensor_set_threshold()
670 sdr->record.full->id_string, in ipmi_sensor_set_threshold()
673 sdr->record.common->keys. in ipmi_sensor_set_threshold()
675 __ipmi_sensor_threshold_value_to_raw(sdr->record.full, setting1), in ipmi_sensor_set_threshold()
676 sdr->record.common->keys.owner_id, in ipmi_sensor_set_threshold()
677 sdr->record.common->keys.lun, in ipmi_sensor_set_threshold()
678 sdr->record.common->keys.channel); in ipmi_sensor_set_threshold()
682 sdr->record.full->id_string, in ipmi_sensor_set_threshold()
685 sdr->record.common->keys. in ipmi_sensor_set_threshold()
687 __ipmi_sensor_threshold_value_to_raw(sdr->record.full, setting2), in ipmi_sensor_set_threshold()
688 sdr->record.common->keys.owner_id, in ipmi_sensor_set_threshold()
689 sdr->record.common->keys.lun, in ipmi_sensor_set_threshold()
690 sdr->record.common->keys.channel); in ipmi_sensor_set_threshold()
694 sdr->record.full->id_string, in ipmi_sensor_set_threshold()
697 sdr->record.common->keys. in ipmi_sensor_set_threshold()
699 __ipmi_sensor_threshold_value_to_raw(sdr->record.full, setting3), in ipmi_sensor_set_threshold()
700 sdr->record.common->keys.owner_id, in ipmi_sensor_set_threshold()
701 sdr->record.common->keys.lun, in ipmi_sensor_set_threshold()
702 sdr->record.common->keys.channel); in ipmi_sensor_set_threshold()
716 sdr->record.common->keys.sensor_num, in ipmi_sensor_set_threshold()
717 sdr->record.common->keys.owner_id, in ipmi_sensor_set_threshold()
718 sdr->record.common->keys.lun,sdr->record.common->keys.channel); in ipmi_sensor_set_threshold()
720 sdr->record.common->keys.sensor_num, in ipmi_sensor_set_threshold()
721 sdr->record.common->keys.owner_id, in ipmi_sensor_set_threshold()
722 sdr->record.common->keys.lun, in ipmi_sensor_set_threshold()
723 sdr->record.common->keys.channel); in ipmi_sensor_set_threshold()
729 val[i] = sdr_convert_sensor_reading(sdr->record.full, rsp->data[i]); in ipmi_sensor_set_threshold()
792 sdr->record.full->id_string, in ipmi_sensor_set_threshold()
796 sdr->record.common->keys. in ipmi_sensor_set_threshold()
798 __ipmi_sensor_threshold_value_to_raw(sdr->record.full, setting1), in ipmi_sensor_set_threshold()
799 sdr->record.common->keys.owner_id, in ipmi_sensor_set_threshold()
800 sdr->record.common->keys.lun, in ipmi_sensor_set_threshold()
801 sdr->record.common->keys.channel); in ipmi_sensor_set_threshold()
810 struct sdr_record_list *sdr; in ipmi_sensor_get_reading() local
820 sdr = ipmi_sdr_find_sdr_byid(intf, argv[i]); in ipmi_sensor_get_reading()
821 if (sdr == NULL) { in ipmi_sensor_get_reading()
828 switch (sdr->type) { in ipmi_sensor_get_reading()
833 struct sdr_record_common_sensor *sensor = sdr->record.common; in ipmi_sensor_get_reading()
834 sr = ipmi_sdr_read_sensor_value(intf, sensor, sdr->type, 3); in ipmi_sensor_get_reading()
871 struct sdr_record_list *sdr; in ipmi_sensor_get() local
884 sdr = ipmi_sdr_find_sdr_byid(intf, argv[i]); in ipmi_sensor_get()
885 if (sdr == NULL) { in ipmi_sensor_get()
894 switch (sdr->type) { in ipmi_sensor_get()
898 (struct sdr_record_common_sensor *) sdr->record.common, in ipmi_sensor_get()
899 sdr->type)) { in ipmi_sensor_get()
904 if (ipmi_sdr_print_listentry(intf, sdr) < 0) { in ipmi_sensor_get()
910 sdr = NULL; in ipmi_sensor_get()