Lines Matching refs:datbuf
34 struct tegra_se_datbuf datbuf; member
221 msg_left = rctx->datbuf.size * 8; in tegra_sha_prep_cmd()
255 cpuvaddr[i++] = rctx->datbuf.addr; in tegra_sha_prep_cmd()
256 cpuvaddr[i++] = (u32)(SE_ADDR_HI_MSB(upper_32_bits(rctx->datbuf.addr)) | in tegra_sha_prep_cmd()
257 SE_ADDR_HI_SZ(rctx->datbuf.size)); in tegra_sha_prep_cmd()
319 rctx->datbuf.size = (req->nbytes + rctx->residue.size) - nresidue; in tegra_sha_do_update()
320 rctx->total_len += rctx->datbuf.size; in tegra_sha_do_update()
336 memcpy(rctx->datbuf.buf, rctx->residue.buf, rctx->residue.size); in tegra_sha_do_update()
338 scatterwalk_map_and_copy(rctx->datbuf.buf + rctx->residue.size, in tegra_sha_do_update()
382 memcpy(rctx->datbuf.buf, rctx->residue.buf, rctx->residue.size); in tegra_sha_do_final()
383 rctx->datbuf.size = rctx->residue.size; in tegra_sha_do_final()
400 rctx->datbuf.buf, rctx->datbuf.addr); in tegra_sha_do_final()
511 rctx->datbuf.size = 0; in tegra_sha_init()
529 rctx->datbuf.buf = dma_alloc_coherent(se->dev, SE_SHA_BUFLEN, in tegra_sha_init()
530 &rctx->datbuf.addr, GFP_KERNEL); in tegra_sha_init()
531 if (!rctx->datbuf.buf) in tegra_sha_init()
540 dma_free_coherent(se->dev, SE_SHA_BUFLEN, rctx->datbuf.buf, in tegra_sha_init()
541 rctx->datbuf.addr); in tegra_sha_init()