Lines Matching defs:sgl
1194 struct nvme_sgl_descriptor *sgl;
1208 sgl = &cmd.ccsqe.sgl;
1209 memset(sgl, 0, sizeof(*sgl));
1210 sgl->address = 0;
1211 sgl->length = htole32(nc->nc_data_len);
1214 sgl->type = NVME_SGL_TYPE_ICD;
1217 sgl->type = NVME_SGL_TYPE_COMMAND_BUFFER;
1281 const struct nvme_sgl_descriptor *sgl;
1285 sgl = &nc->nc_sqe.sgl;
1286 switch (sgl->type) {
1288 if (tc->rx_pdu.data_len != le32toh(sgl->length)) {
1304 if (sgl->address != 0) {
1316 return (le32toh(nc->nc_sqe.sgl.length));
1385 const struct nvme_sgl_descriptor *sgl;
1391 sgl = &nc->nc_sqe.sgl;
1392 data_len = le32toh(sgl->length);
1396 if (sgl->type == NVME_SGL_TYPE_ICD)
1430 const struct nvme_sgl_descriptor *sgl;
1440 sgl = &nc->nc_sqe.sgl;
1441 data_len = le32toh(sgl->length);
1447 if (sgl->type != NVME_SGL_TYPE_COMMAND_BUFFER) {