req_hdr
struct spdm_dobj_hdr_req *req_hdr;
req_hdr = sla_to_dobj_req_hdr(dev_data->reqbuf);
switch (req_hdr->data_type) {
resp_hdr->data_type = req_hdr->data_type;
dev_data->spdm.req_len = req_hdr->hdr.length -
struct mbox_hdr *req_hdr;
req_hdr = (struct mbox_hdr *)(mdev->mbase + mbox->rx_start);
offset = mbox->rx_start + ALIGN(sizeof(*req_hdr), MBOX_MSG_ALIGN);
for (i = 0; i < req_hdr->num_msgs; i++) {
dev_err(devc, "write cmd %u failed:%d\n", req_hdr.command, rv);
dev_err(devc, "wait response of cmd %u timeout\n", req_hdr.command);
dev_err(devc, "not a response for %u\n", req_hdr.command);
if (req_hdr.command != resp_hdr.command) {
dev_err(devc, "unexpected cmd response %u:%u\n", req_hdr.command,
dev_err(devc, "cmd %u failed %u\n", req_hdr.command, resp_hdr.status);
union loader_msg_header req_hdr;
req_hdr.val32 = le32_to_cpup(req);
u64 req_hdr, cap0, cap1;
erdma_cmdq_build_reqhdr(&req_hdr, CMDQ_SUBMOD_RDMA,
err = erdma_post_cmd_wait(&dev->cmdq, &req_hdr, sizeof(req_hdr), &cap0,
erdma_cmdq_build_reqhdr(&req_hdr, CMDQ_SUBMOD_COMMON,
err = erdma_post_cmd_wait(&dev->cmdq, &req_hdr, sizeof(req_hdr), &cap0,
struct iser_cm_hdr req_hdr;
memset(&req_hdr, 0, sizeof(req_hdr));
req_hdr.flags = ISER_ZBVA_NOT_SUP;
req_hdr.flags |= ISER_SEND_W_INV_NOT_SUP;
conn_param.private_data = (void *)&req_hdr;
static void be_wrb_cmd_hdr_prepare(struct be_cmd_req_hdr *req_hdr,
req_hdr->opcode = opcode;
req_hdr->subsystem = subsystem;
req_hdr->request_length = cpu_to_le32(cmd_len - sizeof(*req_hdr));
req_hdr->version = 0;
fill_wrb_tags(wrb, (ulong)req_hdr);
cbd->req_hdr.addr = cpu_to_le64(dma_align);
cbd->req_hdr.len = cpu_to_le32(len);
cbd->req_hdr.cmd = cmd;
cbd->req_hdr.access_method = FIELD_PREP(NTMP_ACCESS_METHOD,
cbd->req_hdr.table_id = table_id;
cbd->req_hdr.ver_cci_rr = FIELD_PREP(NTMP_HDR_VERSION,
cbd->req_hdr.npf = cpu_to_le32(NTMP_NPF);
} req_hdr; /* NTMP Request Message Header Format */
struct mbox_hdr *req_hdr;
req_hdr = mdev->mbase + mbox->rx_start;
offset = mbox->rx_start + ALIGN(sizeof(*req_hdr), MBOX_MSG_ALIGN);
if (req_hdr->sig && !(is_rvu_otx2(rvu) || is_cn20k(rvu->pdev))) {
req_hdr->opt_msg = mw->mbox_wrk[devid].num_msgs;
struct mbox_hdr *req_hdr;
req_hdr = (struct mbox_hdr *)(dst_mdev->mbase +
req_hdr->num_msgs = num_msgs;
req_hdr = (struct mbox_hdr *)(src_mdev->mbase +
req_hdr->num_msgs = num_msgs;
req_hdr = (struct mbox_hdr *)(src_mbox->dev[0].mbase +
req_hdr->num_msgs = num_msgs;
__le64 req_hdr;
req.req_hdr = cpu_to_le64(word);
req.req_hdr = cpu_to_le64(word);
req.req_hdr = cpu_to_le64(word[0]);
req.req_hdr = cpu_to_le64(word);
req.req_hdr = cpu_to_le64(word);
req.req_hdr = cpu_to_le64(word);
req.req_hdr = cpu_to_le64(word);
req.req_hdr = cpu_to_le64(word);
req.req_hdr = cpu_to_le64(word);
__le64 req_hdr;
req.req_hdr = cpu_to_le64(word);
req.req_hdr = cpu_to_le64(word);
req.req_hdr = cpu_to_le64(word);
req.req_hdr = cpu_to_le64(QLCNIC_H2C_OPCODE_CONFIG_LOOPBACK |
req.req_hdr = cpu_to_le64(QLCNIC_CONFIG_INTR_COALESCE |
req.req_hdr = cpu_to_le64(word);
req.req_hdr = cpu_to_le64(word);
req.req_hdr = cpu_to_le64(word);
req.req_hdr = cpu_to_le64(word);
req.req_hdr = cpu_to_le64(word);
req.req_hdr = cpu_to_le64(word);
req->req_hdr = cpu_to_le64(word);
struct qlcnic_bc_hdr *req_hdr;
if (qlcnic_sriov_prepare_bc_hdr(trans, &cmd, trans->req_hdr->seq_id,
(u32 *)(trans->req_hdr + curr_frag),
(u32 *)(trans->req_hdr + trans->curr_req_frag),
if (trans->curr_req_frag == trans->req_hdr->num_frags) {
if ((trans->req_hdr->cmd_op == QLCNIC_BC_CMD_CHANNEL_INIT) &&
if (qlcnic_sriov_alloc_bc_msg(&trans->req_hdr, num_frags))
hdr = trans->req_hdr;
cmd->op_type = trans->req_hdr->op_type;
kfree(trans->req_hdr);
if (trans->curr_req_frag < trans->req_hdr->num_frags)
hdr = (u32 *)(trans->req_hdr + trans->curr_req_frag);
cmd_op = trans->req_hdr->cmd_op;
if (trans->req_hdr->op_type == QLC_BC_CMD) {
struct qlcnic_bc_hdr *hdr = trans->req_hdr;
if (trans->req_hdr->cmd_op == QLCNIC_BC_CMD_CHANNEL_INIT) {
if (trans->req_hdr->cmd_op == QLCNIC_BC_CMD_CHANNEL_INIT)
} req_hdr = {
int i, ret, len = sizeof(req_hdr) + size;
memcpy(req, &req_hdr, sizeof(req_hdr));
data = (struct req_data *)(req + sizeof(req_hdr));
} __packed req_hdr = {
req_hdr.content_format = 1;
req_hdr.len = cpu_to_le16(eep_len);
skb = mt76_mcu_msg_alloc(&dev->mt76, NULL, sizeof(req_hdr) + eep_len);
skb_put_data(skb, &req_hdr, sizeof(req_hdr));
} req_hdr = {
&req_hdr, sizeof(req_hdr), false);
} __packed req_hdr = {
skb = mt76_mcu_msg_alloc(&dev->mt76, NULL, sizeof(req_hdr) + len);
skb_put_data(skb, &req_hdr, sizeof(req_hdr));
} req_hdr = {
sizeof(req_hdr) + len * sizeof(__be32));
skb_put_data(skb, &req_hdr, sizeof(req_hdr));
} req_hdr = {
req_hdr.arpns.ips_num = idx;
req_hdr.arpns.len = cpu_to_le16(sizeof(struct mt76_connac_arpns_tlv)
skb = __mt76_mcu_msg_alloc(&dev->mt76, &req_hdr,
sizeof(req_hdr) + idx * sizeof(struct in6_addr),
sizeof(req_hdr), GFP_ATOMIC);
} req_hdr = {
&req_hdr, sizeof(req_hdr), false);
} req_hdr = {
.len = cpu_to_le16(sizeof(req_hdr) - 4),
req_hdr.ns_addrs[idx] = ifa->addr;
req_hdr.arpns.ips_num = idx;
skb = __mt76_mcu_msg_alloc(&dev->mt76, NULL, sizeof(req_hdr),
skb_put_data(skb, &req_hdr, sizeof(req_hdr));
be_cmd_hdr_prepare(&ioctl->h.req_hdr, CMD_SUBSYSTEM_COMMON,
be_cmd_hdr_prepare(&ioctl->h.req_hdr, CMD_SUBSYSTEM_COMMON,
be_cmd_hdr_prepare(&ioctl->h.req_hdr, CMD_SUBSYSTEM_COMMON,
void be_cmd_hdr_prepare(struct be_cmd_req_hdr *req_hdr,
req_hdr->opcode = opcode;
req_hdr->subsystem = subsystem;
req_hdr->request_length = cpu_to_le32(cmd_len - sizeof(*req_hdr));
req_hdr->timeout = BEISCSI_FW_MBX_TIMEOUT;
struct be_cmd_req_hdr req_hdr;
void be_cmd_hdr_prepare(struct be_cmd_req_hdr *req_hdr,
struct be_cmd_req_hdr req_hdr;
struct be_cmd_req_hdr req_hdr;
struct fc_frame_header *req_hdr = seq->header->dma.virt;
memcpy(hdr.fh_d_id, req_hdr->fh_s_id, sizeof(hdr.fh_d_id));
memcpy(hdr.fh_s_id, req_hdr->fh_d_id, sizeof(hdr.fh_s_id));
hdr.fh_ox_id = req_hdr->fh_ox_id;
hdr.fh_rx_id = req_hdr->fh_rx_id;
const struct cfg_read_pkg *req_hdr = req->request;
if (req_hdr->addr.seq != res_hdr->addr.seq)
const struct icm_pkg_header *req_hdr = req->request;
if (res_hdr->code != req_hdr->code)
req_hdr->xd_hdr.route_hi)
if ((res_hdr->xd_hdr.route_lo) != req_hdr->xd_hdr.route_lo)
if (!uuid_equal(&res_hdr->uuid, &req_hdr->uuid))
const struct tb_xdp_header *req_hdr = req->request;
struct smb2_hdr *req_hdr = ksmbd_req_buf_next(work);
unsigned int cmd = le16_to_cpu(req_hdr->Command);
tree_id = le32_to_cpu(req_hdr->Id.SyncId.TreeId);
struct smb2_hdr *req_hdr = ksmbd_req_buf_next(work);
hdr->CreditCharge = req_hdr->CreditCharge;
le16_to_cpu(req_hdr->CreditCharge), 1);
le16_to_cpu(req_hdr->CreditRequest), 1);
if (!req_hdr->NextCommand) {
struct smb2_hdr *req_hdr = ksmbd_req_buf_next(work);
unsigned int cmd = le16_to_cpu(req_hdr->Command);
sess_id = le64_to_cpu(req_hdr->SessionId);