bitnr 215 block/blk-mq-tag.c static bool bt_iter(struct sbitmap *bitmap, unsigned int bitnr, void *data) bitnr 224 block/blk-mq-tag.c bitnr += tags->nr_reserved_tags; bitnr 225 block/blk-mq-tag.c rq = tags->rqs[bitnr]; bitnr 270 block/blk-mq-tag.c static bool bt_tags_iter(struct sbitmap *bitmap, unsigned int bitnr, void *data) bitnr 278 block/blk-mq-tag.c bitnr += tags->nr_reserved_tags; bitnr 284 block/blk-mq-tag.c rq = tags->rqs[bitnr]; bitnr 979 block/blk-mq.c static bool flush_busy_ctx(struct sbitmap *sb, unsigned int bitnr, void *data) bitnr 983 block/blk-mq.c struct blk_mq_ctx *ctx = hctx->ctxs[bitnr]; bitnr 988 block/blk-mq.c sbitmap_clear_bit(sb, bitnr); bitnr 1013 block/blk-mq.c static bool dispatch_rq_from_ctx(struct sbitmap *sb, unsigned int bitnr, bitnr 1018 block/blk-mq.c struct blk_mq_ctx *ctx = hctx->ctxs[bitnr]; bitnr 1026 block/blk-mq.c sbitmap_clear_bit(sb, bitnr); bitnr 663 block/kyber-iosched.c static bool flush_busy_kcq(struct sbitmap *sb, unsigned int bitnr, void *data) bitnr 666 block/kyber-iosched.c struct kyber_ctx_queue *kcq = &flush_data->khd->kcqs[bitnr]; bitnr 671 block/kyber-iosched.c sbitmap_clear_bit(sb, bitnr); bitnr 304 drivers/block/drbd/drbd_bitmap.c static unsigned int bm_bit_to_page_idx(struct drbd_bitmap *b, u64 bitnr) bitnr 307 drivers/block/drbd/drbd_bitmap.c unsigned int page_nr = bitnr >> (PAGE_SHIFT + 3); bitnr 1356 drivers/block/drbd/drbd_bitmap.c unsigned long bitnr; bitnr 1366 drivers/block/drbd/drbd_bitmap.c for (bitnr = s; bitnr <= e; bitnr++) { bitnr 1367 drivers/block/drbd/drbd_bitmap.c unsigned int page_nr = bm_bit_to_page_idx(b, bitnr); bitnr 1381 drivers/block/drbd/drbd_bitmap.c c += (0 == __test_and_set_bit_le(bitnr & BITS_PER_PAGE_MASK, p_addr)); bitnr 1383 drivers/block/drbd/drbd_bitmap.c c -= (0 != __test_and_clear_bit_le(bitnr & BITS_PER_PAGE_MASK, p_addr)); bitnr 1546 drivers/block/drbd/drbd_bitmap.c int drbd_bm_test_bit(struct drbd_device *device, const unsigned long bitnr) bitnr 1561 drivers/block/drbd/drbd_bitmap.c if (bitnr < b->bm_bits) { bitnr 1562 drivers/block/drbd/drbd_bitmap.c p_addr = bm_map_pidx(b, bm_bit_to_page_idx(b, bitnr)); bitnr 1563 drivers/block/drbd/drbd_bitmap.c i = test_bit_le(bitnr & BITS_PER_PAGE_MASK, p_addr) ? 1 : 0; bitnr 1565 drivers/block/drbd/drbd_bitmap.c } else if (bitnr == b->bm_bits) { bitnr 1568 drivers/block/drbd/drbd_bitmap.c drbd_err(device, "bitnr=%lu > bm_bits=%lu\n", bitnr, b->bm_bits); bitnr 1582 drivers/block/drbd/drbd_bitmap.c unsigned long bitnr; bitnr 1598 drivers/block/drbd/drbd_bitmap.c for (bitnr = s; bitnr <= e; bitnr++) { bitnr 1599 drivers/block/drbd/drbd_bitmap.c unsigned int idx = bm_bit_to_page_idx(b, bitnr); bitnr 1606 drivers/block/drbd/drbd_bitmap.c if (expect(bitnr < b->bm_bits)) bitnr 1607 drivers/block/drbd/drbd_bitmap.c c += (0 != test_bit_le(bitnr - (page_nr << (PAGE_SHIFT+3)), p_addr)); bitnr 1609 drivers/block/drbd/drbd_bitmap.c drbd_err(device, "bitnr=%lu bm_bits=%lu\n", bitnr, b->bm_bits); bitnr 1358 drivers/block/drbd/drbd_int.h extern int drbd_bm_test_bit(struct drbd_device *device, unsigned long bitnr); bitnr 229 drivers/gpio/gpio-msic.c int bitnr; bitnr 236 drivers/gpio/gpio-msic.c for_each_set_bit(bitnr, &pending, BITS_PER_BYTE) bitnr 237 drivers/gpio/gpio-msic.c generic_handle_irq(mg->irq_base + i * BITS_PER_BYTE + bitnr); bitnr 152 drivers/hwmon/ad7414.c int bitnr = to_sensor_dev_attr(attr)->index; bitnr 154 drivers/hwmon/ad7414.c int value = (data->temp_input >> bitnr) & 1; bitnr 337 drivers/hwmon/adm1025.c int bitnr = to_sensor_dev_attr(attr)->index; bitnr 339 drivers/hwmon/adm1025.c return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); bitnr 1121 drivers/hwmon/adm1026.c int bitnr = to_sensor_dev_attr(attr)->index; bitnr 1122 drivers/hwmon/adm1026.c return sprintf(buf, "%ld\n", (data->alarms >> bitnr) & 1); bitnr 824 drivers/hwmon/adm1031.c int bitnr = to_sensor_dev_attr(attr)->index; bitnr 826 drivers/hwmon/adm1031.c return sprintf(buf, "%d\n", (data->alarm >> bitnr) & 1); bitnr 500 drivers/hwmon/adm9240.c int bitnr = to_sensor_dev_attr(attr)->index; bitnr 502 drivers/hwmon/adm9240.c return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); bitnr 523 drivers/hwmon/asb100.c int bitnr = to_sensor_dev_attr(attr)->index; bitnr 525 drivers/hwmon/asb100.c return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); bitnr 971 drivers/hwmon/f71805f.c int bitnr = attr->index; bitnr 973 drivers/hwmon/f71805f.c return sprintf(buf, "%lu\n", (data->alarms >> bitnr) & 1); bitnr 451 drivers/hwmon/gl518sm.c int bitnr = to_sensor_dev_attr(attr)->index; bitnr 453 drivers/hwmon/gl518sm.c return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); bitnr 467 drivers/hwmon/gl518sm.c int bitnr = to_sensor_dev_attr(attr)->index; bitnr 469 drivers/hwmon/gl518sm.c return sprintf(buf, "%u\n", (data->beep_mask >> bitnr) & 1); bitnr 477 drivers/hwmon/gl518sm.c int bitnr = to_sensor_dev_attr(attr)->index; bitnr 491 drivers/hwmon/gl518sm.c data->beep_mask |= (1 << bitnr); bitnr 493 drivers/hwmon/gl518sm.c data->beep_mask &= ~(1 << bitnr); bitnr 671 drivers/hwmon/gl520sm.c int bitnr = to_sensor_dev_attr(attr)->index; bitnr 674 drivers/hwmon/gl520sm.c return sprintf(buf, "%d\n", (data->beep_mask >> bitnr) & 1); bitnr 682 drivers/hwmon/gl520sm.c int bitnr = to_sensor_dev_attr(attr)->index; bitnr 696 drivers/hwmon/gl520sm.c data->beep_mask |= (1 << bitnr); bitnr 698 drivers/hwmon/gl520sm.c data->beep_mask &= ~(1 << bitnr); bitnr 1813 drivers/hwmon/it87.c int bitnr = to_sensor_dev_attr(attr)->index; bitnr 1815 drivers/hwmon/it87.c return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); bitnr 1868 drivers/hwmon/it87.c int bitnr = to_sensor_dev_attr(attr)->index; bitnr 1870 drivers/hwmon/it87.c return sprintf(buf, "%u\n", (data->beeps >> bitnr) & 1); bitnr 1876 drivers/hwmon/it87.c int bitnr = to_sensor_dev_attr(attr)->index; bitnr 1886 drivers/hwmon/it87.c data->beeps |= BIT(bitnr); bitnr 1888 drivers/hwmon/it87.c data->beeps &= ~BIT(bitnr); bitnr 735 drivers/hwmon/lm63.c int bitnr = attr->index; bitnr 737 drivers/hwmon/lm63.c return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); bitnr 206 drivers/hwmon/lm77.c int bitnr = to_sensor_dev_attr(attr)->index; bitnr 208 drivers/hwmon/lm77.c return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); bitnr 443 drivers/hwmon/lm80.c int bitnr = to_sensor_dev_attr(attr)->index; bitnr 447 drivers/hwmon/lm80.c return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); bitnr 195 drivers/hwmon/lm83.c int bitnr = attr->index; bitnr 197 drivers/hwmon/lm83.c return sprintf(buf, "%d\n", (data->alarms >> bitnr) & 1); bitnr 656 drivers/hwmon/lm87.c int bitnr = to_sensor_dev_attr(attr)->index; bitnr 657 drivers/hwmon/lm87.c return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); bitnr 222 drivers/hwmon/lm92.c int bitnr = to_sensor_dev_attr(attr)->index; bitnr 224 drivers/hwmon/lm92.c return sprintf(buf, "%d\n", (data->temp[t_input] >> bitnr) & 1); bitnr 178 drivers/hwmon/max1619.c int bitnr = to_sensor_dev_attr(attr)->index; bitnr 180 drivers/hwmon/max1619.c return sprintf(buf, "%d\n", (data->alarms >> bitnr) & 1); bitnr 239 drivers/hwmon/max6642.c int bitnr = to_sensor_dev_attr(attr)->index; bitnr 241 drivers/hwmon/max6642.c return sprintf(buf, "%d\n", (data->alarms >> bitnr) & 1); bitnr 238 drivers/hwmon/smsc47m1.c int bitnr = to_sensor_dev_attr(devattr)->index; bitnr 240 drivers/hwmon/smsc47m1.c return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); bitnr 581 drivers/hwmon/via686a.c int bitnr = to_sensor_dev_attr(attr)->index; bitnr 583 drivers/hwmon/via686a.c return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); bitnr 611 drivers/hwmon/vt8231.c int bitnr = to_sensor_dev_attr(attr)->index; bitnr 613 drivers/hwmon/vt8231.c return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); bitnr 844 drivers/hwmon/w83627hf.c int bitnr = to_sensor_dev_attr(attr)->index; bitnr 845 drivers/hwmon/w83627hf.c return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); bitnr 905 drivers/hwmon/w83627hf.c int bitnr = to_sensor_dev_attr(attr)->index; bitnr 906 drivers/hwmon/w83627hf.c return sprintf(buf, "%u\n", (data->beep_mask >> bitnr) & 1); bitnr 914 drivers/hwmon/w83627hf.c int bitnr = to_sensor_dev_attr(attr)->index; bitnr 928 drivers/hwmon/w83627hf.c data->beep_mask |= (1 << bitnr); bitnr 930 drivers/hwmon/w83627hf.c data->beep_mask &= ~(1 << bitnr); bitnr 932 drivers/hwmon/w83627hf.c if (bitnr < 8) { bitnr 935 drivers/hwmon/w83627hf.c reg |= (1 << bitnr); bitnr 937 drivers/hwmon/w83627hf.c reg &= ~(1 << bitnr); bitnr 939 drivers/hwmon/w83627hf.c } else if (bitnr < 16) { bitnr 942 drivers/hwmon/w83627hf.c reg |= (1 << (bitnr - 8)); bitnr 944 drivers/hwmon/w83627hf.c reg &= ~(1 << (bitnr - 8)); bitnr 949 drivers/hwmon/w83627hf.c reg |= (1 << (bitnr - 16)); bitnr 951 drivers/hwmon/w83627hf.c reg &= ~(1 << (bitnr - 16)); bitnr 452 drivers/hwmon/w83781d.c int bitnr = to_sensor_dev_attr(attr)->index; bitnr 453 drivers/hwmon/w83781d.c return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); bitnr 461 drivers/hwmon/w83781d.c int bitnr = (data->type == w83781d) ? 5 : 13; bitnr 462 drivers/hwmon/w83781d.c return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); bitnr 523 drivers/hwmon/w83781d.c int bitnr = to_sensor_dev_attr(attr)->index; bitnr 524 drivers/hwmon/w83781d.c return sprintf(buf, "%u\n", (data->beep_mask >> bitnr) & 1); bitnr 532 drivers/hwmon/w83781d.c int bitnr = to_sensor_dev_attr(attr)->index; bitnr 546 drivers/hwmon/w83781d.c data->beep_mask |= (1 << bitnr); bitnr 548 drivers/hwmon/w83781d.c data->beep_mask &= ~(1 << bitnr); bitnr 550 drivers/hwmon/w83781d.c if (bitnr < 8) { bitnr 553 drivers/hwmon/w83781d.c reg |= (1 << bitnr); bitnr 555 drivers/hwmon/w83781d.c reg &= ~(1 << bitnr); bitnr 557 drivers/hwmon/w83781d.c } else if (bitnr < 16) { bitnr 560 drivers/hwmon/w83781d.c reg |= (1 << (bitnr - 8)); bitnr 562 drivers/hwmon/w83781d.c reg &= ~(1 << (bitnr - 8)); bitnr 567 drivers/hwmon/w83781d.c reg |= (1 << (bitnr - 16)); bitnr 569 drivers/hwmon/w83781d.c reg &= ~(1 << (bitnr - 16)); bitnr 582 drivers/hwmon/w83781d.c int bitnr = (data->type == w83781d) ? 5 : 13; bitnr 583 drivers/hwmon/w83781d.c return sprintf(buf, "%u\n", (data->beep_mask >> bitnr) & 1); bitnr 438 drivers/hwmon/w83791d.c int bitnr = sensor_attr->index; bitnr 440 drivers/hwmon/w83791d.c return sprintf(buf, "%d\n", (data->beep_mask >> bitnr) & 1); bitnr 450 drivers/hwmon/w83791d.c int bitnr = sensor_attr->index; bitnr 451 drivers/hwmon/w83791d.c int bytenr = bitnr / 8; bitnr 467 drivers/hwmon/w83791d.c data->beep_mask &= ~(1 << bitnr); bitnr 468 drivers/hwmon/w83791d.c data->beep_mask |= val << bitnr; bitnr 484 drivers/hwmon/w83791d.c int bitnr = sensor_attr->index; bitnr 486 drivers/hwmon/w83791d.c return sprintf(buf, "%d\n", (data->alarms >> bitnr) & 1); bitnr 1047 drivers/net/ethernet/aeroflex/greth.c unsigned int bitnr; bitnr 1052 drivers/net/ethernet/aeroflex/greth.c bitnr = greth_hash_get_index(ha->addr); bitnr 1053 drivers/net/ethernet/aeroflex/greth.c mc_filter[bitnr >> 5] |= 1 << (bitnr & 31); bitnr 2323 drivers/net/ethernet/cadence/macb_main.c static inline int hash_bit_value(int bitnr, __u8 *addr) bitnr 2325 drivers/net/ethernet/cadence/macb_main.c if (addr[bitnr / 8] & (1 << (bitnr % 8))) bitnr 2351 drivers/net/ethernet/cadence/macb_main.c unsigned int bitnr; bitnr 2358 drivers/net/ethernet/cadence/macb_main.c bitnr = hash_get_index(ha->addr); bitnr 2359 drivers/net/ethernet/cadence/macb_main.c mc_filter[bitnr >> 5] |= 1 << (bitnr & 31); bitnr 6274 drivers/net/ethernet/realtek/r8169_main.c int bitnr; bitnr 6293 drivers/net/ethernet/realtek/r8169_main.c pending = test_and_clear_bit(rtl_work[i].bitnr, tp->wk.flags); bitnr 228 include/linux/sbitmap.h #define SB_NR_TO_INDEX(sb, bitnr) ((bitnr) >> (sb)->shift) bitnr 229 include/linux/sbitmap.h #define SB_NR_TO_BIT(sb, bitnr) ((bitnr) & ((1U << (sb)->shift) - 1U)) bitnr 302 include/linux/sbitmap.h unsigned int bitnr) bitnr 304 include/linux/sbitmap.h return &sb->map[SB_NR_TO_INDEX(sb, bitnr)].word; bitnr 309 include/linux/sbitmap.h static inline void sbitmap_set_bit(struct sbitmap *sb, unsigned int bitnr) bitnr 311 include/linux/sbitmap.h set_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); bitnr 314 include/linux/sbitmap.h static inline void sbitmap_clear_bit(struct sbitmap *sb, unsigned int bitnr) bitnr 316 include/linux/sbitmap.h clear_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); bitnr 325 include/linux/sbitmap.h static inline void sbitmap_deferred_clear_bit(struct sbitmap *sb, unsigned int bitnr) bitnr 327 include/linux/sbitmap.h unsigned long *addr = &sb->map[SB_NR_TO_INDEX(sb, bitnr)].cleared; bitnr 329 include/linux/sbitmap.h set_bit(SB_NR_TO_BIT(sb, bitnr), addr); bitnr 333 include/linux/sbitmap.h unsigned int bitnr) bitnr 335 include/linux/sbitmap.h clear_bit_unlock(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); bitnr 338 include/linux/sbitmap.h static inline int sbitmap_test_bit(struct sbitmap *sb, unsigned int bitnr) bitnr 340 include/linux/sbitmap.h return test_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); bitnr 188 net/xfrm/xfrm_replay.c unsigned int bitnr, nr; bitnr 211 net/xfrm/xfrm_replay.c bitnr = (pos - diff) % replay_esn->replay_window; bitnr 213 net/xfrm/xfrm_replay.c bitnr = replay_esn->replay_window - (diff - pos); bitnr 215 net/xfrm/xfrm_replay.c nr = bitnr >> 5; bitnr 216 net/xfrm/xfrm_replay.c bitnr = bitnr & 0x1F; bitnr 217 net/xfrm/xfrm_replay.c if (replay_esn->bmp[nr] & (1U << bitnr)) bitnr 231 net/xfrm/xfrm_replay.c unsigned int bitnr, nr, i; bitnr 247 net/xfrm/xfrm_replay.c bitnr = (pos + i) % replay_esn->replay_window; bitnr 248 net/xfrm/xfrm_replay.c nr = bitnr >> 5; bitnr 249 net/xfrm/xfrm_replay.c bitnr = bitnr & 0x1F; bitnr 250 net/xfrm/xfrm_replay.c replay_esn->bmp[nr] &= ~(1U << bitnr); bitnr 258 net/xfrm/xfrm_replay.c bitnr = (pos + diff) % replay_esn->replay_window; bitnr 264 net/xfrm/xfrm_replay.c bitnr = (pos - diff) % replay_esn->replay_window; bitnr 266 net/xfrm/xfrm_replay.c bitnr = replay_esn->replay_window - (diff - pos); bitnr 269 net/xfrm/xfrm_replay.c nr = bitnr >> 5; bitnr 270 net/xfrm/xfrm_replay.c bitnr = bitnr & 0x1F; bitnr 271 net/xfrm/xfrm_replay.c replay_esn->bmp[nr] |= (1U << bitnr); bitnr 426 net/xfrm/xfrm_replay.c unsigned int bitnr, nr; bitnr 464 net/xfrm/xfrm_replay.c bitnr = (pos - diff) % replay_esn->replay_window; bitnr 466 net/xfrm/xfrm_replay.c bitnr = replay_esn->replay_window - (diff - pos); bitnr 468 net/xfrm/xfrm_replay.c nr = bitnr >> 5; bitnr 469 net/xfrm/xfrm_replay.c bitnr = bitnr & 0x1F; bitnr 470 net/xfrm/xfrm_replay.c if (replay_esn->bmp[nr] & (1U << bitnr)) bitnr 496 net/xfrm/xfrm_replay.c unsigned int bitnr, nr, i; bitnr 517 net/xfrm/xfrm_replay.c bitnr = (pos + i) % replay_esn->replay_window; bitnr 518 net/xfrm/xfrm_replay.c nr = bitnr >> 5; bitnr 519 net/xfrm/xfrm_replay.c bitnr = bitnr & 0x1F; bitnr 520 net/xfrm/xfrm_replay.c replay_esn->bmp[nr] &= ~(1U << bitnr); bitnr 528 net/xfrm/xfrm_replay.c bitnr = (pos + diff) % replay_esn->replay_window; bitnr 537 net/xfrm/xfrm_replay.c bitnr = (pos - diff) % replay_esn->replay_window; bitnr 539 net/xfrm/xfrm_replay.c bitnr = replay_esn->replay_window - (diff - pos); bitnr 544 net/xfrm/xfrm_replay.c nr = bitnr >> 5; bitnr 545 net/xfrm/xfrm_replay.c bitnr = bitnr & 0x1F; bitnr 546 net/xfrm/xfrm_replay.c replay_esn->bmp[nr] |= (1U << bitnr); bitnr 510 sound/pci/oxygen/oxygen_mixer.c unsigned int bitnr = (ctl->private_value >> 8) & 0xff; bitnr 517 sound/pci/oxygen/oxygen_mixer.c if (!(reg & (1 << bitnr)) ^ !invert) bitnr 548 sound/pci/oxygen/oxygen_mixer.c unsigned int bitnr = (ctl->private_value >> 8) & 0xff; bitnr 557 sound/pci/oxygen/oxygen_mixer.c newreg |= 1 << bitnr; bitnr 559 sound/pci/oxygen/oxygen_mixer.c newreg &= ~(1 << bitnr); bitnr 576 sound/pci/oxygen/oxygen_mixer.c bitnr == 15 && !(newreg & 0x8000)) { bitnr 729 sound/pci/oxygen/oxygen_mixer.c #define AC97_SWITCH(xname, codec, index, bitnr, invert) { \ bitnr 736 sound/pci/oxygen/oxygen_mixer.c ((bitnr) << 8) | (index), \