Home | History | Annotate | Download | only in cpuset_lib

Lines Matching refs:bmp

33  * bitmask_free(bmp): Free struct bitmask
37 * bitmask_displayhex(buf, len, bmp): Write hex word bmp to buf
38 * bitmask_displaylist(buf, len, bmp): Write decimal list bmp to buf
39 * bitmask_parsehex(buf, bmp): Parse hex words in buf to bmp
40 * bitmask_parselist(buf, bmp): Parse decimal list in buf to bmp
45 * bitmask_setall(bmp): Set all bits in bitmask: bmp = ~0
46 * bitmask_clearall(bmp): Clear all bits in bitmask: bmp = 0
50 * bitmask_nbytes(bmp): Length in bytes of mask - use as second argument
51 * bitmask_mask(bmp): Direct pointer to bit mask - use as third argument
55 * bitmask_nbits(bmp): Size in bits of entire bitmask
56 * bitmask_weight(bmp): Hamming Weight: number of set bits
60 * bitmask_isbitset(bmp, i): True if specified bit i is set
61 * bitmask_isbitclear(bmp, i): True if specified bit i is clear
62 * bitmask_isallset(bmp): True if all bits are set
63 * bitmask_isallclear(bmp): True if all bits are clear
67 * bitmask_setbit(bmp, i): Set a single bit i in bitmask
68 * bitmask_clearbit(bmp, i): Clear a single bit i in bitmask
79 * bitmask_setrange(bmp, i, j): Set bits of bitmask in specified range [i, j)
80 * bitmask_clearrange(bmp, i, j): Clear bits of bitmask in specified range
81 * bitmask_keeprange(bmp, i, j): Clear all but specified range
98 * bitmask_first(bmp): Number of lowest set bit (min)
99 * bitmask_next(bmp, i): Number of next set bit at or above given bit i
100 * bitmask_rel_to_abs_pos(bmp, n): Absolute position of nth set bit
101 * bitmask_abs_to_rel_pos(bmp, n): Relative position amongst set bits of bit n
102 * bitmask_last(bmp): Number of highest set bit (max)
149 void bitmask_free(struct bitmask *bmp);
151 int bitmask_displayhex(char *buf, int len, const struct bitmask *bmp);
152 int bitmask_displaylist(char *buf, int len, const struct bitmask *bmp);
153 int bitmask_parsehex(const char *buf, struct bitmask *bmp);
154 int bitmask_parselist(const char *buf, struct bitmask *bmp);
157 struct bitmask *bitmask_setall(struct bitmask *bmp);
158 struct bitmask *bitmask_clearall(struct bitmask *bmp);
160 unsigned int bitmask_nbytes(struct bitmask *bmp);
161 unsigned long *bitmask_mask(struct bitmask *bmp);
163 unsigned int bitmask_nbits(const struct bitmask *bmp);
164 unsigned int bitmask_weight(const struct bitmask *bmp);
166 int bitmask_isbitset(const struct bitmask *bmp, unsigned int i);
167 int bitmask_isbitclear(const struct bitmask *bmp, unsigned int i);
168 int bitmask_isallset(const struct bitmask *bmp);
169 int bitmask_isallclear(const struct bitmask *bmp);
171 struct bitmask *bitmask_setbit(struct bitmask *bmp, unsigned int i);
172 struct bitmask *bitmask_clearbit(struct bitmask *bmp, unsigned int i);
179 struct bitmask *bitmask_setrange(struct bitmask *bmp,
181 struct bitmask *bitmask_clearrange(struct bitmask *bmp,
183 struct bitmask *bitmask_keeprange(struct bitmask *bmp,
202 unsigned int bitmask_first(const struct bitmask *bmp);
203 unsigned int bitmask_next(const struct bitmask *bmp, unsigned int i);
204 unsigned int bitmask_rel_to_abs_pos(const struct bitmask *bmp, unsigned int n);
205 unsigned int bitmask_abs_to_rel_pos(const struct bitmask *bmp, unsigned int n);
206 unsigned int bitmask_last(const struct bitmask *bmp);