Lines Matching refs:compat_long_t
666 #define BITS_PER_LONG_COMPAT (sizeof(compat_long_t) * 8)
676 len = BITS_TO_LONGS_COMPAT(maxbit) * sizeof(compat_long_t); in bits_to_user()
680 for (i = 0; i < len / sizeof(compat_long_t); i++) in bits_to_user()
681 if (copy_to_user((compat_long_t __user *) p + i, in bits_to_user()
682 (compat_long_t *) bits + in bits_to_user()
684 sizeof(compat_long_t))) in bits_to_user()
704 if (maxlen % sizeof(compat_long_t)) in bits_from_user()
707 len = BITS_TO_LONGS_COMPAT(maxbit) * sizeof(compat_long_t); in bits_from_user()
711 for (i = 0; i < len / sizeof(compat_long_t); i++) in bits_from_user()
712 if (copy_from_user((compat_long_t *) bits + in bits_from_user()
714 (compat_long_t __user *) p + i, in bits_from_user()
715 sizeof(compat_long_t))) in bits_from_user()
718 *((compat_long_t *) bits + i - 1) = 0; in bits_from_user()
741 BITS_TO_LONGS_COMPAT(maxbit) * sizeof(compat_long_t) : in bits_to_user()
753 size_t chunk_size = compat ? sizeof(compat_long_t) : sizeof(long); in bits_from_user()