Lines Matching refs:sdr
452 struct sdr_record_list *sdr; in ipmi_sunoem_led_get() local
512 sdr = ipmi_sdr_find_sdr_byid(intf, argv[0]); in ipmi_sunoem_led_get()
514 if (sdr == NULL) { in ipmi_sunoem_led_get()
519 if (sdr->type != SDR_RECORD_TYPE_GENERIC_DEVICE_LOCATOR) { in ipmi_sunoem_led_get()
520 lprintf(LOG_ERR, "Invalid SDR type %d", sdr->type); in ipmi_sunoem_led_get()
524 if (!sdr->record.genloc->entity.logical) { in ipmi_sunoem_led_get()
529 res = sunoem_led_get(intf, sdr->record.genloc, ledtype, &rsp); in ipmi_sunoem_led_get()
532 led_print((const char *) sdr->record.genloc->id_string, in ipmi_sunoem_led_get()
536 led_print((const char *) sdr->record.genloc->id_string, PRINT_ERROR, in ipmi_sunoem_led_get()
570 if (assoc->entity.id != sdr->record.genloc->entity.id in ipmi_sunoem_led_get()
572 != sdr->record.genloc->entity.instance) in ipmi_sunoem_led_get()
650 struct sdr_record_list *sdr; in ipmi_sunoem_led_set() local
711 sdr = ipmi_sdr_find_sdr_byid(intf, argv[0]); in ipmi_sunoem_led_set()
713 if (sdr == NULL) { in ipmi_sunoem_led_set()
718 if (sdr->type != SDR_RECORD_TYPE_GENERIC_DEVICE_LOCATOR) { in ipmi_sunoem_led_set()
719 lprintf(LOG_ERR, "Invalid SDR type %d", sdr->type); in ipmi_sunoem_led_set()
723 if (!sdr->record.genloc->entity.logical) { in ipmi_sunoem_led_set()
727 rsp = sunoem_led_set(intf, sdr->record.genloc, ledtype, ledmode); in ipmi_sunoem_led_set()
756 if (assoc->entity.id != sdr->record.genloc->entity.id in ipmi_sunoem_led_set()
758 != sdr->record.genloc->entity.instance) in ipmi_sunoem_led_set()