Lines Matching refs:cl_msg
527 struct ishtp_cl_tx_ring *cl_msg; in ishtp_cl_send() local
567 cl_msg = list_first_entry(&cl->tx_free_list.list, in ishtp_cl_send()
569 if (!cl_msg->send_buf.data) { in ishtp_cl_send()
579 list_del_init(&cl_msg->list); in ishtp_cl_send()
581 memcpy(cl_msg->send_buf.data, buf, length); in ishtp_cl_send()
582 cl_msg->send_buf.size = length; in ishtp_cl_send()
585 list_add_tail(&cl_msg->list, &cl->tx_list.list); in ishtp_cl_send()
631 struct ishtp_cl_tx_ring *cl_msg; in ipc_tx_callback() local
669 cl_msg = list_entry(cl->tx_list.list.next, struct ishtp_cl_tx_ring, in ipc_tx_callback()
671 rem = cl_msg->send_buf.size - cl->tx_offs; in ipc_tx_callback()
676 pmsg = cl_msg->send_buf.data + cl->tx_offs; in ipc_tx_callback()
682 list_del_init(&cl_msg->list); /* Must be before write */ in ipc_tx_callback()
687 list_add_tail(&cl_msg->list, &cl->tx_free_list.list); in ipc_tx_callback()
733 struct ishtp_cl_tx_ring *cl_msg; in ishtp_cl_send_msg_dma() local
746 cl_msg = list_entry(cl->tx_list.list.next, struct ishtp_cl_tx_ring, in ishtp_cl_send_msg_dma()
749 msg_addr = ishtp_cl_get_dma_send_buf(dev, cl_msg->send_buf.size); in ishtp_cl_send_msg_dma()
757 list_del_init(&cl_msg->list); /* Must be before write */ in ishtp_cl_send_msg_dma()
766 memcpy(msg_addr, cl_msg->send_buf.data, cl_msg->send_buf.size); in ishtp_cl_send_msg_dma()
776 dma_xfer.msg_length = cl_msg->send_buf.size; in ishtp_cl_send_msg_dma()
780 list_add_tail(&cl_msg->list, &cl->tx_free_list.list); in ishtp_cl_send_msg_dma()