Lines Matching refs:ex_hdr
503 struct ib_uverbs_ex_cmd_hdr *ex_hdr, size_t count, in verify_hdr() argument
507 count -= sizeof(*hdr) + sizeof(*ex_hdr); in verify_hdr()
509 if ((hdr->in_words + ex_hdr->provider_in_words) * 8 != count) in verify_hdr()
515 if (ex_hdr->cmd_hdr_reserved) in verify_hdr()
518 if (ex_hdr->response) { in verify_hdr()
519 if (!hdr->out_words && !ex_hdr->provider_out_words) in verify_hdr()
525 if (!access_ok(u64_to_user_ptr(ex_hdr->response), in verify_hdr()
526 (hdr->out_words + ex_hdr->provider_out_words) * 8)) in verify_hdr()
529 if (hdr->out_words || ex_hdr->provider_out_words) in verify_hdr()
567 struct ib_uverbs_ex_cmd_hdr ex_hdr; in ib_uverbs_write() local
590 if (count < (sizeof(hdr) + sizeof(ex_hdr))) in ib_uverbs_write()
592 if (copy_from_user(&ex_hdr, buf + sizeof(hdr), sizeof(ex_hdr))) in ib_uverbs_write()
596 ret = verify_hdr(&hdr, &ex_hdr, count, method_elm); in ib_uverbs_write()
656 buf += sizeof(ex_hdr); in ib_uverbs_write()
659 u64_to_user_ptr(ex_hdr.response), in ib_uverbs_write()
664 u64_to_user_ptr(ex_hdr.response) + bundle.ucore.outlen, in ib_uverbs_write()
665 ex_hdr.provider_in_words * 8, in ib_uverbs_write()
666 ex_hdr.provider_out_words * 8); in ib_uverbs_write()