Lines Matching refs:h2c
498 struct nvme_tcp_h2c_data_hdr *h2c; in nvmf_tcp_handle_h2c_data() local
503 h2c = (void *)pdu->hdr; in nvmf_tcp_handle_h2c_data()
504 if (le32toh(h2c->datal) > qp->maxh2cdata) { in nvmf_tcp_handle_h2c_data()
512 cb = tcp_find_command_buffer(qp, h2c->cccid, h2c->ttag, true); in nvmf_tcp_handle_h2c_data()
522 data_len = le32toh(h2c->datal); in nvmf_tcp_handle_h2c_data()
532 data_offset = le32toh(h2c->datao); in nvmf_tcp_handle_h2c_data()
662 struct nvme_tcp_h2c_data_hdr h2c; in tcp_send_h2c_pdu() local
664 memset(&h2c, 0, sizeof(h2c)); in tcp_send_h2c_pdu()
665 h2c.common.pdu_type = NVME_TCP_PDU_TYPE_H2C_DATA; in tcp_send_h2c_pdu()
667 h2c.common.flags |= NVME_TCP_H2C_DATA_FLAGS_LAST_PDU; in tcp_send_h2c_pdu()
668 h2c.cccid = cid; in tcp_send_h2c_pdu()
669 h2c.ttag = ttag; in tcp_send_h2c_pdu()
670 h2c.datao = htole32(data_offset); in tcp_send_h2c_pdu()
671 h2c.datal = htole32(len); in tcp_send_h2c_pdu()
673 return (nvmf_tcp_construct_pdu(qp, &h2c, sizeof(h2c), buf, len)); in tcp_send_h2c_pdu()