Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/mpr/mpr_sas.c
Show First 20 Lines • Show All 1,834 Lines • ▼ Show 20 Lines | #endif | ||||
req->ErrorResponseAllocationLength = | req->ErrorResponseAllocationLength = | ||||
htole16(sizeof(struct nvme_completion)); | htole16(sizeof(struct nvme_completion)); | ||||
req->EncapsulatedCommandLength = | req->EncapsulatedCommandLength = | ||||
htole16(sizeof(struct nvme_command)); | htole16(sizeof(struct nvme_command)); | ||||
req->DataLength = htole32(data_length); | req->DataLength = htole32(data_length); | ||||
/* Build NVMe DSM command */ | /* Build NVMe DSM command */ | ||||
c = (struct nvme_command *) req->NVMe_Command; | c = (struct nvme_command *) req->NVMe_Command; | ||||
c->opc_fuse = NVME_CMD_SET_OPC(NVME_OPC_DATASET_MANAGEMENT); | c->opc = NVME_OPC_DATASET_MANAGEMENT; | ||||
c->nsid = htole32(csio->ccb_h.target_lun + 1); | c->nsid = htole32(csio->ccb_h.target_lun + 1); | ||||
c->cdw10 = htole32(ndesc - 1); | c->cdw10 = htole32(ndesc - 1); | ||||
c->cdw11 = htole32(NVME_DSM_ATTR_DEALLOCATE); | c->cdw11 = htole32(NVME_DSM_ATTR_DEALLOCATE); | ||||
cm->cm_length = data_length; | cm->cm_length = data_length; | ||||
cm->cm_data = NULL; | cm->cm_data = NULL; | ||||
cm->cm_complete = mprsas_scsiio_complete; | cm->cm_complete = mprsas_scsiio_complete; | ||||
▲ Show 20 Lines • Show All 2,047 Lines • Show Last 20 Lines |