Lines Matching refs:ptr_attr
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()
662 else if (attr->ptr_attr.len == 4) in uverbs_get_flags64()
663 flags = *(u32 *)&attr->ptr_attr.data; in uverbs_get_flags64()
710 udata->inlen = in->ptr_attr.len; in uverbs_fill_udata()
713 &pbundle->user_attrs[in->ptr_attr.uattr_idx] in uverbs_fill_udata()
716 udata->inbuf = u64_to_user_ptr(in->ptr_attr.data); in uverbs_fill_udata()
723 udata->outbuf = u64_to_user_ptr(out->ptr_attr.data); in uverbs_fill_udata()
724 udata->outlen = out->ptr_attr.len; in uverbs_fill_udata()
740 min_size = min_t(size_t, attr->ptr_attr.len, size); in uverbs_copy_to()
741 if (copy_to_user(u64_to_user_ptr(attr->ptr_attr.data), from, min_size)) in uverbs_copy_to()
777 *to = attr->ptr_attr.data; in _uverbs_get_const_signed()
800 *to = attr->ptr_attr.data; in _uverbs_get_const_unsigned()
818 if (size < attr->ptr_attr.len) { in uverbs_copy_to_struct_or_zero()
819 if (clear_user(u64_to_user_ptr(attr->ptr_attr.data) + size, in uverbs_copy_to_struct_or_zero()
820 attr->ptr_attr.len - size)) in uverbs_copy_to_struct_or_zero()