Lines Matching +full:0 +full:xa5
30 CONF_CHANGE_COLD_RESET = 0,
40 #define CXL_CMD_EFFECT_NONE cpu_to_le16(0)
182 log->cur_idx = 0; in event_reset_log()
183 log->clear_idx = 0; in event_reset_log()
187 /* Handle can never be 0 use 1 based indexing for handle */
193 /* Handle can never be 0 use 1 based indexing for handle */
231 static int ret_limit = 0;
255 memset(cmd->payload_out, 0, struct_size(pl, records, 0)); in mock_get_event()
259 return 0; in mock_get_event()
263 for (i = 0; i < ret_limit && !event_log_empty(log); i++) { in mock_get_event()
289 return 0; in mock_get_event()
305 return 0; /* No mock data in this log */ in mock_clear_event()
319 for (nr = 0, handle = event_get_clear_handle(log); in mock_clear_event()
329 log->nr_overflow = 0; in mock_clear_event()
333 return 0; in mock_clear_event()
354 .id = UUID_INIT(0xBA5EBA11, 0xABCD, 0xEFEB,
355 0xa5, 0x5a, 0xa5, 0x5a, 0xa5, 0xa5, 0x5a, 0xa5),
359 .flags[0] = CXL_EVENT_RECORD_FLAG_MAINT_NEEDED,
361 .related_handle = cpu_to_le16(0xa5b6),
363 .data = { 0xDE, 0xAD, 0xBE, 0xEF },
368 .id = UUID_INIT(0xABCDEFEB, 0xBA11, 0xBA5E,
369 0xa5, 0x5a, 0xa5, 0x5a, 0xa5, 0xa5, 0x5a, 0xa5),
373 .flags[0] = CXL_EVENT_RECORD_FLAG_HW_REPLACE,
375 .related_handle = cpu_to_le16(0xb6a5),
377 .data = { 0xDE, 0xAD, 0xBE, 0xEF },
392 .flags[0] = CXL_EVENT_RECORD_FLAG_PERMANENT,
394 .related_handle = cpu_to_le16(0),
396 .phys_addr = cpu_to_le64(0x2000),
418 .flags[0] = CXL_EVENT_RECORD_FLAG_PERF_DEGRADED,
420 .related_handle = cpu_to_le16(0),
422 .phys_addr = cpu_to_le64(0x8000),
431 .column = {0xDE, 0xAD},
446 .related_handle = cpu_to_le16(0),
455 .device_temp = { 0xDE, 0xAD},
456 .dirty_shutdown_cnt = { 0xde, 0xad, 0xbe, 0xef },
457 .cor_vol_err_cnt = { 0xde, 0xad, 0xbe, 0xef },
458 .cor_per_err_cnt = { 0xde, 0xad, 0xbe, 0xef },
472 if (cmd->size_out != 0) in mock_set_timestamp()
476 return 0; in mock_set_timestamp()
533 return 0; in mock_gsl()
558 return 0; in mock_get_log()
576 return 0; in mock_rcd_id()
598 return 0; in mock_id()
615 return 0; in mock_partition_info()
638 int rc = 0; in mock_sanitize()
640 if (cmd->size_in != 0) in mock_sanitize()
643 if (cmd->size_out != 0) in mock_sanitize()
670 if (cmd->size_in != 0) in mock_secure_erase()
673 if (cmd->size_out != 0) in mock_secure_erase()
686 return 0; in mock_secure_erase()
700 return 0; in mock_get_security_state()
729 if (cmd->size_out != 0) in mock_set_passphrase()
745 * CXL spec rev3.0 8.2.9.8.6.2, The master pasphrase shall only be set in in mock_set_passphrase()
759 return 0; in mock_set_passphrase()
773 return 0; in mock_set_passphrase()
789 if (cmd->size_out != 0) in mock_disable_passphrase()
816 mdata->master_limit = 0; in mock_disable_passphrase()
817 memset(mdata->master_pass, 0, NVDIMM_PASSPHRASE_LEN); in mock_disable_passphrase()
819 return 0; in mock_disable_passphrase()
838 mdata->user_limit = 0; in mock_disable_passphrase()
839 memset(mdata->user_pass, 0, NVDIMM_PASSPHRASE_LEN); in mock_disable_passphrase()
842 return 0; in mock_disable_passphrase()
849 return 0; in mock_disable_passphrase()
855 if (cmd->size_in != 0) in mock_freeze_security()
858 if (cmd->size_out != 0) in mock_freeze_security()
862 return 0; in mock_freeze_security()
865 return 0; in mock_freeze_security()
874 if (cmd->size_out != 0) in mock_unlock_security()
904 mdata->user_limit = 0; in mock_unlock_security()
906 return 0; in mock_unlock_security()
917 if (cmd->size_out != 0) in mock_passphrase_secure_erase()
945 * as a CXL secure erase command without passphrase (0x4401). in mock_passphrase_secure_erase()
954 mdata->master_limit = 0; in mock_passphrase_secure_erase()
955 mdata->user_limit = 0; in mock_passphrase_secure_erase()
957 memset(mdata->user_pass, 0, NVDIMM_PASSPHRASE_LEN); in mock_passphrase_secure_erase()
976 * passphrase (0x4401). in mock_passphrase_secure_erase()
985 mdata->user_limit = 0; in mock_passphrase_secure_erase()
987 memset(mdata->user_pass, 0, NVDIMM_PASSPHRASE_LEN); in mock_passphrase_secure_erase()
1004 return 0; in mock_passphrase_secure_erase()
1024 return 0; in mock_get_lsa()
1041 memcpy(lsa + offset, &set_lsa->data[0], length); in mock_set_lsa()
1042 return 0; in mock_set_lsa()
1049 .health_status = 0x7, in mock_health_info()
1051 .media_status = 0x3, in mock_health_info()
1059 .ext_status = 0x18, in mock_health_info()
1071 return 0; in mock_health_info()
1083 int nr_records = 0; in cxl_get_injected_po()
1090 for (int i = 0; i < MOCK_INJECT_TEST_MAX; i++) { in cxl_get_injected_po()
1128 return 0; in mock_get_poison()
1133 int count = 0; in mock_poison_dev_max_injected()
1135 for (int i = 0; i < MOCK_INJECT_TEST_MAX; i++) { in mock_poison_dev_max_injected()
1152 for (int i = 0; i < MOCK_INJECT_TEST_MAX; i++) { in mock_poison_add()
1156 return 0; in mock_poison_add()
1168 for (int i = 0; i < MOCK_INJECT_TEST_MAX; i++) { in mock_poison_found()
1184 dev_dbg(cxlds->dev, "DPA: 0x%llx already poisoned\n", dpa); in mock_inject_poison()
1185 return 0; in mock_inject_poison()
1193 for (int i = 0; i < MOCK_INJECT_TEST_MAX; i++) { in mock_poison_del()
1215 dev_dbg(cxlds->dev, "DPA: 0x%llx not in poison list\n", dpa); in mock_clear_poison()
1217 return 0; in mock_clear_poison()
1222 for (int i = 0; i < MOCK_INJECT_TEST_MAX; i++) { in mock_poison_list_empty()
1239 if (kstrtoint(buf, 0, &val) < 0) in poison_inject_max_store()
1266 .slot_info = (mdata->fw_slot & 0x7) | in mock_fw_info()
1267 ((mdata->fw_staged & 0x7) << 3), in mock_fw_info()
1268 .activation_cap = 0, in mock_fw_info()
1280 return 0; in mock_fw_info()
1297 if (offset != 0) in mock_transfer_fw()
1301 if (transfer->slot == 0 || transfer->slot > FW_SLOTS) in mock_transfer_fw()
1309 return 0; in mock_transfer_fw()
1316 return 0; in mock_transfer_fw()
1324 if (activate->slot == 0 || activate->slot > FW_SLOTS) in mock_activate_fw()
1330 mdata->fw_staged = 0; in mock_activate_fw()
1331 return 0; in mock_activate_fw()
1334 return 0; in mock_activate_fw()
1469 return 0; in cxl_mock_mailbox_create()
1560 return 0; in cxl_mock_mem_probe()
1580 if (kstrtoint(buf, 0, &val) < 0) in security_lock_store()
1603 ssize_t written = 0; in fw_buf_checksum_show()
1615 for (i = 0; i < SHA256_DIGEST_SIZE; i++) in fw_buf_checksum_show()
1642 rc = kstrtoul(buf, 0, &val); in sanitize_timeout_store()
1663 { .name = "cxl_mem", 0 },