Lines Matching refs:ishtp_hdr
634 struct ishtp_msg_hdr ishtp_hdr; in ipc_tx_callback() local
673 ishtp_hdr.host_addr = cl->host_client_id; in ipc_tx_callback()
674 ishtp_hdr.fw_addr = cl->fw_client_id; in ipc_tx_callback()
675 ishtp_hdr.reserved = 0; in ipc_tx_callback()
679 ishtp_hdr.length = rem; in ipc_tx_callback()
680 ishtp_hdr.msg_complete = 1; in ipc_tx_callback()
685 ishtp_write_message(dev, &ishtp_hdr, pmsg); in ipc_tx_callback()
694 ishtp_hdr.length = dev->mtu; in ipc_tx_callback()
695 ishtp_hdr.msg_complete = 0; in ipc_tx_callback()
696 ishtp_send_msg(dev, &ishtp_hdr, pmsg, ipc_tx_callback, cl); in ipc_tx_callback()
809 struct ishtp_msg_hdr *ishtp_hdr) in recv_ishtp_cl_msg() argument
819 if (ishtp_hdr->reserved) { in recv_ishtp_cl_msg()
824 if (ishtp_hdr->length > IPC_PAYLOAD_SIZE) { in recv_ishtp_cl_msg()
835 if (!cl || !(cl->host_client_id == ishtp_hdr->host_addr && in recv_ishtp_cl_msg()
836 cl->fw_client_id == ishtp_hdr->fw_addr) || in recv_ishtp_cl_msg()
857 if (rb->buffer.size < ishtp_hdr->length + rb->buf_idx) { in recv_ishtp_cl_msg()
861 rb->buffer.size, ishtp_hdr->length, in recv_ishtp_cl_msg()
870 dev->ops->ishtp_read(dev, buffer, ishtp_hdr->length); in recv_ishtp_cl_msg()
872 rb->buf_idx += ishtp_hdr->length; in recv_ishtp_cl_msg()
873 if (ishtp_hdr->msg_complete) { in recv_ishtp_cl_msg()
918 dev->ops->ishtp_read(dev, rd_msg_buf, ishtp_hdr->length); in recv_ishtp_cl_msg()