Searched refs:method_elm (Results 1 – 5 of 5) sorted by relevance
63 struct uverbs_api_write_method *method_elm; in uapi_create_write() local72 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 …]
51 const struct uverbs_api_ioctl_method *method_elm; member75 void uapi_compute_bundle_size(struct uverbs_api_ioctl_method *method_elm, in uapi_compute_bundle_size() argument81 sizeof(*pbundle->bundle.attrs) * method_elm->key_bitmap_len + in uapi_compute_bundle_size()84 method_elm->use_stack = bundle_size <= sizeof(*pbundle); in uapi_compute_bundle_size()85 method_elm->bundle_size = in uapi_compute_bundle_size()89 WARN_ON_ONCE(method_elm->bundle_size > PAGE_SIZE); in uapi_compute_bundle_size()423 unsigned int destroy_bkey = pbundle->method_elm->destroy_bkey; in ib_uverbs_run_method()429 pbundle->method_elm->handler, in ib_uverbs_run_method()447 if (unlikely(!bitmap_subset(pbundle->method_elm->attr_mandatory, in ib_uverbs_run_method()449 pbundle->method_elm->key_bitmap_len))) in ib_uverbs_run_method()[all …]
22 const struct uverbs_api_write_method *method_elm; in UVERBS_HANDLER() local30 method_elm = uapi_get_method(uapi, cmd); in UVERBS_HANDLER()31 if (IS_ERR(method_elm)) in UVERBS_HANDLER()32 return PTR_ERR(method_elm); in UVERBS_HANDLER()37 if (attrs->ucore.inlen < method_elm->req_size || in UVERBS_HANDLER()38 attrs->ucore.outlen < method_elm->resp_size) in UVERBS_HANDLER()41 return method_elm->handler(attrs); in UVERBS_HANDLER()
604 const struct uverbs_api_write_method *method_elm) in verify_hdr() argument606 if (method_elm->is_ex) { in verify_hdr()612 if (hdr->in_words * 8 < method_elm->req_size) in verify_hdr()622 if (hdr->out_words * 8 < method_elm->resp_size) in verify_hdr()640 if (count < method_elm->req_size + sizeof(hdr)) { in verify_hdr()655 if (hdr->out_words * 4 < method_elm->resp_size) in verify_hdr()665 const struct uverbs_api_write_method *method_elm; in ib_uverbs_write() local685 method_elm = uapi_get_method(uapi, hdr.command); in ib_uverbs_write()686 if (IS_ERR(method_elm)) in ib_uverbs_write()687 return PTR_ERR(method_elm); in ib_uverbs_write()[all …]
188 void uapi_compute_bundle_size(struct uverbs_api_ioctl_method *method_elm,