Lines Matching +full:0 +full:xa5

28 	CONF_CHANGE_COLD_RESET = 0,
38 #define CXL_CMD_EFFECT_NONE cpu_to_le16(0)
173 log->cur_idx = 0; in event_reset_log()
174 log->clear_idx = 0; in event_reset_log()
178 /* Handle can never be 0 use 1 based indexing for handle */
184 /* Handle can never be 0 use 1 based indexing for handle */
236 memset(cmd->payload_out, 0, cmd->size_out); in mock_get_event()
240 return 0; in mock_get_event()
244 for (i = 0; i < CXL_TEST_EVENT_CNT && !event_log_empty(log); i++) { in mock_get_event()
268 return 0; in mock_get_event()
284 return 0; /* No mock data in this log */ in mock_clear_event()
298 for (nr = 0, handle = event_get_clear_handle(log); in mock_clear_event()
308 log->nr_overflow = 0; in mock_clear_event()
312 return 0; in mock_clear_event()
334 .id = UUID_INIT(0xBA5EBA11, 0xABCD, 0xEFEB,
335 0xa5, 0x5a, 0xa5, 0x5a, 0xa5, 0xa5, 0x5a, 0xa5),
337 .flags[0] = CXL_EVENT_RECORD_FLAG_MAINT_NEEDED,
339 .related_handle = cpu_to_le16(0xa5b6),
341 .data = { 0xDE, 0xAD, 0xBE, 0xEF },
346 .id = UUID_INIT(0xABCDEFEB, 0xBA11, 0xBA5E,
347 0xa5, 0x5a, 0xa5, 0x5a, 0xa5, 0xa5, 0x5a, 0xa5),
349 .flags[0] = CXL_EVENT_RECORD_FLAG_HW_REPLACE,
351 .related_handle = cpu_to_le16(0xb6a5),
353 .data = { 0xDE, 0xAD, 0xBE, 0xEF },
358 .id = UUID_INIT(0xfbcd0a77, 0xc260, 0x417f,
359 0x85, 0xa9, 0x08, 0x8b, 0x16, 0x21, 0xeb, 0xa6),
361 .flags[0] = CXL_EVENT_RECORD_FLAG_PERMANENT,
363 .related_handle = cpu_to_le16(0),
365 .phys_addr = cpu_to_le64(0x2000),
376 .id = UUID_INIT(0x601dcbb3, 0x9c06, 0x4eab,
377 0xb8, 0xaf, 0x4e, 0x9b, 0xfb, 0x5c, 0x96, 0x24),
379 .flags[0] = CXL_EVENT_RECORD_FLAG_PERF_DEGRADED,
381 .related_handle = cpu_to_le16(0),
383 .phys_addr = cpu_to_le64(0x8000),
391 .column = {0xDE, 0xAD},
396 .id = UUID_INIT(0xfe927475, 0xdd59, 0x4339,
397 0xa5, 0x86, 0x79, 0xba, 0xb1, 0x13, 0xb7, 0x74),
400 .related_handle = cpu_to_le16(0),
409 .device_temp = { 0xDE, 0xAD},
410 .dirty_shutdown_cnt = { 0xde, 0xad, 0xbe, 0xef },
411 .cor_vol_err_cnt = { 0xde, 0xad, 0xbe, 0xef },
412 .cor_per_err_cnt = { 0xde, 0xad, 0xbe, 0xef },
425 if (cmd->size_out != 0) in mock_set_timestamp()
429 return 0; in mock_set_timestamp()
486 return 0; in mock_gsl()
510 return 0; in mock_get_log()
528 return 0; in mock_rcd_id()
550 return 0; in mock_id()
567 return 0; in mock_partition_info()
573 if (cmd->size_in != 0) in mock_sanitize()
576 if (cmd->size_out != 0) in mock_sanitize()
588 return 0; /* assume less than 2 secs, no bg */ in mock_sanitize()
594 if (cmd->size_in != 0) in mock_secure_erase()
597 if (cmd->size_out != 0) in mock_secure_erase()
610 return 0; in mock_secure_erase()
624 return 0; in mock_get_security_state()
653 if (cmd->size_out != 0) in mock_set_passphrase()
669 * CXL spec rev3.0 8.2.9.8.6.2, The master pasphrase shall only be set in in mock_set_passphrase()
683 return 0; in mock_set_passphrase()
697 return 0; in mock_set_passphrase()
713 if (cmd->size_out != 0) in mock_disable_passphrase()
740 mdata->master_limit = 0; in mock_disable_passphrase()
741 memset(mdata->master_pass, 0, NVDIMM_PASSPHRASE_LEN); in mock_disable_passphrase()
743 return 0; in mock_disable_passphrase()
762 mdata->user_limit = 0; in mock_disable_passphrase()
763 memset(mdata->user_pass, 0, NVDIMM_PASSPHRASE_LEN); in mock_disable_passphrase()
766 return 0; in mock_disable_passphrase()
773 return 0; in mock_disable_passphrase()
779 if (cmd->size_in != 0) in mock_freeze_security()
782 if (cmd->size_out != 0) in mock_freeze_security()
786 return 0; in mock_freeze_security()
789 return 0; in mock_freeze_security()
798 if (cmd->size_out != 0) in mock_unlock_security()
828 mdata->user_limit = 0; in mock_unlock_security()
830 return 0; in mock_unlock_security()
841 if (cmd->size_out != 0) in mock_passphrase_secure_erase()
869 * as a CXL secure erase command without passphrase (0x4401). in mock_passphrase_secure_erase()
878 mdata->master_limit = 0; in mock_passphrase_secure_erase()
879 mdata->user_limit = 0; in mock_passphrase_secure_erase()
881 memset(mdata->user_pass, 0, NVDIMM_PASSPHRASE_LEN); in mock_passphrase_secure_erase()
900 * passphrase (0x4401). in mock_passphrase_secure_erase()
909 mdata->user_limit = 0; in mock_passphrase_secure_erase()
911 memset(mdata->user_pass, 0, NVDIMM_PASSPHRASE_LEN); in mock_passphrase_secure_erase()
928 return 0; in mock_passphrase_secure_erase()
948 return 0; in mock_get_lsa()
965 memcpy(lsa + offset, &set_lsa->data[0], length); in mock_set_lsa()
966 return 0; in mock_set_lsa()
973 .health_status = 0x7, in mock_health_info()
975 .media_status = 0x3, in mock_health_info()
983 .ext_status = 0x18, in mock_health_info()
995 return 0; in mock_health_info()
1007 int nr_records = 0; in cxl_get_injected_po()
1014 for (int i = 0; i < MOCK_INJECT_TEST_MAX; i++) { in cxl_get_injected_po()
1052 return 0; in mock_get_poison()
1057 int count = 0; in mock_poison_dev_max_injected()
1059 for (int i = 0; i < MOCK_INJECT_TEST_MAX; i++) { in mock_poison_dev_max_injected()
1075 for (int i = 0; i < MOCK_INJECT_TEST_MAX; i++) { in mock_poison_add()
1091 for (int i = 0; i < MOCK_INJECT_TEST_MAX; i++) { in mock_poison_found()
1107 dev_dbg(cxlds->dev, "DPA: 0x%llx already poisoned\n", dpa); in mock_inject_poison()
1108 return 0; in mock_inject_poison()
1113 return 0; in mock_inject_poison()
1118 for (int i = 0; i < MOCK_INJECT_TEST_MAX; i++) { in mock_poison_del()
1140 dev_dbg(cxlds->dev, "DPA: 0x%llx not in poison list\n", dpa); in mock_clear_poison()
1142 return 0; in mock_clear_poison()
1147 for (int i = 0; i < MOCK_INJECT_TEST_MAX; i++) { in mock_poison_list_empty()
1164 if (kstrtoint(buf, 0, &val) < 0) in poison_inject_max_store()
1191 .slot_info = (mdata->fw_slot & 0x7) | in mock_fw_info()
1192 ((mdata->fw_staged & 0x7) << 3), in mock_fw_info()
1193 .activation_cap = 0, in mock_fw_info()
1205 return 0; in mock_fw_info()
1222 if (offset != 0) in mock_transfer_fw()
1226 if (transfer->slot == 0 || transfer->slot > FW_SLOTS) in mock_transfer_fw()
1234 return 0; in mock_transfer_fw()
1240 return 0; in mock_transfer_fw()
1248 if (activate->slot == 0 || activate->slot > FW_SLOTS) in mock_activate_fw()
1254 mdata->fw_staged = 0; in mock_activate_fw()
1255 return 0; in mock_activate_fw()
1258 return 0; in mock_activate_fw()
1463 return 0; in cxl_mock_mem_probe()
1483 if (kstrtoint(buf, 0, &val) < 0) in security_lock_store()
1506 ssize_t written = 0; in fw_buf_checksum_show()
1518 for (i = 0; i < SHA256_DIGEST_SIZE; i++) in fw_buf_checksum_show()
1538 { .name = "cxl_mem", 0 },