Lines Matching refs:hnd
109 int Loader::driver_t::set(void* hnd, int32_t api) in set() argument
113 dso[0] = hnd; in set()
116 dso[1] = hnd; in set()
119 dso[2] = hnd; in set()
233 driver_t* hnd = (driver_t*)cnx->dso; in unload_system_driver() local
234 if (hnd->dso[2]) { in unload_system_driver()
235 do_android_unload_sphal_library(hnd->dso[2]); in unload_system_driver()
237 if (hnd->dso[1]) { in unload_system_driver()
238 do_android_unload_sphal_library(hnd->dso[1]); in unload_system_driver()
240 if (hnd->dso[0]) { in unload_system_driver()
241 do_android_unload_sphal_library(hnd->dso[0]); in unload_system_driver()
273 driver_t* hnd = attempt_to_load_angle(cnx); in open() local
274 if (!hnd) { in open()
276 hnd = attempt_to_load_updated_driver(cnx); in open()
280 if (!hnd) { in open()
291 hnd = attempt_to_load_system_driver(cnx, prop, true); in open()
292 if (hnd) { in open()
300 if (!hnd) { in open()
306 hnd = attempt_to_load_system_driver(cnx, nullptr, true); in open()
309 if (!hnd && !failToLoadFromDriverSuffixProperty) { in open()
310 hnd = attempt_to_load_system_driver(cnx, nullptr, false); in open()
313 if (!hnd) { in open()
318 LOG_ALWAYS_FATAL_IF(!hnd, in open()
346 return (void*)hnd; in open()
351 driver_t* hnd = (driver_t*) cnx->dso; in close() local
352 delete hnd; in close()
641 driver_t* hnd = nullptr; in attempt_to_load_angle() local
647 hnd = new driver_t(dso); in attempt_to_load_angle()
651 hnd->set(dso, GLESv1_CM); in attempt_to_load_angle()
655 hnd->set(dso, GLESv2); in attempt_to_load_angle()
657 return hnd; in attempt_to_load_angle()
670 driver_t* hnd = nullptr; in attempt_to_load_updated_driver() local
674 hnd = new driver_t(dso); in attempt_to_load_updated_driver()
675 return hnd; in attempt_to_load_updated_driver()
681 hnd = new driver_t(dso); in attempt_to_load_updated_driver()
685 hnd->set(dso, GLESv1_CM); in attempt_to_load_updated_driver()
689 hnd->set(dso, GLESv2); in attempt_to_load_updated_driver()
691 return hnd; in attempt_to_load_updated_driver()
701 driver_t* hnd = nullptr; in attempt_to_load_system_driver() local
705 hnd = new driver_t(dso); in attempt_to_load_system_driver()
706 return hnd; in attempt_to_load_system_driver()
711 hnd = new driver_t(dso); in attempt_to_load_system_driver()
715 hnd->set(dso, GLESv1_CM); in attempt_to_load_system_driver()
719 hnd->set(dso, GLESv2); in attempt_to_load_system_driver()
721 return hnd; in attempt_to_load_system_driver()