Lines Matching refs:pointer
187 static int (MS_FAR *add_lock_callback)(int *pointer,int amount,
239 CRYPTO_dynlock *pointer = NULL;
256 pointer = (CRYPTO_dynlock *)OPENSSL_malloc(sizeof(CRYPTO_dynlock));
257 if (pointer == NULL)
262 pointer->references = 1;
263 pointer->data = dynlock_create_callback(__FILE__,__LINE__);
264 if (pointer->data == NULL)
266 OPENSSL_free(pointer);
280 i=sk_CRYPTO_dynlock_push(dyn_locks,pointer) - 1;
282 /* If we found a place with a NULL pointer, put our pointer
284 (void)sk_CRYPTO_dynlock_set(dyn_locks,i,pointer);
289 dynlock_destroy_callback(pointer->data,__FILE__,__LINE__);
290 OPENSSL_free(pointer);
299 CRYPTO_dynlock *pointer = NULL;
312 pointer = sk_CRYPTO_dynlock_value(dyn_locks, i);
313 if (pointer != NULL)
315 --pointer->references;
317 if (pointer->references < 0)
324 if (pointer->references <= 0)
329 pointer = NULL;
333 if (pointer)
335 dynlock_destroy_callback(pointer->data,__FILE__,__LINE__);
336 OPENSSL_free(pointer);
342 CRYPTO_dynlock *pointer = NULL;
349 pointer = sk_CRYPTO_dynlock_value(dyn_locks, i);
350 if (pointer)
351 pointer->references++;
355 if (pointer)
356 return pointer->data;
592 struct CRYPTO_dynlock_value *pointer
595 OPENSSL_assert(pointer != NULL);
597 dynlock_lock_callback(mode, pointer, file, line);
607 int CRYPTO_add_lock(int *pointer, int amount, int type, const char *file,
615 int before= *pointer;
618 ret=add_lock_callback(pointer,amount,type,file,line);
634 ret= *pointer+amount;
641 *pointer,amount,ret,
646 *pointer=ret;