Lines Matching refs:hdr
77 nvkm_falcon_msgq_read(struct nvkm_falcon_msgq *msgq, struct nvfw_falcon_msg *hdr)
86 ret = nvkm_falcon_msgq_pop(msgq, hdr, HDR_SIZE);
92 if (hdr->size > MSG_BUF_SIZE) {
93 FLCNQ_ERR(msgq, "message too big, %d bytes", hdr->size);
98 if (hdr->size > HDR_SIZE) {
99 u32 read_size = hdr->size - HDR_SIZE;
101 ret = nvkm_falcon_msgq_pop(msgq, (hdr + 1), read_size);
115 nvkm_falcon_msgq_exec(struct nvkm_falcon_msgq *msgq, struct nvfw_falcon_msg *hdr)
119 seq = &msgq->qmgr->seq.id[hdr->seq_id];
127 seq->result = seq->callback(seq->priv, hdr);
147 struct nvfw_falcon_msg *hdr = (void *)msg_buffer;
149 while (nvkm_falcon_msgq_read(msgq, hdr) > 0)
150 nvkm_falcon_msgq_exec(msgq, hdr);
158 struct nvfw_falcon_msg *hdr = data;
167 if (ret == 0 && hdr->size != size) {
169 hdr->size, size);