Lines Matching defs:hdr
623 struct ib_uverbs_cmd_hdr hdr;
625 if (count < sizeof hdr)
628 if (copy_from_user(&hdr, buf, sizeof hdr))
631 if (hdr.in_words * 4 != count)
634 if (hdr.command >= ARRAY_SIZE(uverbs_cmd_table) ||
635 !uverbs_cmd_table[hdr.command] ||
636 !(file->device->ib_dev->uverbs_cmd_mask & (1ull << hdr.command)))
640 hdr.command != IB_USER_VERBS_CMD_GET_CONTEXT)
643 return uverbs_cmd_table[hdr.command](file, buf + sizeof hdr,
644 hdr.in_words * 4, hdr.out_words * 4);