Lines Matching refs:c2h
571 struct nvme_tcp_c2h_data_hdr *c2h; in nvmf_tcp_handle_c2h_data() local
576 c2h = (void *)pdu->hdr; in nvmf_tcp_handle_c2h_data()
578 cb = tcp_find_command_buffer(qp, c2h->cccid, 0, true); in nvmf_tcp_handle_c2h_data()
592 data_len = le32toh(c2h->datal); in nvmf_tcp_handle_c2h_data()
602 data_offset = le32toh(c2h->datao); in nvmf_tcp_handle_c2h_data()
1408 struct nvme_tcp_c2h_data_hdr c2h; in tcp_send_c2h_pdu() local
1410 memset(&c2h, 0, sizeof(c2h)); in tcp_send_c2h_pdu()
1411 c2h.common.pdu_type = NVME_TCP_PDU_TYPE_C2H_DATA; in tcp_send_c2h_pdu()
1413 c2h.common.flags |= NVME_TCP_C2H_DATA_FLAGS_LAST_PDU; in tcp_send_c2h_pdu()
1415 c2h.common.flags |= NVME_TCP_C2H_DATA_FLAGS_SUCCESS; in tcp_send_c2h_pdu()
1416 c2h.cccid = cid; in tcp_send_c2h_pdu()
1417 c2h.datao = htole32(data_offset); in tcp_send_c2h_pdu()
1418 c2h.datal = htole32(len); in tcp_send_c2h_pdu()
1420 return (nvmf_tcp_construct_pdu(qp, &c2h, sizeof(c2h), in tcp_send_c2h_pdu()