Lines Matching refs:top
49 int top; in OSSL_ERR_STATE_save_to_mark() local
60 es->top = es->bottom = 0; in OSSL_ERR_STATE_save_to_mark()
65 for (count = 0, top = thread_es->top; in OSSL_ERR_STATE_save_to_mark()
66 thread_es->bottom != top in OSSL_ERR_STATE_save_to_mark()
67 && thread_es->err_marks[top] == 0; in OSSL_ERR_STATE_save_to_mark()
69 top = top > 0 ? top - 1 : ERR_NUM_ERRORS - 1; in OSSL_ERR_STATE_save_to_mark()
72 for (i = 0, j = top; i < count; ++i) { in OSSL_ERR_STATE_save_to_mark()
99 thread_es->top = top; in OSSL_ERR_STATE_save_to_mark()
101 es->top = i - 1; in OSSL_ERR_STATE_save_to_mark()
105 es->top = es->bottom = 0; in OSSL_ERR_STATE_save_to_mark()
118 if (es == NULL || es->bottom == es->top) in OSSL_ERR_STATE_restore()
125 for (i = (size_t)es->bottom; i != (size_t)es->top;) { in OSSL_ERR_STATE_restore()
126 size_t top; in OSSL_ERR_STATE_restore() local
133 top = thread_es->top; in OSSL_ERR_STATE_restore()
134 err_clear(thread_es, top, 0); in OSSL_ERR_STATE_restore()
136 thread_es->err_flags[top] = es->err_flags[i]; in OSSL_ERR_STATE_restore()
137 thread_es->err_buffer[top] = es->err_buffer[i]; in OSSL_ERR_STATE_restore()
139 err_set_debug(thread_es, top, es->err_file[i], es->err_line[i], in OSSL_ERR_STATE_restore()
149 err_set_data(thread_es, top, data, data_sz, in OSSL_ERR_STATE_restore()
153 err_clear_data(thread_es, top, 0); in OSSL_ERR_STATE_restore()