Lines Matching refs:nd_desc
90 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; in to_acpi_dev() local
96 if (!nd_desc->provider_name in to_acpi_dev()
97 || strcmp(nd_desc->provider_name, "ACPI.NFIT") != 0) in to_acpi_dev()
435 int acpi_nfit_ctl(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm, in acpi_nfit_ctl() argument
438 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in acpi_nfit_ctl()
478 cmd_mask = nd_desc->cmd_mask; in acpi_nfit_ctl()
481 if (!test_bit(family, &nd_desc->bus_family_mask)) in acpi_nfit_ctl()
1246 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in bus_dsm_mask_show() local
1247 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in bus_dsm_mask_show()
1258 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in revision_show() local
1259 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in revision_show()
1269 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in hw_error_scrub_show() local
1270 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in hw_error_scrub_show()
1285 struct nvdimm_bus_descriptor *nd_desc; in hw_error_scrub_store() local
1294 nd_desc = dev_get_drvdata(dev); in hw_error_scrub_store()
1295 if (nd_desc) { in hw_error_scrub_store()
1296 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in hw_error_scrub_store()
1325 struct nvdimm_bus_descriptor *nd_desc; in scrub_show() local
1331 nd_desc = dev_get_drvdata(dev); in scrub_show()
1332 if (!nd_desc) { in scrub_show()
1336 acpi_desc = to_acpi_desc(nd_desc); in scrub_show()
1357 struct nvdimm_bus_descriptor *nd_desc; in scrub_store() local
1368 nd_desc = dev_get_drvdata(dev); in scrub_store()
1369 if (nd_desc) { in scrub_store()
1370 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in scrub_store()
1383 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in ars_supported() local
1387 return (nd_desc->cmd_mask & mask) == mask; in ars_supported()
1838 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; in acpi_nfit_add_dimm() local
1850 set_bit(NVDIMM_FAMILY_INTEL, &nd_desc->dimm_family_mask); in acpi_nfit_add_dimm()
1903 clear_bit(NVDIMM_FAMILY_INTEL, &nd_desc->dimm_family_mask); in acpi_nfit_add_dimm()
1906 set_bit(i, &nd_desc->dimm_family_mask); in acpi_nfit_add_dimm()
2032 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; in acpi_nfit_get_fw_ops() local
2034 if (!nd_desc->fw_ops) in acpi_nfit_get_fw_ops()
2186 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; in acpi_nfit_init_dsms() local
2192 set_bit(ND_CMD_CALL, &nd_desc->cmd_mask); in acpi_nfit_init_dsms()
2193 set_bit(NVDIMM_BUS_FAMILY_NFIT, &nd_desc->bus_family_mask); in acpi_nfit_init_dsms()
2197 nd_desc->cmd_mask = acpi_desc->bus_cmd_force_en; in acpi_nfit_init_dsms()
2198 mask = &nd_desc->bus_family_mask; in acpi_nfit_init_dsms()
2201 nd_desc->fw_ops = intel_bus_fw_ops; in acpi_nfit_init_dsms()
2211 set_bit(i, &nd_desc->cmd_mask); in acpi_nfit_init_dsms()
2235 set_bit(NVDIMM_BUS_FAMILY_INTEL, &nd_desc->bus_family_mask); in acpi_nfit_init_dsms()
2236 nd_desc->fw_ops = intel_bus_fw_ops; in acpi_nfit_init_dsms()
2582 static int acpi_nfit_blk_get_flags(struct nvdimm_bus_descriptor *nd_desc, in acpi_nfit_blk_get_flags() argument
2589 rc = nd_desc->ndctl(nd_desc, nvdimm, ND_CMD_DIMM_FLAGS, &flags, in acpi_nfit_blk_get_flags()
2607 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in acpi_nfit_blk_region_enable() local
2676 rc = acpi_nfit_blk_get_flags(nd_desc, nvdimm, nfit_blk); in acpi_nfit_blk_region_enable()
2705 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; in ars_get_cap() local
2711 rc = nd_desc->ndctl(nd_desc, NULL, ND_CMD_ARS_CAP, cmd, in ars_get_cap()
2725 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; in ars_start() local
2739 rc = nd_desc->ndctl(nd_desc, NULL, ND_CMD_ARS_START, &ars_start, in ars_start()
2754 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; in ars_continue() local
2762 rc = nd_desc->ndctl(nd_desc, NULL, ND_CMD_ARS_START, &ars_start, in ars_continue()
2771 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; in ars_get_status() local
2775 rc = nd_desc->ndctl(nd_desc, NULL, ND_CMD_ARS_STATUS, ars_status, in ars_get_status()
3447 &acpi_desc->nd_desc); in acpi_nfit_init()
3518 static int acpi_nfit_flush_probe(struct nvdimm_bus_descriptor *nd_desc) in acpi_nfit_flush_probe() argument
3520 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in acpi_nfit_flush_probe()
3534 static int __acpi_nfit_clear_to_send(struct nvdimm_bus_descriptor *nd_desc, in __acpi_nfit_clear_to_send() argument
3537 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in __acpi_nfit_clear_to_send()
3560 static int acpi_nfit_clear_to_send(struct nvdimm_bus_descriptor *nd_desc, in acpi_nfit_clear_to_send() argument
3579 return __acpi_nfit_clear_to_send(nd_desc, nvdimm, cmd); in acpi_nfit_clear_to_send()
3623 struct nvdimm_bus_descriptor *nd_desc; in acpi_nfit_desc_init() local
3628 nd_desc = &acpi_desc->nd_desc; in acpi_nfit_desc_init()
3629 nd_desc->provider_name = "ACPI.NFIT"; in acpi_nfit_desc_init()
3630 nd_desc->module = THIS_MODULE; in acpi_nfit_desc_init()
3631 nd_desc->ndctl = acpi_nfit_ctl; in acpi_nfit_desc_init()
3632 nd_desc->flush_probe = acpi_nfit_flush_probe; in acpi_nfit_desc_init()
3633 nd_desc->clear_to_send = acpi_nfit_clear_to_send; in acpi_nfit_desc_init()
3634 nd_desc->attr_groups = acpi_nfit_attribute_groups; in acpi_nfit_desc_init()