Lines Matching refs:ghes_arr
135 struct ghes_arr { struct
153 struct ghes_arr *ghes_arr = data; in hest_parse_ghes() local
162 for (i = 0; i < ghes_arr->count; i++) { in hest_parse_ghes()
164 ghes_dev = ghes_arr->ghes_devs[i]; in hest_parse_ghes()
183 ghes_arr->ghes_devs[ghes_arr->count++] = ghes_dev; in hest_parse_ghes()
194 struct ghes_arr ghes_arr; in hest_ghes_dev_register() local
196 ghes_arr.count = 0; in hest_ghes_dev_register()
197 ghes_arr.ghes_devs = kmalloc_array(ghes_count, sizeof(void *), in hest_ghes_dev_register()
199 if (!ghes_arr.ghes_devs) in hest_ghes_dev_register()
202 rc = apei_hest_parse(hest_parse_ghes, &ghes_arr); in hest_ghes_dev_register()
211 kfree(ghes_arr.ghes_devs); in hest_ghes_dev_register()
214 for (i = 0; i < ghes_arr.count; i++) in hest_ghes_dev_register()
215 platform_device_unregister(ghes_arr.ghes_devs[i]); in hest_ghes_dev_register()