Lines Matching refs:ghes_arr
136 struct ghes_arr { struct
154 struct ghes_arr *ghes_arr = data; in hest_parse_ghes() argument
163 for (i = 0; i < ghes_arr->count; i++) { in hest_parse_ghes()
165 ghes_dev = ghes_arr->ghes_devs[i]; in hest_parse_ghes()
184 ghes_arr->ghes_devs[ghes_arr->count++] = ghes_dev; in hest_parse_ghes()
195 struct ghes_arr ghes_arr; in hest_ghes_dev_register() local
197 ghes_arr.count = 0; in hest_ghes_dev_register()
198 ghes_arr.ghes_devs = kmalloc_array(ghes_count, sizeof(void *), in hest_ghes_dev_register()
200 if (!ghes_arr.ghes_devs) in hest_ghes_dev_register()
203 rc = apei_hest_parse(hest_parse_ghes, &ghes_arr); in hest_ghes_dev_register()
207 kfree(ghes_arr.ghes_devs); in hest_ghes_dev_register()
210 for (i = 0; i < ghes_arr.count; i++) in hest_ghes_dev_register()
211 platform_device_unregister(ghes_arr.ghes_devs[i]); in hest_ghes_dev_register()