Lines Matching refs:hdr
99 union smc_proto_hdr hdr;
107 hdr.as_uint32 = readl(base + SMC_LAST_DWORD * SMC_BASIC_UNIT);
109 if (reset_vf && hdr.as_uint32 == SHMEM_VF_RESET_STATE)
113 if (hdr.msg_type != msg_type || hdr.msg_version > msg_version ||
114 hdr.direction != SMC_MSG_DIRECTION_RESPONSE) {
116 hdr.as_uint32, msg_type, msg_version);
121 if (hdr.status != 0) {
122 dev_err(sc->dev, "SMC operation failed: 0x%x\n", hdr.status);
140 union smc_proto_hdr *hdr;
227 hdr = (union smc_proto_hdr *)ptr;
228 hdr->msg_type = SMC_MSG_TYPE_ESTABLISH_HWC;
229 hdr->msg_version = SMC_MSG_TYPE_ESTABLISH_HWC_VERSION;
230 hdr->direction = SMC_MSG_DIRECTION_REQUEST;
231 hdr->reset_vf = reset_vf;
257 union smc_proto_hdr hdr = {};
268 hdr.msg_type = SMC_MSG_TYPE_DESTROY_HWC;
269 hdr.msg_version = SMC_MSG_TYPE_DESTROY_HWC_VERSION;
270 hdr.direction = SMC_MSG_DIRECTION_REQUEST;
271 hdr.reset_vf = reset_vf;
276 writel(hdr.as_uint32, sc->base + SMC_LAST_DWORD * SMC_BASIC_UNIT);