Lines Matching refs:acpi_desc
183 struct acpi_nfit_desc acpi_desc; member
1328 static void nfit_ctl_dbg(struct acpi_nfit_desc *acpi_desc, in nfit_ctl_dbg() argument
1332 struct nfit_test *t = container_of(acpi_desc, typeof(*t), acpi_desc); in nfit_ctl_dbg()
1355 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in nfit_test_ctl() local
1356 struct nfit_test *t = container_of(acpi_desc, typeof(*t), acpi_desc); in nfit_test_ctl()
1364 nfit_ctl_dbg(acpi_desc, nvdimm, cmd, buf, buf_len); in nfit_test_ctl()
1533 acpi_desc->nvdimm_bus, buf, buf_len); in nfit_test_ctl()
1986 struct acpi_nfit_desc *acpi_desc; in nfit_test0_setup() local
2685 acpi_desc = &t->acpi_desc; in nfit_test0_setup()
2686 set_bit(ND_CMD_GET_CONFIG_SIZE, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2687 set_bit(ND_CMD_GET_CONFIG_DATA, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2688 set_bit(ND_CMD_SET_CONFIG_DATA, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2689 set_bit(ND_INTEL_SMART, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2690 set_bit(ND_INTEL_SMART_THRESHOLD, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2691 set_bit(ND_INTEL_SMART_SET_THRESHOLD, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2692 set_bit(ND_INTEL_SMART_INJECT, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2693 set_bit(ND_CMD_ARS_CAP, &acpi_desc->bus_cmd_force_en); in nfit_test0_setup()
2694 set_bit(ND_CMD_ARS_START, &acpi_desc->bus_cmd_force_en); in nfit_test0_setup()
2695 set_bit(ND_CMD_ARS_STATUS, &acpi_desc->bus_cmd_force_en); in nfit_test0_setup()
2696 set_bit(ND_CMD_CLEAR_ERROR, &acpi_desc->bus_cmd_force_en); in nfit_test0_setup()
2697 set_bit(ND_CMD_CALL, &acpi_desc->bus_cmd_force_en); in nfit_test0_setup()
2698 set_bit(NFIT_CMD_TRANSLATE_SPA, &acpi_desc->bus_dsm_mask); in nfit_test0_setup()
2699 set_bit(NFIT_CMD_ARS_INJECT_SET, &acpi_desc->bus_dsm_mask); in nfit_test0_setup()
2700 set_bit(NFIT_CMD_ARS_INJECT_CLEAR, &acpi_desc->bus_dsm_mask); in nfit_test0_setup()
2701 set_bit(NFIT_CMD_ARS_INJECT_GET, &acpi_desc->bus_dsm_mask); in nfit_test0_setup()
2702 set_bit(ND_INTEL_FW_GET_INFO, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2703 set_bit(ND_INTEL_FW_START_UPDATE, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2704 set_bit(ND_INTEL_FW_SEND_DATA, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2705 set_bit(ND_INTEL_FW_FINISH_UPDATE, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2706 set_bit(ND_INTEL_FW_FINISH_QUERY, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2707 set_bit(ND_INTEL_ENABLE_LSS_STATUS, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2709 &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2710 set_bit(NVDIMM_INTEL_SET_PASSPHRASE, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2712 &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2713 set_bit(NVDIMM_INTEL_UNLOCK_UNIT, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2714 set_bit(NVDIMM_INTEL_FREEZE_LOCK, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2715 set_bit(NVDIMM_INTEL_SECURE_ERASE, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2716 set_bit(NVDIMM_INTEL_OVERWRITE, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2717 set_bit(NVDIMM_INTEL_QUERY_OVERWRITE, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2719 &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2721 &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2722 set_bit(NVDIMM_INTEL_FW_ACTIVATE_DIMMINFO, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2723 set_bit(NVDIMM_INTEL_FW_ACTIVATE_ARM, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2725 acpi_mask = &acpi_desc->family_dsm_mask[NVDIMM_BUS_FAMILY_INTEL]; in nfit_test0_setup()
2737 struct acpi_nfit_desc *acpi_desc; in nfit_test1_setup() local
2827 acpi_desc = &t->acpi_desc; in nfit_test1_setup()
2828 set_bit(ND_CMD_ARS_CAP, &acpi_desc->bus_cmd_force_en); in nfit_test1_setup()
2829 set_bit(ND_CMD_ARS_START, &acpi_desc->bus_cmd_force_en); in nfit_test1_setup()
2830 set_bit(ND_CMD_ARS_STATUS, &acpi_desc->bus_cmd_force_en); in nfit_test1_setup()
2831 set_bit(ND_CMD_CLEAR_ERROR, &acpi_desc->bus_cmd_force_en); in nfit_test1_setup()
2832 set_bit(ND_INTEL_ENABLE_LSS_STATUS, &acpi_desc->dimm_cmd_force_en); in nfit_test1_setup()
2833 set_bit(ND_CMD_GET_CONFIG_SIZE, &acpi_desc->dimm_cmd_force_en); in nfit_test1_setup()
2834 set_bit(ND_CMD_GET_CONFIG_DATA, &acpi_desc->dimm_cmd_force_en); in nfit_test1_setup()
2835 set_bit(ND_CMD_SET_CONFIG_DATA, &acpi_desc->dimm_cmd_force_en); in nfit_test1_setup()
2893 struct acpi_nfit_desc *acpi_desc; in nfit_ctl_test() local
2919 acpi_desc = devm_kzalloc(dev, sizeof(*acpi_desc), GFP_KERNEL); in nfit_ctl_test()
2920 if (!acpi_desc) in nfit_ctl_test()
2922 *acpi_desc = (struct acpi_nfit_desc) { in nfit_ctl_test()
2980 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, nvdimm, ND_CMD_GET_CONFIG_SIZE, in nfit_ctl_test()
3000 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_STATUS, in nfit_ctl_test()
3019 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_CAP, in nfit_ctl_test()
3041 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_STATUS, in nfit_ctl_test()
3063 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_STATUS, in nfit_ctl_test()
3081 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, nvdimm, ND_CMD_GET_CONFIG_SIZE, in nfit_ctl_test()
3099 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_CLEAR_ERROR, in nfit_ctl_test()
3129 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_CALL, in nfit_ctl_test()
3143 struct acpi_nfit_desc *acpi_desc; in nfit_test_probe() local
3213 acpi_desc = &nfit_test->acpi_desc; in nfit_test_probe()
3214 acpi_nfit_desc_init(acpi_desc, &pdev->dev); in nfit_test_probe()
3215 acpi_desc->blk_do_io = nfit_test_blk_do_io; in nfit_test_probe()
3216 nd_desc = &acpi_desc->nd_desc; in nfit_test_probe()
3221 rc = acpi_nfit_init(acpi_desc, nfit_test->nfit_buf, in nfit_test_probe()
3226 rc = devm_add_action_or_reset(&pdev->dev, acpi_nfit_shutdown, acpi_desc); in nfit_test_probe()
3246 mutex_lock(&acpi_desc->init_mutex); in nfit_test_probe()
3247 list_for_each_entry(nfit_mem, &acpi_desc->dimms, list) { in nfit_test_probe()
3256 mutex_unlock(&acpi_desc->init_mutex); in nfit_test_probe()