Home
last modified time | relevance | path

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

/linux-6.15/drivers/nvme/target/
H A Dtcp.c899 struct nvme_tcp_icresp_pdu *icresp = &queue->pdu.icresp; in nvmet_tcp_handle_icreq() local
930 memset(icresp, 0, sizeof(*icresp)); in nvmet_tcp_handle_icreq()
931 icresp->hdr.type = nvme_tcp_icresp; in nvmet_tcp_handle_icreq()
932 icresp->hdr.hlen = sizeof(*icresp); in nvmet_tcp_handle_icreq()
933 icresp->hdr.pdo = 0; in nvmet_tcp_handle_icreq()
934 icresp->hdr.plen = cpu_to_le32(icresp->hdr.hlen); in nvmet_tcp_handle_icreq()
935 icresp->pfv = cpu_to_le16(NVME_TCP_PFV_1_0); in nvmet_tcp_handle_icreq()
937 icresp->cpda = 0; in nvmet_tcp_handle_icreq()
939 icresp->digest |= NVME_TCP_HDR_DIGEST_ENABLE; in nvmet_tcp_handle_icreq()
943 iov.iov_base = icresp; in nvmet_tcp_handle_icreq()
[all …]
/linux-6.15/drivers/nvme/host/
H A Dtcp.c1473 struct nvme_tcp_icresp_pdu *icresp; in nvme_tcp_init_connection() local
1486 icresp = kzalloc(sizeof(*icresp), GFP_KERNEL); in nvme_tcp_init_connection()
1487 if (!icresp) { in nvme_tcp_init_connection()
1514 iov.iov_base = icresp; in nvme_tcp_init_connection()
1515 iov.iov_len = sizeof(*icresp); in nvme_tcp_init_connection()
1523 if (ret >= 0 && ret < sizeof(*icresp)) in nvme_tcp_init_connection()
1547 if (le32_to_cpu(icresp->hdr.plen) != sizeof(*icresp)) { in nvme_tcp_init_connection()
1553 if (icresp->pfv != NVME_TCP_PFV_1_0) { in nvme_tcp_init_connection()
1555 nvme_tcp_queue_id(queue), icresp->pfv); in nvme_tcp_init_connection()
1579 if (icresp->cpda != 0) { in nvme_tcp_init_connection()
[all …]
/linux-6.15/include/linux/
H A Dnvme-tcp.h192 struct nvme_tcp_icresp_pdu icresp; member