Lines Matching refs:maxbit

633 static int bits_to_user(unsigned long *bits, unsigned int maxbit,  in bits_to_user()  argument
639 len = BITS_TO_LONGS_COMPAT(maxbit) * sizeof(compat_long_t); in bits_to_user()
650 len = BITS_TO_LONGS(maxbit) * sizeof(long); in bits_to_user()
661 static int bits_from_user(unsigned long *bits, unsigned int maxbit, in bits_from_user() argument
670 len = BITS_TO_LONGS_COMPAT(maxbit) * sizeof(compat_long_t); in bits_from_user()
687 len = BITS_TO_LONGS(maxbit) * sizeof(long); in bits_from_user()
700 static int bits_to_user(unsigned long *bits, unsigned int maxbit, in bits_to_user() argument
704 BITS_TO_LONGS_COMPAT(maxbit) * sizeof(compat_long_t) : in bits_to_user()
705 BITS_TO_LONGS(maxbit) * sizeof(long); in bits_to_user()
713 static int bits_from_user(unsigned long *bits, unsigned int maxbit, in bits_from_user() argument
722 len = compat ? BITS_TO_LONGS_COMPAT(maxbit) : BITS_TO_LONGS(maxbit); in bits_from_user()
734 static int bits_to_user(unsigned long *bits, unsigned int maxbit, in bits_to_user() argument
737 int len = BITS_TO_LONGS(maxbit) * sizeof(long); in bits_to_user()
745 static int bits_from_user(unsigned long *bits, unsigned int maxbit, in bits_from_user() argument
753 len = BITS_TO_LONGS(maxbit) * sizeof(long); in bits_from_user()
886 unsigned long *bits, unsigned int maxbit, in evdev_handle_get_val() argument
893 mem = bitmap_alloc(maxbit, GFP_KERNEL); in evdev_handle_get_val()
900 bitmap_copy(mem, bits, maxbit); in evdev_handle_get_val()
908 ret = bits_to_user(mem, maxbit, maxlen, p, compat); in evdev_handle_get_val()