Lines Matching refs:icreq
1328 struct nvme_tcp_icreq_pdu *icreq; in nvme_tcp_init_connection() local
1336 icreq = kzalloc(sizeof(*icreq), GFP_KERNEL); in nvme_tcp_init_connection()
1337 if (!icreq) in nvme_tcp_init_connection()
1346 icreq->hdr.type = nvme_tcp_icreq; in nvme_tcp_init_connection()
1347 icreq->hdr.hlen = sizeof(*icreq); in nvme_tcp_init_connection()
1348 icreq->hdr.pdo = 0; in nvme_tcp_init_connection()
1349 icreq->hdr.plen = cpu_to_le32(icreq->hdr.hlen); in nvme_tcp_init_connection()
1350 icreq->pfv = cpu_to_le16(NVME_TCP_PFV_1_0); in nvme_tcp_init_connection()
1351 icreq->maxr2t = 0; /* single inflight r2t supported */ in nvme_tcp_init_connection()
1352 icreq->hpda = 0; /* no alignment constraint */ in nvme_tcp_init_connection()
1354 icreq->digest |= NVME_TCP_HDR_DIGEST_ENABLE; in nvme_tcp_init_connection()
1356 icreq->digest |= NVME_TCP_DATA_DIGEST_ENABLE; in nvme_tcp_init_connection()
1358 iov.iov_base = icreq; in nvme_tcp_init_connection()
1359 iov.iov_len = sizeof(*icreq); in nvme_tcp_init_connection()
1429 kfree(icreq); in nvme_tcp_init_connection()