Lines Matching refs:cl_msg

532 	struct ishtp_cl_tx_ring	*cl_msg;  in ishtp_cl_send()  local
572 cl_msg = list_first_entry(&cl->tx_free_list.list, in ishtp_cl_send()
574 if (!cl_msg->send_buf.data) { in ishtp_cl_send()
584 list_del_init(&cl_msg->list); in ishtp_cl_send()
588 memcpy(cl_msg->send_buf.data, buf, length); in ishtp_cl_send()
589 cl_msg->send_buf.size = length; in ishtp_cl_send()
592 list_add_tail(&cl_msg->list, &cl->tx_list.list); in ishtp_cl_send()
639 struct ishtp_cl_tx_ring *cl_msg; in ipc_tx_send() local
677 cl_msg = list_entry(cl->tx_list.list.next, struct ishtp_cl_tx_ring, in ipc_tx_send()
679 rem = cl_msg->send_buf.size - cl->tx_offs; in ipc_tx_send()
685 pmsg = cl_msg->send_buf.data + cl->tx_offs; in ipc_tx_send()
704 rem = cl_msg->send_buf.size - cl->tx_offs; in ipc_tx_send()
708 list_del_init(&cl_msg->list); in ipc_tx_send()
712 list_add_tail(&cl_msg->list, &cl->tx_free_list.list); in ipc_tx_send()
751 struct ishtp_cl_tx_ring *cl_msg; in ishtp_cl_send_msg_dma() local
764 cl_msg = list_entry(cl->tx_list.list.next, struct ishtp_cl_tx_ring, in ishtp_cl_send_msg_dma()
767 msg_addr = ishtp_cl_get_dma_send_buf(dev, cl_msg->send_buf.size); in ishtp_cl_send_msg_dma()
775 list_del_init(&cl_msg->list); /* Must be before write */ in ishtp_cl_send_msg_dma()
784 memcpy(msg_addr, cl_msg->send_buf.data, cl_msg->send_buf.size); in ishtp_cl_send_msg_dma()
792 clflush_cache_range(msg_addr, cl_msg->send_buf.size); in ishtp_cl_send_msg_dma()
802 dma_xfer.msg_length = cl_msg->send_buf.size; in ishtp_cl_send_msg_dma()
806 list_add_tail(&cl_msg->list, &cl->tx_free_list.list); in ishtp_cl_send_msg_dma()