Lines Matching defs:spa

663 		struct nd_cmd_translate_spa *spa)
670 .addr = spa->spa,
691 spa->devices[0].nfit_device_handle = handle[nvdimm->id];
692 spa->num_nvdimms = 1;
693 spa->devices[0].dpa = dpa;
699 struct nd_cmd_translate_spa *spa, unsigned int buf_len)
701 if (buf_len < spa->translate_length)
704 if (nfit_test_search_spa(bus, spa) < 0 || !spa->num_nvdimms)
705 spa->status = 2;
1874 static size_t sizeof_spa(struct acpi_nfit_system_address *spa)
1876 /* until spa location cookie support is added... */
1877 return sizeof(*spa) - 8;
1882 struct acpi_nfit_system_address *spa = NULL;
1884 size_t nfit_size = sizeof_spa(spa) * NUM_SPA
1947 struct acpi_nfit_system_address *spa = NULL;
1948 size_t nfit_size = sizeof_spa(spa) * 2
1996 struct acpi_nfit_system_address *spa;
2009 spa = nfit_buf;
2010 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS;
2011 spa->header.length = sizeof_spa(spa);
2012 memcpy(spa->range_guid, to_nfit_uuid(NFIT_SPA_PM), 16);
2013 spa->range_index = 0+1;
2014 spa->address = t->spa_set_dma[0];
2015 spa->length = SPA0_SIZE;
2016 offset += spa->header.length;
2023 spa = nfit_buf + offset;
2024 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS;
2025 spa->header.length = sizeof_spa(spa);
2026 memcpy(spa->range_guid, to_nfit_uuid(NFIT_SPA_PM), 16);
2027 spa->range_index = 1+1;
2028 spa->address = t->spa_set_dma[1];
2029 spa->length = SPA1_SIZE;
2030 offset += spa->header.length;
2033 spa = nfit_buf + offset;
2034 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS;
2035 spa->header.length = sizeof_spa(spa);
2036 memcpy(spa->range_guid, to_nfit_uuid(NFIT_SPA_DCR), 16);
2037 spa->range_index = 2+1;
2038 spa->address = t->dcr_dma[0];
2039 spa->length = DCR_SIZE;
2040 offset += spa->header.length;
2043 spa = nfit_buf + offset;
2044 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS;
2045 spa->header.length = sizeof_spa(spa);
2046 memcpy(spa->range_guid, to_nfit_uuid(NFIT_SPA_DCR), 16);
2047 spa->range_index = 3+1;
2048 spa->address = t->dcr_dma[1];
2049 spa->length = DCR_SIZE;
2050 offset += spa->header.length;
2053 spa = nfit_buf + offset;
2054 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS;
2055 spa->header.length = sizeof_spa(spa);
2056 memcpy(spa->range_guid, to_nfit_uuid(NFIT_SPA_DCR), 16);
2057 spa->range_index = 4+1;
2058 spa->address = t->dcr_dma[2];
2059 spa->length = DCR_SIZE;
2060 offset += spa->header.length;
2063 spa = nfit_buf + offset;
2064 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS;
2065 spa->header.length = sizeof_spa(spa);
2066 memcpy(spa->range_guid, to_nfit_uuid(NFIT_SPA_DCR), 16);
2067 spa->range_index = 5+1;
2068 spa->address = t->dcr_dma[3];
2069 spa->length = DCR_SIZE;
2070 offset += spa->header.length;
2073 spa = nfit_buf + offset;
2074 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS;
2075 spa->header.length = sizeof_spa(spa);
2076 memcpy(spa->range_guid, to_nfit_uuid(NFIT_SPA_BDW), 16);
2077 spa->range_index = 6+1;
2078 spa->address = t->dimm_dma[0];
2079 spa->length = DIMM_SIZE;
2080 offset += spa->header.length;
2083 spa = nfit_buf + offset;
2084 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS;
2085 spa->header.length = sizeof_spa(spa);
2086 memcpy(spa->range_guid, to_nfit_uuid(NFIT_SPA_BDW), 16);
2087 spa->range_index = 7+1;
2088 spa->address = t->dimm_dma[1];
2089 spa->length = DIMM_SIZE;
2090 offset += spa->header.length;
2093 spa = nfit_buf + offset;
2094 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS;
2095 spa->header.length = sizeof_spa(spa);
2096 memcpy(spa->range_guid, to_nfit_uuid(NFIT_SPA_BDW), 16);
2097 spa->range_index = 8+1;
2098 spa->address = t->dimm_dma[2];
2099 spa->length = DIMM_SIZE;
2100 offset += spa->header.length;
2103 spa = nfit_buf + offset;
2104 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS;
2105 spa->header.length = sizeof_spa(spa);
2106 memcpy(spa->range_guid, to_nfit_uuid(NFIT_SPA_BDW), 16);
2107 spa->range_index = 9+1;
2108 spa->address = t->dimm_dma[3];
2109 spa->length = DIMM_SIZE;
2110 offset += spa->header.length;
2211 /* mem-region6 (spa/dcr0, dimm0) */
2227 /* mem-region7 (spa/dcr1, dimm1) */
2243 /* mem-region8 (spa/dcr2, dimm2) */
2259 /* mem-region9 (spa/dcr3, dimm3) */
2275 /* mem-region10 (spa/bdw0, dimm0) */
2291 /* mem-region11 (spa/bdw1, dimm1) */
2307 /* mem-region12 (spa/bdw2, dimm2) */
2323 /* mem-region13 (spa/dcr3, dimm3) */
2452 /* bdw0 (spa/dcr0, dimm0) */
2464 /* bdw1 (spa/dcr1, dimm1) */
2476 /* bdw2 (spa/dcr2, dimm2) */
2488 /* bdw3 (spa/dcr3, dimm3) */
2577 /* bdw4 (spa/dcr4, dimm4) */
2590 spa = nfit_buf + offset;
2591 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS;
2592 spa->header.length = sizeof_spa(spa);
2593 memcpy(spa->range_guid, to_nfit_uuid(NFIT_SPA_DCR), 16);
2594 spa->range_index = 10+1;
2595 spa->address = t->dcr_dma[4];
2596 spa->length = DCR_SIZE;
2597 offset += spa->header.length;
2604 spa = nfit_buf + offset;
2605 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS;
2606 spa->header.length = sizeof_spa(spa);
2607 memcpy(spa->range_guid, to_nfit_uuid(NFIT_SPA_PM), 16);
2608 spa->range_index = 11+1;
2609 spa->address = t->spa_set_dma[2];
2610 spa->length = SPA0_SIZE;
2611 offset += spa->header.length;
2614 spa = nfit_buf + offset;
2615 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS;
2616 spa->header.length = sizeof_spa(spa);
2617 memcpy(spa->range_guid, to_nfit_uuid(NFIT_SPA_BDW), 16);
2618 spa->range_index = 12+1;
2619 spa->address = t->dimm_dma[4];
2620 spa->length = DIMM_SIZE;
2621 offset += spa->header.length;
2623 /* mem-region14 (spa/dcr4, dimm4) */
2656 /* mem-region16 (spa/bdw4, dimm4) */
2743 struct acpi_nfit_system_address *spa;
2748 spa = nfit_buf + offset;
2749 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS;
2750 spa->header.length = sizeof_spa(spa);
2751 memcpy(spa->range_guid, to_nfit_uuid(NFIT_SPA_PM), 16);
2752 spa->range_index = 0+1;
2753 spa->address = t->spa_set_dma[0];
2754 spa->length = SPA2_SIZE;
2755 offset += spa->header.length;
2758 spa = nfit_buf + offset;
2759 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS;
2760 spa->header.length = sizeof_spa(spa);
2761 memcpy(spa->range_guid, to_nfit_uuid(NFIT_SPA_VCD), 16);
2762 spa->range_index = 0;
2763 spa->address = t->spa_set_dma[1];
2764 spa->length = SPA_VCD_SIZE;
2765 offset += spa->header.length;