Home
last modified time | relevance | path

Searched refs:icresp (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/drivers/nvme/target/
Dtcp.c755 struct nvme_tcp_icresp_pdu *icresp = &queue->pdu.icresp; in nvmet_tcp_handle_icreq() local
785 memset(icresp, 0, sizeof(*icresp)); in nvmet_tcp_handle_icreq()
786 icresp->hdr.type = nvme_tcp_icresp; in nvmet_tcp_handle_icreq()
787 icresp->hdr.hlen = sizeof(*icresp); in nvmet_tcp_handle_icreq()
788 icresp->hdr.pdo = 0; in nvmet_tcp_handle_icreq()
789 icresp->hdr.plen = cpu_to_le32(icresp->hdr.hlen); in nvmet_tcp_handle_icreq()
790 icresp->pfv = cpu_to_le16(NVME_TCP_PFV_1_0); in nvmet_tcp_handle_icreq()
791 icresp->maxdata = cpu_to_le32(0xffff); /* FIXME: support r2t */ in nvmet_tcp_handle_icreq()
792 icresp->cpda = 0; in nvmet_tcp_handle_icreq()
794 icresp->digest |= NVME_TCP_HDR_DIGEST_ENABLE; in nvmet_tcp_handle_icreq()
[all …]
/Linux-v5.4/drivers/nvme/host/
Dtcp.c1151 struct nvme_tcp_icresp_pdu *icresp; in nvme_tcp_init_connection() local
1161 icresp = kzalloc(sizeof(*icresp), GFP_KERNEL); in nvme_tcp_init_connection()
1162 if (!icresp) { in nvme_tcp_init_connection()
1186 iov.iov_base = icresp; in nvme_tcp_init_connection()
1187 iov.iov_len = sizeof(*icresp); in nvme_tcp_init_connection()
1194 if (icresp->hdr.type != nvme_tcp_icresp) { in nvme_tcp_init_connection()
1196 nvme_tcp_queue_id(queue), icresp->hdr.type); in nvme_tcp_init_connection()
1200 if (le32_to_cpu(icresp->hdr.plen) != sizeof(*icresp)) { in nvme_tcp_init_connection()
1202 nvme_tcp_queue_id(queue), icresp->hdr.plen); in nvme_tcp_init_connection()
1206 if (icresp->pfv != NVME_TCP_PFV_1_0) { in nvme_tcp_init_connection()
[all …]
/Linux-v5.4/include/linux/
Dnvme-tcp.h182 struct nvme_tcp_icresp_pdu icresp; member