Lines Matching defs:attrs
125 struct uverbs_attr_bundle *attrs)
127 struct ib_uverbs_file *ufile = attrs->ufile;
140 attrs);
189 int uobj_destroy(struct ib_uobject *uobj, struct uverbs_attr_bundle *attrs)
191 struct ib_uverbs_file *ufile = attrs->ufile;
207 ret = uverbs_destroy_uobject(uobj, RDMA_REMOVE_DESTROY, attrs);
224 u32 id, struct uverbs_attr_bundle *attrs)
229 uobj = rdma_lookup_get_uobject(obj, attrs->ufile, id,
230 UVERBS_LOOKUP_DESTROY, attrs);
234 ret = uobj_destroy(uobj, attrs);
248 struct uverbs_attr_bundle *attrs)
252 uobj = __uobj_get_destroy(obj, id, attrs);
260 static struct ib_uobject *alloc_uobj(struct uverbs_attr_bundle *attrs,
263 struct ib_uverbs_file *ufile = attrs->ufile;
266 if (!attrs->context) {
272 attrs->context = ucontext;
283 uobj->context = attrs->context;
376 struct uverbs_attr_bundle *attrs)
414 if (attrs)
415 attrs->context = uobj->context;
426 struct uverbs_attr_bundle *attrs)
431 uobj = alloc_uobj(attrs, obj);
447 xa_erase(&attrs->ufile->idr, uobj->id);
455 struct uverbs_attr_bundle *attrs)
462 uobj = alloc_uobj(attrs, obj);
500 struct uverbs_attr_bundle *attrs)
502 struct ib_uverbs_file *ufile = attrs->ufile;
516 ret = obj->type_class->alloc_begin(obj, attrs);
534 struct uverbs_attr_bundle *attrs)
539 int ret = idr_type->destroy_object(uobj, why, attrs);
570 struct uverbs_attr_bundle *attrs)
645 struct uverbs_attr_bundle *attrs)
647 struct ib_uverbs_file *ufile = attrs->ufile;
677 struct uverbs_attr_bundle *attrs)
691 uverbs_destroy_uobject(to_uobj, RDMA_REMOVE_DESTROY, attrs);
699 struct uverbs_attr_bundle *attrs,
707 uobj, RDMA_REMOVE_ABORT, attrs);
715 return rdma_alloc_commit_uobject(uobj, attrs);
718 uverbs_destroy_uobject(uobj, RDMA_REMOVE_ABORT, attrs);
823 struct uverbs_attr_bundle attrs = {
835 uverbs_destroy_uobject(uobj, RDMA_REMOVE_CLOSE, &attrs);
884 struct uverbs_attr_bundle attrs = { .ufile = ufile };
903 attrs.context = obj->context;
911 if (!uverbs_destroy_uobject(obj, reason, &attrs))
967 s64 id, struct uverbs_attr_bundle *attrs)
970 uapi_get_object(attrs->ufile->device->uapi, object_id);
974 return rdma_lookup_get_uobject(obj, attrs->ufile, id,
975 UVERBS_LOOKUP_READ, attrs);
978 return rdma_lookup_get_uobject(obj, attrs->ufile, id,
979 UVERBS_LOOKUP_DESTROY, attrs);
981 return rdma_lookup_get_uobject(obj, attrs->ufile, id,
982 UVERBS_LOOKUP_WRITE, attrs);
984 return rdma_alloc_begin_uobject(obj, attrs);
993 bool commit, struct uverbs_attr_bundle *attrs)
1014 rdma_alloc_commit_uobject(uobj, attrs);
1016 rdma_alloc_abort_uobject(uobj, attrs, hw_obj_valid);
1028 * @attrs: Pointer to uverbs attributes
1033 bool rdma_uattrs_has_raw_cap(const struct uverbs_attr_bundle *attrs)
1035 struct ib_uverbs_file *ufile = attrs->ufile;