Home
last modified time | relevance | path

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

/drivers/infiniband/core/
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->disabled = !(ibdev->uverbs_cmd_mask & in uapi_create_write()
90 method_elm->has_udata = def->write.has_udata; in uapi_create_write()
[all …]
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->key_bitmap_len))) in ib_uverbs_run_method()
[all …]
Duverbs_main.c502 const struct uverbs_api_write_method *method_elm) in verify_hdr() argument
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()
[all …]
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()
Drdma_core.h150 void uapi_compute_bundle_size(struct uverbs_api_ioctl_method *method_elm,