Home
last modified time | relevance | path

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

12

/linux-2.6.39/net/xfrm/
Dxfrm_replay.c197 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/
Ddrbd_bitmap.c287 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/
Dw83781d.c454 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 …]
Dgl518sm.c370 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()
Dw83627hf.c725 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 …]
Dad7414.c154 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local
156 int value = (data->temp_input >> bitnr) & 1; in show_alarm()
Dmax1619.c177 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()
Dw83791d.c444 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()
Dlm83.c205 int bitnr = attr->index; in show_alarm() local
207 return sprintf(buf, "%d\n", (data->alarms >> bitnr) & 1); in show_alarm()
Dlm92.c212 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()
Dgl520sm.c564 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()
Dlm77.c200 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()
Dit87.c1168 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()
Dadm1025.c314 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()
Dlm63.c371 int bitnr = attr->index; in show_alarm() local
373 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
Dlm80.c317 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()
Dsmsc47m1.c207 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()
Dadm9240.c431 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()
Dvia686a.c542 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()
Dasb100.c498 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()
Dvt8231.c550 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/
Doxygen_mixer.c521 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/
Dat91_ether.c502 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/
Dmacb.c859 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()
Dgreth.c1037 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()

12