Lines Matching refs:acpi_desc
180 struct acpi_nfit_desc acpi_desc; member
1325 static void nfit_ctl_dbg(struct acpi_nfit_desc *acpi_desc, in nfit_ctl_dbg() argument
1329 struct nfit_test *t = container_of(acpi_desc, typeof(*t), acpi_desc); in nfit_ctl_dbg()
1352 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in nfit_test_ctl() local
1353 struct nfit_test *t = container_of(acpi_desc, typeof(*t), acpi_desc); in nfit_test_ctl()
1361 nfit_ctl_dbg(acpi_desc, nvdimm, cmd, buf, buf_len); in nfit_test_ctl()
1530 acpi_desc->nvdimm_bus, buf, buf_len); in nfit_test_ctl()
1993 struct acpi_nfit_desc *acpi_desc; in nfit_test0_setup() local
2692 acpi_desc = &t->acpi_desc; in nfit_test0_setup()
2693 set_bit(ND_CMD_GET_CONFIG_SIZE, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2694 set_bit(ND_CMD_GET_CONFIG_DATA, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2695 set_bit(ND_CMD_SET_CONFIG_DATA, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2696 set_bit(ND_INTEL_SMART, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2697 set_bit(ND_INTEL_SMART_THRESHOLD, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2698 set_bit(ND_INTEL_SMART_SET_THRESHOLD, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2699 set_bit(ND_INTEL_SMART_INJECT, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2700 set_bit(ND_CMD_ARS_CAP, &acpi_desc->bus_cmd_force_en); in nfit_test0_setup()
2701 set_bit(ND_CMD_ARS_START, &acpi_desc->bus_cmd_force_en); in nfit_test0_setup()
2702 set_bit(ND_CMD_ARS_STATUS, &acpi_desc->bus_cmd_force_en); in nfit_test0_setup()
2703 set_bit(ND_CMD_CLEAR_ERROR, &acpi_desc->bus_cmd_force_en); in nfit_test0_setup()
2704 set_bit(ND_CMD_CALL, &acpi_desc->bus_cmd_force_en); in nfit_test0_setup()
2705 set_bit(NFIT_CMD_TRANSLATE_SPA, &acpi_desc->bus_dsm_mask); in nfit_test0_setup()
2706 set_bit(NFIT_CMD_ARS_INJECT_SET, &acpi_desc->bus_dsm_mask); in nfit_test0_setup()
2707 set_bit(NFIT_CMD_ARS_INJECT_CLEAR, &acpi_desc->bus_dsm_mask); in nfit_test0_setup()
2708 set_bit(NFIT_CMD_ARS_INJECT_GET, &acpi_desc->bus_dsm_mask); in nfit_test0_setup()
2709 set_bit(ND_INTEL_FW_GET_INFO, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2710 set_bit(ND_INTEL_FW_START_UPDATE, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2711 set_bit(ND_INTEL_FW_SEND_DATA, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2712 set_bit(ND_INTEL_FW_FINISH_UPDATE, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2713 set_bit(ND_INTEL_FW_FINISH_QUERY, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2714 set_bit(ND_INTEL_ENABLE_LSS_STATUS, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2716 &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2717 set_bit(NVDIMM_INTEL_SET_PASSPHRASE, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2719 &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2720 set_bit(NVDIMM_INTEL_UNLOCK_UNIT, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2721 set_bit(NVDIMM_INTEL_FREEZE_LOCK, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2722 set_bit(NVDIMM_INTEL_SECURE_ERASE, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2723 set_bit(NVDIMM_INTEL_OVERWRITE, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2724 set_bit(NVDIMM_INTEL_QUERY_OVERWRITE, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2726 &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2728 &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2729 set_bit(NVDIMM_INTEL_FW_ACTIVATE_DIMMINFO, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2730 set_bit(NVDIMM_INTEL_FW_ACTIVATE_ARM, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2732 acpi_mask = &acpi_desc->family_dsm_mask[NVDIMM_BUS_FAMILY_INTEL]; in nfit_test0_setup()
2744 struct acpi_nfit_desc *acpi_desc; in nfit_test1_setup() local
2834 acpi_desc = &t->acpi_desc; in nfit_test1_setup()
2835 set_bit(ND_CMD_ARS_CAP, &acpi_desc->bus_cmd_force_en); in nfit_test1_setup()
2836 set_bit(ND_CMD_ARS_START, &acpi_desc->bus_cmd_force_en); in nfit_test1_setup()
2837 set_bit(ND_CMD_ARS_STATUS, &acpi_desc->bus_cmd_force_en); in nfit_test1_setup()
2838 set_bit(ND_CMD_CLEAR_ERROR, &acpi_desc->bus_cmd_force_en); in nfit_test1_setup()
2839 set_bit(ND_INTEL_ENABLE_LSS_STATUS, &acpi_desc->dimm_cmd_force_en); in nfit_test1_setup()
2840 set_bit(ND_CMD_GET_CONFIG_SIZE, &acpi_desc->dimm_cmd_force_en); in nfit_test1_setup()
2841 set_bit(ND_CMD_GET_CONFIG_DATA, &acpi_desc->dimm_cmd_force_en); in nfit_test1_setup()
2842 set_bit(ND_CMD_SET_CONFIG_DATA, &acpi_desc->dimm_cmd_force_en); in nfit_test1_setup()
2878 struct acpi_nfit_desc *acpi_desc; in nfit_ctl_test() local
2904 acpi_desc = devm_kzalloc(dev, sizeof(*acpi_desc), GFP_KERNEL); in nfit_ctl_test()
2905 if (!acpi_desc) in nfit_ctl_test()
2907 *acpi_desc = (struct acpi_nfit_desc) { in nfit_ctl_test()
2965 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, nvdimm, ND_CMD_GET_CONFIG_SIZE, in nfit_ctl_test()
2985 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_STATUS, in nfit_ctl_test()
3004 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_CAP, in nfit_ctl_test()
3026 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_STATUS, in nfit_ctl_test()
3048 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_STATUS, in nfit_ctl_test()
3066 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, nvdimm, ND_CMD_GET_CONFIG_SIZE, in nfit_ctl_test()
3084 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_CLEAR_ERROR, in nfit_ctl_test()
3114 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_CALL, in nfit_ctl_test()
3128 struct acpi_nfit_desc *acpi_desc; in nfit_test_probe() local
3198 acpi_desc = &nfit_test->acpi_desc; in nfit_test_probe()
3199 acpi_nfit_desc_init(acpi_desc, &pdev->dev); in nfit_test_probe()
3200 nd_desc = &acpi_desc->nd_desc; in nfit_test_probe()
3205 rc = acpi_nfit_init(acpi_desc, nfit_test->nfit_buf, in nfit_test_probe()
3210 rc = devm_add_action_or_reset(&pdev->dev, acpi_nfit_shutdown, acpi_desc); in nfit_test_probe()
3230 mutex_lock(&acpi_desc->init_mutex); in nfit_test_probe()
3231 list_for_each_entry(nfit_mem, &acpi_desc->dimms, list) { in nfit_test_probe()
3240 mutex_unlock(&acpi_desc->init_mutex); in nfit_test_probe()