Searched refs:set_pass (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/cxl/ |
H A D | security.c | 75 struct cxl_set_pass set_pass; in cxl_pmem_security_change_key() local 77 set_pass = (struct cxl_set_pass) { in cxl_pmem_security_change_key() 81 memcpy(set_pass.old_pass, old_data->data, NVDIMM_PASSPHRASE_LEN); in cxl_pmem_security_change_key() 82 memcpy(set_pass.new_pass, new_data->data, NVDIMM_PASSPHRASE_LEN); in cxl_pmem_security_change_key() 86 .size_in = sizeof(set_pass), in cxl_pmem_security_change_key() 87 .payload_in = &set_pass, in cxl_pmem_security_change_key()
|
/openbmc/linux/tools/testing/cxl/test/ |
H A D | mem.c | 649 struct cxl_set_pass *set_pass; in mock_set_passphrase() local 651 if (cmd->size_in != sizeof(*set_pass)) in mock_set_passphrase() 662 set_pass = cmd->payload_in; in mock_set_passphrase() 663 switch (set_pass->type) { in mock_set_passphrase() 677 if (memcmp(mdata->master_pass, set_pass->old_pass, NVDIMM_PASSPHRASE_LEN)) { in mock_set_passphrase() 682 memcpy(mdata->master_pass, set_pass->new_pass, NVDIMM_PASSPHRASE_LEN); in mock_set_passphrase() 691 if (memcmp(mdata->user_pass, set_pass->old_pass, NVDIMM_PASSPHRASE_LEN)) { in mock_set_passphrase() 696 memcpy(mdata->user_pass, set_pass->new_pass, NVDIMM_PASSPHRASE_LEN); in mock_set_passphrase()
|