Lines Matching refs:nmaskbits
26 int nmaskbits) in bitmap_parse_user() argument
35 ret = bitmap_parse(buf, UINT_MAX, maskp, nmaskbits); in bitmap_parse_user()
59 int nmaskbits) in bitmap_print_to_pagebuf() argument
63 return list ? scnprintf(buf, len, "%*pbl\n", nmaskbits, maskp) : in bitmap_print_to_pagebuf()
64 scnprintf(buf, len, "%*pb\n", nmaskbits, maskp); in bitmap_print_to_pagebuf()
80 int nmaskbits, loff_t off, size_t count) in bitmap_print_to_buf() argument
86 data = kasprintf(GFP_KERNEL, fmt, nmaskbits, maskp); in bitmap_print_to_buf()
181 int nmaskbits, loff_t off, size_t count) in bitmap_print_bitmask_to_buf() argument
183 return bitmap_print_to_buf(false, buf, maskp, nmaskbits, off, count); in bitmap_print_bitmask_to_buf()
199 int nmaskbits, loff_t off, size_t count) in bitmap_print_list_to_buf() argument
201 return bitmap_print_to_buf(true, buf, maskp, nmaskbits, off, count); in bitmap_print_list_to_buf()
374 int bitmap_parselist(const char *buf, unsigned long *maskp, int nmaskbits) in bitmap_parselist() argument
379 r.nbits = nmaskbits; in bitmap_parselist()
417 int nmaskbits) in bitmap_parselist_user() argument
426 ret = bitmap_parselist(buf, maskp, nmaskbits); in bitmap_parselist_user()
474 unsigned long *maskp, int nmaskbits) in bitmap_parse() argument
477 int chunks = BITS_TO_U32(nmaskbits); in bitmap_parse()
499 unset_bit = (BITS_TO_U32(nmaskbits) - chunks) * 32; in bitmap_parse()
500 if (unset_bit < nmaskbits) { in bitmap_parse()
501 bitmap_clear(maskp, unset_bit, nmaskbits - unset_bit); in bitmap_parse()
505 if (find_next_bit(maskp, unset_bit, nmaskbits) != unset_bit) in bitmap_parse()