Lines Matching refs:compat_long_t
643 #define BITS_PER_LONG_COMPAT (sizeof(compat_long_t) * 8)
653 len = BITS_TO_LONGS_COMPAT(maxbit) * sizeof(compat_long_t); in bits_to_user()
657 for (i = 0; i < len / sizeof(compat_long_t); i++) in bits_to_user()
658 if (copy_to_user((compat_long_t __user *) p + i, in bits_to_user()
659 (compat_long_t *) bits + in bits_to_user()
661 sizeof(compat_long_t))) in bits_to_user()
681 if (maxlen % sizeof(compat_long_t)) in bits_from_user()
684 len = BITS_TO_LONGS_COMPAT(maxbit) * sizeof(compat_long_t); in bits_from_user()
688 for (i = 0; i < len / sizeof(compat_long_t); i++) in bits_from_user()
689 if (copy_from_user((compat_long_t *) bits + in bits_from_user()
691 (compat_long_t __user *) p + i, in bits_from_user()
692 sizeof(compat_long_t))) in bits_from_user()
695 *((compat_long_t *) bits + i - 1) = 0; in bits_from_user()
718 BITS_TO_LONGS_COMPAT(maxbit) * sizeof(compat_long_t) : in bits_to_user()
730 size_t chunk_size = compat ? sizeof(compat_long_t) : sizeof(long); in bits_from_user()