Home
last modified time | relevance | path

Searched refs:mask_to_clear (Results 1 – 6 of 6) sorted by relevance

/openbmc/linux/tools/testing/radix-tree/
H A Dbitmap.c10 unsigned long mask_to_clear = BITMAP_FIRST_WORD_MASK(start); in bitmap_clear() local
13 *p &= ~mask_to_clear; in bitmap_clear()
16 mask_to_clear = ~0UL; in bitmap_clear()
20 mask_to_clear &= BITMAP_LAST_WORD_MASK(size); in bitmap_clear()
21 *p &= ~mask_to_clear; in bitmap_clear()
/openbmc/qemu/util/
H A Dbitmap.c231 *p &= ~mask_to_clear; in bitmap_clear()
234 mask_to_clear = ~0UL; in bitmap_clear()
238 mask_to_clear &= BITMAP_LAST_WORD_MASK(size); in bitmap_clear()
239 *p &= ~mask_to_clear; in bitmap_clear()
255 if ((*p) & mask_to_clear) { in bitmap_test_and_clear()
258 *p &= ~mask_to_clear; in bitmap_test_and_clear()
279 if ((*p) & mask_to_clear) { in bitmap_test_and_clear()
282 *p &= ~mask_to_clear; in bitmap_test_and_clear()
302 dirty |= old_bits & mask_to_clear; in bitmap_test_and_clear_atomic()
305 mask_to_clear = ~0UL; in bitmap_test_and_clear_atomic()
[all …]
/openbmc/linux/drivers/firmware/efi/libstub/
H A Dbitmap.c28 unsigned long mask_to_clear = BITMAP_FIRST_WORD_MASK(start); in __bitmap_clear() local
31 *p &= ~mask_to_clear; in __bitmap_clear()
34 mask_to_clear = ~0UL; in __bitmap_clear()
38 mask_to_clear &= BITMAP_LAST_WORD_MASK(size); in __bitmap_clear()
39 *p &= ~mask_to_clear; in __bitmap_clear()
/openbmc/linux/lib/
H A Dgenalloc.c60 clear_bits_ll(unsigned long *addr, unsigned long mask_to_clear) in clear_bits_ll() argument
65 if ((val & mask_to_clear) != mask_to_clear) in clear_bits_ll()
68 } while (!try_cmpxchg(addr, &val, val & ~mask_to_clear)); in clear_bits_ll()
126 unsigned long mask_to_clear = BITMAP_FIRST_WORD_MASK(start); in bitmap_clear_ll() local
129 if (clear_bits_ll(p, mask_to_clear)) in bitmap_clear_ll()
133 mask_to_clear = ~0UL; in bitmap_clear_ll()
137 mask_to_clear &= BITMAP_LAST_WORD_MASK(size); in bitmap_clear_ll()
138 if (clear_bits_ll(p, mask_to_clear)) in bitmap_clear_ll()
H A Dbitmap.c388 unsigned long mask_to_clear = BITMAP_FIRST_WORD_MASK(start); in __bitmap_clear() local
391 *p &= ~mask_to_clear; in __bitmap_clear()
394 mask_to_clear = ~0UL; in __bitmap_clear()
398 mask_to_clear &= BITMAP_LAST_WORD_MASK(size); in __bitmap_clear()
399 *p &= ~mask_to_clear; in __bitmap_clear()
/openbmc/linux/fs/ntfs3/
H A Dbitmap.c1544 bitmap_ulong mask_to_clear = cpu_to_ul(BITMAP_FIRST_WORD_MASK(start)); in ntfs_bitmap_clear_le() local
1547 *p &= ~mask_to_clear; in ntfs_bitmap_clear_le()
1550 mask_to_clear = cpu_to_ul(~0UL); in ntfs_bitmap_clear_le()
1554 mask_to_clear &= cpu_to_ul(BITMAP_LAST_WORD_MASK(size)); in ntfs_bitmap_clear_le()
1555 *p &= ~mask_to_clear; in ntfs_bitmap_clear_le()