Home
last modified time | relevance | path

Searched refs:bacc (Results 1 – 3 of 3) sorted by relevance

/openbmc/ipmitool/include/ipmitool/
H A Dipmi_sdr.h53 # define __TO_B(bacc) (int32_t)(tos32((((bacc & 0xff000000) >> 24) | ((bacc & 0xc00000) >> 14… argument
54 # define __TO_ACC(bacc) (uint32_t)(((bacc & 0x3f0000) >> 16) | ((bacc & 0xf000) >> 6)) argument
55 # define __TO_ACC_EXP(bacc) (uint32_t)((bacc & 0xc00) >> 10) argument
56 # define __TO_R_EXP(bacc) (int32_t)(tos32(((bacc & 0xf0) >> 4), 4)) argument
57 # define __TO_B_EXP(bacc) (int32_t)(tos32((bacc & 0xf), 4)) argument
61 # define __TO_B(bacc) (int32_t)(tos32((((BSWAP_32(bacc) & 0xff000000) >> 24) | \ argument
62 ((BSWAP_32(bacc) & 0xc00000) >> 14)), 10))
63 # define __TO_ACC(bacc) (uint32_t)(((BSWAP_32(bacc) & 0x3f0000) >> 16) | ((BSWAP_32(bacc) & 0xf… argument
64 # define __TO_ACC_EXP(bacc) (uint32_t)((BSWAP_32(bacc) & 0xc00) >> 10) argument
65 # define __TO_R_EXP(bacc) (int32_t)(tos32(((BSWAP_32(bacc) & 0xf0) >> 4), 4)) argument
[all …]
/openbmc/ipmitool/lib/
H A Dipmi_sensor.c98 memcpy(&sensor->bacc, &rsp->data[3], sizeof(sensor->bacc)); in ipmi_sensor_get_sensor_reading_factors()
H A Dipmi_sdr.c191 b = __TO_B(sensor->bacc); in sdr_convert_sensor_reading()
192 k1 = __TO_B_EXP(sensor->bacc); in sdr_convert_sensor_reading()
193 k2 = __TO_R_EXP(sensor->bacc); in sdr_convert_sensor_reading()
274 k2 = __TO_R_EXP(sensor->bacc); in sdr_convert_sensor_hysterisis()
348 k2 = __TO_R_EXP(sensor->bacc); in sdr_convert_sensor_tolerance()
427 b = __TO_B(sensor->bacc); in sdr_convert_sensor_value_to_raw()
428 k1 = __TO_B_EXP(sensor->bacc); in sdr_convert_sensor_value_to_raw()
429 k2 = __TO_R_EXP(sensor->bacc); in sdr_convert_sensor_value_to_raw()