Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/fs/ocfs2/
H A Dlocalalloc.c829 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 …]
H A Dsuballoc.c1626 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()
/OK3568_Linux_fs/external/security/rk_tee_user/v2/host/openssl/include/openssl/
H A Dwhrlpool.h22 unsigned int bitoff; member
/OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/
H A Dsiutils.c7766 uint bitoff = 0; in BCMINITFN() local
7772 if (bitoff) { in BCMINITFN()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/
H A Dsiutils.c7766 uint bitoff = 0; in BCMINITFN() local
7772 if (bitoff) { in BCMINITFN()