Lines Matching full:sdr

578 			"Intf my/%#x tgt/%#x:%#x Sdr tgt/%#x:%#x\n",  in ipmi_sdr_get_sensor_reading_ipmb()
780 /* ipmi_sdr_get_header - retreive SDR record header
783 * @itr: sdr iterator
818 lprintf(LOG_ERR, "Get SDR %04x command failed", in ipmi_sdr_get_header()
823 lprintf(LOG_DEBUG, "SDR reservation %04x cancelled. " in ipmi_sdr_get_header()
832 "Unable to renew SDR reservation"); in ipmi_sdr_get_header()
836 lprintf(LOG_ERR, "Get SDR %04x command failed: %s", in ipmi_sdr_get_header()
851 lprintf(LOG_DEBUG, "SDR record ID : 0x%04x", itr->next); in ipmi_sdr_get_header()
856 lprintf(LOG_ERR, "SDR record id 0x%04x: invalid length %d", in ipmi_sdr_get_header()
862 * return a record id from the Get SDR Record command in ipmi_sdr_get_header()
865 * Otherwise, a later Get SDR Record command will fail with in ipmi_sdr_get_header()
870 lprintf(LOG_DEBUG, "SDR record id mismatch: 0x%04x", sdr_rs.id); in ipmi_sdr_get_header()
874 lprintf(LOG_DEBUG, "SDR record type : 0x%02x", sdr_rs.type); in ipmi_sdr_get_header()
875 lprintf(LOG_DEBUG, "SDR record next : 0x%04x", sdr_rs.next); in ipmi_sdr_get_header()
876 lprintf(LOG_DEBUG, "SDR record bytes: %d", sdr_rs.length); in ipmi_sdr_get_header()
881 /* ipmi_sdr_get_next_header - retreive next SDR header
884 * @itr: sdr iterator
913 /* helper macro for printing CSV output for Full SDR Threshold reading */
925 /* helper macro for printing analog values for Full SDR Threshold readings */
937 /* helper macro for printing Full SDR sensor Thresholds */
1289 * @sensor: Common Sensor Record SDR pointer
1290 * @full: Full Sensor Record SDR pointer (if applicable)
1327 * @full: Full Sensor Record SDR pointer
1334 if (!full) { /* No min/max for compact SDR record */ in print_sensor_min_max()
1407 * @sdr_record_type Type of sdr sensor record
1523 /* ipmi_sdr_print_sensor_fc - print full & compact SDR records
1527 * @sdr_record_type: type of sdr record, either full or compact
2098 /* ipmi_sdr_print_sensor_eventonly - print SDR event only record
2101 * @sensor: event only sdr record
2149 /* ipmi_sdr_print_sensor_mc_locator - print SDR MC locator record
2152 * @mc: mc locator sdr record
2235 printf(" SDR Repository : %s\n", in ipmi_sdr_print_sensor_mc_locator()
2248 * @gen: generic device locator sdr record
2305 * @fru: fru locator sdr record
2361 /* ipmi_sdr_print_sensor_entity_assoc - print SDR entity association record
2364 * @mc: entity association sdr record
2379 * @oem: oem sdr record
2454 lprintf(LOG_DEBUG, "Unknown Intel OEM SDR Record type %02x", in ipmi_sdr_print_sensor_oem_intel()
2468 * @oem: oem sdr record
2495 /* ipmi_sdr_print_name_from_rawentry - Print SDR name from raw data
2553 /* ipmi_sdr_print_rawentry - Print SDR entry from raw data
2625 /* ipmi_sdr_print_listentry - Print SDR entry from list
2628 * @entry: sdr record list entry
2677 /* ipmi_sdr_print_sdr - iterate through SDR printing records
2692 lprintf(LOG_DEBUG, "Querying SDR for sensor list"); in ipmi_sdr_print_sdr()
2697 lprintf(LOG_ERR, "Unable to open SDR for reading"); in ipmi_sdr_print_sdr()
2773 lprintf(LOG_DEBUG, "SDR record ID : 0x%04x", sdrr->id); in ipmi_sdr_print_sdr()
2796 /* ipmi_sdr_get_reservation - Obtain SDR reservation ID
2830 lprintf(LOG_DEBUG, "SDR reservation ID %04x", *reserve_id); in ipmi_sdr_get_reservation()
2835 /* ipmi_sdr_start - setup sdr iterator
2839 * returns sdr iterator structure pointer
2888 lprintf(LOG_ERR, "Error obtaining SDR info"); in ipmi_sdr_start()
2894 lprintf(LOG_DEBUG, "Using SDR from Repository \n"); in ipmi_sdr_start()
2901 /* get sdr repository info */ in ipmi_sdr_start()
2908 lprintf(LOG_ERR, "Error obtaining SDR info"); in ipmi_sdr_start()
2914 lprintf(LOG_ERR, "Error obtaining SDR info: %s", in ipmi_sdr_start()
2929 lprintf(LOG_WARN, "WARNING: Unknown SDR repository " in ipmi_sdr_start()
2936 lprintf(LOG_DEBUG, "SDR free space: %d", sdr_info.free); in ipmi_sdr_start()
2937 lprintf(LOG_DEBUG, "SDR records : %d", sdr_info.count); in ipmi_sdr_start()
2952 /* get device sdr info */ in ipmi_sdr_start()
2959 printf("Err in cmd get sensor sdr info\n"); in ipmi_sdr_start()
2968 lprintf(LOG_DEBUG, "SDR records : %d", sdr_info.count); in ipmi_sdr_start()
2973 lprintf(LOG_ERR, "Unable to obtain SDR reservation"); in ipmi_sdr_start()
2982 /* ipmi_sdr_get_record - return RAW SDR record
2985 * @header: SDR header
2986 * @itr: SDR iterator
2988 * returns raw SDR data
3038 /* read SDR record with partial reads in ipmi_sdr_get_record()
3047 lprintf(LOG_DEBUG, "Getting %d bytes from SDR at offset %d", in ipmi_sdr_get_record()
3071 lprintf(LOG_DEBUG, "SDR reservation cancelled. " in ipmi_sdr_get_record()
3100 /* ipmi_sdr_end - cleanup SDR iterator
3103 * @itr: SDR iterator
3116 /* __sdr_list_add - helper function to add SDR record to list
3167 /* ipmi_sdr_list_empty - clean global SDR list
3230 /* ipmi_sdr_find_sdr_bynumtype - lookup SDR entry by number/type
3237 * returns pointer to SDR list
3250 lprintf(LOG_ERR, "Unable to open SDR for reading"); in ipmi_sdr_find_sdr_bynumtype()
3356 /* ipmi_sdr_find_sdr_bysensortype - lookup SDR entry by sensor type
3361 * returns pointer to SDR list
3374 lprintf(LOG_ERR, "Unable to open SDR for reading"); in ipmi_sdr_find_sdr_bysensortype()
3476 /* ipmi_sdr_find_sdr_byentity - lookup SDR entry by entity association
3481 * returns pointer to SDR list
3494 lprintf(LOG_ERR, "Unable to open SDR for reading"); in ipmi_sdr_find_sdr_byentity()
3656 /* ipmi_sdr_find_sdr_bytype - lookup SDR entries by type
3661 * returns pointer to SDR list with all matching entities
3674 lprintf(LOG_ERR, "Unable to open SDR for reading"); in ipmi_sdr_find_sdr_bytype()
3765 /* ipmi_sdr_find_sdr_byid - lookup SDR entry by ID string
3770 * returns pointer to SDR list
3789 lprintf(LOG_ERR, "Unable to open SDR for reading"); in ipmi_sdr_find_sdr_byid()
3945 /* ipmi_sdr_list_cache_fromfile - generate SDR cache for fast lookup from local file
3950 * returns pointer to SDR list
3968 lprintf(LOG_ERR, "No SDR cache filename given"); in ipmi_sdr_list_cache_fromfile()
3974 lprintf(LOG_ERR, "Unable to open SDR cache %s for reading", in ipmi_sdr_list_cache_fromfile()
3998 lprintf(LOG_WARN, "invalid sdr header version %02x", in ipmi_sdr_list_cache_fromfile()
4107 /* ipmi_sdr_list_cache - generate SDR cache for fast lookup
4111 * returns pointer to SDR list
4122 lprintf(LOG_ERR, "Unable to open SDR for reading"); in ipmi_sdr_list_cache()
4200 * Execute the GET SDR REPOSITORY INFO command, and populate the sdr_info
4225 lprintf(LOG_ERR, "Get SDR Repository Info command failed"); in ipmi_sdr_get_info()
4229 lprintf(LOG_ERR, "Get SDR Repository Info command failed: %s", in ipmi_sdr_get_info()
4263 * Display the return data of the GET SDR REPOSITORY INFO command
4280 printf("SDR Version : 0x%x\n", in ipmi_sdr_print_info()
4322 printf("SDR overflow : %s\n", in ipmi_sdr_print_info()
4325 printf("SDR Repository Update Support : "); in ipmi_sdr_print_info()
4344 printf("Delete SDR supported : %s\n", in ipmi_sdr_print_info()
4346 printf("Partial Add SDR supported : %s\n", in ipmi_sdr_print_info()
4348 printf("Reserve SDR repository supported : %s\n", in ipmi_sdr_print_info()
4351 printf("SDR Repository Alloc info supported : %s\n", in ipmi_sdr_print_info()
4358 /* ipmi_sdr_dump_bin - Write raw SDR to binary file
4377 /* open connection to SDR */ in ipmi_sdr_dump_bin()
4380 lprintf(LOG_ERR, "Unable to open SDR for reading"); in ipmi_sdr_dump_bin()
4405 lprintf(LOG_ERR, "ipmitool: cannot obtain SDR record %04x", header->id); in ipmi_sdr_dump_bin()
4432 /* build and write sdr header */ in ipmi_sdr_dump_bin()
4447 /* write sdr entry */ in ipmi_sdr_dump_bin()
4601 /* ipmi_sdr_print_entry_byid - print sdr entries identified by sensor id
4613 struct sdr_record_list *sdr; in ipmi_sdr_print_entry_byid() local
4626 sdr = ipmi_sdr_find_sdr_byid(intf, argv[i]); in ipmi_sdr_print_entry_byid()
4627 if (sdr == NULL) { in ipmi_sdr_print_entry_byid()
4631 if (ipmi_sdr_print_listentry(intf, sdr) < 0) in ipmi_sdr_print_entry_byid()
4641 /* ipmi_sdr_main - top-level handler for SDR subsystem
4694 "usage: sdr %s [all|full|compact|event|mcloc|fru|generic]", in ipmi_sdr_main()
4700 "Invalid SDR %s command: %s", in ipmi_sdr_main()
4703 "usage: sdr %s [all|full|compact|event|mcloc|fru|generic]", in ipmi_sdr_main()
4720 lprintf(LOG_NOTICE, "usage: sdr dump <file>"); in ipmi_sdr_main()
4727 lprintf(LOG_NOTICE, "usage: sdr fill sensors"); in ipmi_sdr_main()
4728 lprintf(LOG_NOTICE, "usage: sdr fill file <file>"); in ipmi_sdr_main()
4729 lprintf(LOG_NOTICE, "usage: sdr fill range <range>"); in ipmi_sdr_main()
4740 "usage: sdr fill file <file>"); in ipmi_sdr_main()
4749 "usage: sdr fill range <range>"); in ipmi_sdr_main()
4755 "Invalid SDR %s command: %s", in ipmi_sdr_main()
4758 "usage: sdr %s <sensors|nosat|file|range> [options]", in ipmi_sdr_main()
4763 lprintf(LOG_ERR, "Invalid SDR command: %s", argv[0]); in ipmi_sdr_main()
4774 "usage: sdr <command> [options]"); in printf_sdr_usage()
4778 " all All SDR Records"); in printf_sdr_usage()
4816 " Dump raw SDR data to a file\n"); in printf_sdr_usage()
4820 " sensors Creates the SDR repository for the current"); in printf_sdr_usage()
4824 " nosat Creates the SDR repository for the current"); in printf_sdr_usage()
4828 " file <file> Load SDR repository from a file"); in printf_sdr_usage()
4830 " range <range> Load SDR repository from a provided list"); in printf_sdr_usage()