Lines Matching refs:compat_long_t
629 #define BITS_PER_LONG_COMPAT (sizeof(compat_long_t) * 8)
639 len = BITS_TO_LONGS_COMPAT(maxbit) * sizeof(compat_long_t); in bits_to_user()
643 for (i = 0; i < len / sizeof(compat_long_t); i++) in bits_to_user()
644 if (copy_to_user((compat_long_t __user *) p + i, in bits_to_user()
645 (compat_long_t *) bits + in bits_to_user()
647 sizeof(compat_long_t))) in bits_to_user()
667 if (maxlen % sizeof(compat_long_t)) in bits_from_user()
670 len = BITS_TO_LONGS_COMPAT(maxbit) * sizeof(compat_long_t); in bits_from_user()
674 for (i = 0; i < len / sizeof(compat_long_t); i++) in bits_from_user()
675 if (copy_from_user((compat_long_t *) bits + in bits_from_user()
677 (compat_long_t __user *) p + i, in bits_from_user()
678 sizeof(compat_long_t))) in bits_from_user()
681 *((compat_long_t *) bits + i - 1) = 0; in bits_from_user()
704 BITS_TO_LONGS_COMPAT(maxbit) * sizeof(compat_long_t) : in bits_to_user()
716 size_t chunk_size = compat ? sizeof(compat_long_t) : sizeof(long); in bits_from_user()