/linux-6.12.1/include/linux/ |
D | sbitmap.h | 237 #define SB_NR_TO_INDEX(sb, bitnr) ((bitnr) >> (sb)->shift) argument 238 #define SB_NR_TO_BIT(sb, bitnr) ((bitnr) & ((1U << (sb)->shift) - 1U)) argument 311 unsigned int bitnr) in __sbitmap_word() argument 313 return &sb->map[SB_NR_TO_INDEX(sb, bitnr)].word; in __sbitmap_word() 318 static inline void sbitmap_set_bit(struct sbitmap *sb, unsigned int bitnr) in sbitmap_set_bit() argument 320 set_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); in sbitmap_set_bit() 323 static inline void sbitmap_clear_bit(struct sbitmap *sb, unsigned int bitnr) in sbitmap_clear_bit() argument 325 clear_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); in sbitmap_clear_bit() 334 static inline void sbitmap_deferred_clear_bit(struct sbitmap *sb, unsigned int bitnr) in sbitmap_deferred_clear_bit() argument 336 unsigned long *addr = &sb->map[SB_NR_TO_INDEX(sb, bitnr)].cleared; in sbitmap_deferred_clear_bit() [all …]
|
/linux-6.12.1/net/xfrm/ |
D | xfrm_replay.c | 216 unsigned int bitnr, nr; in xfrm_replay_check_bmp() local 239 bitnr = (pos - diff) % replay_esn->replay_window; in xfrm_replay_check_bmp() 241 bitnr = replay_esn->replay_window - (diff - pos); in xfrm_replay_check_bmp() 243 nr = bitnr >> 5; in xfrm_replay_check_bmp() 244 bitnr = bitnr & 0x1F; in xfrm_replay_check_bmp() 245 if (replay_esn->bmp[nr] & (1U << bitnr)) in xfrm_replay_check_bmp() 259 unsigned int bitnr, nr, i; in xfrm_replay_advance_bmp() local 275 bitnr = (pos + i) % replay_esn->replay_window; in xfrm_replay_advance_bmp() 276 nr = bitnr >> 5; in xfrm_replay_advance_bmp() 277 bitnr = bitnr & 0x1F; in xfrm_replay_advance_bmp() [all …]
|
/linux-6.12.1/block/ |
D | blk-mq-tag.c | 254 unsigned int bitnr) in blk_mq_find_and_get_req() argument 260 rq = tags->rqs[bitnr]; in blk_mq_find_and_get_req() 261 if (!rq || rq->tag != bitnr || !req_ref_inc_not_zero(rq)) in blk_mq_find_and_get_req() 267 static bool bt_iter(struct sbitmap *bitmap, unsigned int bitnr, void *data) in bt_iter() argument 283 bitnr += tags->nr_reserved_tags; in bt_iter() 288 rq = blk_mq_find_and_get_req(tags, bitnr); in bt_iter() 339 static bool bt_tags_iter(struct sbitmap *bitmap, unsigned int bitnr, void *data) in bt_tags_iter() argument 348 bitnr += tags->nr_reserved_tags; in bt_tags_iter() 355 rq = tags->static_rqs[bitnr]; in bt_tags_iter() 357 rq = blk_mq_find_and_get_req(tags, bitnr); in bt_tags_iter()
|
D | kyber-iosched.c | 667 static bool flush_busy_kcq(struct sbitmap *sb, unsigned int bitnr, void *data) in flush_busy_kcq() argument 670 struct kyber_ctx_queue *kcq = &flush_data->khd->kcqs[bitnr]; in flush_busy_kcq() 675 sbitmap_clear_bit(sb, bitnr); in flush_busy_kcq()
|
D | blk-mq.c | 1674 static bool flush_busy_ctx(struct sbitmap *sb, unsigned int bitnr, void *data) in flush_busy_ctx() argument 1678 struct blk_mq_ctx *ctx = hctx->ctxs[bitnr]; in flush_busy_ctx() 1683 sbitmap_clear_bit(sb, bitnr); in flush_busy_ctx() 1708 static bool dispatch_rq_from_ctx(struct sbitmap *sb, unsigned int bitnr, in dispatch_rq_from_ctx() argument 1713 struct blk_mq_ctx *ctx = hctx->ctxs[bitnr]; in dispatch_rq_from_ctx() 1721 sbitmap_clear_bit(sb, bitnr); in dispatch_rq_from_ctx()
|
/linux-6.12.1/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() 1391 unsigned long bitnr; in __bm_change_bits_to() local 1401 for (bitnr = s; bitnr <= e; bitnr++) { in __bm_change_bits_to() 1402 unsigned int page_nr = bm_bit_to_page_idx(b, bitnr); in __bm_change_bits_to() 1416 c += (0 == __test_and_set_bit_le(bitnr & BITS_PER_PAGE_MASK, p_addr)); in __bm_change_bits_to() 1418 c -= (0 != __test_and_clear_bit_le(bitnr & BITS_PER_PAGE_MASK, p_addr)); in __bm_change_bits_to() 1581 int drbd_bm_test_bit(struct drbd_device *device, const unsigned long bitnr) in drbd_bm_test_bit() argument 1596 if (bitnr < b->bm_bits) { in drbd_bm_test_bit() 1597 p_addr = bm_map_pidx(b, bm_bit_to_page_idx(b, bitnr)); in drbd_bm_test_bit() [all …]
|
/linux-6.12.1/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 | 911 int bitnr = to_sensor_dev_attr(attr)->index; in alarm_show() local 912 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in alarm_show() 935 int bitnr = to_sensor_dev_attr(attr)->index; in beep_show() local 936 return sprintf(buf, "%u\n", (data->beep_mask >> bitnr) & 1); in beep_show() 944 int bitnr = to_sensor_dev_attr(attr)->index; in beep_store() local 958 data->beep_mask |= (1 << bitnr); in beep_store() 960 data->beep_mask &= ~(1 << bitnr); in beep_store() 962 if (bitnr < 8) { in beep_store() 965 reg |= (1 << bitnr); in beep_store() 967 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 | 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 | 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 | via686a.c | 648 int bitnr = to_sensor_dev_attr(attr)->index; in alarm_show() local 650 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in alarm_show()
|
D | it87.c | 2076 int bitnr = to_sensor_dev_attr(attr)->index; in show_alarm() local 2081 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm() 2136 int bitnr = to_sensor_dev_attr(attr)->index; in show_beep() local 2141 return sprintf(buf, "%u\n", (data->beeps >> bitnr) & 1); in show_beep() 2147 int bitnr = to_sensor_dev_attr(attr)->index; in set_beep() local 2161 data->beeps |= BIT(bitnr); in set_beep() 2163 data->beeps &= ~BIT(bitnr); in set_beep()
|
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 | 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 | vt8231.c | 676 int bitnr = to_sensor_dev_attr(attr)->index; in alarm_show() local 678 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()
|
/linux-6.12.1/sound/pci/oxygen/ |
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-6.12.1/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu_npc_fs.c | 636 u8 lid, lt, ld, bitnr; in npc_scan_kex() local 647 for_each_set_bit(bitnr, (unsigned long *)&masked_cfg, 31) { in npc_scan_kex() 648 npc_scan_parse_result(mcam, bitnr, key_nibble, intf); in npc_scan_kex() 657 bitnr = NPC_EXACT_NIBBLE_START; in npc_scan_kex() 658 for_each_set_bit_from(bitnr, (unsigned long *)&masked_cfg, NPC_EXACT_NIBBLE_END + 1) { in npc_scan_kex() 659 npc_scan_exact_result(mcam, bitnr, key_nibble, intf); in npc_scan_kex()
|
/linux-6.12.1/drivers/net/ethernet/aeroflex/ |
D | greth.c | 1049 unsigned int bitnr; in greth_set_hash_filter() local 1054 bitnr = greth_hash_get_index(ha->addr); in greth_set_hash_filter() 1055 mc_filter[bitnr >> 5] |= 1 << (bitnr & 31); in greth_set_hash_filter()
|