Lines Matching refs:to
793 static inline int _uverbs_copy_from(void *to, in _uverbs_copy_from() argument
812 memcpy(to, &attr->ptr_attr.data, attr->ptr_attr.len); in _uverbs_copy_from()
813 else if (copy_from_user(to, u64_to_user_ptr(attr->ptr_attr.data), in _uverbs_copy_from()
820 static inline int _uverbs_copy_from_or_zero(void *to, in _uverbs_copy_from_or_zero() argument
834 memcpy(to, &attr->ptr_attr.data, min_size); in _uverbs_copy_from_or_zero()
835 else if (copy_from_user(to, u64_to_user_ptr(attr->ptr_attr.data), in _uverbs_copy_from_or_zero()
840 memset(to + min_size, 0, size - min_size); in _uverbs_copy_from_or_zero()
845 #define uverbs_copy_from(to, attrs_bundle, idx) \ argument
846 _uverbs_copy_from(to, attrs_bundle, idx, sizeof(*to))
848 #define uverbs_copy_from_or_zero(to, attrs_bundle, idx) \ argument
849 _uverbs_copy_from_or_zero(to, attrs_bundle, idx, sizeof(*to))
858 int uverbs_get_flags64(u64 *to, const struct uverbs_attr_bundle *attrs_bundle,
860 int uverbs_get_flags32(u32 *to, const struct uverbs_attr_bundle *attrs_bundle,
889 int _uverbs_get_const_signed(s64 *to,
893 int _uverbs_get_const_unsigned(u64 *to,
900 uverbs_get_flags64(u64 *to, const struct uverbs_attr_bundle *attrs_bundle, in uverbs_get_flags64() argument
906 uverbs_get_flags32(u32 *to, const struct uverbs_attr_bundle *attrs_bundle, in uverbs_get_flags32() argument
927 _uverbs_get_const(s64 *to, const struct uverbs_attr_bundle *attrs_bundle, in _uverbs_get_const() argument
940 _uverbs_get_const_signed(s64 *to, in _uverbs_get_const_signed() argument
948 _uverbs_get_const_unsigned(u64 *to, in _uverbs_get_const_unsigned() argument
1013 uverbs_get_raw_fd(int *to, const struct uverbs_attr_bundle *attrs_bundle, in uverbs_get_raw_fd() argument
1016 return uverbs_get_const_signed(to, attrs_bundle, idx); in uverbs_get_raw_fd()