/linux/include/linux/ |
A D | sbitmap.h | 223 #define SB_NR_TO_INDEX(sb, bitnr) ((bitnr) >> (sb)->shift) argument 224 #define SB_NR_TO_BIT(sb, bitnr) ((bitnr) & ((1U << (sb)->shift) - 1U)) argument 297 unsigned int bitnr) in __sbitmap_word() argument 299 return &sb->map[SB_NR_TO_INDEX(sb, bitnr)].word; in __sbitmap_word() 306 set_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); in sbitmap_set_bit() 311 clear_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); in sbitmap_clear_bit() 322 unsigned long *addr = &sb->map[SB_NR_TO_INDEX(sb, bitnr)].cleared; in sbitmap_deferred_clear_bit() 324 set_bit(SB_NR_TO_BIT(sb, bitnr), addr); in sbitmap_deferred_clear_bit() 333 sbitmap_deferred_clear_bit(sb, bitnr); in sbitmap_put() 336 *raw_cpu_ptr(sb->alloc_hint) = bitnr; in sbitmap_put() [all …]
|
/linux/net/xfrm/ |
A D | xfrm_replay.c | 243 nr = bitnr >> 5; in xfrm_replay_check_bmp() 244 bitnr = bitnr & 0x1F; in xfrm_replay_check_bmp() 276 nr = bitnr >> 5; in xfrm_replay_advance_bmp() 277 bitnr = bitnr & 0x1F; in xfrm_replay_advance_bmp() 297 nr = bitnr >> 5; in xfrm_replay_advance_bmp() 298 bitnr = bitnr & 0x1F; in xfrm_replay_advance_bmp() 496 nr = bitnr >> 5; in xfrm_replay_check_esn() 497 bitnr = bitnr & 0x1F; in xfrm_replay_check_esn() 578 bitnr = bitnr & 0x1F; in xfrm_replay_advance_esn() 603 nr = bitnr >> 5; in xfrm_replay_advance_esn() [all …]
|
/linux/block/ |
A D | blk-mq-tag.c | 224 unsigned int bitnr) in blk_mq_find_and_get_req() argument 230 rq = tags->rqs[bitnr]; in blk_mq_find_and_get_req() 231 if (!rq || rq->tag != bitnr || !refcount_inc_not_zero(&rq->ref)) in blk_mq_find_and_get_req() 237 static bool bt_iter(struct sbitmap *bitmap, unsigned int bitnr, void *data) in bt_iter() argument 247 bitnr += tags->nr_reserved_tags; in bt_iter() 252 rq = blk_mq_find_and_get_req(tags, bitnr); in bt_iter() 300 static bool bt_tags_iter(struct sbitmap *bitmap, unsigned int bitnr, void *data) in bt_tags_iter() argument 310 bitnr += tags->nr_reserved_tags; in bt_tags_iter() 317 rq = tags->static_rqs[bitnr]; in bt_tags_iter() 319 rq = blk_mq_find_and_get_req(tags, bitnr); in bt_tags_iter()
|
A D | kyber-iosched.c | 665 static bool flush_busy_kcq(struct sbitmap *sb, unsigned int bitnr, void *data) in flush_busy_kcq() argument 668 struct kyber_ctx_queue *kcq = &flush_data->khd->kcqs[bitnr]; in flush_busy_kcq() 673 sbitmap_clear_bit(sb, bitnr); in flush_busy_kcq()
|
/linux/drivers/block/drbd/ |
A D | drbd_bitmap.c | 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() 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() 1563 } else if (bitnr == b->bm_bits) { in drbd_bm_test_bit() 1580 unsigned long bitnr; in drbd_bm_count_bits() local 1596 for (bitnr = s; bitnr <= e; bitnr++) { in drbd_bm_count_bits() 1597 unsigned int idx = bm_bit_to_page_idx(b, bitnr); in drbd_bm_count_bits() [all …]
|
/linux/drivers/hwmon/ |
A D | w83781d.c | 452 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() 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() 553 reg |= (1 << bitnr); in store_beep() 555 reg &= ~(1 << bitnr); in store_beep() 557 } else if (bitnr < 16) { in store_beep() 560 reg |= (1 << (bitnr - 8)); in store_beep() 562 reg &= ~(1 << (bitnr - 8)); in store_beep() 567 reg |= (1 << (bitnr - 16)); in store_beep() [all …]
|
A 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()
|
A D | w83627hf.c | 844 int bitnr = to_sensor_dev_attr(attr)->index; in alarm_show() 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() 939 } else if (bitnr < 16) { in beep_store() 942 reg |= (1 << (bitnr - 8)); in beep_store() 944 reg &= ~(1 << (bitnr - 8)); in beep_store() 949 reg |= (1 << (bitnr - 16)); in beep_store() [all …]
|
A 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()
|
A 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()
|
A 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()
|
A 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()
|
A 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()
|
A 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()
|
A 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()
|
A 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()
|
A 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()
|
A 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()
|
A 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()
|
A D | it87.c | 1813 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local 1815 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm() 1868 int bitnr = to_sensor_dev_attr(attr)->index; in show_beep() local 1870 return sprintf(buf, "%u\n", (data->beeps >> bitnr) & 1); in show_beep() 1876 int bitnr = to_sensor_dev_attr(attr)->index; in set_beep() local 1886 data->beeps |= BIT(bitnr); in set_beep() 1888 data->beeps &= ~BIT(bitnr); in set_beep()
|
A 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()
|
A 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()
|
/linux/sound/pci/oxygen/ |
A D | oxygen_mixer.c | 510 unsigned int bitnr = (ctl->private_value >> 8) & 0xff; in ac97_switch_get() local 517 if (!(reg & (1 << bitnr)) ^ !invert) in ac97_switch_get() 548 unsigned int bitnr = (ctl->private_value >> 8) & 0xff; in ac97_switch_put() local 557 newreg |= 1 << bitnr; in ac97_switch_put() 559 newreg &= ~(1 << bitnr); in ac97_switch_put() 576 bitnr == 15 && !(newreg & 0x8000)) { in ac97_switch_put() 729 #define AC97_SWITCH(xname, codec, index, bitnr, invert) { \ argument 736 ((bitnr) << 8) | (index), \
|
/linux/drivers/net/ethernet/aeroflex/ |
A D | greth.c | 1047 unsigned int bitnr; in greth_set_hash_filter() local 1052 bitnr = greth_hash_get_index(ha->addr); in greth_set_hash_filter() 1053 mc_filter[bitnr >> 5] |= 1 << (bitnr & 31); in greth_set_hash_filter()
|
/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
A D | rvu_npc_fs.c | 511 u8 lid, lt, ld, bitnr; in npc_scan_kex() local 522 for_each_set_bit(bitnr, (unsigned long *)&cfg, 31) { in npc_scan_kex() 523 npc_scan_parse_result(mcam, bitnr, key_nibble, intf); in npc_scan_kex()
|