Home
last modified time | relevance | path

Searched refs:bitnr (Results 1 – 25 of 26) sorted by relevance

12

/drivers/hwmon/
Dw83781d.c451 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local
452 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
460 int bitnr = (data->type == w83781d) ? 5 : 13; in show_temp3_alarm() local
461 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_temp3_alarm()
519 int bitnr = to_sensor_dev_attr(attr)->index; in show_beep() local
520 return sprintf(buf, "%u\n", (data->beep_mask >> bitnr) & 1); in show_beep()
528 int bitnr = to_sensor_dev_attr(attr)->index; in store_beep() local
538 data->beep_mask |= (1 << bitnr); in store_beep()
540 data->beep_mask &= ~(1 << bitnr); in store_beep()
542 if (bitnr < 8) { in store_beep()
[all …]
Dw83627hf.c728 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local
729 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
787 int bitnr = to_sensor_dev_attr(attr)->index; in show_beep() local
788 return sprintf(buf, "%u\n", (data->beep_mask >> bitnr) & 1); in show_beep()
796 int bitnr = to_sensor_dev_attr(attr)->index; in store_beep() local
806 data->beep_mask |= (1 << bitnr); in store_beep()
808 data->beep_mask &= ~(1 << bitnr); in store_beep()
810 if (bitnr < 8) { in store_beep()
813 reg |= (1 << bitnr); in store_beep()
815 reg &= ~(1 << bitnr); in store_beep()
[all …]
Dgl518sm.c372 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local
374 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
388 int bitnr = to_sensor_dev_attr(attr)->index; in show_beep() local
390 return sprintf(buf, "%u\n", (data->beep_mask >> bitnr) & 1); in show_beep()
398 int bitnr = to_sensor_dev_attr(attr)->index; in set_beep() local
408 data->beep_mask |= (1 << bitnr); in set_beep()
410 data->beep_mask &= ~(1 << bitnr); in set_beep()
Dad7414.c153 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local
155 int value = (data->temp_input >> bitnr) & 1; in show_alarm()
Dw83791d.c445 int bitnr = sensor_attr->index; in show_beep() local
447 return sprintf(buf, "%d\n", (data->beep_mask >> bitnr) & 1); in show_beep()
457 int bitnr = sensor_attr->index; in store_beep() local
458 int bytenr = bitnr / 8; in store_beep()
467 data->beep_mask &= ~(1 << bitnr); in store_beep()
468 data->beep_mask |= val << bitnr; in store_beep()
484 int bitnr = sensor_attr->index; in show_alarm() local
486 return sprintf(buf, "%d\n", (data->alarms >> bitnr) & 1); in show_alarm()
Dmax1619.c183 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local
185 return sprintf(buf, "%d\n", (data->alarms >> bitnr) & 1); in show_alarm()
Dgl520sm.c568 int bitnr = to_sensor_dev_attr(attr)->index; in get_beep() local
571 return sprintf(buf, "%d\n", (data->beep_mask >> bitnr) & 1); in get_beep()
579 int bitnr = to_sensor_dev_attr(attr)->index; in set_beep() local
589 data->beep_mask |= (1 << bitnr); in set_beep()
591 data->beep_mask &= ~(1 << bitnr); in set_beep()
Dlm92.c215 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local
217 return sprintf(buf, "%d\n", (data->temp1_input >> bitnr) & 1); in show_alarm()
Dlm83.c209 int bitnr = attr->index; in show_alarm() local
211 return sprintf(buf, "%d\n", (data->alarms >> bitnr) & 1); in show_alarm()
Dlm77.c204 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local
206 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
Dlm63.c350 int bitnr = attr->index; in show_alarm() local
352 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
Dadm1025.c318 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local
320 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
Dsmsc47m1.c205 int bitnr = to_sensor_dev_attr(devattr)->index; in get_fan_alarm() local
207 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in get_fan_alarm()
Dlm80.c321 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local
323 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
Dadm9240.c432 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local
434 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
Dlm90.c527 int bitnr = attr->index; in show_alarm() local
529 return sprintf(buf, "%d\n", (data->alarms >> bitnr) & 1); in show_alarm()
Dvia686a.c540 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local
542 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
Dasb100.c499 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local
501 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
Dvt8231.c548 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local
550 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
Dlm87.c554 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local
555 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
Dadm1031.c687 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local
689 return sprintf(buf, "%d\n", (data->alarm >> bitnr) & 1); in show_alarm()
Dit87.c814 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local
816 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
Df71805f.c907 int bitnr = attr->index; in show_alarm() local
909 return sprintf(buf, "%lu\n", (data->alarms >> bitnr) & 1); in show_alarm()
/drivers/net/arm/
Dat91_ether.c501 static int inline hash_bit_value(int bitnr, __u8 *addr) in hash_bit_value() argument
503 if (addr[bitnr / 8] & (1 << (bitnr % 8))) in hash_bit_value()
561 unsigned int i, bitnr; in at91ether_sethashtable() local
569 bitnr = hash_get_index(curr->dmi_addr); in at91ether_sethashtable()
570 mc_filter[bitnr >> 5] |= 1 << (bitnr & 31); in at91ether_sethashtable()
/drivers/net/
Dmacb.c867 static inline int hash_bit_value(int bitnr, __u8 *addr) in hash_bit_value() argument
869 if (addr[bitnr / 8] & (1 << (bitnr % 8))) in hash_bit_value()
899 unsigned int i, bitnr; in macb_sethashtable() local
908 bitnr = hash_get_index(curr->dmi_addr); in macb_sethashtable()
909 mc_filter[bitnr >> 5] |= 1 << (bitnr & 31); in macb_sethashtable()

12