Lines Matching refs:mei_hdr

64 			struct mei_msg_hdr *mei_hdr)  in mei_cl_hbm_equal()  argument
66 return mei_cl_host_addr(cl) == mei_hdr->host_addr && in mei_cl_hbm_equal()
67 mei_cl_me_id(cl) == mei_hdr->me_addr; in mei_cl_hbm_equal()
97 struct mei_msg_hdr *mei_hdr, in mei_cl_irq_read_msg() argument
122 buf_sz = mei_hdr->length + cb->buf_idx; in mei_cl_irq_read_msg()
126 mei_hdr->length, cb->buf_idx); in mei_cl_irq_read_msg()
133 cb->buf.size, mei_hdr->length, cb->buf_idx); in mei_cl_irq_read_msg()
138 mei_read_slots(dev, cb->buf.data + cb->buf_idx, mei_hdr->length); in mei_cl_irq_read_msg()
140 cb->buf_idx += mei_hdr->length; in mei_cl_irq_read_msg()
142 if (mei_hdr->msg_complete) { in mei_cl_irq_read_msg()
155 mei_irq_discard_msg(dev, mei_hdr); in mei_cl_irq_read_msg()
235 static inline bool hdr_is_hbm(struct mei_msg_hdr *mei_hdr) in hdr_is_hbm() argument
237 return mei_hdr->host_addr == 0 && mei_hdr->me_addr == 0; in hdr_is_hbm()
240 static inline bool hdr_is_fixed(struct mei_msg_hdr *mei_hdr) in hdr_is_fixed() argument
242 return mei_hdr->host_addr == 0 && mei_hdr->me_addr != 0; in hdr_is_fixed()
247 struct mei_msg_hdr *mei_hdr; in hdr_is_valid() local
249 mei_hdr = (struct mei_msg_hdr *)&msg_hdr; in hdr_is_valid()
250 if (!msg_hdr || mei_hdr->reserved) in hdr_is_valid()
269 struct mei_msg_hdr *mei_hdr; in mei_irq_read_handler() local
286 mei_hdr = (struct mei_msg_hdr *)&dev->rd_msg_hdr; in mei_irq_read_handler()
287 dev_dbg(dev->dev, MEI_HDR_FMT, MEI_HDR_PRM(mei_hdr)); in mei_irq_read_handler()
289 if (mei_slots2data(*slots) < mei_hdr->length) { in mei_irq_read_handler()
298 if (hdr_is_hbm(mei_hdr)) { in mei_irq_read_handler()
299 ret = mei_hbm_dispatch(dev, mei_hdr); in mei_irq_read_handler()
310 if (mei_cl_hbm_equal(cl, mei_hdr)) { in mei_irq_read_handler()
323 if (hdr_is_fixed(mei_hdr) || in mei_irq_read_handler()
325 mei_irq_discard_msg(dev, mei_hdr); in mei_irq_read_handler()
335 ret = mei_cl_irq_read_msg(cl, mei_hdr, cmpl_list); in mei_irq_read_handler()