Home
last modified time | relevance | path

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

/openbmc/linux/drivers/firmware/efi/libstub/
H A Dbitmap.c8 unsigned long mask_to_set = BITMAP_FIRST_WORD_MASK(start); in __bitmap_set() local
11 *p |= mask_to_set; in __bitmap_set()
14 mask_to_set = ~0UL; in __bitmap_set()
18 mask_to_set &= BITMAP_LAST_WORD_MASK(size); in __bitmap_set()
19 *p |= mask_to_set; in __bitmap_set()
/openbmc/qemu/util/
H A Dbitmap.c165 unsigned long mask_to_set = BITMAP_FIRST_WORD_MASK(start); in bitmap_set() local
170 *p |= mask_to_set; in bitmap_set()
173 mask_to_set = ~0UL; in bitmap_set()
177 mask_to_set &= BITMAP_LAST_WORD_MASK(size); in bitmap_set()
178 *p |= mask_to_set; in bitmap_set()
187 unsigned long mask_to_set = BITMAP_FIRST_WORD_MASK(start); in bitmap_set_atomic() local
193 qatomic_or(p, mask_to_set); in bitmap_set_atomic()
196 mask_to_set = ~0UL; in bitmap_set_atomic()
211 mask_to_set &= BITMAP_LAST_WORD_MASK(size); in bitmap_set_atomic()
212 qatomic_or(p, mask_to_set); in bitmap_set_atomic()
/openbmc/linux/lib/
H A Dgenalloc.c46 set_bits_ll(unsigned long *addr, unsigned long mask_to_set) in set_bits_ll() argument
51 if (val & mask_to_set) in set_bits_ll()
54 } while (!try_cmpxchg(addr, &val, val | mask_to_set)); in set_bits_ll()
90 unsigned long mask_to_set = BITMAP_FIRST_WORD_MASK(start); in bitmap_set_ll() local
93 if (set_bits_ll(p, mask_to_set)) in bitmap_set_ll()
97 mask_to_set = ~0UL; in bitmap_set_ll()
101 mask_to_set &= BITMAP_LAST_WORD_MASK(size); in bitmap_set_ll()
102 if (set_bits_ll(p, mask_to_set)) in bitmap_set_ll()
H A Dbitmap.c367 unsigned long mask_to_set = BITMAP_FIRST_WORD_MASK(start); in __bitmap_set() local
370 *p |= mask_to_set; in __bitmap_set()
373 mask_to_set = ~0UL; in __bitmap_set()
377 mask_to_set &= BITMAP_LAST_WORD_MASK(size); in __bitmap_set()
378 *p |= mask_to_set; in __bitmap_set()
/openbmc/linux/fs/btrfs/
H A Dfree-space-tree.c189 u8 mask_to_set = BITMAP_FIRST_BYTE_MASK(start); in le_bitmap_set() local
192 *p |= mask_to_set; in le_bitmap_set()
195 mask_to_set = ~0; in le_bitmap_set()
199 mask_to_set &= BITMAP_LAST_BYTE_MASK(size); in le_bitmap_set()
200 *p |= mask_to_set; in le_bitmap_set()
/openbmc/linux/fs/ntfs3/
H A Dbitmap.c1524 bitmap_ulong mask_to_set = cpu_to_ul(BITMAP_FIRST_WORD_MASK(start)); in ntfs_bitmap_set_le() local
1527 *p |= mask_to_set; in ntfs_bitmap_set_le()
1530 mask_to_set = cpu_to_ul(~0UL); in ntfs_bitmap_set_le()
1534 mask_to_set &= cpu_to_ul(BITMAP_LAST_WORD_MASK(size)); in ntfs_bitmap_set_le()
1535 *p |= mask_to_set; in ntfs_bitmap_set_le()