Lines Matching refs:mei_hdr
1745 struct mei_msg_hdr *mei_hdr; in mei_msg_hdr_init() local
1756 hdr_len = sizeof(*mei_hdr); in mei_msg_hdr_init()
1766 mei_hdr = kzalloc(hdr_len, GFP_KERNEL); in mei_msg_hdr_init()
1767 if (!mei_hdr) in mei_msg_hdr_init()
1770 mei_hdr->host_addr = mei_cl_host_addr(cb->cl); in mei_msg_hdr_init()
1771 mei_hdr->me_addr = mei_cl_me_id(cb->cl); in mei_msg_hdr_init()
1772 mei_hdr->internal = cb->internal; in mei_msg_hdr_init()
1773 mei_hdr->extended = is_ext; in mei_msg_hdr_init()
1778 meta = (struct mei_ext_meta_hdr *)mei_hdr->extension; in mei_msg_hdr_init()
1784 mei_hdr->length = hdr_len - sizeof(*mei_hdr); in mei_msg_hdr_init()
1785 return mei_hdr; in mei_msg_hdr_init()
1803 struct mei_msg_hdr *mei_hdr = NULL; in mei_cl_irq_write() local
1845 mei_hdr = mei_msg_hdr_init(cb); in mei_cl_irq_write()
1846 if (IS_ERR(mei_hdr)) { in mei_cl_irq_write()
1847 rets = PTR_ERR(mei_hdr); in mei_cl_irq_write()
1848 mei_hdr = NULL; in mei_cl_irq_write()
1853 mei_hdr->extended, cb->vtag); in mei_cl_irq_write()
1855 hdr_len = sizeof(*mei_hdr) + mei_hdr->length; in mei_cl_irq_write()
1863 mei_hdr->msg_complete = 1; in mei_cl_irq_write()
1865 mei_hdr->dma_ring = 1; in mei_cl_irq_write()
1869 mei_hdr->msg_complete = 1; in mei_cl_irq_write()
1878 kfree(mei_hdr); in mei_cl_irq_write()
1881 mei_hdr->length += data_len; in mei_cl_irq_write()
1883 if (mei_hdr->dma_ring) in mei_cl_irq_write()
1885 rets = mei_write_message(dev, mei_hdr, hdr_len, data, data_len); in mei_cl_irq_write()
1901 if (mei_hdr->msg_complete) in mei_cl_irq_write()
1904 kfree(mei_hdr); in mei_cl_irq_write()
1908 kfree(mei_hdr); in mei_cl_irq_write()
1927 struct mei_msg_hdr *mei_hdr = NULL; in mei_cl_write() local
1970 mei_hdr = mei_msg_hdr_init(cb); in mei_cl_write()
1971 if (IS_ERR(mei_hdr)) { in mei_cl_write()
1972 rets = -PTR_ERR(mei_hdr); in mei_cl_write()
1973 mei_hdr = NULL; in mei_cl_write()
1978 mei_hdr->extended, cb->vtag); in mei_cl_write()
1980 hdr_len = sizeof(*mei_hdr) + mei_hdr->length; in mei_cl_write()
2006 mei_hdr->msg_complete = 1; in mei_cl_write()
2008 mei_hdr->dma_ring = 1; in mei_cl_write()
2012 mei_hdr->msg_complete = 1; in mei_cl_write()
2022 mei_hdr->length += data_len; in mei_cl_write()
2024 if (mei_hdr->dma_ring) in mei_cl_write()
2026 rets = mei_write_message(dev, mei_hdr, hdr_len, data, data_len); in mei_cl_write()
2041 if (mei_hdr->msg_complete) in mei_cl_write()
2074 kfree(mei_hdr); in mei_cl_write()