Lines Matching refs:uattrs
57 struct ib_uverbs_attr *uattrs; member
83 sizeof(*pbundle->uattrs) * num_attrs; in uapi_compute_bundle_size()
155 flags = pbundle->uattrs[attr->ptr_attr.uattr_idx].flags | in uverbs_set_output()
285 e->ptr_attr.uattr_idx = uattr - pbundle->uattrs; in uverbs_process_attr()
330 unsigned int uattr_idx = uattr - pbundle->uattrs; in uverbs_process_attr()
425 size_t uattrs_size = array_size(sizeof(*pbundle->uattrs), num_attrs); in ib_uverbs_run_method()
437 pbundle->uattrs = uverbs_alloc(&pbundle->bundle, uattrs_size); in ib_uverbs_run_method()
438 if (IS_ERR(pbundle->uattrs)) in ib_uverbs_run_method()
439 return PTR_ERR(pbundle->uattrs); in ib_uverbs_run_method()
440 if (copy_from_user(pbundle->uattrs, pbundle->user_attrs, uattrs_size)) in ib_uverbs_run_method()
444 ret = uverbs_set_attr(pbundle, &pbundle->uattrs[i]); in ib_uverbs_run_method()