Lines Matching refs:ishtp_hdr
641 struct ishtp_msg_hdr ishtp_hdr; in ipc_tx_callback() local
680 ishtp_hdr.host_addr = cl->host_client_id; in ipc_tx_callback()
681 ishtp_hdr.fw_addr = cl->fw_client_id; in ipc_tx_callback()
682 ishtp_hdr.reserved = 0; in ipc_tx_callback()
686 ishtp_hdr.length = rem; in ipc_tx_callback()
687 ishtp_hdr.msg_complete = 1; in ipc_tx_callback()
692 ishtp_write_message(dev, &ishtp_hdr, pmsg); in ipc_tx_callback()
702 ishtp_hdr.length = dev->mtu; in ipc_tx_callback()
703 ishtp_hdr.msg_complete = 0; in ipc_tx_callback()
704 ishtp_send_msg(dev, &ishtp_hdr, pmsg, ipc_tx_callback, cl); in ipc_tx_callback()
826 struct ishtp_msg_hdr *ishtp_hdr) in recv_ishtp_cl_msg() argument
836 if (ishtp_hdr->reserved) { in recv_ishtp_cl_msg()
841 if (ishtp_hdr->length > IPC_PAYLOAD_SIZE) { in recv_ishtp_cl_msg()
852 if (!cl || !(cl->host_client_id == ishtp_hdr->host_addr && in recv_ishtp_cl_msg()
853 cl->fw_client_id == ishtp_hdr->fw_addr) || in recv_ishtp_cl_msg()
874 if (rb->buffer.size < ishtp_hdr->length + rb->buf_idx) { in recv_ishtp_cl_msg()
878 rb->buffer.size, ishtp_hdr->length, in recv_ishtp_cl_msg()
887 dev->ops->ishtp_read(dev, buffer, ishtp_hdr->length); in recv_ishtp_cl_msg()
889 rb->buf_idx += ishtp_hdr->length; in recv_ishtp_cl_msg()
890 if (ishtp_hdr->msg_complete) { in recv_ishtp_cl_msg()
935 dev->ops->ishtp_read(dev, rd_msg_buf, ishtp_hdr->length); in recv_ishtp_cl_msg()