Home
last modified time | relevance | path

Searched refs:method_elm (Results 1 - 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/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_ex_cmd_mask & in uapi_create_write()
86 method_elm in uapi_create_write()
106 struct uverbs_api_ioctl_method *method_elm; uapi_merge_method() local
246 struct uverbs_api_ioctl_method *method_elm; uapi_disable_elm() local
355 uapi_finalize_ioctl_method(struct uverbs_api *uapi, struct uverbs_api_ioctl_method *method_elm, u32 method_key) uapi_finalize_ioctl_method() argument
429 struct uverbs_api_ioctl_method *method_elm = uapi_finalize() local
555 struct uverbs_api_ioctl_method *method_elm = uapi_finalize_disable() local
568 struct uverbs_api_write_method *method_elm = uapi_finalize_disable() local
697 struct uverbs_api_ioctl_method *method_elm = uverbs_disassociate_api_pre() local
[all...]
H A Duverbs_ioctl.c51 const struct uverbs_api_ioctl_method *method_elm; member
76 void uapi_compute_bundle_size(struct uverbs_api_ioctl_method *method_elm, in uapi_compute_bundle_size() argument
82 sizeof(*pbundle->bundle.attrs) * method_elm->key_bitmap_len + in uapi_compute_bundle_size()
85 method_elm->use_stack = bundle_size <= sizeof(*pbundle); in uapi_compute_bundle_size()
86 method_elm->bundle_size = in uapi_compute_bundle_size()
90 WARN_ON_ONCE(method_elm->bundle_size > PAGE_SIZE); in uapi_compute_bundle_size()
418 unsigned int destroy_bkey = pbundle->method_elm->destroy_bkey; in ib_uverbs_run_method()
424 pbundle->method_elm->handler, in ib_uverbs_run_method()
442 if (unlikely(!bitmap_subset(pbundle->method_elm->attr_mandatory, in ib_uverbs_run_method()
444 pbundle->method_elm in ib_uverbs_run_method()
546 const struct uverbs_api_ioctl_method *method_elm; ib_uverbs_cmd_verbs() local
[all...]
H A Duverbs_main.c502 const struct uverbs_api_write_method *method_elm) in verify_hdr()
504 if (method_elm->is_ex) { in verify_hdr()
510 if (hdr->in_words * 8 < method_elm->req_size) in verify_hdr()
520 if (hdr->out_words * 8 < method_elm->resp_size) in verify_hdr()
538 if (count < method_elm->req_size + sizeof(*hdr)) { in verify_hdr()
553 if (hdr->out_words * 4 < method_elm->resp_size) in verify_hdr()
563 const struct uverbs_api_write_method *method_elm; in ib_uverbs_write() local
583 method_elm = uapi_get_method(uapi, hdr.command); in ib_uverbs_write()
584 if (IS_ERR(method_elm)) in ib_uverbs_write()
585 return PTR_ERR(method_elm); in ib_uverbs_write()
500 verify_hdr(struct ib_uverbs_cmd_hdr *hdr, struct ib_uverbs_ex_cmd_hdr *ex_hdr, size_t count, const struct uverbs_api_write_method *method_elm) verify_hdr() argument
[all...]
H A Duverbs_std_types_device.c24 const struct uverbs_api_write_method *method_elm; in UVERBS_METHOD_INVOKE_WRITE() local
32 method_elm = uapi_get_method(uapi, cmd); in UVERBS_METHOD_INVOKE_WRITE()
33 if (IS_ERR(method_elm)) in UVERBS_METHOD_INVOKE_WRITE()
34 return PTR_ERR(method_elm); in UVERBS_METHOD_INVOKE_WRITE()
39 if (attrs->ucore.inlen < method_elm->req_size || in UVERBS_METHOD_INVOKE_WRITE()
40 attrs->ucore.outlen < method_elm->resp_size) in UVERBS_METHOD_INVOKE_WRITE()
44 rc = method_elm->handler(attrs); in UVERBS_METHOD_INVOKE_WRITE()
H A Drdma_core.h150 void uapi_compute_bundle_size(struct uverbs_api_ioctl_method *method_elm,
/kernel/linux/linux-6.6/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
352 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
694 struct uverbs_api_ioctl_method *method_elm = uverbs_disassociate_api_pre() local
[all...]
H A Duverbs_ioctl.c51 const struct uverbs_api_ioctl_method *method_elm; member
76 void uapi_compute_bundle_size(struct uverbs_api_ioctl_method *method_elm, in uapi_compute_bundle_size() argument
82 sizeof(*pbundle->bundle.attrs) * method_elm->key_bitmap_len + in uapi_compute_bundle_size()
85 method_elm->use_stack = bundle_size <= sizeof(*pbundle); in uapi_compute_bundle_size()
86 method_elm->bundle_size = in uapi_compute_bundle_size()
90 WARN_ON_ONCE(method_elm->bundle_size > PAGE_SIZE); in uapi_compute_bundle_size()
426 unsigned int destroy_bkey = pbundle->method_elm->destroy_bkey; in ib_uverbs_run_method()
432 pbundle->method_elm->handler, in ib_uverbs_run_method()
450 if (unlikely(!bitmap_subset(pbundle->method_elm->attr_mandatory, in ib_uverbs_run_method()
452 pbundle->method_elm in ib_uverbs_run_method()
554 const struct uverbs_api_ioctl_method *method_elm; ib_uverbs_cmd_verbs() local
[all...]
H A Duverbs_main.c513 const struct uverbs_api_write_method *method_elm) in verify_hdr()
515 if (method_elm->is_ex) { in verify_hdr()
521 if (hdr->in_words * 8 < method_elm->req_size) in verify_hdr()
531 if (hdr->out_words * 8 < method_elm->resp_size) in verify_hdr()
549 if (count < method_elm->req_size + sizeof(*hdr)) { in verify_hdr()
564 if (hdr->out_words * 4 < method_elm->resp_size) in verify_hdr()
574 const struct uverbs_api_write_method *method_elm; in ib_uverbs_write() local
594 method_elm = uapi_get_method(uapi, hdr.command); in ib_uverbs_write()
595 if (IS_ERR(method_elm)) in ib_uverbs_write()
596 return PTR_ERR(method_elm); in ib_uverbs_write()
511 verify_hdr(struct ib_uverbs_cmd_hdr *hdr, struct ib_uverbs_ex_cmd_hdr *ex_hdr, size_t count, const struct uverbs_api_write_method *method_elm) verify_hdr() argument
[all...]
H A Duverbs_std_types_device.c24 const struct uverbs_api_write_method *method_elm; in UVERBS_METHOD_INVOKE_WRITE() local
32 method_elm = uapi_get_method(uapi, cmd); in UVERBS_METHOD_INVOKE_WRITE()
33 if (IS_ERR(method_elm)) in UVERBS_METHOD_INVOKE_WRITE()
34 return PTR_ERR(method_elm); in UVERBS_METHOD_INVOKE_WRITE()
39 if (attrs->ucore.inlen < method_elm->req_size || in UVERBS_METHOD_INVOKE_WRITE()
40 attrs->ucore.outlen < method_elm->resp_size) in UVERBS_METHOD_INVOKE_WRITE()
44 rc = method_elm->handler(attrs); in UVERBS_METHOD_INVOKE_WRITE()
H A Drdma_core.h150 void uapi_compute_bundle_size(struct uverbs_api_ioctl_method *method_elm,

Completed in 9 milliseconds