Home
last modified time | relevance | path

Searched refs:nbits (Results 1 – 14 of 14) sorted by relevance

/openbmc/qemu/include/qemu/
H A Dbitmap.h67 #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1))) argument
80 #define small_nbits(nbits) \ argument
81 ((nbits) <= BITS_PER_LONG)
99 long slow_bitmap_count_one(const unsigned long *bitmap, long nbits);
101 static inline unsigned long *bitmap_try_new(long nbits) in bitmap_try_new() argument
103 long nelem = BITS_TO_LONGS(nbits); in bitmap_try_new()
107 static inline unsigned long *bitmap_new(long nbits) in bitmap_new() argument
109 long nelem = BITS_TO_LONGS(nbits); in bitmap_new()
113 static inline void bitmap_zero(unsigned long *dst, long nbits) in bitmap_zero() argument
115 if (small_nbits(nbits)) { in bitmap_zero()
[all …]
H A Dthread.h211 unsigned long nbits);
213 unsigned long *nbits);
/openbmc/u-boot/include/linux/
H A Dbitmap.h9 #define small_const_nbits(nbits) \ argument
10 (__builtin_constant_p(nbits) && (nbits) <= BITS_PER_LONG)
12 static inline void bitmap_zero(unsigned long *dst, int nbits) in bitmap_zero() argument
14 if (small_const_nbits(nbits)) { in bitmap_zero()
17 int len = BITS_TO_LONGS(nbits) * sizeof(unsigned long); in bitmap_zero()
/openbmc/qemu/util/
H A Dbitmap.c404 long slow_bitmap_count_one(const unsigned long *bitmap, long nbits) in slow_bitmap_count_one() argument
406 long k, lim = nbits / BITS_PER_LONG, result = 0; in slow_bitmap_count_one()
412 if (nbits % BITS_PER_LONG) { in slow_bitmap_count_one()
413 result += ctpopl(bitmap[k] & BITMAP_LAST_WORD_MASK(nbits)); in slow_bitmap_count_one()
420 const unsigned long *src, long nbits) in bitmap_to_from_le() argument
422 long len = BITS_TO_LONGS(nbits); in bitmap_to_from_le()
440 long nbits) in bitmap_from_le() argument
442 bitmap_to_from_le(dst, src, nbits); in bitmap_from_le()
446 long nbits) in bitmap_to_le() argument
448 bitmap_to_from_le(dst, src, nbits); in bitmap_to_le()
[all …]
H A Dthread-context.c92 int nbits = 0, ret; in thread_context_set_cpu_affinity() local
109 nbits = MAX(nbits, l->value + 1); in thread_context_set_cpu_affinity()
111 bitmap = bitmap_new(nbits); in thread_context_set_cpu_affinity()
121 ret = qemu_thread_set_affinity(&tc->thread, bitmap, nbits); in thread_context_set_cpu_affinity()
128 tc->init_cpu_nbits = nbits; in thread_context_set_cpu_affinity()
139 unsigned long *bitmap, nbits, value; in thread_context_get_cpu_affinity() local
150 ret = qemu_thread_get_affinity(&tc->thread, &bitmap, &nbits); in thread_context_get_cpu_affinity()
156 value = find_first_bit(bitmap, nbits); in thread_context_get_cpu_affinity()
157 while (value < nbits) { in thread_context_get_cpu_affinity()
160 value = find_next_bit(bitmap, nbits, value + 1); in thread_context_get_cpu_affinity()
[all …]
H A Dqemu-thread-posix.c445 unsigned long nbits) in qemu_thread_set_affinity() argument
448 const size_t setsize = CPU_ALLOC_SIZE(nbits); in qemu_thread_set_affinity()
453 cpuset = CPU_ALLOC(nbits); in qemu_thread_set_affinity()
457 value = find_first_bit(host_cpus, nbits); in qemu_thread_set_affinity()
458 while (value < nbits) { in qemu_thread_set_affinity()
460 value = find_next_bit(host_cpus, nbits, value + 1); in qemu_thread_set_affinity()
472 unsigned long *nbits) in qemu_thread_get_affinity() argument
499 *nbits = tmpbits; in qemu_thread_get_affinity()
H A Dqemu-thread-win32.c382 unsigned long nbits) in qemu_thread_set_affinity() argument
388 unsigned long *nbits) in qemu_thread_get_affinity() argument
/openbmc/qemu/ui/
H A Dvnc-enc-zrle.c.inc211 uint8_t nbits = 0;
221 nbits += bppp;
222 if (nbits >= 8) {
224 nbits = 0;
227 if (nbits > 0) {
228 byte <<= 8 - nbits;
/openbmc/u-boot/arch/powerpc/cpu/mpc8xx/
H A Dimmap.c92 static void binary(char *label, uint value, int nbits) in binary() argument
94 uint mask = 1 << (nbits - 1); in binary()
100 for (i = 32 + 1; i != nbits; i--) in binary()
/openbmc/u-boot/lib/
H A Dbch.c1037 unsigned int nbits; in decode_bch() local
1080 nbits = (len*8)+bch->ecc_bits; in decode_bch()
1082 if (errloc[i] >= nbits) { in decode_bch()
1086 errloc[i] = nbits-1-errloc[i]; in decode_bch()
1214 unsigned int i, j, nbits, r, word, *roots; in compute_generator_polynomial() local
1256 nbits = (n > 32) ? 32 : n; in compute_generator_polynomial()
1257 for (j = 0, word = 0; j < nbits; j++) { in compute_generator_polynomial()
1262 n -= nbits; in compute_generator_polynomial()
/openbmc/ipmitool/src/plugins/lan/
H A Dmd5.c328 md5_word_t nbits = (md5_word_t)(nbytes << 3); in md5_append() local
335 pms->count[0] += nbits; in md5_append()
336 if (pms->count[0] < nbits) in md5_append()
/openbmc/qemu/disas/
H A Dmips.c5359 int immed, nbits, shift, signedp, extbits, pcrel, extu, branch;
5370 nbits = 3;
5376 nbits = 3;
5382 nbits = 3;
5388 nbits = 3;
5394 nbits = 4;
5400 nbits = 5;
5406 nbits = 5;
5413 nbits = 5;
5424 nbits = 5;
[all …]
/openbmc/qemu/target/ppc/translate/
H A Dvmx-impl.c.inc1642 int i, sh, nbits = DIV_ROUND_UP(64, a->n);
1666 tcg_gen_shli_i64(lo, lo, a->n * nbits - 64);
1717 tcg_gen_andi_i64(hi, hi, ~(~0ULL >> nbits));
1718 tcg_gen_andi_i64(lo, lo, ~(~0ULL >> nbits));
1719 tcg_gen_shri_i64(lo, lo, nbits);
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-connectivity/krb5/krb5/
H A D0001-Eliminate-old-style-function-declarations.patch8390 -__ibitmap(hashp, pnum, nbits, ndx)
8392 - int32_t pnum, nbits, ndx;
8393 +__ibitmap(HTAB *hashp, int32_t pnum, int32_t nbits, int32_t ndx)
8397 @@ -1027,8 +981,7 @@ __ibitmap(hashp, pnum, nbits, ndx)