Home
last modified time | relevance | path

Searched refs:method_elm (Results 1 – 3 of 3) sorted by relevance

/Linux-v4.19/drivers/infiniband/core/
Duverbs_uapi.c35 struct uverbs_api_ioctl_method *method_elm; in uapi_merge_method() local
41 method_elm = uapi_add_elm(uapi, method_key, sizeof(*method_elm)); in uapi_merge_method()
42 if (IS_ERR(method_elm)) { in uapi_merge_method()
43 if (method_elm != ERR_PTR(-EEXIST)) in uapi_merge_method()
44 return PTR_ERR(method_elm); in uapi_merge_method()
51 method_elm = radix_tree_lookup(&uapi->radix, method_key); in uapi_merge_method()
52 if (WARN_ON(!method_elm)) in uapi_merge_method()
56 rcu_assign_pointer(method_elm->handler, method->handler); in uapi_merge_method()
58 method_elm->driver_method = is_driver; in uapi_merge_method()
74 method_elm->driver_method |= is_driver; in uapi_merge_method()
[all …]
Duverbs_ioctl.c51 const struct uverbs_api_ioctl_method *method_elm; member
74 void uapi_compute_bundle_size(struct uverbs_api_ioctl_method *method_elm, in uapi_compute_bundle_size() argument
80 sizeof(*pbundle->bundle.attrs) * method_elm->key_bitmap_len + in uapi_compute_bundle_size()
83 method_elm->use_stack = bundle_size <= sizeof(*pbundle); in uapi_compute_bundle_size()
84 method_elm->bundle_size = in uapi_compute_bundle_size()
88 WARN_ON_ONCE(method_elm->bundle_size > PAGE_SIZE); in uapi_compute_bundle_size()
325 unsigned int destroy_bkey = pbundle->method_elm->destroy_bkey; in ib_uverbs_run_method()
331 pbundle->method_elm->handler, in ib_uverbs_run_method()
349 if (unlikely(!bitmap_subset(pbundle->method_elm->attr_mandatory, in ib_uverbs_run_method()
351 pbundle->method_elm->key_bitmap_len))) in ib_uverbs_run_method()
[all …]
Drdma_core.h161 void uapi_compute_bundle_size(struct uverbs_api_ioctl_method *method_elm,