Lines Matching refs:mei_hdr
1549 static void mei_msg_hdr_init(struct mei_msg_hdr *mei_hdr, struct mei_cl_cb *cb) in mei_msg_hdr_init() argument
1551 mei_hdr->host_addr = mei_cl_host_addr(cb->cl); in mei_msg_hdr_init()
1552 mei_hdr->me_addr = mei_cl_me_id(cb->cl); in mei_msg_hdr_init()
1553 mei_hdr->length = 0; in mei_msg_hdr_init()
1554 mei_hdr->reserved = 0; in mei_msg_hdr_init()
1555 mei_hdr->msg_complete = 0; in mei_msg_hdr_init()
1556 mei_hdr->dma_ring = 0; in mei_msg_hdr_init()
1557 mei_hdr->internal = cb->internal; in mei_msg_hdr_init()
1575 struct mei_msg_hdr mei_hdr; in mei_cl_irq_write() local
1576 size_t hdr_len = sizeof(mei_hdr); in mei_cl_irq_write()
1610 mei_msg_hdr_init(&mei_hdr, cb); in mei_cl_irq_write()
1617 mei_hdr.length = len; in mei_cl_irq_write()
1618 mei_hdr.msg_complete = 1; in mei_cl_irq_write()
1620 mei_hdr.length = hbuf_len - hdr_len; in mei_cl_irq_write()
1628 rets = mei_write_message(dev, &mei_hdr, hdr_len, in mei_cl_irq_write()
1629 buf->data + cb->buf_idx, mei_hdr.length); in mei_cl_irq_write()
1635 cb->buf_idx += mei_hdr.length; in mei_cl_irq_write()
1644 if (mei_hdr.msg_complete) in mei_cl_irq_write()
1668 struct mei_msg_hdr mei_hdr; in mei_cl_write() local
1669 size_t hdr_len = sizeof(mei_hdr); in mei_cl_write()
1705 mei_msg_hdr_init(&mei_hdr, cb); in mei_cl_write()
1728 mei_hdr.length = len; in mei_cl_write()
1729 mei_hdr.msg_complete = 1; in mei_cl_write()
1731 mei_hdr.length = hbuf_len - hdr_len; in mei_cl_write()
1734 rets = mei_write_message(dev, &mei_hdr, hdr_len, in mei_cl_write()
1735 buf->data, mei_hdr.length); in mei_cl_write()
1744 cb->buf_idx = mei_hdr.length; in mei_cl_write()
1747 if (mei_hdr.msg_complete) in mei_cl_write()