/linux-2.6.39/net/xfrm/ |
D | xfrm_replay.c | 197 unsigned int bitnr, nr; in xfrm_replay_check_bmp() local 220 bitnr = (pos - diff) % replay_esn->replay_window; in xfrm_replay_check_bmp() 221 nr = bitnr >> 5; in xfrm_replay_check_bmp() 222 bitnr = bitnr & 0x1F; in xfrm_replay_check_bmp() 223 if (replay_esn->bmp[nr] & (1U << bitnr)) in xfrm_replay_check_bmp() 226 bitnr = replay_esn->replay_window - (diff - pos); in xfrm_replay_check_bmp() 227 nr = bitnr >> 5; in xfrm_replay_check_bmp() 228 bitnr = bitnr & 0x1F; in xfrm_replay_check_bmp() 229 if (replay_esn->bmp[nr] & (1U << bitnr)) in xfrm_replay_check_bmp() 243 unsigned int bitnr, nr, i; in xfrm_replay_advance_bmp() local [all …]
|
/linux-2.6.39/drivers/block/drbd/ |
D | drbd_bitmap.c | 287 static unsigned int bm_bit_to_page_idx(struct drbd_bitmap *b, u64 bitnr) in bm_bit_to_page_idx() argument 290 unsigned int page_nr = bitnr >> (PAGE_SHIFT + 3); in bm_bit_to_page_idx() 1263 unsigned long bitnr; in __bm_change_bits_to() local 1273 for (bitnr = s; bitnr <= e; bitnr++) { in __bm_change_bits_to() 1274 unsigned int page_nr = bm_bit_to_page_idx(b, bitnr); in __bm_change_bits_to() 1288 c += (0 == __test_and_set_bit_le(bitnr & BITS_PER_PAGE_MASK, p_addr)); in __bm_change_bits_to() 1290 c -= (0 != __test_and_clear_bit_le(bitnr & BITS_PER_PAGE_MASK, p_addr)); in __bm_change_bits_to() 1424 int drbd_bm_test_bit(struct drbd_conf *mdev, const unsigned long bitnr) in drbd_bm_test_bit() argument 1437 if (bitnr < b->bm_bits) { in drbd_bm_test_bit() 1438 p_addr = bm_map_pidx(b, bm_bit_to_page_idx(b, bitnr)); in drbd_bm_test_bit() [all …]
|
/linux-2.6.39/drivers/hwmon/ |
D | w83781d.c | 454 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local 455 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm() 463 int bitnr = (data->type == w83781d) ? 5 : 13; in show_temp3_alarm() local 464 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_temp3_alarm() 522 int bitnr = to_sensor_dev_attr(attr)->index; in show_beep() local 523 return sprintf(buf, "%u\n", (data->beep_mask >> bitnr) & 1); in show_beep() 531 int bitnr = to_sensor_dev_attr(attr)->index; in store_beep() local 541 data->beep_mask |= (1 << bitnr); in store_beep() 543 data->beep_mask &= ~(1 << bitnr); in store_beep() 545 if (bitnr < 8) { in store_beep() [all …]
|
D | gl518sm.c | 370 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local 372 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm() 386 int bitnr = to_sensor_dev_attr(attr)->index; in show_beep() local 388 return sprintf(buf, "%u\n", (data->beep_mask >> bitnr) & 1); in show_beep() 396 int bitnr = to_sensor_dev_attr(attr)->index; in set_beep() local 406 data->beep_mask |= (1 << bitnr); in set_beep() 408 data->beep_mask &= ~(1 << bitnr); in set_beep()
|
D | w83627hf.c | 725 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local 726 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm() 784 int bitnr = to_sensor_dev_attr(attr)->index; in show_beep() local 785 return sprintf(buf, "%u\n", (data->beep_mask >> bitnr) & 1); in show_beep() 793 int bitnr = to_sensor_dev_attr(attr)->index; in store_beep() local 803 data->beep_mask |= (1 << bitnr); in store_beep() 805 data->beep_mask &= ~(1 << bitnr); in store_beep() 807 if (bitnr < 8) { in store_beep() 810 reg |= (1 << bitnr); in store_beep() 812 reg &= ~(1 << bitnr); in store_beep() [all …]
|
D | ad7414.c | 154 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local 156 int value = (data->temp_input >> bitnr) & 1; in show_alarm()
|
D | max1619.c | 177 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local 179 return sprintf(buf, "%d\n", (data->alarms >> bitnr) & 1); in show_alarm()
|
D | w83791d.c | 444 int bitnr = sensor_attr->index; in show_beep() local 446 return sprintf(buf, "%d\n", (data->beep_mask >> bitnr) & 1); in show_beep() 456 int bitnr = sensor_attr->index; in store_beep() local 457 int bytenr = bitnr / 8; in store_beep() 466 data->beep_mask &= ~(1 << bitnr); in store_beep() 467 data->beep_mask |= val << bitnr; in store_beep() 483 int bitnr = sensor_attr->index; in show_alarm() local 485 return sprintf(buf, "%d\n", (data->alarms >> bitnr) & 1); in show_alarm()
|
D | lm83.c | 205 int bitnr = attr->index; in show_alarm() local 207 return sprintf(buf, "%d\n", (data->alarms >> bitnr) & 1); in show_alarm()
|
D | lm92.c | 212 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local 214 return sprintf(buf, "%d\n", (data->temp1_input >> bitnr) & 1); in show_alarm()
|
D | gl520sm.c | 564 int bitnr = to_sensor_dev_attr(attr)->index; in get_beep() local 567 return sprintf(buf, "%d\n", (data->beep_mask >> bitnr) & 1); in get_beep() 575 int bitnr = to_sensor_dev_attr(attr)->index; in set_beep() local 585 data->beep_mask |= (1 << bitnr); in set_beep() 587 data->beep_mask &= ~(1 << bitnr); in set_beep()
|
D | lm77.c | 200 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local 202 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
|
D | it87.c | 1168 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local 1170 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm() 1192 int bitnr = to_sensor_dev_attr(attr)->index; in show_beep() local 1194 return sprintf(buf, "%u\n", (data->beeps >> bitnr) & 1); in show_beep() 1199 int bitnr = to_sensor_dev_attr(attr)->index; in set_beep() local 1210 data->beeps |= (1 << bitnr); in set_beep() 1212 data->beeps &= ~(1 << bitnr); in set_beep()
|
D | adm1025.c | 314 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local 316 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
|
D | lm63.c | 371 int bitnr = attr->index; in show_alarm() local 373 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
|
D | lm80.c | 317 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local 319 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
|
D | smsc47m1.c | 207 int bitnr = to_sensor_dev_attr(devattr)->index; in get_fan_alarm() local 209 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in get_fan_alarm()
|
D | adm9240.c | 431 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local 433 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
|
D | via686a.c | 542 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local 544 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
|
D | asb100.c | 498 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local 500 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
|
D | vt8231.c | 550 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local 552 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
|
/linux-2.6.39/sound/pci/oxygen/ |
D | oxygen_mixer.c | 521 unsigned int bitnr = (ctl->private_value >> 8) & 0xff; in ac97_switch_get() local 528 if (!(reg & (1 << bitnr)) ^ !invert) in ac97_switch_get() 559 unsigned int bitnr = (ctl->private_value >> 8) & 0xff; in ac97_switch_put() local 568 newreg |= 1 << bitnr; in ac97_switch_put() 570 newreg &= ~(1 << bitnr); in ac97_switch_put() 587 bitnr == 15 && !(newreg & 0x8000)) { in ac97_switch_put() 737 #define AC97_SWITCH(xname, codec, index, bitnr, invert) { \ argument 744 ((bitnr) << 8) | (index), \
|
/linux-2.6.39/drivers/net/arm/ |
D | at91_ether.c | 502 static int inline hash_bit_value(int bitnr, __u8 *addr) in hash_bit_value() argument 504 if (addr[bitnr / 8] & (1 << (bitnr % 8))) in hash_bit_value() 562 unsigned int bitnr; in at91ether_sethashtable() local 567 bitnr = hash_get_index(ha->addr); in at91ether_sethashtable() 568 mc_filter[bitnr >> 5] |= 1 << (bitnr & 31); in at91ether_sethashtable()
|
/linux-2.6.39/drivers/net/ |
D | macb.c | 859 static inline int hash_bit_value(int bitnr, __u8 *addr) in hash_bit_value() argument 861 if (addr[bitnr / 8] & (1 << (bitnr % 8))) in hash_bit_value() 891 unsigned int bitnr; in macb_sethashtable() local 897 bitnr = hash_get_index(ha->addr); in macb_sethashtable() 898 mc_filter[bitnr >> 5] |= 1 << (bitnr & 31); in macb_sethashtable()
|
D | greth.c | 1037 unsigned int bitnr; in greth_set_hash_filter() local 1042 bitnr = greth_hash_get_index(ha->addr); in greth_set_hash_filter() 1043 mc_filter[bitnr >> 5] |= 1 << (bitnr & 31); in greth_set_hash_filter()
|