Lines Matching full:sdr
345 /* ipmi_gendev_write_file - Read raw SDR from binary file
558 "SDR Commands: list read write"); in ipmi_gendev_main()
562 …" read <sdr name> <file> Read to file eeprom specify by Generic Device Locat… in ipmi_gendev_main()
564 …" write <sdr name> <file> Write from file eeprom specify by Generic Device Lo… in ipmi_gendev_main()
577 struct sdr_record_list *sdr; in ipmi_gendev_main() local
579 lprintf(LOG_ERR, "Gendev read sdr name : %s", argv[1]); in ipmi_gendev_main()
584 sdr = ipmi_sdr_find_sdr_byid(intf, argv[1]); in ipmi_gendev_main()
585 if (sdr == NULL) in ipmi_gendev_main()
591 if (sdr->type != SDR_RECORD_TYPE_GENERIC_DEVICE_LOCATOR) in ipmi_gendev_main()
593 lprintf(LOG_ERR, "Target SDR is not a generic device locator"); in ipmi_gendev_main()
598 ipmi_gendev_read_file(intf, sdr->record.genloc, argv[2]); in ipmi_gendev_main()
608 struct sdr_record_list *sdr; in ipmi_gendev_main() local
610 lprintf(LOG_ERR, "Gendev write sdr name : %s", argv[1]); in ipmi_gendev_main()
615 sdr = ipmi_sdr_find_sdr_byid(intf, argv[1]); in ipmi_gendev_main()
616 if (sdr == NULL) in ipmi_gendev_main()
622 if (sdr->type != SDR_RECORD_TYPE_GENERIC_DEVICE_LOCATOR) in ipmi_gendev_main()
624 lprintf(LOG_ERR, "Target SDR is not a generic device locator"); in ipmi_gendev_main()
629 ipmi_gendev_write_file(intf, sdr->record.genloc, argv[2]); in ipmi_gendev_main()