Lines Matching refs:cache_ptr

31 	unsigned int len = req->nbytes + creq->cache_ptr;  in mv_cesa_ahash_req_iter_init()
38 iter->src.op_offset = creq->cache_ptr; in mv_cesa_ahash_req_iter_init()
185 if (creq->cache_ptr) { in mv_cesa_ahash_std_step()
188 creq->cache, creq->cache_ptr); in mv_cesa_ahash_std_step()
191 creq->cache, creq->cache_ptr); in mv_cesa_ahash_std_step()
194 len = min_t(size_t, req->nbytes + creq->cache_ptr - sreq->offset, in mv_cesa_ahash_std_step()
202 if (len - creq->cache_ptr) in mv_cesa_ahash_std_step()
205 CESA_SA_DATA_SRAM_OFFSET + creq->cache_ptr, in mv_cesa_ahash_std_step()
206 len - creq->cache_ptr, sreq->offset); in mv_cesa_ahash_std_step()
275 creq->cache_ptr = new_cache_ptr; in mv_cesa_ahash_std_step()
289 if (sreq->offset < (req->nbytes - creq->cache_ptr)) in mv_cesa_ahash_std_process()
426 if (creq->cache_ptr) in mv_cesa_ahash_req_cleanup()
429 creq->cache_ptr, in mv_cesa_ahash_req_cleanup()
430 ahashreq->nbytes - creq->cache_ptr); in mv_cesa_ahash_req_cleanup()
474 if (creq->cache_ptr + req->nbytes < CESA_MAX_HASH_BLOCK_SIZE && in mv_cesa_ahash_cache_req()
482 creq->cache + creq->cache_ptr, in mv_cesa_ahash_cache_req()
485 creq->cache_ptr += req->nbytes; in mv_cesa_ahash_cache_req()
527 if (!creq->cache_ptr) in mv_cesa_ahash_dma_add_cache()
534 memcpy(ahashdreq->cache, creq->cache, creq->cache_ptr); in mv_cesa_ahash_dma_add_cache()
539 creq->cache_ptr, in mv_cesa_ahash_dma_add_cache()
730 creq->cache_ptr = req->nbytes + creq->cache_ptr - in mv_cesa_ahash_dma_req_init()
733 creq->cache_ptr = 0; in mv_cesa_ahash_dma_req_init()
853 memcpy(cache, creq->cache, creq->cache_ptr); in mv_cesa_ahash_export()
865 unsigned int cache_ptr; in mv_cesa_ahash_import() local
880 creq->cache_ptr = 0; in mv_cesa_ahash_import()
882 cache_ptr = do_div(len, blocksize); in mv_cesa_ahash_import()
883 if (!cache_ptr) in mv_cesa_ahash_import()
886 memcpy(creq->cache, cache, cache_ptr); in mv_cesa_ahash_import()
887 creq->cache_ptr = cache_ptr; in mv_cesa_ahash_import()