Lines Matching refs:pointer
186 static int (MS_FAR *add_lock_callback)(int *pointer,int amount,
235 CRYPTO_dynlock *pointer = NULL;
252 pointer = (CRYPTO_dynlock *)OPENSSL_malloc(sizeof(CRYPTO_dynlock));
253 if (pointer == NULL)
258 pointer->references = 1;
259 pointer->data = dynlock_create_callback(__FILE__,__LINE__);
260 if (pointer->data == NULL)
262 OPENSSL_free(pointer);
276 i=sk_CRYPTO_dynlock_push(dyn_locks,pointer) - 1;
278 /* If we found a place with a NULL pointer, put our pointer
280 sk_CRYPTO_dynlock_set(dyn_locks,i,pointer);
285 dynlock_destroy_callback(pointer->data,__FILE__,__LINE__);
286 OPENSSL_free(pointer);
295 CRYPTO_dynlock *pointer = NULL;
308 pointer = sk_CRYPTO_dynlock_value(dyn_locks, i);
309 if (pointer != NULL)
311 --pointer->references;
313 if (pointer->references < 0)
320 if (pointer->references <= 0)
325 pointer = NULL;
329 if (pointer)
331 dynlock_destroy_callback(pointer->data,__FILE__,__LINE__);
332 OPENSSL_free(pointer);
338 CRYPTO_dynlock *pointer = NULL;
345 pointer = sk_CRYPTO_dynlock_value(dyn_locks, i);
346 if (pointer)
347 pointer->references++;
351 if (pointer)
352 return pointer->data;
477 struct CRYPTO_dynlock_value *pointer
480 OPENSSL_assert(pointer != NULL);
482 dynlock_lock_callback(mode, pointer, file, line);
492 int CRYPTO_add_lock(int *pointer, int amount, int type, const char *file,
500 int before= *pointer;
503 ret=add_lock_callback(pointer,amount,type,file,line);
516 ret= *pointer+amount;
520 *pointer,amount,ret,
524 *pointer=ret;