Lines Matching refs:ptr_attr
617 struct uverbs_ptr_attr ptr_attr; member
679 return attr->ptr_attr.enum_id; in uverbs_attr_get_enum_id()
713 return attr->ptr_attr.len; in uverbs_attr_get_len()
768 return attr->ptr_attr.len <= sizeof(attr->ptr_attr.data); in uverbs_attr_ptr_is_inline()
779 return uverbs_attr_ptr_is_inline(attr) ? (void *)&attr->ptr_attr.data : in uverbs_attr_get_alloced_ptr()
780 attr->ptr_attr.ptr; in uverbs_attr_get_alloced_ptr()
798 if (unlikely(size < attr->ptr_attr.len)) in _uverbs_copy_from()
802 memcpy(to, &attr->ptr_attr.data, attr->ptr_attr.len); in _uverbs_copy_from()
803 else if (copy_from_user(to, u64_to_user_ptr(attr->ptr_attr.data), in _uverbs_copy_from()
804 attr->ptr_attr.len)) in _uverbs_copy_from()
821 min_size = min_t(size_t, size, attr->ptr_attr.len); in _uverbs_copy_from_or_zero()
824 memcpy(to, &attr->ptr_attr.data, min_size); in _uverbs_copy_from_or_zero()
825 else if (copy_from_user(to, u64_to_user_ptr(attr->ptr_attr.data), in _uverbs_copy_from_or_zero()