Lines Matching refs:maxbit

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