Lines Matching refs:nd_cmd

60 	} nd_cmd = {  in intel_security_flags()  local
83 rc = nvdimm_ctl(nvdimm, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), NULL); in intel_security_flags()
84 if (rc < 0 || nd_cmd.cmd.status) { in intel_security_flags()
86 nvdimm_name(nvdimm), rc, nd_cmd.cmd.status); in intel_security_flags()
92 if (nd_cmd.cmd.extended_state & ND_INTEL_SEC_ESTATE_ENABLED) in intel_security_flags()
96 if (nd_cmd.cmd.extended_state & ND_INTEL_SEC_ESTATE_PLIMIT) in intel_security_flags()
101 if (nd_cmd.cmd.state & ND_INTEL_SEC_STATE_UNSUPPORTED) in intel_security_flags()
104 if (nd_cmd.cmd.state & ND_INTEL_SEC_STATE_ENABLED) { in intel_security_flags()
105 if (nd_cmd.cmd.state & ND_INTEL_SEC_STATE_FROZEN || in intel_security_flags()
106 nd_cmd.cmd.state & ND_INTEL_SEC_STATE_PLIMIT) in intel_security_flags()
109 if (nd_cmd.cmd.state & ND_INTEL_SEC_STATE_LOCKED) in intel_security_flags()
125 } nd_cmd = { in intel_security_freeze() local
138 rc = nvdimm_ctl(nvdimm, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), NULL); in intel_security_freeze()
141 if (nd_cmd.cmd.status) in intel_security_freeze()
158 } nd_cmd = { in intel_security_change_key() local
172 memcpy(nd_cmd.cmd.old_pass, old_data->data, in intel_security_change_key()
173 sizeof(nd_cmd.cmd.old_pass)); in intel_security_change_key()
174 memcpy(nd_cmd.cmd.new_pass, new_data->data, in intel_security_change_key()
175 sizeof(nd_cmd.cmd.new_pass)); in intel_security_change_key()
176 rc = nvdimm_ctl(nvdimm, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), NULL); in intel_security_change_key()
180 switch (nd_cmd.cmd.status) { in intel_security_change_key()
202 } nd_cmd = { in intel_security_unlock() local
216 memcpy(nd_cmd.cmd.passphrase, key_data->data, in intel_security_unlock()
217 sizeof(nd_cmd.cmd.passphrase)); in intel_security_unlock()
218 rc = nvdimm_ctl(nvdimm, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), NULL); in intel_security_unlock()
221 switch (nd_cmd.cmd.status) { in intel_security_unlock()
244 } nd_cmd = { in intel_security_disable() local
257 memcpy(nd_cmd.cmd.passphrase, key_data->data, in intel_security_disable()
258 sizeof(nd_cmd.cmd.passphrase)); in intel_security_disable()
259 rc = nvdimm_ctl(nvdimm, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), NULL); in intel_security_disable()
263 switch (nd_cmd.cmd.status) { in intel_security_disable()
287 } nd_cmd = { in intel_security_erase() local
302 memcpy(nd_cmd.cmd.passphrase, key->data, in intel_security_erase()
303 sizeof(nd_cmd.cmd.passphrase)); in intel_security_erase()
304 rc = nvdimm_ctl(nvdimm, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), NULL); in intel_security_erase()
308 switch (nd_cmd.cmd.status) { in intel_security_erase()
332 } nd_cmd = { in intel_security_query_overwrite() local
344 rc = nvdimm_ctl(nvdimm, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), NULL); in intel_security_query_overwrite()
348 switch (nd_cmd.cmd.status) { in intel_security_query_overwrite()
370 } nd_cmd = { in intel_security_overwrite() local
385 memcpy(nd_cmd.cmd.passphrase, nkey->data, in intel_security_overwrite()
386 sizeof(nd_cmd.cmd.passphrase)); in intel_security_overwrite()
387 rc = nvdimm_ctl(nvdimm, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), NULL); in intel_security_overwrite()
391 switch (nd_cmd.cmd.status) { in intel_security_overwrite()
441 } nd_cmd = { in intel_bus_fwa_businfo() local
453 rc = nd_desc->ndctl(nd_desc, NULL, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), in intel_bus_fwa_businfo()
455 *info = nd_cmd.cmd; in intel_bus_fwa_businfo()
552 } nd_cmd = { in intel_bus_fwa_activate() local
556 .nd_size_in = sizeof(nd_cmd.cmd.iodev_state), in intel_bus_fwa_activate()
584 rc = nd_desc->ndctl(nd_desc, NULL, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), in intel_bus_fwa_activate()
616 } nd_cmd = { in intel_fwa_dimminfo() local
628 rc = nvdimm_ctl(nvdimm, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), NULL); in intel_fwa_dimminfo()
629 *info = nd_cmd.cmd; in intel_fwa_dimminfo()
722 } nd_cmd = { in intel_fwa_arm() local
726 .nd_size_in = sizeof(nd_cmd.cmd.activate_arm), in intel_fwa_arm()
764 rc = nvdimm_ctl(nvdimm, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), NULL); in intel_fwa_arm()