Searched refs:ex_hdr (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/drivers/infiniband/core/ |
H A D | uverbs_main.c | 501 struct ib_uverbs_ex_cmd_hdr *ex_hdr, size_t count, in verify_hdr() 505 count -= sizeof(*hdr) + sizeof(*ex_hdr); in verify_hdr() 507 if ((hdr->in_words + ex_hdr->provider_in_words) * 8 != count) in verify_hdr() 513 if (ex_hdr->cmd_hdr_reserved) in verify_hdr() 516 if (ex_hdr->response) { in verify_hdr() 517 if (!hdr->out_words && !ex_hdr->provider_out_words) in verify_hdr() 523 if (!access_ok(u64_to_user_ptr(ex_hdr->response), in verify_hdr() 524 (hdr->out_words + ex_hdr->provider_out_words) * 8)) in verify_hdr() 527 if (hdr->out_words || ex_hdr->provider_out_words) in verify_hdr() 565 struct ib_uverbs_ex_cmd_hdr ex_hdr; in ib_uverbs_write() local 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...] |
/kernel/linux/linux-6.6/drivers/infiniband/core/ |
H A D | uverbs_main.c | 512 struct ib_uverbs_ex_cmd_hdr *ex_hdr, size_t count, in verify_hdr() 516 count -= sizeof(*hdr) + sizeof(*ex_hdr); in verify_hdr() 518 if ((hdr->in_words + ex_hdr->provider_in_words) * 8 != count) in verify_hdr() 524 if (ex_hdr->cmd_hdr_reserved) in verify_hdr() 527 if (ex_hdr->response) { in verify_hdr() 528 if (!hdr->out_words && !ex_hdr->provider_out_words) in verify_hdr() 534 if (!access_ok(u64_to_user_ptr(ex_hdr->response), in verify_hdr() 535 (hdr->out_words + ex_hdr->provider_out_words) * 8)) in verify_hdr() 538 if (hdr->out_words || ex_hdr->provider_out_words) in verify_hdr() 576 struct ib_uverbs_ex_cmd_hdr ex_hdr; in ib_uverbs_write() local 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...] |
Completed in 4 milliseconds