Lines Matching refs:method_elm

53 	const struct uverbs_api_ioctl_method *method_elm;  member
78 void uapi_compute_bundle_size(struct uverbs_api_ioctl_method *method_elm, in uapi_compute_bundle_size() argument
85 sizeof(*bundle->attrs) * method_elm->key_bitmap_len + in uapi_compute_bundle_size()
88 method_elm->use_stack = bundle_size <= sizeof(*pbundle); in uapi_compute_bundle_size()
89 method_elm->bundle_size = in uapi_compute_bundle_size()
93 WARN_ON_ONCE(method_elm->bundle_size > PAGE_SIZE); in uapi_compute_bundle_size()
435 unsigned int destroy_bkey = pbundle->method_elm->destroy_bkey; in ib_uverbs_run_method()
441 pbundle->method_elm->handler, in ib_uverbs_run_method()
459 if (unlikely(!bitmap_subset(pbundle->method_elm->attr_mandatory, in ib_uverbs_run_method()
461 pbundle->method_elm->key_bitmap_len))) in ib_uverbs_run_method()
464 if (pbundle->method_elm->has_udata) in ib_uverbs_run_method()
489 if (!ret && pbundle->method_elm->has_udata) { in ib_uverbs_run_method()
510 unsigned int key_bitmap_len = pbundle->method_elm->key_bitmap_len; in bundle_destroy()
562 const struct uverbs_api_ioctl_method *method_elm; in ib_uverbs_cmd_verbs() local
579 method_elm = rcu_dereference_protected(*slot, true); in ib_uverbs_cmd_verbs()
581 if (!method_elm->use_stack) { in ib_uverbs_cmd_verbs()
582 pbundle = kmalloc(method_elm->bundle_size, GFP_KERNEL); in ib_uverbs_cmd_verbs()
586 method_elm->bundle_size - in ib_uverbs_cmd_verbs()
598 pbundle->method_elm = method_elm; in ib_uverbs_cmd_verbs()
607 pbundle->internal_used = ALIGN(pbundle->method_elm->key_bitmap_len * in ib_uverbs_cmd_verbs()