Lines Matching refs:maxbit
663 static int bits_to_user(unsigned long *bits, unsigned int maxbit, in bits_to_user() argument
669 len = BITS_TO_LONGS_COMPAT(maxbit) * sizeof(compat_long_t); in bits_to_user()
680 len = BITS_TO_LONGS(maxbit) * sizeof(long); in bits_to_user()
691 static int bits_from_user(unsigned long *bits, unsigned int maxbit, in bits_from_user() argument
700 len = BITS_TO_LONGS_COMPAT(maxbit) * sizeof(compat_long_t); in bits_from_user()
717 len = BITS_TO_LONGS(maxbit) * sizeof(long); in bits_from_user()
730 static int bits_to_user(unsigned long *bits, unsigned int maxbit, in bits_to_user() argument
734 BITS_TO_LONGS_COMPAT(maxbit) * sizeof(compat_long_t) : in bits_to_user()
735 BITS_TO_LONGS(maxbit) * sizeof(long); in bits_to_user()
743 static int bits_from_user(unsigned long *bits, unsigned int maxbit, in bits_from_user() argument
752 len = compat ? BITS_TO_LONGS_COMPAT(maxbit) : BITS_TO_LONGS(maxbit); in bits_from_user()
764 static int bits_to_user(unsigned long *bits, unsigned int maxbit, in bits_to_user() argument
767 int len = BITS_TO_LONGS(maxbit) * sizeof(long); in bits_to_user()
775 static int bits_from_user(unsigned long *bits, unsigned int maxbit, in bits_from_user() argument
783 len = BITS_TO_LONGS(maxbit) * sizeof(long); in bits_from_user()
916 unsigned long *bits, unsigned int maxbit, in evdev_handle_get_val() argument
924 len = BITS_TO_LONGS(maxbit) * sizeof(unsigned long); in evdev_handle_get_val()
940 ret = bits_to_user(mem, maxbit, maxlen, p, compat); in evdev_handle_get_val()