Lines Matching refs:bitnr
452 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local
453 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
461 int bitnr = (data->type == w83781d) ? 5 : 13; in show_temp3_alarm() local
462 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_temp3_alarm()
523 int bitnr = to_sensor_dev_attr(attr)->index; in show_beep() local
524 return sprintf(buf, "%u\n", (data->beep_mask >> bitnr) & 1); in show_beep()
532 int bitnr = to_sensor_dev_attr(attr)->index; in store_beep() local
546 data->beep_mask |= (1 << bitnr); in store_beep()
548 data->beep_mask &= ~(1 << bitnr); in store_beep()
550 if (bitnr < 8) { in store_beep()
553 reg |= (1 << bitnr); in store_beep()
555 reg &= ~(1 << bitnr); in store_beep()
557 } else if (bitnr < 16) { in store_beep()
560 reg |= (1 << (bitnr - 8)); in store_beep()
562 reg &= ~(1 << (bitnr - 8)); in store_beep()
567 reg |= (1 << (bitnr - 16)); in store_beep()
569 reg &= ~(1 << (bitnr - 16)); in store_beep()
582 int bitnr = (data->type == w83781d) ? 5 : 13; in show_temp3_beep() local
583 return sprintf(buf, "%u\n", (data->beep_mask >> bitnr) & 1); in show_temp3_beep()