Home
last modified time | relevance | path

Searched refs:set_pass (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/cxl/
H A Dsecurity.c76 struct cxl_set_pass set_pass; in cxl_pmem_security_change_key() local
78 set_pass = (struct cxl_set_pass) { in cxl_pmem_security_change_key()
82 memcpy(set_pass.old_pass, old_data->data, NVDIMM_PASSPHRASE_LEN); in cxl_pmem_security_change_key()
83 memcpy(set_pass.new_pass, new_data->data, NVDIMM_PASSPHRASE_LEN); in cxl_pmem_security_change_key()
87 .size_in = sizeof(set_pass), in cxl_pmem_security_change_key()
88 .payload_in = &set_pass, in cxl_pmem_security_change_key()
/linux/tools/testing/cxl/test/
H A Dmem.c724 struct cxl_set_pass *set_pass; in mock_set_passphrase() local
726 if (cmd->size_in != sizeof(*set_pass)) in mock_set_passphrase()
737 set_pass = cmd->payload_in; in mock_set_passphrase()
738 switch (set_pass->type) { in mock_set_passphrase()
752 if (memcmp(mdata->master_pass, set_pass->old_pass, NVDIMM_PASSPHRASE_LEN)) { in mock_set_passphrase()
757 memcpy(mdata->master_pass, set_pass->new_pass, NVDIMM_PASSPHRASE_LEN); in mock_set_passphrase()
766 if (memcmp(mdata->user_pass, set_pass->old_pass, NVDIMM_PASSPHRASE_LEN)) { in mock_set_passphrase()
771 memcpy(mdata->user_pass, set_pass->new_pass, NVDIMM_PASSPHRASE_LEN); in mock_set_passphrase()