Lines Matching refs:bitnr
911 int bitnr = to_sensor_dev_attr(attr)->index; in alarm_show() local
912 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in alarm_show()
935 int bitnr = to_sensor_dev_attr(attr)->index; in beep_show() local
936 return sprintf(buf, "%u\n", (data->beep_mask >> bitnr) & 1); in beep_show()
944 int bitnr = to_sensor_dev_attr(attr)->index; in beep_store() local
958 data->beep_mask |= (1 << bitnr); in beep_store()
960 data->beep_mask &= ~(1 << bitnr); in beep_store()
962 if (bitnr < 8) { in beep_store()
965 reg |= (1 << bitnr); in beep_store()
967 reg &= ~(1 << bitnr); in beep_store()
969 } else if (bitnr < 16) { in beep_store()
972 reg |= (1 << (bitnr - 8)); in beep_store()
974 reg &= ~(1 << (bitnr - 8)); in beep_store()
979 reg |= (1 << (bitnr - 16)); in beep_store()
981 reg &= ~(1 << (bitnr - 16)); in beep_store()