/kernel/linux/linux-5.10/drivers/crypto/caam/ |
H A D | caamhash.c | 723 unsigned int first_bytes, size_t to_hash) in ahash_edesc_add_src() 733 sg_to_sec4_sg_last(req->src, to_hash, sg + first_sg, 0); in ahash_edesc_add_src() 749 append_seq_in_ptr(edesc->hw_desc, src_dma, first_bytes + to_hash, in ahash_edesc_add_src() 822 int in_len = *buflen + req->nbytes, to_hash; in ahash_update_ctx() local 829 to_hash = in_len - *next_buflen; in ahash_update_ctx() 832 * For XCBC and CMAC, if to_hash is multiple of block size, in ahash_update_ctx() 836 is_cmac_aes(ctx->adata.algtype)) && to_hash >= blocksize && in ahash_update_ctx() 839 to_hash -= blocksize; in ahash_update_ctx() 842 if (to_hash) { in ahash_update_ctx() 910 to_hash, LDST_SG in ahash_update_ctx() 719 ahash_edesc_add_src(struct caam_hash_ctx *ctx, struct ahash_edesc *edesc, struct ahash_request *req, int nents, unsigned int first_sg, unsigned int first_bytes, size_t to_hash) ahash_edesc_add_src() argument 1198 int in_len = *buflen + req->nbytes, to_hash; ahash_update_no_ctx() local 1394 int to_hash; ahash_update_first() local [all...] |
H A D | caamalg_qi2.c | 3529 int in_len = *buflen + req->nbytes, to_hash; in ahash_update_ctx() local 3535 to_hash = in_len - *next_buflen; in ahash_update_ctx() 3537 if (to_hash) { in ahash_update_ctx() 3602 dpaa2_fl_set_len(in_fle, ctx->ctx_len + to_hash); in ahash_update_ctx() 3981 int in_len = *buflen + req->nbytes, to_hash; in ahash_update_no_ctx() local 3987 to_hash = in_len - *next_buflen; in ahash_update_no_ctx() 3989 if (to_hash) { in ahash_update_no_ctx() 4052 dpaa2_fl_set_len(in_fle, to_hash); in ahash_update_no_ctx() 4198 int to_hash; in ahash_update_first() local 4205 to_hash in ahash_update_first() [all...] |
/kernel/linux/linux-6.6/drivers/crypto/caam/ |
H A D | caamhash.c | 727 unsigned int first_bytes, size_t to_hash) in ahash_edesc_add_src() 737 sg_to_sec4_sg_last(req->src, to_hash, sg + first_sg, 0); in ahash_edesc_add_src() 753 append_seq_in_ptr(edesc->hw_desc, src_dma, first_bytes + to_hash, in ahash_edesc_add_src() 829 int in_len = *buflen + req->nbytes, to_hash; in ahash_update_ctx() local 836 to_hash = in_len - *next_buflen; in ahash_update_ctx() 839 * For XCBC and CMAC, if to_hash is multiple of block size, in ahash_update_ctx() 843 is_cmac_aes(ctx->adata.algtype)) && to_hash >= blocksize && in ahash_update_ctx() 846 to_hash -= blocksize; in ahash_update_ctx() 849 if (to_hash) { in ahash_update_ctx() 917 to_hash, LDST_SG in ahash_update_ctx() 723 ahash_edesc_add_src(struct caam_hash_ctx *ctx, struct ahash_edesc *edesc, struct ahash_request *req, int nents, unsigned int first_sg, unsigned int first_bytes, size_t to_hash) ahash_edesc_add_src() argument 1205 int in_len = *buflen + req->nbytes, to_hash; ahash_update_no_ctx() local 1401 int to_hash; ahash_update_first() local [all...] |
H A D | caamalg_qi2.c | 3542 int in_len = *buflen + req->nbytes, to_hash; in ahash_update_ctx() local 3548 to_hash = in_len - *next_buflen; in ahash_update_ctx() 3550 if (to_hash) { in ahash_update_ctx() 3615 dpaa2_fl_set_len(in_fle, ctx->ctx_len + to_hash); in ahash_update_ctx() 3994 int in_len = *buflen + req->nbytes, to_hash; in ahash_update_no_ctx() local 4000 to_hash = in_len - *next_buflen; in ahash_update_no_ctx() 4002 if (to_hash) { in ahash_update_no_ctx() 4065 dpaa2_fl_set_len(in_fle, to_hash); in ahash_update_no_ctx() 4211 int to_hash; in ahash_update_first() local 4218 to_hash in ahash_update_first() [all...] |
/kernel/linux/linux-5.10/net/sched/ |
H A D | cls_route.c | 193 static inline u32 to_hash(u32 id) in to_hash() function 222 h1 = to_hash(handle); in route4_get() 356 RCU_INIT_POINTER(head->table[to_hash(h)], NULL); in route4_delete() 432 h1 = to_hash(nhandle); in route4_set_parms() 539 th = to_hash(fold->handle); in route4_change()
|
/kernel/linux/linux-6.6/net/sched/ |
H A D | cls_route.c | 195 static inline u32 to_hash(u32 id) in to_hash() function 224 h1 = to_hash(handle); in route4_get() 358 RCU_INIT_POINTER(head->table[to_hash(h)], NULL); in route4_delete() 434 h1 = to_hash(nhandle); in route4_set_parms() 541 th = to_hash(fold->handle); in route4_change()
|