Home
last modified time | relevance | path

Searched refs:ptr_attr (Results 1 – 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/drivers/infiniband/core/
Duverbs_ioctl.c155 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()
652 if (attr->ptr_attr.len == 8) in uverbs_get_flags64()
653 flags = attr->ptr_attr.data; in uverbs_get_flags64()
654 else if (attr->ptr_attr.len == 4) in uverbs_get_flags64()
[all …]
Duverbs_std_types_counters.c111 read_attr.ncounters = uattr->ptr_attr.len / sizeof(u64); in UVERBS_HANDLER()
Duverbs_std_types_device.c293 user_entries = u64_to_user_ptr(attr->ptr_attr.data); in copy_gid_entries_to_user()
/kernel/linux/linux-5.10/include/rdma/
Duverbs_ioctl.h617 struct uverbs_ptr_attr ptr_attr; member
676 return attr->ptr_attr.enum_id; in uverbs_attr_get_enum_id()
710 return attr->ptr_attr.len; in uverbs_attr_get_len()
765 return attr->ptr_attr.len <= sizeof(attr->ptr_attr.data); in uverbs_attr_ptr_is_inline()
776 return uverbs_attr_ptr_is_inline(attr) ? (void *)&attr->ptr_attr.data : in uverbs_attr_get_alloced_ptr()
777 attr->ptr_attr.ptr; in uverbs_attr_get_alloced_ptr()
795 if (unlikely(size < attr->ptr_attr.len)) in _uverbs_copy_from()
799 memcpy(to, &attr->ptr_attr.data, attr->ptr_attr.len); in _uverbs_copy_from()
800 else if (copy_from_user(to, u64_to_user_ptr(attr->ptr_attr.data), in _uverbs_copy_from()
801 attr->ptr_attr.len)) in _uverbs_copy_from()
[all …]