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()
1991 struct acpi_nfit_desc *acpi_desc; in nfit_test0_setup() local
2690 acpi_desc = &t->acpi_desc; in nfit_test0_setup()
2691 set_bit(ND_CMD_GET_CONFIG_SIZE, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2692 set_bit(ND_CMD_GET_CONFIG_DATA, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2693 set_bit(ND_CMD_SET_CONFIG_DATA, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2694 set_bit(ND_INTEL_SMART, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2695 set_bit(ND_INTEL_SMART_THRESHOLD, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2696 set_bit(ND_INTEL_SMART_SET_THRESHOLD, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2697 set_bit(ND_INTEL_SMART_INJECT, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2698 set_bit(ND_CMD_ARS_CAP, &acpi_desc->bus_cmd_force_en); in nfit_test0_setup()
2699 set_bit(ND_CMD_ARS_START, &acpi_desc->bus_cmd_force_en); in nfit_test0_setup()
2700 set_bit(ND_CMD_ARS_STATUS, &acpi_desc->bus_cmd_force_en); in nfit_test0_setup()
2701 set_bit(ND_CMD_CLEAR_ERROR, &acpi_desc->bus_cmd_force_en); in nfit_test0_setup()
2702 set_bit(ND_CMD_CALL, &acpi_desc->bus_cmd_force_en); in nfit_test0_setup()
2703 set_bit(NFIT_CMD_TRANSLATE_SPA, &acpi_desc->bus_dsm_mask); in nfit_test0_setup()
2704 set_bit(NFIT_CMD_ARS_INJECT_SET, &acpi_desc->bus_dsm_mask); in nfit_test0_setup()
2705 set_bit(NFIT_CMD_ARS_INJECT_CLEAR, &acpi_desc->bus_dsm_mask); in nfit_test0_setup()
2706 set_bit(NFIT_CMD_ARS_INJECT_GET, &acpi_desc->bus_dsm_mask); in nfit_test0_setup()
2707 set_bit(ND_INTEL_FW_GET_INFO, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2708 set_bit(ND_INTEL_FW_START_UPDATE, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2709 set_bit(ND_INTEL_FW_SEND_DATA, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2710 set_bit(ND_INTEL_FW_FINISH_UPDATE, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2711 set_bit(ND_INTEL_FW_FINISH_QUERY, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2712 set_bit(ND_INTEL_ENABLE_LSS_STATUS, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2714 &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2715 set_bit(NVDIMM_INTEL_SET_PASSPHRASE, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2717 &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2718 set_bit(NVDIMM_INTEL_UNLOCK_UNIT, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2719 set_bit(NVDIMM_INTEL_FREEZE_LOCK, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2720 set_bit(NVDIMM_INTEL_SECURE_ERASE, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2721 set_bit(NVDIMM_INTEL_OVERWRITE, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2722 set_bit(NVDIMM_INTEL_QUERY_OVERWRITE, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2724 &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2726 &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2727 set_bit(NVDIMM_INTEL_FW_ACTIVATE_DIMMINFO, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2728 set_bit(NVDIMM_INTEL_FW_ACTIVATE_ARM, &acpi_desc->dimm_cmd_force_en); in nfit_test0_setup()
2730 acpi_mask = &acpi_desc->family_dsm_mask[NVDIMM_BUS_FAMILY_INTEL]; in nfit_test0_setup()
2742 struct acpi_nfit_desc *acpi_desc; in nfit_test1_setup() local
2832 acpi_desc = &t->acpi_desc; in nfit_test1_setup()
2833 set_bit(ND_CMD_ARS_CAP, &acpi_desc->bus_cmd_force_en); in nfit_test1_setup()
2834 set_bit(ND_CMD_ARS_START, &acpi_desc->bus_cmd_force_en); in nfit_test1_setup()
2835 set_bit(ND_CMD_ARS_STATUS, &acpi_desc->bus_cmd_force_en); in nfit_test1_setup()
2836 set_bit(ND_CMD_CLEAR_ERROR, &acpi_desc->bus_cmd_force_en); in nfit_test1_setup()
2837 set_bit(ND_INTEL_ENABLE_LSS_STATUS, &acpi_desc->dimm_cmd_force_en); in nfit_test1_setup()
2838 set_bit(ND_CMD_GET_CONFIG_SIZE, &acpi_desc->dimm_cmd_force_en); in nfit_test1_setup()
2839 set_bit(ND_CMD_GET_CONFIG_DATA, &acpi_desc->dimm_cmd_force_en); in nfit_test1_setup()
2840 set_bit(ND_CMD_SET_CONFIG_DATA, &acpi_desc->dimm_cmd_force_en); in nfit_test1_setup()
2876 struct acpi_nfit_desc *acpi_desc; in nfit_ctl_test() local
2902 acpi_desc = devm_kzalloc(dev, sizeof(*acpi_desc), GFP_KERNEL); in nfit_ctl_test()
2903 if (!acpi_desc) in nfit_ctl_test()
2905 *acpi_desc = (struct acpi_nfit_desc) { in nfit_ctl_test()
2963 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, nvdimm, ND_CMD_GET_CONFIG_SIZE, in nfit_ctl_test()
2983 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_STATUS, in nfit_ctl_test()
3002 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_CAP, in nfit_ctl_test()
3024 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_STATUS, in nfit_ctl_test()
3046 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_STATUS, in nfit_ctl_test()
3064 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, nvdimm, ND_CMD_GET_CONFIG_SIZE, in nfit_ctl_test()
3082 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_CLEAR_ERROR, in nfit_ctl_test()
3112 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_CALL, in nfit_ctl_test()
3126 struct acpi_nfit_desc *acpi_desc; in nfit_test_probe() local
3196 acpi_desc = &nfit_test->acpi_desc; in nfit_test_probe()
3197 acpi_nfit_desc_init(acpi_desc, &pdev->dev); in nfit_test_probe()
3198 nd_desc = &acpi_desc->nd_desc; in nfit_test_probe()
3203 rc = acpi_nfit_init(acpi_desc, nfit_test->nfit_buf, in nfit_test_probe()
3208 rc = devm_add_action_or_reset(&pdev->dev, acpi_nfit_shutdown, acpi_desc); in nfit_test_probe()
3228 mutex_lock(&acpi_desc->init_mutex); in nfit_test_probe()
3229 list_for_each_entry(nfit_mem, &acpi_desc->dimms, list) { in nfit_test_probe()
3238 mutex_unlock(&acpi_desc->init_mutex); in nfit_test_probe()