Lines Matching refs:current_buf
118 int current_buf; member
132 state->current_buf ^= 1; in switch_buf()
135 static inline u8 *current_buf(struct caam_hash_state *state) in current_buf() function
137 return state->current_buf ? state->buf_1 : state->buf_0; in current_buf()
142 return state->current_buf ? state->buf_0 : state->buf_1; in alt_buf()
147 return state->current_buf ? &state->buflen_1 : &state->buflen_0; in current_buflen()
152 return state->current_buf ? &state->buflen_0 : &state->buflen_1; in alt_buflen()
191 state->buf_dma = dma_map_single(jrdev, current_buf(state), buflen, in buf_map_to_sec4_sg()
789 u8 *buf = current_buf(state); in ahash_update_ctx()
1151 u8 *buf = current_buf(state); in ahash_final_no_ctx()
1210 u8 *buf = current_buf(state); in ahash_update_no_ctx()
1551 state->current_buf = 0; in ahash_init()
1587 if (state->current_buf) { in ahash_export()