Lines Matching refs:ptr_attr
623 struct uverbs_ptr_attr ptr_attr; member
685 return attr->ptr_attr.enum_id; in uverbs_attr_get_enum_id()
719 return attr->ptr_attr.len; in uverbs_attr_get_len()
774 return attr->ptr_attr.len <= sizeof(attr->ptr_attr.data); in uverbs_attr_ptr_is_inline()
785 return uverbs_attr_ptr_is_inline(attr) ? (void *)&attr->ptr_attr.data : in uverbs_attr_get_alloced_ptr()
786 attr->ptr_attr.ptr; in uverbs_attr_get_alloced_ptr()
804 if (unlikely(size < attr->ptr_attr.len)) in _uverbs_copy_from()
808 memcpy(to, &attr->ptr_attr.data, attr->ptr_attr.len); in _uverbs_copy_from()
809 else if (copy_from_user(to, u64_to_user_ptr(attr->ptr_attr.data), in _uverbs_copy_from()
810 attr->ptr_attr.len)) in _uverbs_copy_from()
827 min_size = min_t(size_t, size, attr->ptr_attr.len); in _uverbs_copy_from_or_zero()
830 memcpy(to, &attr->ptr_attr.data, min_size); in _uverbs_copy_from_or_zero()
831 else if (copy_from_user(to, u64_to_user_ptr(attr->ptr_attr.data), in _uverbs_copy_from_or_zero()