Home
last modified time | relevance | path

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

/linux/drivers/infiniband/core/
H A Duverbs_uapi.c63 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 in uapi_create_write()
103 struct uverbs_api_ioctl_method *method_elm; uapi_merge_method() local
243 struct uverbs_api_ioctl_method *method_elm; uapi_disable_elm() local
353 uapi_finalize_ioctl_method(struct uverbs_api * uapi,struct uverbs_api_ioctl_method * method_elm,u32 method_key) uapi_finalize_ioctl_method() argument
426 struct uverbs_api_ioctl_method *method_elm = uapi_finalize() local
552 struct uverbs_api_ioctl_method *method_elm = uapi_finalize_disable() local
565 struct uverbs_api_write_method *method_elm = uapi_finalize_disable() local
695 struct uverbs_api_ioctl_method *method_elm = uverbs_disassociate_api_pre() local
[all...]
H A Duverbs_main.c514 const struct uverbs_api_write_method *method_elm) in verify_hdr() argument
516 if (method_elm->is_ex) { in verify_hdr()
522 if (hdr->in_words * 8 < method_elm->req_size) in verify_hdr()
532 if (hdr->out_words * 8 < method_elm->resp_size) in verify_hdr()
550 if (count < method_elm->req_size + sizeof(*hdr)) { in verify_hdr()
565 if (hdr->out_words * 4 < method_elm->resp_size) in verify_hdr()
575 const struct uverbs_api_write_method *method_elm; in ib_uverbs_write() local
595 method_elm = uapi_get_method(uapi, hdr.command); in ib_uverbs_write()
596 if (IS_ERR(method_elm)) in ib_uverbs_write()
597 return PTR_ERR(method_elm); in ib_uverbs_write()
[all...]
H A Duverbs_std_types_device.c24 const struct uverbs_api_write_method *method_elm; in UVERBS_HANDLER() local
32 method_elm = uapi_get_method(uapi, cmd); in UVERBS_HANDLER()
33 if (IS_ERR(method_elm)) in UVERBS_HANDLER()
34 return PTR_ERR(method_elm); in UVERBS_HANDLER()
39 if (attrs->ucore.inlen < method_elm->req_size || in UVERBS_HANDLER()
40 attrs->ucore.outlen < method_elm->resp_size) in UVERBS_HANDLER()
44 rc = method_elm->handler(attrs); in UVERBS_HANDLER()
H A Drdma_core.h150 void uapi_compute_bundle_size(struct uverbs_api_ioctl_method *method_elm,