Lines Matching refs:maxbit
670 static int bits_to_user(unsigned long *bits, unsigned int maxbit, in bits_to_user() argument
676 len = BITS_TO_LONGS_COMPAT(maxbit) * sizeof(compat_long_t); in bits_to_user()
687 len = BITS_TO_LONGS(maxbit) * sizeof(long); in bits_to_user()
698 static int bits_from_user(unsigned long *bits, unsigned int maxbit, in bits_from_user() argument
707 len = BITS_TO_LONGS_COMPAT(maxbit) * sizeof(compat_long_t); in bits_from_user()
724 len = BITS_TO_LONGS(maxbit) * sizeof(long); in bits_from_user()
737 static int bits_to_user(unsigned long *bits, unsigned int maxbit, in bits_to_user() argument
741 BITS_TO_LONGS_COMPAT(maxbit) * sizeof(compat_long_t) : in bits_to_user()
742 BITS_TO_LONGS(maxbit) * sizeof(long); in bits_to_user()
750 static int bits_from_user(unsigned long *bits, unsigned int maxbit, in bits_from_user() argument
759 len = compat ? BITS_TO_LONGS_COMPAT(maxbit) : BITS_TO_LONGS(maxbit); in bits_from_user()
771 static int bits_to_user(unsigned long *bits, unsigned int maxbit, in bits_to_user() argument
774 int len = BITS_TO_LONGS(maxbit) * sizeof(long); in bits_to_user()
782 static int bits_from_user(unsigned long *bits, unsigned int maxbit, in bits_from_user() argument
790 len = BITS_TO_LONGS(maxbit) * sizeof(long); in bits_from_user()
923 unsigned long *bits, unsigned int maxbit, in evdev_handle_get_val() argument
930 mem = bitmap_alloc(maxbit, GFP_KERNEL); in evdev_handle_get_val()
937 bitmap_copy(mem, bits, maxbit); in evdev_handle_get_val()
945 ret = bits_to_user(mem, maxbit, maxlen, p, compat); in evdev_handle_get_val()