Home
last modified time | relevance | path

Searched refs:ghes_dev (Results 1 – 2 of 2) sorted by relevance

/linux-4.1.27/drivers/acpi/apei/
Dhest.c149 struct platform_device *ghes_dev; in hest_parse_ghes() local
160 ghes_dev = ghes_arr->ghes_devs[i]; in hest_parse_ghes()
161 hdr = *(struct acpi_hest_header **)ghes_dev->dev.platform_data; in hest_parse_ghes()
168 ghes_dev = platform_device_alloc("GHES", hest_hdr->source_id); in hest_parse_ghes()
169 if (!ghes_dev) in hest_parse_ghes()
172 rc = platform_device_add_data(ghes_dev, &hest_hdr, sizeof(void *)); in hest_parse_ghes()
176 rc = platform_device_add(ghes_dev); in hest_parse_ghes()
179 ghes_arr->ghes_devs[ghes_arr->count++] = ghes_dev; in hest_parse_ghes()
183 platform_device_put(ghes_dev); in hest_parse_ghes()
Dghes.c945 static int ghes_probe(struct platform_device *ghes_dev) in ghes_probe() argument
952 generic = *(struct acpi_hest_generic **)ghes_dev->dev.platform_data; in ghes_probe()
993 rc = ghes_edac_register(ghes, &ghes_dev->dev); in ghes_probe()
1032 platform_set_drvdata(ghes_dev, ghes); in ghes_probe()
1045 static int ghes_remove(struct platform_device *ghes_dev) in ghes_remove() argument
1050 ghes = platform_get_drvdata(ghes_dev); in ghes_remove()
1082 platform_set_drvdata(ghes_dev, NULL); in ghes_remove()