Lines Matching defs:obj
574 add_to_search_result(soft_object_t *obj, find_context_t *fcontext,
590 (fcontext->objs_found)[(fcontext->num_results)++] = obj;
599 soft_object_t *obj;
662 obj = soft_slot.token_object_list;
663 while (obj) {
670 (void) pthread_rwlock_rdlock(&obj->object_rwlock);
673 if (soft_find_match_attrs(obj, pclasses,
676 obj, fcontext, &num_result_alloc);
680 rv = add_to_search_result(obj, fcontext,
683 (void) pthread_rwlock_unlock(&obj->object_rwlock);
689 obj = obj->next;
711 obj = session_p->object_list;
712 while (obj) {
719 (void) pthread_rwlock_rdlock(&obj->object_rwlock);
721 if (soft_find_match_attrs(obj, pclasses,
724 obj, fcontext, &num_result_alloc);
728 rv = add_to_search_result(obj, fcontext,
731 (void) pthread_rwlock_unlock(&obj->object_rwlock);
737 obj = obj->next;
810 soft_object_t *obj;
818 obj = fcontext->objs_found[i];
819 if (obj != NULL) {
820 (void) pthread_mutex_lock(&obj->object_mutex);
821 /* a sanity check to make sure the obj is still valid */
822 if (obj->magic_marker == SOFTTOKEN_OBJECT_MAGIC) {
824 (CK_OBJECT_HANDLE)obj;
827 (void) pthread_mutex_unlock(&obj->object_mutex);
1384 /* update in-core obj if necessary */
1410 /* remove processed obj from on disk list */