Lines Matching refs: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;
1872 static size_t sizeof_spa(struct acpi_nfit_system_address *spa)
1874 /* until spa location cookie support is added... */
1875 return sizeof(*spa) - 8;
1880 struct acpi_nfit_system_address *spa = NULL;
1882 size_t nfit_size = sizeof_spa(spa) * NUM_SPA
1945 struct acpi_nfit_system_address *spa = NULL;
1946 size_t nfit_size = sizeof_spa(spa) * 2
1994 struct acpi_nfit_system_address *spa;
2007 spa = nfit_buf;
2008 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS;
2009 spa->header.length = sizeof_spa(spa);
2010 memcpy(spa->range_guid, to_nfit_uuid(NFIT_SPA_PM), 16);
2011 spa->range_index = 0+1;
2012 spa->address = t->spa_set_dma[0];
2013 spa->length = SPA0_SIZE;
2014 offset += spa->header.length;
2021 spa = nfit_buf + offset;
2022 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS;
2023 spa->header.length = sizeof_spa(spa);
2024 memcpy(spa->range_guid, to_nfit_uuid(NFIT_SPA_PM), 16);
2025 spa->range_index = 1+1;
2026 spa->address = t->spa_set_dma[1];
2027 spa->length = SPA1_SIZE;
2028 offset += spa->header.length;
2031 spa = nfit_buf + offset;
2032 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS;
2033 spa->header.length = sizeof_spa(spa);
2034 memcpy(spa->range_guid, to_nfit_uuid(NFIT_SPA_DCR), 16);
2035 spa->range_index = 2+1;
2036 spa->address = t->dcr_dma[0];
2037 spa->length = DCR_SIZE;
2038 offset += spa->header.length;
2041 spa = nfit_buf + offset;
2042 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS;
2043 spa->header.length = sizeof_spa(spa);
2044 memcpy(spa->range_guid, to_nfit_uuid(NFIT_SPA_DCR), 16);
2045 spa->range_index = 3+1;
2046 spa->address = t->dcr_dma[1];
2047 spa->length = DCR_SIZE;
2048 offset += spa->header.length;
2051 spa = nfit_buf + offset;
2052 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS;
2053 spa->header.length = sizeof_spa(spa);
2054 memcpy(spa->range_guid, to_nfit_uuid(NFIT_SPA_DCR), 16);
2055 spa->range_index = 4+1;
2056 spa->address = t->dcr_dma[2];
2057 spa->length = DCR_SIZE;
2058 offset += spa->header.length;
2061 spa = nfit_buf + offset;
2062 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS;
2063 spa->header.length = sizeof_spa(spa);
2064 memcpy(spa->range_guid, to_nfit_uuid(NFIT_SPA_DCR), 16);
2065 spa->range_index = 5+1;
2066 spa->address = t->dcr_dma[3];
2067 spa->length = DCR_SIZE;
2068 offset += spa->header.length;
2071 spa = nfit_buf + offset;
2072 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS;
2073 spa->header.length = sizeof_spa(spa);
2074 memcpy(spa->range_guid, to_nfit_uuid(NFIT_SPA_BDW), 16);
2075 spa->range_index = 6+1;
2076 spa->address = t->dimm_dma[0];
2077 spa->length = DIMM_SIZE;
2078 offset += spa->header.length;
2081 spa = nfit_buf + offset;
2082 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS;
2083 spa->header.length = sizeof_spa(spa);
2084 memcpy(spa->range_guid, to_nfit_uuid(NFIT_SPA_BDW), 16);
2085 spa->range_index = 7+1;
2086 spa->address = t->dimm_dma[1];
2087 spa->length = DIMM_SIZE;
2088 offset += spa->header.length;
2091 spa = nfit_buf + offset;
2092 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS;
2093 spa->header.length = sizeof_spa(spa);
2094 memcpy(spa->range_guid, to_nfit_uuid(NFIT_SPA_BDW), 16);
2095 spa->range_index = 8+1;
2096 spa->address = t->dimm_dma[2];
2097 spa->length = DIMM_SIZE;
2098 offset += spa->header.length;
2101 spa = nfit_buf + offset;
2102 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS;
2103 spa->header.length = sizeof_spa(spa);
2104 memcpy(spa->range_guid, to_nfit_uuid(NFIT_SPA_BDW), 16);
2105 spa->range_index = 9+1;
2106 spa->address = t->dimm_dma[3];
2107 spa->length = DIMM_SIZE;
2108 offset += spa->header.length;
2209 /* mem-region6 (spa/dcr0, dimm0) */
2225 /* mem-region7 (spa/dcr1, dimm1) */
2241 /* mem-region8 (spa/dcr2, dimm2) */
2257 /* mem-region9 (spa/dcr3, dimm3) */
2273 /* mem-region10 (spa/bdw0, dimm0) */
2289 /* mem-region11 (spa/bdw1, dimm1) */
2305 /* mem-region12 (spa/bdw2, dimm2) */
2321 /* mem-region13 (spa/dcr3, dimm3) */
2450 /* bdw0 (spa/dcr0, dimm0) */
2462 /* bdw1 (spa/dcr1, dimm1) */
2474 /* bdw2 (spa/dcr2, dimm2) */
2486 /* bdw3 (spa/dcr3, dimm3) */
2575 /* bdw4 (spa/dcr4, dimm4) */
2588 spa = nfit_buf + offset;
2589 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS;
2590 spa->header.length = sizeof_spa(spa);
2591 memcpy(spa->range_guid, to_nfit_uuid(NFIT_SPA_DCR), 16);
2592 spa->range_index = 10+1;
2593 spa->address = t->dcr_dma[4];
2594 spa->length = DCR_SIZE;
2595 offset += spa->header.length;
2602 spa = nfit_buf + offset;
2603 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS;
2604 spa->header.length = sizeof_spa(spa);
2605 memcpy(spa->range_guid, to_nfit_uuid(NFIT_SPA_PM), 16);
2606 spa->range_index = 11+1;
2607 spa->address = t->spa_set_dma[2];
2608 spa->length = SPA0_SIZE;
2609 offset += spa->header.length;
2612 spa = nfit_buf + offset;
2613 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS;
2614 spa->header.length = sizeof_spa(spa);
2615 memcpy(spa->range_guid, to_nfit_uuid(NFIT_SPA_BDW), 16);
2616 spa->range_index = 12+1;
2617 spa->address = t->dimm_dma[4];
2618 spa->length = DIMM_SIZE;
2619 offset += spa->header.length;
2621 /* mem-region14 (spa/dcr4, dimm4) */
2654 /* mem-region16 (spa/bdw4, dimm4) */
2741 struct acpi_nfit_system_address *spa;
2746 spa = nfit_buf + offset;
2747 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS;
2748 spa->header.length = sizeof_spa(spa);
2749 memcpy(spa->range_guid, to_nfit_uuid(NFIT_SPA_PM), 16);
2750 spa->range_index = 0+1;
2751 spa->address = t->spa_set_dma[0];
2752 spa->length = SPA2_SIZE;
2753 offset += spa->header.length;
2756 spa = nfit_buf + offset;
2757 spa->header.type = ACPI_NFIT_TYPE_SYSTEM_ADDRESS;
2758 spa->header.length = sizeof_spa(spa);
2759 memcpy(spa->range_guid, to_nfit_uuid(NFIT_SPA_VCD), 16);
2760 spa->range_index = 0;
2761 spa->address = t->spa_set_dma[1];
2762 spa->length = SPA_VCD_SIZE;
2763 offset += spa->header.length;