Searched refs:BITS_PER_LONG (Results 1 - 25 of 25) sorted by relevance

/freebsd-11-stable/contrib/ofed/libmlx5/
H A Dbitmap.h56 #define BITS_PER_LONG (8 * sizeof(long)) macro
57 #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_LONG)
79 while (size & ~(BITS_PER_LONG - 1)) {
83 result += BITS_PER_LONG;
84 size -= BITS_PER_LONG;
98 addr[(nr / BITS_PER_LONG)] |= (1 << (nr % BITS_PER_LONG));
103 addr[(nr / BITS_PER_LONG)] &= ~(1 << (nr % BITS_PER_LONG));
108 return !!(addr[(nr / BITS_PER_LONG)]
[all...]
/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/
H A Dbitops.h43 #define BITS_PER_LONG 64 macro
45 #define BITS_PER_LONG 32 macro
50 #define BITMAP_FIRST_WORD_MASK(start) (~0UL << ((start) % BITS_PER_LONG))
51 #define BITMAP_LAST_WORD_MASK(n) (~0UL >> (BITS_PER_LONG - (n)))
52 #define BITS_TO_LONGS(n) howmany((n), BITS_PER_LONG)
53 #define BIT_MASK(nr) (1UL << ((nr) & (BITS_PER_LONG - 1)))
54 #define BIT_WORD(nr) ((nr) / BITS_PER_LONG)
55 #define GENMASK(h, l) (((~0UL) >> (BITS_PER_LONG - (h) - 1)) & ((~0UL) << (l)))
120 for (bit = 0; size >= BITS_PER_LONG;
121 size -= BITS_PER_LONG, bi
[all...]
H A Dbitmap.h43 const unsigned int tail = size & (BITS_PER_LONG - 1);
55 const unsigned int tail = size & (BITS_PER_LONG - 1);
76 const unsigned int tail = size & (BITS_PER_LONG - 1);
97 int bits_to_set = BITS_PER_LONG - (start % BITS_PER_LONG);
105 bits_to_set = BITS_PER_LONG;
120 int bits_to_clear = BITS_PER_LONG - (start % BITS_PER_LONG);
128 bits_to_clear = BITS_PER_LONG;
209 const unsigned int tail = size & (BITS_PER_LONG
[all...]
/freebsd-11-stable/sys/dev/pms/freebsd/driver/common/
H A Dostypes.h91 #define BITS_PER_LONG 64 macro
93 #define BITS_PER_LONG 32 macro
109 #if (BITS_PER_LONG == 64)
H A Dlxcommon.h566 #if (BITS_PER_LONG == 64)
/freebsd-11-stable/sys/dev/mlx4/
H A Ddoorbell.h44 #if BITS_PER_LONG == 64
65 * BITS_PER_LONG is 32 -- there's no portable way to do atomic 64-bit
H A Ddevice.h1076 if (BITS_PER_LONG == 64 || buf->nbufs == 1)
/freebsd-11-stable/sys/dev/mlx5/
H A Ddoorbell.h34 #if BITS_PER_LONG == 64
53 * BITS_PER_LONG is 32 -- there's no portable way to do atomic 64-bit
/freebsd-11-stable/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_mem.c69 m = find_first_bit(&tmp, BITS_PER_LONG);
79 m = min_t(unsigned long, m, find_first_bit(&tmp, BITS_PER_LONG));
87 m = find_first_bit(&tmp, BITS_PER_LONG);
/freebsd-11-stable/sys/dev/mthca/
H A Dmthca_doorbell.h43 #if BITS_PER_LONG == 64
74 * BITS_PER_LONG is 32 -- there's no portable way to do atomic 64-bit
H A Dmthca_profile.c274 if (mthca_is_memfree(dev) || BITS_PER_LONG == 64)
/freebsd-11-stable/sys/compat/linuxkpi/common/include/net/
H A Dipv6.h68 #if BITS_PER_LONG == 64
/freebsd-11-stable/sys/dev/mlx4/mlx4_en/
H A Dmlx4_en_resources.c111 if (BITS_PER_LONG == 64 || buf->nbufs == 1)
H A Dmlx4_en_netdev.c2227 #if BITS_PER_LONG == 64
2230 #elif BITS_PER_LONG == 32
/freebsd-11-stable/sys/dev/hptmv/
H A Dosbsd.h248 #define BITS_PER_LONG 32 macro
252 #define BITS_PER_LONG 64 macro
/freebsd-11-stable/sys/dev/drm2/
H A Ddrm_os_freebsd.h22 #define BITS_PER_LONG 64 macro
24 #define BITS_PER_LONG 32 macro
H A Ddrm_gem.c57 #if BITS_PER_LONG == 64
H A Ddrm_bufs.c157 #if (BITS_PER_LONG == 64)
159 #elif (BITS_PER_LONG == 32)
/freebsd-11-stable/sys/dev/mlx4/mlx4_core/
H A Dmlx4_alloc.c632 if (BITS_PER_LONG == 64) {
664 if (BITS_PER_LONG == 64)
/freebsd-11-stable/sys/dev/bxe/
H A Dbxe_stats.c34 #define BITS_PER_LONG 32 macro
36 #define BITS_PER_LONG 64 macro
44 #if (BITS_PER_LONG == 64)
/freebsd-11-stable/sys/dev/qlnx/qlnxe/
H A Dbcm_osal.h486 bit %= BITS_PER_LONG;
/freebsd-11-stable/sys/ofed/drivers/infiniband/core/
H A Dib_cache.c775 BITS_PER_LONG,
H A Dib_cma.c4278 BITS_PER_LONG);
/freebsd-11-stable/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_qp.c484 qp->sq_signal_bits && BITS_PER_LONG == 64 &&
/freebsd-11-stable/sys/dev/pms/RefTisa/tisa/sassata/sas/ini/
H A Ditddisc.c2840 #if (BITS_PER_LONG > 32)

Completed in 615 milliseconds