Lines Matching refs:maxbit
647 static int bits_to_user(unsigned long *bits, unsigned int maxbit, in bits_to_user() argument
653 len = BITS_TO_LONGS_COMPAT(maxbit) * sizeof(compat_long_t); in bits_to_user()
664 len = BITS_TO_LONGS(maxbit) * sizeof(long); in bits_to_user()
675 static int bits_from_user(unsigned long *bits, unsigned int maxbit, in bits_from_user() argument
684 len = BITS_TO_LONGS_COMPAT(maxbit) * sizeof(compat_long_t); in bits_from_user()
701 len = BITS_TO_LONGS(maxbit) * sizeof(long); in bits_from_user()
714 static int bits_to_user(unsigned long *bits, unsigned int maxbit, in bits_to_user() argument
718 BITS_TO_LONGS_COMPAT(maxbit) * sizeof(compat_long_t) : in bits_to_user()
719 BITS_TO_LONGS(maxbit) * sizeof(long); in bits_to_user()
727 static int bits_from_user(unsigned long *bits, unsigned int maxbit, in bits_from_user() argument
736 len = compat ? BITS_TO_LONGS_COMPAT(maxbit) : BITS_TO_LONGS(maxbit); in bits_from_user()
748 static int bits_to_user(unsigned long *bits, unsigned int maxbit, in bits_to_user() argument
751 int len = BITS_TO_LONGS(maxbit) * sizeof(long); in bits_to_user()
759 static int bits_from_user(unsigned long *bits, unsigned int maxbit, in bits_from_user() argument
767 len = BITS_TO_LONGS(maxbit) * sizeof(long); in bits_from_user()
900 unsigned long *bits, unsigned int maxbit, in evdev_handle_get_val() argument
907 mem = bitmap_alloc(maxbit, GFP_KERNEL); in evdev_handle_get_val()
914 bitmap_copy(mem, bits, maxbit); in evdev_handle_get_val()
922 ret = bits_to_user(mem, maxbit, maxlen, p, compat); in evdev_handle_get_val()