Lines Matching refs:err
50 int err = hw_get_module(GRALLOC_HARDWARE_MODULE_ID, &module);
51 LOGE_IF(err, "FATAL: can't find the %s module", GRALLOC_HARDWARE_MODULE_ID);
52 if (err == 0) {
59 status_t err;
61 err = mAllocMod->registerBuffer(mAllocMod, handle);
63 err = sw_gralloc_handle_t::registerBuffer((sw_gralloc_handle_t*)handle);
65 LOGW_IF(err, "registerBuffer(%p) failed %d (%s)",
66 handle, err, strerror(-err));
67 return err;
72 status_t err;
74 err = mAllocMod->unregisterBuffer(mAllocMod, handle);
76 err = sw_gralloc_handle_t::unregisterBuffer((sw_gralloc_handle_t*)handle);
78 LOGW_IF(err, "unregisterBuffer(%p) failed %d (%s)",
79 handle, err, strerror(-err));
80 return err;
86 status_t err;
88 err = mAllocMod->lock(mAllocMod, handle, usage,
92 err = sw_gralloc_handle_t::lock((sw_gralloc_handle_t*)handle, usage,
96 LOGW_IF(err, "lock(...) failed %d (%s)", err, strerror(-err));
97 return err;
102 status_t err;
104 err = mAllocMod->unlock(mAllocMod, handle);
106 err = sw_gralloc_handle_t::unlock((sw_gralloc_handle_t*)handle);
108 LOGW_IF(err, "unlock(...) failed %d (%s)", err, strerror(-err));
109 return err;