Lines Matching refs:h2c
639 const struct nvme_tcp_h2c_data_hdr *h2c; in nvmf_tcp_handle_h2c_data() local
644 h2c = (const void *)pdu->hdr; in nvmf_tcp_handle_h2c_data()
645 if (le32toh(h2c->datal) > qp->maxh2cdata) { in nvmf_tcp_handle_h2c_data()
657 ttag = h2c->ttag; in nvmf_tcp_handle_h2c_data()
689 data_len = le32toh(h2c->datal); in nvmf_tcp_handle_h2c_data()
700 data_offset = le32toh(h2c->datao); in nvmf_tcp_handle_h2c_data()
925 struct nvme_tcp_h2c_data_hdr h2c; in tcp_send_h2c_pdu() local
928 memset(&h2c, 0, sizeof(h2c)); in tcp_send_h2c_pdu()
929 h2c.common.pdu_type = NVME_TCP_PDU_TYPE_H2C_DATA; in tcp_send_h2c_pdu()
931 h2c.common.flags |= NVME_TCP_H2C_DATA_FLAGS_LAST_PDU; in tcp_send_h2c_pdu()
932 h2c.cccid = cid; in tcp_send_h2c_pdu()
933 h2c.ttag = ttag; in tcp_send_h2c_pdu()
934 h2c.datao = htole32(data_offset); in tcp_send_h2c_pdu()
935 h2c.datal = htole32(len); in tcp_send_h2c_pdu()
937 top = nvmf_tcp_construct_pdu(qp, &h2c, sizeof(h2c), m, len); in tcp_send_h2c_pdu()