Lines Matching refs:c2h
749 const struct nvme_tcp_c2h_data_hdr *c2h; in nvmf_tcp_handle_c2h_data() local
753 c2h = (const void *)pdu->hdr; in nvmf_tcp_handle_c2h_data()
756 cb = tcp_find_command_buffer(&qp->rx_buffers, c2h->cccid, 0); in nvmf_tcp_handle_c2h_data()
781 data_len = le32toh(c2h->datal); in nvmf_tcp_handle_c2h_data()
792 data_offset = le32toh(c2h->datao); in nvmf_tcp_handle_c2h_data()
839 cqe.cid = c2h->cccid; in nvmf_tcp_handle_c2h_data()
1776 struct nvme_tcp_c2h_data_hdr c2h; in tcp_send_c2h_pdu() local
1779 memset(&c2h, 0, sizeof(c2h)); in tcp_send_c2h_pdu()
1780 c2h.common.pdu_type = NVME_TCP_PDU_TYPE_C2H_DATA; in tcp_send_c2h_pdu()
1782 c2h.common.flags |= NVME_TCP_C2H_DATA_FLAGS_LAST_PDU; in tcp_send_c2h_pdu()
1784 c2h.common.flags |= NVME_TCP_C2H_DATA_FLAGS_SUCCESS; in tcp_send_c2h_pdu()
1785 c2h.cccid = cid; in tcp_send_c2h_pdu()
1786 c2h.datao = htole32(data_offset); in tcp_send_c2h_pdu()
1787 c2h.datal = htole32(len); in tcp_send_c2h_pdu()
1789 top = nvmf_tcp_construct_pdu(qp, &c2h, sizeof(c2h), m, len); in tcp_send_c2h_pdu()