Lines Matching refs:mei_hdr

53 			struct mei_msg_hdr *mei_hdr)  in mei_cl_hbm_equal()  argument
55 return mei_cl_host_addr(cl) == mei_hdr->host_addr && in mei_cl_hbm_equal()
56 mei_cl_me_id(cl) == mei_hdr->me_addr; in mei_cl_hbm_equal()
94 struct mei_msg_hdr *mei_hdr, in mei_cl_irq_read_msg() argument
108 length = mei_hdr->length; in mei_cl_irq_read_msg()
110 if (mei_hdr->extended) { in mei_cl_irq_read_msg()
127 if (mei_hdr->extended) { in mei_cl_irq_read_msg()
199 if (mei_hdr->dma_ring) in mei_cl_irq_read_msg()
200 length = mei_hdr->extension[mei_data2slots(ext_len)]; in mei_cl_irq_read_msg()
218 if (mei_hdr->dma_ring) { in mei_cl_irq_read_msg()
228 if (mei_hdr->msg_complete) { in mei_cl_irq_read_msg()
241 mei_irq_discard_msg(dev, mei_hdr, length); in mei_cl_irq_read_msg()
321 static inline bool hdr_is_hbm(struct mei_msg_hdr *mei_hdr) in hdr_is_hbm() argument
323 return mei_hdr->host_addr == 0 && mei_hdr->me_addr == 0; in hdr_is_hbm()
326 static inline bool hdr_is_fixed(struct mei_msg_hdr *mei_hdr) in hdr_is_fixed() argument
328 return mei_hdr->host_addr == 0 && mei_hdr->me_addr != 0; in hdr_is_fixed()
333 struct mei_msg_hdr *mei_hdr; in hdr_is_valid() local
336 mei_hdr = (struct mei_msg_hdr *)&msg_hdr; in hdr_is_valid()
337 if (!msg_hdr || mei_hdr->reserved) in hdr_is_valid()
340 if (mei_hdr->dma_ring) in hdr_is_valid()
342 if (mei_hdr->extended) in hdr_is_valid()
344 if (mei_hdr->length < expected_len) in hdr_is_valid()
363 struct mei_msg_hdr *mei_hdr; in mei_irq_read_handler() local
386 mei_hdr = (struct mei_msg_hdr *)dev->rd_msg_hdr; in mei_irq_read_handler()
387 dev_dbg(dev->dev, MEI_HDR_FMT, MEI_HDR_PRM(mei_hdr)); in mei_irq_read_handler()
389 if (mei_slots2data(*slots) < mei_hdr->length) { in mei_irq_read_handler()
398 hdr_size_left = mei_hdr->length; in mei_irq_read_handler()
400 if (mei_hdr->extended) { in mei_irq_read_handler()
417 mei_hdr->length); in mei_irq_read_handler()
432 if (mei_hdr->dma_ring) { in mei_irq_read_handler()
435 mei_hdr->length); in mei_irq_read_handler()
442 mei_hdr->length -= sizeof(dev->rd_msg_hdr[ext_hdr_end]); in mei_irq_read_handler()
446 if (hdr_is_hbm(mei_hdr)) { in mei_irq_read_handler()
447 ret = mei_hbm_dispatch(dev, mei_hdr); in mei_irq_read_handler()
458 if (mei_cl_hbm_equal(cl, mei_hdr)) { in mei_irq_read_handler()
460 ret = mei_cl_irq_read_msg(cl, mei_hdr, meta_hdr, cmpl_list); in mei_irq_read_handler()
471 if (hdr_is_fixed(mei_hdr) || in mei_irq_read_handler()
473 mei_irq_discard_msg(dev, mei_hdr, mei_hdr->length); in mei_irq_read_handler()