Searched refs:bitoff (Results 1 – 5 of 5) sorted by relevance
/Linux-v4.19/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 …]
|
/Linux-v4.19/arch/sh/include/asm/ |
D | cmpxchg-xchg.h | 25 int bitoff = (sizeof(u32) - size - off) * BITS_PER_BYTE; in __xchg_cmpxchg() local 27 int bitoff = off * BITS_PER_BYTE; in __xchg_cmpxchg() local 29 u32 bitmask = ((0x1 << size * BITS_PER_BYTE) - 1) << bitoff; in __xchg_cmpxchg() 35 ret = (oldv & bitmask) >> bitoff; in __xchg_cmpxchg() 36 newv = (oldv & ~bitmask) | (x << bitoff); in __xchg_cmpxchg()
|
/Linux-v4.19/arch/powerpc/include/asm/ |
D | cmpxchg.h | 20 unsigned int prev, prev_mask, tmp, bitoff, off; \ 23 bitoff = BITOFF_CAL(sizeof(type), off); \ 25 val <<= bitoff; \ 26 prev_mask = (u32)(type)-1 << bitoff; \ 39 return prev >> bitoff; \ 46 unsigned int prev, prev_mask, tmp, bitoff, off; \ 49 bitoff = BITOFF_CAL(sizeof(type), off); \ 51 old <<= bitoff; \ 52 new <<= bitoff; \ 53 prev_mask = (u32)(type)-1 << bitoff; \ [all …]
|
/Linux-v4.19/fs/ocfs2/ |
D | localalloc.c | 838 int numfound = 0, bitoff, left, startoff, lastzero; in ocfs2_local_alloc_find_clear_bits() local 845 bitoff = -1; in ocfs2_local_alloc_find_clear_bits() 857 if (ocfs2_resmap_resv_bits(resmap, resv, &bitoff, &numfound) == 0) { in ocfs2_local_alloc_find_clear_bits() 875 numfound = bitoff = startoff = 0; in ocfs2_local_alloc_find_clear_bits() 878 while ((bitoff = ocfs2_find_next_zero_bit(bitmap, left, startoff)) != -1) { in ocfs2_local_alloc_find_clear_bits() 879 if (bitoff == left) { in ocfs2_local_alloc_find_clear_bits() 888 if (bitoff == startoff) { in ocfs2_local_alloc_find_clear_bits() 895 startoff = bitoff+1; in ocfs2_local_alloc_find_clear_bits() 904 trace_ocfs2_local_alloc_find_clear_bits_search_bitmap(bitoff, numfound); in ocfs2_local_alloc_find_clear_bits() 907 bitoff = startoff - numfound; in ocfs2_local_alloc_find_clear_bits() [all …]
|
D | suballoc.c | 1637 unsigned int bitoff = le32_to_cpu(rec->e_cpos) * bpc; in ocfs2_bg_discontig_fix_by_rec() local 1640 if (res->sr_bit_offset < bitoff) in ocfs2_bg_discontig_fix_by_rec() 1642 if (res->sr_bit_offset >= (bitoff + bitcount)) in ocfs2_bg_discontig_fix_by_rec() 1645 (res->sr_bit_offset - bitoff); in ocfs2_bg_discontig_fix_by_rec() 1646 if ((res->sr_bit_offset + res->sr_bits) > (bitoff + bitcount)) in ocfs2_bg_discontig_fix_by_rec() 1647 res->sr_bits = (bitoff + bitcount) - res->sr_bit_offset; in ocfs2_bg_discontig_fix_by_rec()
|