Lines Matching refs:to

45 	 * Support extending attributes by length. Allow the user to provide
61 /* Current known size to kernel */
63 /* User isn't allowed to provide something < min_len */
110 * Which is a 48 bit value, with most of the bits guaranteed to be zero. Based
112 * radix tree. Since this compression is entirely internal to the kernel the
155 /* This id guaranteed to not exist in the radix tree */
244 * The attr is designed to fit in the typical single radix tree node
246 * organize things so that the driver and core attributes interleave to
274 * This returns a value in the range [0 to UVERBS_API_ATTR_BKEY_LEN),
357 /* Define things connected to object_id */
417 /* Call a function to determine if the entire object is supported or not */
463 * Specifies a uapi structure where the user must provide at least up to
473 * larger, up to the protocol maximum size. No check for zeroing is done.
504 * Only for use with UVERBS_ATTR_IDR, allows any uobject type to be accepted,
567 * This permits the flag value to be passed as either a u32 or u64, it must
579 * This spec is used in order to pass information to the hardware driver in a
651 * rdma_udata_to_drv_context - Helper macro to get the driver's context out of
656 * 'udata' to determine if the driver call is in user or kernel mode, not
754 * @arr: Returned pointer to array of pointers for uobjects or NULL if
793 static inline int _uverbs_copy_from(void *to,
812 memcpy(to, &attr->ptr_attr.data, attr->ptr_attr.len);
813 else if (copy_from_user(to, u64_to_user_ptr(attr->ptr_attr.data),
820 static inline int _uverbs_copy_from_or_zero(void *to,
834 memcpy(to, &attr->ptr_attr.data, min_size);
835 else if (copy_from_user(to, u64_to_user_ptr(attr->ptr_attr.data),
840 memset(to + min_size, 0, size - min_size);
845 #define uverbs_copy_from(to, attrs_bundle, idx) \
846 _uverbs_copy_from(to, attrs_bundle, idx, sizeof(*to))
848 #define uverbs_copy_from_or_zero(to, attrs_bundle, idx) \
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,
906 uverbs_get_flags32(u32 *to, const struct uverbs_attr_bundle *attrs_bundle,
927 _uverbs_get_const(s64 *to, const struct uverbs_attr_bundle *attrs_bundle,
940 _uverbs_get_const_signed(s64 *to,
948 _uverbs_get_const_unsigned(u64 *to,
1013 uverbs_get_raw_fd(int *to, const struct uverbs_attr_bundle *attrs_bundle,
1016 return uverbs_get_const_signed(to, attrs_bundle, idx);