Home
last modified time | relevance | path

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

/xen/xen/include/xen/
A Dbitmap.h101 #define bitmap_bytes(nbits) (BITS_TO_LONGS(nbits) * sizeof(unsigned long)) argument
137 int nbits) in bitmap_copy() argument
177 int nbits) in bitmap_complement() argument
187 bitmap_switch(nbits, in bitmap_equal()
196 bitmap_switch(nbits, in bitmap_intersects()
205 bitmap_switch(nbits, in bitmap_subset()
213 bitmap_switch(nbits, in bitmap_empty()
221 bitmap_switch(nbits, in bitmap_full()
243 unsigned int nbits) in bitmap_set() argument
245 if (__builtin_constant_p(nbits) && nbits == 1) in bitmap_set()
[all …]
A Dnodemask.h87 bitmap_fill(dstp->bits, nbits); in __nodes_setall()
93 bitmap_zero(dstp->bits, nbits); in __nodes_clear()
111 const nodemask_t *src2p, int nbits) in __nodes_and() argument
119 const nodemask_t *src2p, int nbits) in __nodes_or() argument
143 const nodemask_t *srcp, int nbits) in __nodes_complement() argument
181 return bitmap_full(srcp->bits, nbits); in __nodes_full()
196 return min_t(int, nbits, find_first_bit(srcp->bits, nbits)); in __first_node()
202 return min_t(int, nbits, find_next_bit(srcp->bits, nbits, n+1)); in __next_node()
208 int node, pnode = nbits; in __last_node()
210 node < nbits; in __last_node()
[all …]
A Ddomain.h32 unsigned int nbits);
/xen/xen/common/
A Dbitmap.c49 unsigned int remainder = nbits % 8; in clamp_last_byte()
52 bp[nbits/8] &= (1U << remainder) - 1; in clamp_last_byte()
346 for (j = 0; (j < sizeof(l)) && (nbits > 0); j++) { in bitmap_long_to_byte()
349 nbits -= 8; in bitmap_long_to_byte()
352 clamp_last_byte(bp, nbits); in bitmap_long_to_byte()
364 nbits -= 8; in bitmap_byte_to_long()
374 memcpy(bp, lp, (nbits+7)/8); in bitmap_long_to_byte()
375 clamp_last_byte(bp, nbits); in bitmap_long_to_byte()
381 if (nbits & (BITS_PER_LONG-1)) in bitmap_byte_to_long()
382 lp[BITS_TO_LONGS(nbits)-1] = 0; in bitmap_byte_to_long()
[all …]
A Ddomctl.c39 unsigned int nbits) in bitmap_to_xenctl_bitmap() argument
44 uint8_t *bytemap = xmalloc_array(uint8_t, (nbits + 7) / 8); in bitmap_to_xenctl_bitmap()
50 copy_bytes = min_t(unsigned int, guest_bytes, (nbits + 7) / 8); in bitmap_to_xenctl_bitmap()
52 bitmap_long_to_byte(bytemap, bitmap, nbits); in bitmap_to_xenctl_bitmap()
69 unsigned int nbits) in xenctl_bitmap_to_bitmap() argument
73 uint8_t *bytemap = xzalloc_array(uint8_t, (nbits + 7) / 8); in xenctl_bitmap_to_bitmap()
79 copy_bytes = min_t(unsigned int, guest_bytes, (nbits + 7) / 8); in xenctl_bitmap_to_bitmap()
90 bitmap_byte_to_long(bitmap, bytemap, nbits); in xenctl_bitmap_to_bitmap()
/xen/tools/libxc/
A Dxc_private.c594 void bitmap_64_to_byte(uint8_t *bp, const uint64_t *lp, int nbits) in bitmap_64_to_byte() argument
599 for (i = 0, b = 0; nbits > 0; i++, b += sizeof(l)) { in bitmap_64_to_byte()
601 for (j = 0; (j < sizeof(l)) && (nbits > 0); j++) { in bitmap_64_to_byte()
604 nbits -= 8; in bitmap_64_to_byte()
609 void bitmap_byte_to_64(uint64_t *lp, const uint8_t *bp, int nbits) in bitmap_byte_to_64() argument
614 for (i = 0, b = 0; nbits > 0; i++, b += sizeof(l)) { in bitmap_byte_to_64()
616 for (j = 0; (j < sizeof(l)) && (nbits > 0); j++) { in bitmap_byte_to_64()
618 nbits -= 8; in bitmap_byte_to_64()
A Dxc_private.h388 void bitmap_64_to_byte(uint8_t *bp, const uint64_t *lp, int nbits);
389 void bitmap_byte_to_64(uint64_t *lp, const uint8_t *bp, int nbits);

Completed in 86 milliseconds