/drivers/block/drbd/ |
D | drbd_bitmap.c | 304 static unsigned int bm_bit_to_page_idx(struct drbd_bitmap *b, u64 bitnr) in bm_bit_to_page_idx() argument 307 unsigned int page_nr = bitnr >> (PAGE_SHIFT + 3); in bm_bit_to_page_idx() 1354 unsigned long bitnr; in __bm_change_bits_to() local 1364 for (bitnr = s; bitnr <= e; bitnr++) { in __bm_change_bits_to() 1365 unsigned int page_nr = bm_bit_to_page_idx(b, bitnr); in __bm_change_bits_to() 1379 c += (0 == __test_and_set_bit_le(bitnr & BITS_PER_PAGE_MASK, p_addr)); in __bm_change_bits_to() 1381 c -= (0 != __test_and_clear_bit_le(bitnr & BITS_PER_PAGE_MASK, p_addr)); in __bm_change_bits_to() 1544 int drbd_bm_test_bit(struct drbd_device *device, const unsigned long bitnr) in drbd_bm_test_bit() argument 1559 if (bitnr < b->bm_bits) { in drbd_bm_test_bit() 1560 p_addr = bm_map_pidx(b, bm_bit_to_page_idx(b, bitnr)); in drbd_bm_test_bit() [all …]
|
/drivers/hwmon/ |
D | w83781d.c | 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() [all …]
|
D | gl518sm.c | 451 int bitnr = to_sensor_dev_attr(attr)->index; in alarm_show() local 453 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in alarm_show() 467 int bitnr = to_sensor_dev_attr(attr)->index; in beep_show() local 469 return sprintf(buf, "%u\n", (data->beep_mask >> bitnr) & 1); in beep_show() 477 int bitnr = to_sensor_dev_attr(attr)->index; in beep_store() local 491 data->beep_mask |= (1 << bitnr); in beep_store() 493 data->beep_mask &= ~(1 << bitnr); in beep_store()
|
D | w83627hf.c | 844 int bitnr = to_sensor_dev_attr(attr)->index; in alarm_show() local 845 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in alarm_show() 905 int bitnr = to_sensor_dev_attr(attr)->index; in beep_show() local 906 return sprintf(buf, "%u\n", (data->beep_mask >> bitnr) & 1); in beep_show() 914 int bitnr = to_sensor_dev_attr(attr)->index; in beep_store() local 928 data->beep_mask |= (1 << bitnr); in beep_store() 930 data->beep_mask &= ~(1 << bitnr); in beep_store() 932 if (bitnr < 8) { in beep_store() 935 reg |= (1 << bitnr); in beep_store() 937 reg &= ~(1 << bitnr); in beep_store() [all …]
|
D | ad7414.c | 152 int bitnr = to_sensor_dev_attr(attr)->index; in alarm_show() local 154 int value = (data->temp_input >> bitnr) & 1; in alarm_show()
|
D | max6642.c | 239 int bitnr = to_sensor_dev_attr(attr)->index; in alarm_show() local 241 return sprintf(buf, "%d\n", (data->alarms >> bitnr) & 1); in alarm_show()
|
D | max1619.c | 178 int bitnr = to_sensor_dev_attr(attr)->index; in alarm_show() local 180 return sprintf(buf, "%d\n", (data->alarms >> bitnr) & 1); in alarm_show()
|
D | lm92.c | 222 int bitnr = to_sensor_dev_attr(attr)->index; in alarm_show() local 224 return sprintf(buf, "%d\n", (data->temp[t_input] >> bitnr) & 1); in alarm_show()
|
D | w83791d.c | 434 int bitnr = sensor_attr->index; in show_beep() local 436 return sprintf(buf, "%d\n", (data->beep_mask >> bitnr) & 1); in show_beep() 446 int bitnr = sensor_attr->index; in store_beep() local 447 int bytenr = bitnr / 8; in store_beep() 463 data->beep_mask &= ~(1 << bitnr); in store_beep() 464 data->beep_mask |= val << bitnr; in store_beep() 480 int bitnr = sensor_attr->index; in show_alarm() local 482 return sprintf(buf, "%d\n", (data->alarms >> bitnr) & 1); in show_alarm()
|
D | gl520sm.c | 671 int bitnr = to_sensor_dev_attr(attr)->index; in beep_show() local 674 return sprintf(buf, "%d\n", (data->beep_mask >> bitnr) & 1); in beep_show() 682 int bitnr = to_sensor_dev_attr(attr)->index; in beep_store() local 696 data->beep_mask |= (1 << bitnr); in beep_store() 698 data->beep_mask &= ~(1 << bitnr); in beep_store()
|
D | lm83.c | 195 int bitnr = attr->index; in alarm_show() local 197 return sprintf(buf, "%d\n", (data->alarms >> bitnr) & 1); in alarm_show()
|
D | lm77.c | 206 int bitnr = to_sensor_dev_attr(attr)->index; in alarm_show() local 208 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in alarm_show()
|
D | adm1025.c | 337 int bitnr = to_sensor_dev_attr(attr)->index; in alarm_show() local 339 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in alarm_show()
|
D | lm80.c | 443 int bitnr = to_sensor_dev_attr(attr)->index; in alarm_show() local 447 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in alarm_show()
|
D | smsc47m1.c | 238 int bitnr = to_sensor_dev_attr(devattr)->index; in fan_alarm_show() local 240 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in fan_alarm_show()
|
D | it87.c | 1815 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local 1817 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm() 1870 int bitnr = to_sensor_dev_attr(attr)->index; in show_beep() local 1872 return sprintf(buf, "%u\n", (data->beeps >> bitnr) & 1); in show_beep() 1878 int bitnr = to_sensor_dev_attr(attr)->index; in set_beep() local 1888 data->beeps |= BIT(bitnr); in set_beep() 1890 data->beeps &= ~BIT(bitnr); in set_beep()
|
D | adm9240.c | 587 int bitnr = to_sensor_dev_attr(attr)->index; in alarm_show() local 593 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in alarm_show()
|
D | via686a.c | 581 int bitnr = to_sensor_dev_attr(attr)->index; in alarm_show() local 583 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in alarm_show()
|
D | asb100.c | 522 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local 524 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
|
D | vt8231.c | 611 int bitnr = to_sensor_dev_attr(attr)->index; in alarm_show() local 613 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in alarm_show()
|
D | lm87.c | 656 int bitnr = to_sensor_dev_attr(attr)->index; in alarm_show() local 657 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in alarm_show()
|
D | lm63.c | 735 int bitnr = attr->index; in show_alarm() local 737 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
|
D | adm1031.c | 824 int bitnr = to_sensor_dev_attr(attr)->index; in alarm_show() local 826 return sprintf(buf, "%d\n", (data->alarm >> bitnr) & 1); in alarm_show()
|
/drivers/gpio/ |
D | gpio-msic.c | 229 int bitnr; in msic_gpio_irq_handler() local 236 for_each_set_bit(bitnr, &pending, BITS_PER_BYTE) in msic_gpio_irq_handler() 237 generic_handle_irq(mg->irq_base + i * BITS_PER_BYTE + bitnr); in msic_gpio_irq_handler()
|
/drivers/net/ethernet/aeroflex/ |
D | greth.c | 1048 unsigned int bitnr; in greth_set_hash_filter() local 1053 bitnr = greth_hash_get_index(ha->addr); in greth_set_hash_filter() 1054 mc_filter[bitnr >> 5] |= 1 << (bitnr & 31); in greth_set_hash_filter()
|