Searched refs:ptr_attr (Results 1 – 3 of 3) sorted by relevance
154 flags = pbundle->uattrs[attr->ptr_attr.uattr_idx].flags | in uverbs_set_output()157 &pbundle->user_attrs[attr->ptr_attr.uattr_idx].flags)) in uverbs_set_output()266 e->ptr_attr.enum_id = uattr->attr_data.enum_data.elem_id; in uverbs_process_attr()290 e->ptr_attr.uattr_idx = uattr - pbundle->uattrs; in uverbs_process_attr()291 e->ptr_attr.len = uattr->len; in uverbs_process_attr()300 e->ptr_attr.ptr = p; in uverbs_process_attr()306 e->ptr_attr.data = uattr->data; in uverbs_process_attr()667 if (attr->ptr_attr.len == 8) in uverbs_get_flags64()668 flags = attr->ptr_attr.data; in uverbs_get_flags64()669 else if (attr->ptr_attr.len == 4) in uverbs_get_flags64()[all …]
108 read_attr.ncounters = uattr->ptr_attr.len / sizeof(u64); in UVERBS_HANDLER()
645 struct uverbs_ptr_attr ptr_attr; member703 return attr->ptr_attr.enum_id; in uverbs_attr_get_enum_id()737 return attr->ptr_attr.len; in uverbs_attr_get_len()789 return attr->ptr_attr.len <= sizeof(attr->ptr_attr.data); in uverbs_attr_ptr_is_inline()800 return uverbs_attr_ptr_is_inline(attr) ? (void *)&attr->ptr_attr.data : in uverbs_attr_get_alloced_ptr()801 attr->ptr_attr.ptr; in uverbs_attr_get_alloced_ptr()819 if (unlikely(size < attr->ptr_attr.len)) in _uverbs_copy_from()823 memcpy(to, &attr->ptr_attr.data, attr->ptr_attr.len); in _uverbs_copy_from()824 else if (copy_from_user(to, u64_to_user_ptr(attr->ptr_attr.data), in _uverbs_copy_from()825 attr->ptr_attr.len)) in _uverbs_copy_from()[all …]