Lines Matching refs:method_elm
502 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()
587 if (method_elm->is_ex) { in ib_uverbs_write()
594 ret = verify_hdr(&hdr, &ex_hdr, count, method_elm); in ib_uverbs_write()
606 if (!method_elm->is_ex) { in ib_uverbs_write()
611 if (method_elm->has_udata) { in ib_uverbs_write()
613 in_len - method_elm->req_size; in ib_uverbs_write()
614 in_len = method_elm->req_size; in ib_uverbs_write()
624 if (method_elm->has_resp) { in ib_uverbs_write()
634 if (method_elm->has_udata) { in ib_uverbs_write()
636 out_len - method_elm->resp_size; in ib_uverbs_write()
637 out_len = method_elm->resp_size; in ib_uverbs_write()
668 ret = method_elm->handler(&bundle); in ib_uverbs_write()