Home
last modified time | relevance | path

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

/openbmc/linux/drivers/infiniband/core/
H A Duverbs_ioctl.c286 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()
662 else if (attr->ptr_attr.len == 4) in uverbs_get_flags64()
710 udata->inlen = in->ptr_attr.len; in uverbs_fill_udata()
777 *to = attr->ptr_attr.data; in _uverbs_get_const_signed()
800 *to = attr->ptr_attr.data; in _uverbs_get_const_unsigned()
[all …]
H A Duverbs_std_types_counters.c112 read_attr.ncounters = uattr->ptr_attr.len / sizeof(u64); in UVERBS_HANDLER()
H A Duverbs_std_types_device.c293 user_entries = u64_to_user_ptr(attr->ptr_attr.data); in copy_gid_entries_to_user()
/openbmc/linux/include/rdma/
H A Duverbs_ioctl.h625 struct uverbs_ptr_attr ptr_attr; member
687 return attr->ptr_attr.enum_id; in uverbs_attr_get_enum_id()
721 return attr->ptr_attr.len; in uverbs_attr_get_len()
776 return attr->ptr_attr.len <= sizeof(attr->ptr_attr.data); in uverbs_attr_ptr_is_inline()
788 attr->ptr_attr.ptr; in uverbs_attr_get_alloced_ptr()
806 if (unlikely(size < attr->ptr_attr.len)) in _uverbs_copy_from()
810 memcpy(to, &attr->ptr_attr.data, attr->ptr_attr.len); in _uverbs_copy_from()
811 else if (copy_from_user(to, u64_to_user_ptr(attr->ptr_attr.data), in _uverbs_copy_from()
812 attr->ptr_attr.len)) in _uverbs_copy_from()
829 min_size = min_t(size_t, size, attr->ptr_attr.len); in _uverbs_copy_from_or_zero()
[all …]