Home
last modified time | relevance | path

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

/linux/drivers/nvme/target/
H A Dtcp.c897 struct nvme_tcp_icresp_pdu *icresp = &queue->pdu.icresp; in nvmet_tcp_handle_icreq() local
922 memset(icresp, 0, sizeof(*icresp)); in nvmet_tcp_handle_icreq()
923 icresp->hdr.type = nvme_tcp_icresp; in nvmet_tcp_handle_icreq()
924 icresp->hdr.hlen = sizeof(*icresp); in nvmet_tcp_handle_icreq()
925 icresp->hdr.pdo = 0; in nvmet_tcp_handle_icreq()
926 icresp->hdr.plen = cpu_to_le32(icresp->hdr.hlen); in nvmet_tcp_handle_icreq()
927 icresp->pfv = cpu_to_le16(NVME_TCP_PFV_1_0); in nvmet_tcp_handle_icreq()
928 icresp->maxdata = cpu_to_le32(NVMET_TCP_MAXH2CDATA); in nvmet_tcp_handle_icreq()
929 icresp->cpda = 0; in nvmet_tcp_handle_icreq()
931 icresp->digest |= NVME_TCP_HDR_DIGEST_ENABLE; in nvmet_tcp_handle_icreq()
[all …]
/linux/drivers/nvme/host/
H A Dtcp.c1524 struct nvme_tcp_icresp_pdu *icresp; in nvme_tcp_init_connection() local
1537 icresp = kzalloc_obj(*icresp); in nvme_tcp_init_connection()
1538 if (!icresp) { in nvme_tcp_init_connection()
1565 iov.iov_base = icresp; in nvme_tcp_init_connection()
1566 iov.iov_len = sizeof(*icresp); in nvme_tcp_init_connection()
1574 if (ret >= 0 && ret < sizeof(*icresp)) in nvme_tcp_init_connection()
1592 if (icresp->hdr.type != nvme_tcp_icresp) { in nvme_tcp_init_connection()
1594 nvme_tcp_queue_id(queue), icresp->hdr.type); in nvme_tcp_init_connection()
1598 if (le32_to_cpu(icresp->hdr.plen) != sizeof(*icresp)) { in nvme_tcp_init_connection()
1600 nvme_tcp_queue_id(queue), icresp->hdr.plen); in nvme_tcp_init_connection()
[all …]
/linux/include/linux/
H A Dnvme-tcp.h192 struct nvme_tcp_icresp_pdu icresp; member