Lines Matching refs:compat_long_t
631 #define BITS_PER_LONG_COMPAT (sizeof(compat_long_t) * 8)
641 len = BITS_TO_LONGS_COMPAT(maxbit) * sizeof(compat_long_t); in bits_to_user()
645 for (i = 0; i < len / sizeof(compat_long_t); i++) in bits_to_user()
646 if (copy_to_user((compat_long_t __user *) p + i, in bits_to_user()
647 (compat_long_t *) bits + in bits_to_user()
649 sizeof(compat_long_t))) in bits_to_user()
669 if (maxlen % sizeof(compat_long_t)) in bits_from_user()
672 len = BITS_TO_LONGS_COMPAT(maxbit) * sizeof(compat_long_t); in bits_from_user()
676 for (i = 0; i < len / sizeof(compat_long_t); i++) in bits_from_user()
677 if (copy_from_user((compat_long_t *) bits + in bits_from_user()
679 (compat_long_t __user *) p + i, in bits_from_user()
680 sizeof(compat_long_t))) in bits_from_user()
683 *((compat_long_t *) bits + i - 1) = 0; in bits_from_user()
706 BITS_TO_LONGS_COMPAT(maxbit) * sizeof(compat_long_t) : in bits_to_user()
718 size_t chunk_size = compat ? sizeof(compat_long_t) : sizeof(long); in bits_from_user()