Searched refs:to_index (Results 1 – 1 of 1) sorted by relevance
102 #define to_index(attr) (to_sensor_dev_attr(attr)->index & 0xffff) macro783 const char *key = smcreg.index[to_index(devattr)]; in applesmc_show_sensor_label()792 const char *key = smcreg.index[to_index(devattr)]; in applesmc_show_temperature()814 sprintf(newkey, fan_speed_fmt[to_option(attr)], to_index(attr)); in applesmc_show_fan_speed()837 sprintf(newkey, fan_speed_fmt[to_option(attr)], to_index(attr)); in applesmc_store_fan_speed()857 manual = ((buffer[0] << 8 | buffer[1]) >> to_index(attr)) & 0x01; in applesmc_show_fan_manual()883 val = val | (0x01 << to_index(attr)); in applesmc_store_fan_manual()885 val = val & ~(0x01 << to_index(attr)); in applesmc_store_fan_manual()906 sprintf(newkey, FAN_ID_FMT, to_index(attr)); in applesmc_show_fan_position()