Lines Matching refs:cache_ptr
30 unsigned int len = req->nbytes + creq->cache_ptr; in mv_cesa_ahash_req_iter_init()
37 iter->src.op_offset = creq->cache_ptr; in mv_cesa_ahash_req_iter_init()
179 if (creq->cache_ptr) in mv_cesa_ahash_std_step()
181 creq->cache, creq->cache_ptr); in mv_cesa_ahash_std_step()
183 len = min_t(size_t, req->nbytes + creq->cache_ptr - sreq->offset, in mv_cesa_ahash_std_step()
191 if (len - creq->cache_ptr) in mv_cesa_ahash_std_step()
195 creq->cache_ptr, in mv_cesa_ahash_std_step()
196 len - creq->cache_ptr, in mv_cesa_ahash_std_step()
251 creq->cache_ptr = new_cache_ptr; in mv_cesa_ahash_std_step()
265 if (sreq->offset < (req->nbytes - creq->cache_ptr)) in mv_cesa_ahash_std_process()
402 if (creq->cache_ptr) in mv_cesa_ahash_req_cleanup()
405 creq->cache_ptr, in mv_cesa_ahash_req_cleanup()
406 ahashreq->nbytes - creq->cache_ptr); in mv_cesa_ahash_req_cleanup()
450 if (creq->cache_ptr + req->nbytes < CESA_MAX_HASH_BLOCK_SIZE && in mv_cesa_ahash_cache_req()
458 creq->cache + creq->cache_ptr, in mv_cesa_ahash_cache_req()
461 creq->cache_ptr += req->nbytes; in mv_cesa_ahash_cache_req()
503 if (!creq->cache_ptr) in mv_cesa_ahash_dma_add_cache()
510 memcpy(ahashdreq->cache, creq->cache, creq->cache_ptr); in mv_cesa_ahash_dma_add_cache()
515 creq->cache_ptr, in mv_cesa_ahash_dma_add_cache()
706 creq->cache_ptr = req->nbytes + creq->cache_ptr - in mv_cesa_ahash_dma_req_init()
709 creq->cache_ptr = 0; in mv_cesa_ahash_dma_req_init()
829 memcpy(cache, creq->cache, creq->cache_ptr); in mv_cesa_ahash_export()
841 unsigned int cache_ptr; in mv_cesa_ahash_import() local
856 creq->cache_ptr = 0; in mv_cesa_ahash_import()
858 cache_ptr = do_div(len, blocksize); in mv_cesa_ahash_import()
859 if (!cache_ptr) in mv_cesa_ahash_import()
862 memcpy(creq->cache, cache, cache_ptr); in mv_cesa_ahash_import()
863 creq->cache_ptr = cache_ptr; in mv_cesa_ahash_import()