Lines Matching refs:method_elm
63 struct uverbs_api_write_method *method_elm; in uapi_create_write() local
72 method_elm = uapi_add_get_elm(uapi, method_key, sizeof(*method_elm), in uapi_create_write()
74 if (IS_ERR(method_elm)) in uapi_create_write()
75 return PTR_ERR(method_elm); in uapi_create_write()
77 if (WARN_ON(exists && (def->write.is_ex != method_elm->is_ex))) in uapi_create_write()
80 method_elm->is_ex = def->write.is_ex; in uapi_create_write()
81 method_elm->handler = def->func_write; in uapi_create_write()
83 method_elm->disabled = !(ibdev->uverbs_cmd_mask & in uapi_create_write()
87 method_elm->has_udata = def->write.has_udata; in uapi_create_write()
88 method_elm->has_resp = def->write.has_resp; in uapi_create_write()
89 method_elm->req_size = def->write.req_size; in uapi_create_write()
90 method_elm->resp_size = def->write.resp_size; in uapi_create_write()
103 struct uverbs_api_ioctl_method *method_elm; in uapi_merge_method() local
110 method_elm = uapi_add_get_elm(uapi, method_key, sizeof(*method_elm), in uapi_merge_method()
112 if (IS_ERR(method_elm)) in uapi_merge_method()
113 return PTR_ERR(method_elm); in uapi_merge_method()
122 rcu_assign_pointer(method_elm->handler, method->handler); in uapi_merge_method()
124 method_elm->driver_method = is_driver; in uapi_merge_method()
140 method_elm->driver_method |= is_driver; in uapi_merge_method()
243 struct uverbs_api_ioctl_method *method_elm; in uapi_disable_elm() local
245 method_elm = uapi_add_get_elm(uapi, method_key, in uapi_disable_elm()
246 sizeof(*method_elm), &exists); in uapi_disable_elm()
247 if (IS_ERR(method_elm)) in uapi_disable_elm()
248 return PTR_ERR(method_elm); in uapi_disable_elm()
249 method_elm->disabled = 1; in uapi_disable_elm()
353 struct uverbs_api_ioctl_method *method_elm, in uapi_finalize_ioctl_method() argument
362 method_elm->destroy_bkey = UVERBS_API_ATTR_BKEY_LEN; in uapi_finalize_ioctl_method()
376 __set_bit(attr_bkey, method_elm->attr_mandatory); in uapi_finalize_ioctl_method()
379 method_elm->has_udata = true; in uapi_finalize_ioctl_method()
401 method_elm->destroy_bkey = attr_bkey; in uapi_finalize_ioctl_method()
408 method_elm->key_bitmap_len = max_bkey + 1; in uapi_finalize_ioctl_method()
409 WARN_ON(method_elm->key_bitmap_len > UVERBS_API_ATTR_BKEY_LEN); in uapi_finalize_ioctl_method()
411 uapi_compute_bundle_size(method_elm, num_attrs); in uapi_finalize_ioctl_method()
426 struct uverbs_api_ioctl_method *method_elm = in uapi_finalize() local
430 rc = uapi_finalize_ioctl_method(uapi, method_elm, in uapi_finalize()
552 struct uverbs_api_ioctl_method *method_elm = in uapi_finalize_disable() local
555 if (method_elm->disabled) { in uapi_finalize_disable()
565 struct uverbs_api_write_method *method_elm = in uapi_finalize_disable() local
568 if (method_elm->disabled) { in uapi_finalize_disable()
569 kfree(method_elm); in uapi_finalize_disable()
695 struct uverbs_api_ioctl_method *method_elm = in uverbs_disassociate_api_pre() local
698 if (method_elm->driver_method) in uverbs_disassociate_api_pre()
699 rcu_assign_pointer(method_elm->handler, NULL); in uverbs_disassociate_api_pre()