Home
last modified time | relevance | path

Searched refs:zero_bit (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.10/net/sctp/
Dtsnmap.c231 unsigned long zero_bit; in sctp_tsnmap_update() local
235 zero_bit = find_first_zero_bit(map->tsn_map, len); in sctp_tsnmap_update()
236 if (!zero_bit) in sctp_tsnmap_update()
239 map->base_tsn += zero_bit; in sctp_tsnmap_update()
240 map->cumulative_tsn_ack_point += zero_bit; in sctp_tsnmap_update()
242 bitmap_shift_right(map->tsn_map, map->tsn_map, zero_bit, map->len); in sctp_tsnmap_update()
/Linux-v5.10/arch/x86/kernel/cpu/resctrl/
Dctrlmondata.c88 unsigned long first_bit, zero_bit, val; in cbm_validate() local
105 zero_bit = find_next_zero_bit(&val, cbm_len, first_bit); in cbm_validate()
109 (find_next_bit(&val, cbm_len, zero_bit) < cbm_len)) { in cbm_validate()
114 if ((zero_bit - first_bit) < r->cache.min_cbm_bits) { in cbm_validate()
Drdtgroup.c2648 unsigned long first_bit, zero_bit; in cbm_ensure_valid() local
2655 zero_bit = find_next_zero_bit(&val, cbm_len, first_bit); in cbm_ensure_valid()
2658 bitmap_clear(&val, zero_bit, cbm_len - zero_bit); in cbm_ensure_valid()
/Linux-v5.10/fs/ext4/
Dmballoc.c1355 int zero_bit = -1; in mb_test_and_clear_bits() local
1362 if (*addr != (__u32)(-1) && zero_bit == -1) in mb_test_and_clear_bits()
1363 zero_bit = cur + mb_find_next_zero_bit(addr, 32, 0); in mb_test_and_clear_bits()
1368 if (!mb_test_and_clear_bit(cur, bm) && zero_bit == -1) in mb_test_and_clear_bits()
1369 zero_bit = cur; in mb_test_and_clear_bits()
1373 return zero_bit; in mb_test_and_clear_bits()