Home
last modified time | relevance | path

Searched refs:bitidx (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/mm/
H A Dpage_alloc.c375 unsigned long bitidx, word_bitidx; in get_pfnblock_flags_mask() local
379 bitidx = pfn_to_bitidx(page, pfn); in get_pfnblock_flags_mask()
380 word_bitidx = bitidx / BITS_PER_LONG; in get_pfnblock_flags_mask()
381 bitidx &= (BITS_PER_LONG-1); in get_pfnblock_flags_mask()
388 return (word >> bitidx) & mask; in get_pfnblock_flags_mask()
409 unsigned long bitidx, word_bitidx; in set_pfnblock_flags_mask() local
416 bitidx = pfn_to_bitidx(page, pfn); in set_pfnblock_flags_mask()
417 word_bitidx = bitidx / BITS_PER_LONG; in set_pfnblock_flags_mask()
418 bitidx &= (BITS_PER_LONG-1); in set_pfnblock_flags_mask()
422 mask <<= bitidx; in set_pfnblock_flags_mask()
[all …]
/openbmc/linux/drivers/edac/
H A Dpnd2_edac.c594 static void remove_addr_bit(u64 *addr, int bitidx) in remove_addr_bit() argument
598 if (bitidx == -1) in remove_addr_bit()
601 mask = (1ull << bitidx) - 1; in remove_addr_bit()