Home
last modified time | relevance | path

Searched refs:bitoff (Results 1 – 8 of 8) sorted by relevance

/openbmc/linux/arch/openrisc/include/asm/
H A Dcmpxchg.h65 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 …]
/openbmc/linux/arch/sh/include/asm/
H A Dcmpxchg-xchg.h23 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()
/openbmc/linux/arch/xtensa/include/asm/
H A Dcmpxchg.h180 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()
/openbmc/linux/arch/powerpc/include/asm/
H A Dcmpxchg.h19 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 …]
/openbmc/linux/fs/ocfs2/
H A Dlocalalloc.c827 int numfound = 0, bitoff, left, startoff; in ocfs2_local_alloc_find_clear_bits() local
834 bitoff = -1; in ocfs2_local_alloc_find_clear_bits()
846 if (ocfs2_resmap_resv_bits(resmap, resv, &bitoff, &numfound) == 0) { in ocfs2_local_alloc_find_clear_bits()
864 numfound = bitoff = startoff = 0; in ocfs2_local_alloc_find_clear_bits()
867 if (bitoff == left) { in ocfs2_local_alloc_find_clear_bits()
876 if (bitoff == startoff) { in ocfs2_local_alloc_find_clear_bits()
883 startoff = bitoff+1; in ocfs2_local_alloc_find_clear_bits()
895 bitoff = startoff - numfound; in ocfs2_local_alloc_find_clear_bits()
897 bitoff = -1; in ocfs2_local_alloc_find_clear_bits()
905 bitoff, numfound); in ocfs2_local_alloc_find_clear_bits()
[all …]
H A Dsuballoc.c1624 unsigned int bitoff = le32_to_cpu(rec->e_cpos) * bpc; in ocfs2_bg_discontig_fix_by_rec() local
1627 if (res->sr_bit_offset < bitoff) in ocfs2_bg_discontig_fix_by_rec()
1629 if (res->sr_bit_offset >= (bitoff + bitcount)) in ocfs2_bg_discontig_fix_by_rec()
1632 (res->sr_bit_offset - bitoff); in ocfs2_bg_discontig_fix_by_rec()
1633 if ((res->sr_bit_offset + res->sr_bits) > (bitoff + bitcount)) in ocfs2_bg_discontig_fix_by_rec()
1634 res->sr_bits = (bitoff + bitcount) - res->sr_bit_offset; in ocfs2_bg_discontig_fix_by_rec()
/openbmc/linux/drivers/infiniband/hw/irdma/
H A Dtype.h289 u8 bitoff; member
H A Dctrl.c5438 static inline u64 irdma_stat_val(const u64 *stats_val, u16 byteoff, u8 bitoff, in irdma_stat_val() argument
5443 return (stats_val[idx] >> bitoff) & bitmask; in irdma_stat_val()
5479 map[i].bitoff, map[i].bitmask); in irdma_update_stats()
5481 map[i].byteoff, map[i].bitoff, in irdma_update_stats()