Home
last modified time | relevance | path

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

/xen-4.10.0-shim-comet/xen/include/xen/
A Dbitmap.h111 #define bitmap_bytes(nbits) (BITS_TO_LONGS(nbits) * sizeof(unsigned long)) argument
125 bitmap_switch(nbits,, in bitmap_zero()
145 int nbits) in bitmap_copy() argument
147 bitmap_switch(nbits,, in bitmap_copy()
155 bitmap_switch(nbits,, in bitmap_and()
185 int nbits) in bitmap_complement() argument
195 bitmap_switch(nbits, in bitmap_equal()
204 bitmap_switch(nbits, in bitmap_intersects()
213 bitmap_switch(nbits, in bitmap_subset()
221 bitmap_switch(nbits, in bitmap_empty()
[all …]
A Dnodemask.h99 bitmap_fill(dstp->bits, nbits); in __nodes_setall()
105 bitmap_zero(dstp->bits, nbits); in __nodes_clear()
121 const nodemask_t *src2p, int nbits) in __nodes_and() argument
153 const nodemask_t *srcp, int nbits) in __nodes_complement() argument
191 return bitmap_full(srcp->bits, nbits); in __nodes_full()
222 return min_t(int, nbits, find_first_bit(srcp->bits, nbits)); in __first_node()
228 return min_t(int, nbits, find_next_bit(srcp->bits, nbits, n+1)); in __next_node()
234 int node, pnode = nbits; in __last_node()
236 node < nbits; in __last_node()
266 if (nxt == nbits) in __cycle_node()
[all …]
/xen-4.10.0-shim-comet/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()
500 for (j = 0; (j < sizeof(l)) && (nbits > 0); j++) { in bitmap_long_to_byte()
503 nbits -= 8; in bitmap_long_to_byte()
506 clamp_last_byte(bp, nbits); in bitmap_long_to_byte()
518 nbits -= 8; in bitmap_byte_to_long()
528 memcpy(bp, lp, (nbits+7)/8); in bitmap_long_to_byte()
529 clamp_last_byte(bp, nbits); in bitmap_long_to_byte()
535 if (nbits & (BITS_PER_LONG-1)) in bitmap_byte_to_long()
536 lp[BITS_TO_LONGS(nbits)-1] = 0; in bitmap_byte_to_long()
[all …]
A Ddomctl.c41 unsigned int nbits) in bitmap_to_xenctl_bitmap() argument
46 uint8_t *bytemap = xmalloc_array(uint8_t, (nbits + 7) / 8); in bitmap_to_xenctl_bitmap()
52 copy_bytes = min_t(unsigned int, guest_bytes, (nbits + 7) / 8); in bitmap_to_xenctl_bitmap()
54 bitmap_long_to_byte(bytemap, bitmap, nbits); in bitmap_to_xenctl_bitmap()
71 unsigned int nbits) in xenctl_bitmap_to_bitmap() argument
75 uint8_t *bytemap = xzalloc_array(uint8_t, (nbits + 7) / 8); in xenctl_bitmap_to_bitmap()
81 copy_bytes = min_t(unsigned int, guest_bytes, (nbits + 7) / 8); in xenctl_bitmap_to_bitmap()
92 bitmap_byte_to_long(bitmap, bytemap, nbits); in xenctl_bitmap_to_bitmap()
/xen-4.10.0-shim-comet/tools/libxc/
A Dxc_private.c606 void bitmap_64_to_byte(uint8_t *bp, const uint64_t *lp, int nbits) in bitmap_64_to_byte() argument
611 for (i = 0, b = 0; nbits > 0; i++, b += sizeof(l)) { in bitmap_64_to_byte()
613 for (j = 0; (j < sizeof(l)) && (nbits > 0); j++) { in bitmap_64_to_byte()
616 nbits -= 8; in bitmap_64_to_byte()
621 void bitmap_byte_to_64(uint64_t *lp, const uint8_t *bp, int nbits) in bitmap_byte_to_64() argument
626 for (i = 0, b = 0; nbits > 0; i++, b += sizeof(l)) { in bitmap_byte_to_64()
628 for (j = 0; (j < sizeof(l)) && (nbits > 0); j++) { in bitmap_byte_to_64()
630 nbits -= 8; in bitmap_byte_to_64()
A Dxc_private.h367 void bitmap_64_to_byte(uint8_t *bp, const uint64_t *lp, int nbits);
368 void bitmap_byte_to_64(uint64_t *lp, const uint8_t *bp, int nbits);

Completed in 16 milliseconds