Lines Matching refs:crat_table
489 struct crat_header *crat_table = (struct crat_header *)crat_image; in kfd_parse_crat_table() local
501 num_nodes = crat_table->num_domains; in kfd_parse_crat_table()
502 image_len = crat_table->length; in kfd_parse_crat_table()
518 memcpy(top_dev->oem_id, crat_table->oem_id, CRAT_OEMID_LENGTH); in kfd_parse_crat_table()
519 memcpy(top_dev->oem_table_id, crat_table->oem_table_id, in kfd_parse_crat_table()
521 top_dev->oem_revision = crat_table->oem_revision; in kfd_parse_crat_table()
523 sub_type_hdr = (struct crat_subtype_generic *)(crat_table+1); in kfd_parse_crat_table()
749 struct acpi_table_header *crat_table; in kfd_create_crat_image_acpi() local
759 status = acpi_get_table(CRAT_SIGNATURE, 0, &crat_table); in kfd_create_crat_image_acpi()
775 pcrat_image = kmemdup(crat_table, crat_table->length, GFP_KERNEL); in kfd_create_crat_image_acpi()
780 *size = crat_table->length; in kfd_create_crat_image_acpi()
931 struct crat_header *crat_table = (struct crat_header *)pcrat_image; in kfd_create_vcrat_image_cpu() local
952 memset(crat_table, 0, sizeof(struct crat_header)); in kfd_create_vcrat_image_cpu()
953 memcpy(&crat_table->signature, CRAT_SIGNATURE, in kfd_create_vcrat_image_cpu()
954 sizeof(crat_table->signature)); in kfd_create_vcrat_image_cpu()
955 crat_table->length = sizeof(struct crat_header); in kfd_create_vcrat_image_cpu()
961 crat_table->oem_revision = acpi_table->revision; in kfd_create_vcrat_image_cpu()
962 memcpy(crat_table->oem_id, acpi_table->oem_id, in kfd_create_vcrat_image_cpu()
964 memcpy(crat_table->oem_table_id, acpi_table->oem_table_id, in kfd_create_vcrat_image_cpu()
967 crat_table->total_entries = 0; in kfd_create_vcrat_image_cpu()
968 crat_table->num_domains = 0; in kfd_create_vcrat_image_cpu()
970 sub_type_hdr = (struct crat_subtype_generic *)(crat_table+1); in kfd_create_vcrat_image_cpu()
978 crat_table->num_domains, in kfd_create_vcrat_image_cpu()
982 crat_table->length += sub_type_hdr->length; in kfd_create_vcrat_image_cpu()
983 crat_table->total_entries++; in kfd_create_vcrat_image_cpu()
990 crat_table->num_domains, in kfd_create_vcrat_image_cpu()
994 crat_table->length += sub_type_hdr->length; in kfd_create_vcrat_image_cpu()
995 crat_table->total_entries++; in kfd_create_vcrat_image_cpu()
1007 crat_table->length += (sub_type_hdr->length * entries); in kfd_create_vcrat_image_cpu()
1008 crat_table->total_entries += entries; in kfd_create_vcrat_image_cpu()
1016 crat_table->num_domains++; in kfd_create_vcrat_image_cpu()
1027 *size = crat_table->length; in kfd_create_vcrat_image_cpu()
1141 struct crat_header *crat_table = (struct crat_header *)pcrat_image; in kfd_create_vcrat_image_gpu() local
1164 memset(crat_table, 0, sizeof(struct crat_header)); in kfd_create_vcrat_image_gpu()
1166 memcpy(&crat_table->signature, CRAT_SIGNATURE, in kfd_create_vcrat_image_gpu()
1167 sizeof(crat_table->signature)); in kfd_create_vcrat_image_gpu()
1169 crat_table->length = sizeof(struct crat_header); in kfd_create_vcrat_image_gpu()
1170 crat_table->num_domains = 1; in kfd_create_vcrat_image_gpu()
1171 crat_table->total_entries = 0; in kfd_create_vcrat_image_gpu()
1180 sub_type_hdr = (struct crat_subtype_generic *)(crat_table + 1); in kfd_create_vcrat_image_gpu()
1215 crat_table->length += sub_type_hdr->length; in kfd_create_vcrat_image_gpu()
1216 crat_table->total_entries++; in kfd_create_vcrat_image_gpu()
1248 crat_table->length += sizeof(struct crat_subtype_memory); in kfd_create_vcrat_image_gpu()
1249 crat_table->total_entries++; in kfd_create_vcrat_image_gpu()
1266 crat_table->length += cache_mem_filled; in kfd_create_vcrat_image_gpu()
1267 crat_table->total_entries += num_of_cache_entries; in kfd_create_vcrat_image_gpu()
1282 crat_table->length += sub_type_hdr->length; in kfd_create_vcrat_image_gpu()
1283 crat_table->total_entries++; in kfd_create_vcrat_image_gpu()
1310 crat_table->length += sub_type_hdr->length; in kfd_create_vcrat_image_gpu()
1311 crat_table->total_entries++; in kfd_create_vcrat_image_gpu()
1314 *size = crat_table->length; in kfd_create_vcrat_image_gpu()