Searched refs:bitoff (Results 1 – 6 of 6) sorted by relevance
/kernel/linux/linux-5.10/arch/openrisc/include/asm/ |
D | cmpxchg.h | 65 int bitoff = (sizeof(u32) - size - off) * BITS_PER_BYTE; in cmpxchg_small() local 67 int bitoff = off * BITS_PER_BYTE; in cmpxchg_small() local 69 u32 bitmask = ((0x1 << size * BITS_PER_BYTE) - 1) << bitoff; in cmpxchg_small() 76 ret = (load32 & bitmask) >> bitoff; in cmpxchg_small() 80 old32 = (load32 & ~bitmask) | (old << bitoff); in cmpxchg_small() 81 new32 = (load32 & ~bitmask) | (new << bitoff); in cmpxchg_small() 97 int bitoff = (sizeof(u32) - size - off) * BITS_PER_BYTE; in xchg_small() local 99 int bitoff = off * BITS_PER_BYTE; in xchg_small() local 101 u32 bitmask = ((0x1 << size * BITS_PER_BYTE) - 1) << bitoff; in xchg_small() 107 ret = (oldv & bitmask) >> bitoff; in xchg_small() [all …]
|
/kernel/linux/linux-5.10/arch/sh/include/asm/ |
D | cmpxchg-xchg.h | 23 int bitoff = (sizeof(u32) - size - off) * BITS_PER_BYTE; in __xchg_cmpxchg() local 25 int bitoff = off * BITS_PER_BYTE; in __xchg_cmpxchg() local 27 u32 bitmask = ((0x1 << size * BITS_PER_BYTE) - 1) << bitoff; in __xchg_cmpxchg() 33 ret = (oldv & bitmask) >> bitoff; in __xchg_cmpxchg() 34 newv = (oldv & ~bitmask) | (x << bitoff); in __xchg_cmpxchg()
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
D | cmpxchg.h | 19 unsigned int prev, prev_mask, tmp, bitoff, off; \ 22 bitoff = BITOFF_CAL(sizeof(type), off); \ 24 val <<= bitoff; \ 25 prev_mask = (u32)(type)-1 << bitoff; \ 37 return prev >> bitoff; \ 44 unsigned int prev, prev_mask, tmp, bitoff, off; \ 47 bitoff = BITOFF_CAL(sizeof(type), off); \ 49 old <<= bitoff; \ 50 new <<= bitoff; \ 51 prev_mask = (u32)(type)-1 << bitoff; \ [all …]
|
/kernel/linux/linux-5.10/arch/xtensa/include/asm/ |
D | cmpxchg.h | 180 int bitoff = (sizeof(u32) - size - off) * BITS_PER_BYTE; in xchg_small() local 182 int bitoff = off * BITS_PER_BYTE; in xchg_small() local 184 u32 bitmask = ((0x1 << size * BITS_PER_BYTE) - 1) << bitoff; in xchg_small() 190 ret = (oldv & bitmask) >> bitoff; in xchg_small() 191 newv = (oldv & ~bitmask) | (x << bitoff); in xchg_small()
|
/kernel/linux/linux-5.10/fs/ocfs2/ |
D | localalloc.c | 829 int numfound = 0, bitoff, left, startoff; in ocfs2_local_alloc_find_clear_bits() local 836 bitoff = -1; in ocfs2_local_alloc_find_clear_bits() 848 if (ocfs2_resmap_resv_bits(resmap, resv, &bitoff, &numfound) == 0) { in ocfs2_local_alloc_find_clear_bits() 866 numfound = bitoff = startoff = 0; in ocfs2_local_alloc_find_clear_bits() 868 while ((bitoff = ocfs2_find_next_zero_bit(bitmap, left, startoff)) != -1) { in ocfs2_local_alloc_find_clear_bits() 869 if (bitoff == left) { in ocfs2_local_alloc_find_clear_bits() 878 if (bitoff == startoff) { in ocfs2_local_alloc_find_clear_bits() 885 startoff = bitoff+1; in ocfs2_local_alloc_find_clear_bits() 894 trace_ocfs2_local_alloc_find_clear_bits_search_bitmap(bitoff, numfound); in ocfs2_local_alloc_find_clear_bits() 897 bitoff = startoff - numfound; in ocfs2_local_alloc_find_clear_bits() [all …]
|
D | suballoc.c | 1626 unsigned int bitoff = le32_to_cpu(rec->e_cpos) * bpc; in ocfs2_bg_discontig_fix_by_rec() local 1629 if (res->sr_bit_offset < bitoff) in ocfs2_bg_discontig_fix_by_rec() 1631 if (res->sr_bit_offset >= (bitoff + bitcount)) in ocfs2_bg_discontig_fix_by_rec() 1634 (res->sr_bit_offset - bitoff); in ocfs2_bg_discontig_fix_by_rec() 1635 if ((res->sr_bit_offset + res->sr_bits) > (bitoff + bitcount)) in ocfs2_bg_discontig_fix_by_rec() 1636 res->sr_bits = (bitoff + bitcount) - res->sr_bit_offset; in ocfs2_bg_discontig_fix_by_rec()
|