Searched refs:ptr_attr (Results 1 – 4 of 4) sorted by relevance
155 flags = pbundle->uattrs[attr->ptr_attr.uattr_idx].flags | in uverbs_set_output()158 &pbundle->user_attrs[attr->ptr_attr.uattr_idx].flags)) in uverbs_set_output()261 e->ptr_attr.enum_id = uattr->attr_data.enum_data.elem_id; in uverbs_process_attr()285 e->ptr_attr.uattr_idx = uattr - pbundle->uattrs; in uverbs_process_attr()286 e->ptr_attr.len = uattr->len; in uverbs_process_attr()295 e->ptr_attr.ptr = p; in uverbs_process_attr()301 e->ptr_attr.data = uattr->data; in uverbs_process_attr()345 e->ptr_attr.data = uattr->data_s64; in uverbs_process_attr()660 if (attr->ptr_attr.len == 8) in uverbs_get_flags64()661 flags = attr->ptr_attr.data; in uverbs_get_flags64()[all …]
110 read_attr.ncounters = uattr->ptr_attr.len / sizeof(u64); in UVERBS_HANDLER()
293 user_entries = u64_to_user_ptr(attr->ptr_attr.data); in copy_gid_entries_to_user()
623 struct uverbs_ptr_attr ptr_attr; member685 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()[all …]