Home
last modified time | relevance | path

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

/linux/drivers/nvme/target/
H A Dtcp.c900 struct nvme_tcp_icresp_pdu *icresp = &queue->pdu.icresp; in nvmet_tcp_handle_icreq() local
931 memset(icresp, 0, sizeof(*icresp)); in nvmet_tcp_handle_icreq()
932 icresp->hdr.type = nvme_tcp_icresp; in nvmet_tcp_handle_icreq()
933 icresp->hdr.hlen = sizeof(*icresp); in nvmet_tcp_handle_icreq()
934 icresp->hdr.pdo = 0; in nvmet_tcp_handle_icreq()
935 icresp->hdr.plen = cpu_to_le32(icresp->hdr.hlen); in nvmet_tcp_handle_icreq()
936 icresp->pfv = cpu_to_le16(NVME_TCP_PFV_1_0); in nvmet_tcp_handle_icreq()
937 icresp->maxdata = cpu_to_le32(NVMET_TCP_MAXH2CDATA); in nvmet_tcp_handle_icreq()
938 icresp->cpda = 0; in nvmet_tcp_handle_icreq()
940 icresp->digest |= NVME_TCP_HDR_DIGEST_ENABLE; in nvmet_tcp_handle_icreq()
[all …]
/linux/drivers/nvme/host/
H A Dtcp.c1474 struct nvme_tcp_icresp_pdu *icresp; in nvme_tcp_init_connection() local
1487 icresp = kzalloc(sizeof(*icresp), GFP_KERNEL); in nvme_tcp_init_connection()
1488 if (!icresp) { in nvme_tcp_init_connection()
1515 iov.iov_base = icresp; in nvme_tcp_init_connection()
1516 iov.iov_len = sizeof(*icresp); in nvme_tcp_init_connection()
1524 if (ret >= 0 && ret < sizeof(*icresp)) in nvme_tcp_init_connection()
1542 if (icresp->hdr.type != nvme_tcp_icresp) { in nvme_tcp_init_connection()
1544 nvme_tcp_queue_id(queue), icresp->hdr.type); in nvme_tcp_init_connection()
1548 if (le32_to_cpu(icresp->hdr.plen) != sizeof(*icresp)) { in nvme_tcp_init_connection()
1550 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