Home
last modified time | relevance | path

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

/linux-6.6.21/arch/openrisc/include/asm/
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 …]
/linux-6.6.21/arch/sh/include/asm/
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()
/linux-6.6.21/arch/xtensa/include/asm/
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()
/linux-6.6.21/arch/powerpc/include/asm/
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 …]
/linux-6.6.21/fs/ocfs2/
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()
866 while ((bitoff = ocfs2_find_next_zero_bit(bitmap, left, startoff)) != -1) { 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()
892 trace_ocfs2_local_alloc_find_clear_bits_search_bitmap(bitoff, numfound); in ocfs2_local_alloc_find_clear_bits()
895 bitoff = startoff - numfound; in ocfs2_local_alloc_find_clear_bits()
[all …]
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()
/linux-6.6.21/drivers/infiniband/hw/irdma/
Dtype.h289 u8 bitoff; member
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()