Lines Matching refs:maxbit
635 static int bits_to_user(unsigned long *bits, unsigned int maxbit,
641 len = BITS_TO_LONGS_COMPAT(maxbit) * sizeof(compat_long_t);
652 len = BITS_TO_LONGS(maxbit) * sizeof(long);
663 static int bits_from_user(unsigned long *bits, unsigned int maxbit,
672 len = BITS_TO_LONGS_COMPAT(maxbit) * sizeof(compat_long_t);
689 len = BITS_TO_LONGS(maxbit) * sizeof(long);
702 static int bits_to_user(unsigned long *bits, unsigned int maxbit,
706 BITS_TO_LONGS_COMPAT(maxbit) * sizeof(compat_long_t) :
707 BITS_TO_LONGS(maxbit) * sizeof(long);
715 static int bits_from_user(unsigned long *bits, unsigned int maxbit,
724 len = compat ? BITS_TO_LONGS_COMPAT(maxbit) : BITS_TO_LONGS(maxbit);
736 static int bits_to_user(unsigned long *bits, unsigned int maxbit,
739 int len = BITS_TO_LONGS(maxbit) * sizeof(long);
747 static int bits_from_user(unsigned long *bits, unsigned int maxbit,
755 len = BITS_TO_LONGS(maxbit) * sizeof(long);
888 unsigned long *bits, unsigned int maxbit,
895 mem = bitmap_alloc(maxbit, GFP_KERNEL);
902 bitmap_copy(mem, bits, maxbit);
910 ret = bits_to_user(mem, maxbit, maxlen, p, compat);