Lines Matching refs:bundle
65 struct uverbs_attr_bundle bundle; member
80 sizeof(*pbundle->bundle.attrs) * method_elm->key_bitmap_len + in uapi_compute_bundle_size()
104 __malloc void *_uverbs_alloc(struct uverbs_attr_bundle *bundle, size_t size, in _uverbs_alloc() argument
108 container_of(bundle, struct bundle_priv, bundle); in _uverbs_alloc()
151 struct uverbs_attr *e = &pbundle->bundle.attrs[attr_bkey]; in uverbs_process_attr()
199 p = uverbs_alloc(&pbundle->bundle, uattr->len); in uverbs_process_attr()
232 pbundle->bundle.ufile, in uverbs_process_attr()
304 *slot, &pbundle->bundle.ufile->device->disassociate_srcu); in uverbs_set_attr()
307 if (test_bit(attr_bkey, pbundle->bundle.attr_present)) in uverbs_set_attr()
314 __set_bit(attr_bkey, pbundle->bundle.attr_present); in uverbs_set_attr()
332 &pbundle->bundle.ufile->device->disassociate_srcu); in ib_uverbs_run_method()
336 pbundle->uattrs = uverbs_alloc(&pbundle->bundle, uattrs_size); in ib_uverbs_run_method()
350 pbundle->bundle.attr_present, in ib_uverbs_run_method()
356 &pbundle->bundle.attrs[destroy_bkey].obj_attr; in ib_uverbs_run_method()
363 ret = handler(pbundle->bundle.ufile, &pbundle->bundle); in ib_uverbs_run_method()
366 ret = handler(pbundle->bundle.ufile, &pbundle->bundle); in ib_uverbs_run_method()
390 struct uverbs_attr *attr = &pbundle->bundle.attrs[i]; in bundle_destroy()
452 pbundle->bundle.ufile = ufile; in ib_uverbs_cmd_verbs()
459 sizeof(*pbundle->bundle.attrs), in ib_uverbs_cmd_verbs()
461 memset(pbundle->bundle.attr_present, 0, in ib_uverbs_cmd_verbs()
462 sizeof(pbundle->bundle.attr_present)); in ib_uverbs_cmd_verbs()
558 void create_udata(struct uverbs_attr_bundle *bundle, struct ib_udata *udata) in create_udata() argument
561 container_of(bundle, struct bundle_priv, bundle); in create_udata()
563 uverbs_attr_get(bundle, UVERBS_ATTR_UHW_IN); in create_udata()
565 uverbs_attr_get(bundle, UVERBS_ATTR_UHW_OUT); in create_udata()
589 int uverbs_copy_to(const struct uverbs_attr_bundle *bundle, size_t idx, in uverbs_copy_to() argument
593 container_of(bundle, struct bundle_priv, bundle); in uverbs_copy_to()
594 const struct uverbs_attr *attr = uverbs_attr_get(bundle, idx); in uverbs_copy_to()