Home
last modified time | relevance | path

Searched refs:current_buf (Results 1 – 6 of 6) sorted by relevance

/drivers/crypto/caam/
Dcaamrng.c77 int current_buf; member
128 struct buf_data *bd = &ctx->bufs[!(to_current ^ ctx->current_buf)]; in submit_job()
133 dev_dbg(jrdev, "submitting job %d\n", !(to_current ^ ctx->current_buf)); in submit_job()
147 struct buf_data *bd = &ctx->bufs[ctx->current_buf]; in caam_read()
170 __func__, ctx->current_buf, ctx->cur_buf_idx); in caam_read()
189 ctx->current_buf = !ctx->current_buf; in caam_read()
190 dev_dbg(ctx->jrdev, "switched to buffer %d\n", ctx->current_buf); in caam_read()
271 submit_job(ctx, buf_id == ctx->current_buf); in caam_init_buf()
287 ctx->current_buf = 0; in caam_init_rng()
Dcaamhash.c118 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()
[all …]
Dcaamalg_qi2.c3009 int current_buf; member
3023 state->current_buf ^= 1; in switch_buf()
3026 static inline u8 *current_buf(struct caam_hash_state *state) in current_buf() function
3028 return state->current_buf ? state->buf_1 : state->buf_0; in current_buf()
3033 return state->current_buf ? state->buf_0 : state->buf_1; in alt_buf()
3038 return state->current_buf ? &state->buflen_1 : &state->buflen_0; in current_buflen()
3043 return state->current_buf ? &state->buflen_0 : &state->buflen_1; in alt_buflen()
3056 state->buf_dma = dma_map_single(dev, current_buf(state), buflen, in buf_map_to_qm_sg()
3467 u8 *buf = current_buf(state); in ahash_update_ctx()
3855 u8 *buf = current_buf(state); in ahash_final_no_ctx()
[all …]
/drivers/s390/char/
Dmonwriter.c51 struct mon_buf *current_buf; member
147 monpriv->current_buf = monbuf; in monwrite_new_hdr()
154 struct mon_buf *monbuf = monpriv->current_buf; in monwrite_new_data()
175 list_del(&monpriv->current_buf->list); in monwrite_new_data()
176 kfree(monpriv->current_buf->data); in monwrite_new_data()
177 kfree(monpriv->current_buf); in monwrite_new_data()
178 monpriv->current_buf = NULL; in monwrite_new_data()
250 monpriv->data_to_read = monpriv->current_buf ? in monwrite_write()
251 monpriv->current_buf->hdr.datalen : 0; in monwrite_write()
256 to = monpriv->current_buf->data + in monwrite_write()
/drivers/media/platform/sunxi/sun4i-csi/
Dsun4i_dma.c107 csi->current_buf[slot] = NULL; in sun4i_csi_setup_scratch_buffer()
121 if (WARN_ON(csi->current_buf[slot])) in sun4i_csi_buffer_fill_slot()
131 csi->current_buf[slot] = v_buf; in sun4i_csi_buffer_fill_slot()
164 if (!csi->current_buf[slot]) { in sun4i_csi_buffer_mark_done()
169 v_buf = csi->current_buf[slot]; in sun4i_csi_buffer_mark_done()
175 csi->current_buf[slot] = NULL; in sun4i_csi_buffer_mark_done()
216 struct vb2_v4l2_buffer *v_buf = csi->current_buf[slot]; in return_all_buffers()
222 csi->current_buf[slot] = NULL; in return_all_buffers()
404 csi->current_buf[i] = NULL; in sun4i_csi_dma_register()
Dsun4i_csi.h117 struct vb2_v4l2_buffer *current_buf[CSI_MAX_BUFFER]; member