Lines Matching refs:ghes_arr
142 struct ghes_arr { struct
159 struct ghes_arr *ghes_arr = data; in hest_parse_ghes() argument
167 for (i = 0; i < ghes_arr->count; i++) { in hest_parse_ghes()
169 ghes_dev = ghes_arr->ghes_devs[i]; in hest_parse_ghes()
188 ghes_arr->ghes_devs[ghes_arr->count++] = ghes_dev; in hest_parse_ghes()
199 struct ghes_arr ghes_arr; in hest_ghes_dev_register() local
201 ghes_arr.count = 0; in hest_ghes_dev_register()
202 ghes_arr.ghes_devs = kmalloc_array(ghes_count, sizeof(void *), in hest_ghes_dev_register()
204 if (!ghes_arr.ghes_devs) in hest_ghes_dev_register()
207 rc = apei_hest_parse(hest_parse_ghes, &ghes_arr); in hest_ghes_dev_register()
216 kfree(ghes_arr.ghes_devs); in hest_ghes_dev_register()
219 for (i = 0; i < ghes_arr.count; i++) in hest_ghes_dev_register()
220 platform_device_unregister(ghes_arr.ghes_devs[i]); in hest_ghes_dev_register()