Searched refs:mei_hdr (Results 1 - 5 of 5) sorted by relevance
/linux-4.4.14/drivers/misc/mei/ |
H A D | interrupt.c | 62 * @mei_hdr: header of mei client message 67 struct mei_msg_hdr *mei_hdr) mei_cl_hbm_equal() 69 return mei_cl_host_addr(cl) == mei_hdr->host_addr && mei_cl_hbm_equal() 70 mei_cl_me_id(cl) == mei_hdr->me_addr; mei_cl_hbm_equal() 94 * @mei_hdr: header of mei client message 100 struct mei_msg_hdr *mei_hdr, mei_cl_irq_read_msg() 126 if (cb->buf.size < mei_hdr->length + cb->buf_idx) { mei_cl_irq_read_msg() 128 cb->buf.size, mei_hdr->length, cb->buf_idx); mei_cl_irq_read_msg() 129 buffer = krealloc(cb->buf.data, mei_hdr->length + cb->buf_idx, mei_cl_irq_read_msg() 138 cb->buf.size = mei_hdr->length + cb->buf_idx; mei_cl_irq_read_msg() 142 mei_read_slots(dev, buffer, mei_hdr->length); mei_cl_irq_read_msg() 144 cb->buf_idx += mei_hdr->length; mei_cl_irq_read_msg() 146 if (mei_hdr->msg_complete) { mei_cl_irq_read_msg() 157 mei_irq_discard_msg(dev, mei_hdr); mei_cl_irq_read_msg() 241 struct mei_msg_hdr *mei_hdr; mei_irq_read_handler() local 250 mei_hdr = (struct mei_msg_hdr *) &dev->rd_msg_hdr; mei_irq_read_handler() 251 dev_dbg(dev->dev, MEI_HDR_FMT, MEI_HDR_PRM(mei_hdr)); mei_irq_read_handler() 253 if (mei_hdr->reserved || !dev->rd_msg_hdr) { mei_irq_read_handler() 260 if (mei_slots2data(*slots) < mei_hdr->length) { mei_irq_read_handler() 269 if (mei_hdr->host_addr == 0 && mei_hdr->me_addr == 0) { mei_irq_read_handler() 270 ret = mei_hbm_dispatch(dev, mei_hdr); mei_irq_read_handler() 281 if (mei_cl_hbm_equal(cl, mei_hdr)) { mei_irq_read_handler() 296 ret = mei_amthif_irq_read_msg(cl, mei_hdr, cmpl_list); mei_irq_read_handler() 298 ret = mei_cl_irq_read_msg(cl, mei_hdr, cmpl_list); mei_irq_read_handler() 66 mei_cl_hbm_equal(struct mei_cl *cl, struct mei_msg_hdr *mei_hdr) mei_cl_hbm_equal() argument 99 mei_cl_irq_read_msg(struct mei_cl *cl, struct mei_msg_hdr *mei_hdr, struct mei_cl_cb *complete_list) mei_cl_irq_read_msg() argument
|
H A D | hbm.c | 173 struct mei_msg_hdr *mei_hdr = &dev->wr_msg.hdr; mei_hbm_cl_write() local 175 mei_hbm_hdr(mei_hdr, len); mei_hbm_cl_write() 178 return mei_write_message(dev, mei_hdr, dev->wr_msg.data); mei_hbm_cl_write() 255 struct mei_msg_hdr *mei_hdr = &dev->wr_msg.hdr; mei_hbm_start_req() local 262 mei_hbm_hdr(mei_hdr, len); mei_hbm_start_req() 272 ret = mei_write_message(dev, mei_hdr, dev->wr_msg.data); mei_hbm_start_req() 293 struct mei_msg_hdr *mei_hdr = &dev->wr_msg.hdr; mei_hbm_enum_clients_req() local 299 mei_hbm_hdr(mei_hdr, len); mei_hbm_enum_clients_req() 306 ret = mei_write_message(dev, mei_hdr, dev->wr_msg.data); mei_hbm_enum_clients_req() 360 struct mei_msg_hdr *mei_hdr = &dev->wr_msg.hdr; mei_hbm_add_cl_resp() local 369 mei_hbm_hdr(mei_hdr, len); mei_hbm_add_cl_resp() 376 ret = mei_write_message(dev, mei_hdr, dev->wr_msg.data); mei_hbm_add_cl_resp() 420 struct mei_msg_hdr *mei_hdr = &dev->wr_msg.hdr; mei_hbm_cl_notify_req() local 425 mei_hbm_hdr(mei_hdr, len); mei_hbm_cl_notify_req() 431 ret = mei_write_message(dev, mei_hdr, dev->wr_msg.data); mei_hbm_cl_notify_req() 534 struct mei_msg_hdr *mei_hdr = &dev->wr_msg.hdr; mei_hbm_prop_req() local 551 mei_hbm_hdr(mei_hdr, len); mei_hbm_prop_req() 559 ret = mei_write_message(dev, mei_hdr, dev->wr_msg.data); mei_hbm_prop_req() 583 struct mei_msg_hdr *mei_hdr = &dev->wr_msg.hdr; mei_hbm_pg() local 591 mei_hbm_hdr(mei_hdr, len); mei_hbm_pg() 597 ret = mei_write_message(dev, mei_hdr, dev->wr_msg.data); mei_hbm_pg() 613 struct mei_msg_hdr *mei_hdr = &dev->wr_msg.hdr; mei_hbm_stop_req() local 618 mei_hbm_hdr(mei_hdr, len); mei_hbm_stop_req() 624 return mei_write_message(dev, mei_hdr, dev->wr_msg.data); mei_hbm_stop_req()
|
H A D | client.c | 1511 struct mei_msg_hdr mei_hdr; mei_cl_irq_write() local 1540 mei_hdr.host_addr = mei_cl_host_addr(cl); mei_cl_irq_write() 1541 mei_hdr.me_addr = mei_cl_me_id(cl); mei_cl_irq_write() 1542 mei_hdr.reserved = 0; mei_cl_irq_write() 1543 mei_hdr.internal = cb->internal; mei_cl_irq_write() 1546 mei_hdr.length = len; mei_cl_irq_write() 1547 mei_hdr.msg_complete = 1; mei_cl_irq_write() 1552 mei_hdr.length = len; mei_cl_irq_write() 1553 mei_hdr.msg_complete = 0; mei_cl_irq_write() 1562 rets = mei_write_message(dev, &mei_hdr, buf->data + cb->buf_idx); mei_cl_irq_write() 1571 cb->buf_idx += mei_hdr.length; mei_cl_irq_write() 1572 cb->completed = mei_hdr.msg_complete == 1; mei_cl_irq_write() 1579 if (mei_hdr.msg_complete) mei_cl_irq_write() 1599 struct mei_msg_hdr mei_hdr; mei_cl_write() local 1627 mei_hdr.host_addr = mei_cl_host_addr(cl); mei_cl_write() 1628 mei_hdr.me_addr = mei_cl_me_id(cl); mei_cl_write() 1629 mei_hdr.reserved = 0; mei_cl_write() 1630 mei_hdr.msg_complete = 0; mei_cl_write() 1631 mei_hdr.internal = cb->internal; mei_cl_write() 1650 mei_hdr.length = mei_hbuf_max_len(dev); mei_cl_write() 1651 mei_hdr.msg_complete = 0; mei_cl_write() 1653 mei_hdr.length = size; mei_cl_write() 1654 mei_hdr.msg_complete = 1; mei_cl_write() 1657 rets = mei_write_message(dev, &mei_hdr, buf->data); mei_cl_write() 1666 cb->buf_idx = mei_hdr.length; mei_cl_write() 1667 cb->completed = mei_hdr.msg_complete == 1; mei_cl_write() 1670 if (mei_hdr.msg_complete) mei_cl_write()
|
H A D | amthif.c | 406 * @mei_hdr: header of amthif message 412 struct mei_msg_hdr *mei_hdr, mei_amthif_irq_read_msg() 421 mei_irq_discard_msg(dev, mei_hdr); mei_amthif_irq_read_msg() 425 ret = mei_cl_irq_read_msg(cl, mei_hdr, cmpl_list); mei_amthif_irq_read_msg() 429 if (!mei_hdr->msg_complete) mei_amthif_irq_read_msg() 411 mei_amthif_irq_read_msg(struct mei_cl *cl, struct mei_msg_hdr *mei_hdr, struct mei_cl_cb *cmpl_list) mei_amthif_irq_read_msg() argument
|
H A D | mei_dev.h | 648 struct mei_msg_hdr *mei_hdr,
|
Completed in 145 milliseconds