Lines Matching refs:e
20 int engine_unlocked_init(ENGINE *e) in engine_unlocked_init() argument
24 if ((e->funct_ref == 0) && e->init) in engine_unlocked_init()
29 to_return = e->init(e); in engine_unlocked_init()
37 if (!CRYPTO_UP_REF(&e->struct_ref, &ref)) { in engine_unlocked_init()
38 e->finish(e); in engine_unlocked_init()
41 e->funct_ref++; in engine_unlocked_init()
42 ENGINE_REF_PRINT(e, 0, 1); in engine_unlocked_init()
43 ENGINE_REF_PRINT(e, 1, 1); in engine_unlocked_init()
52 int engine_unlocked_finish(ENGINE *e, int unlock_for_handlers) in engine_unlocked_finish() argument
64 e->funct_ref--; in engine_unlocked_finish()
65 ENGINE_REF_PRINT(e, 1, -1); in engine_unlocked_finish()
66 if ((e->funct_ref == 0) && e->finish) { in engine_unlocked_finish()
69 to_return = e->finish(e); in engine_unlocked_finish()
76 REF_ASSERT_ISNT(e->funct_ref < 0); in engine_unlocked_finish()
78 if (!engine_free_util(e, 0)) { in engine_unlocked_finish()
86 int ENGINE_init(ENGINE *e) in ENGINE_init() argument
89 if (e == NULL) { in ENGINE_init()
100 ret = engine_unlocked_init(e); in ENGINE_init()
106 int ENGINE_finish(ENGINE *e) in ENGINE_finish() argument
110 if (e == NULL) in ENGINE_finish()
114 to_return = engine_unlocked_finish(e, 1); in ENGINE_finish()