Home
last modified time | relevance | path

Searched refs:NX_PAGE_SIZE (Results 1 - 14 of 14) sorted by relevance

/kernel/linux/linux-5.10/drivers/crypto/nx/
H A Dnx.c112 sg_addr = min_t(u64, NX_PAGE_NUM(sg_addr + NX_PAGE_SIZE), in nx_build_sg_list()
275 nx_ctx->ap->databytelen/NX_PAGE_SIZE); in nx_build_sg_lists()
389 if (!trip->sglen || trip->databytelen < NX_PAGE_SIZE) { in nx_of_update_msc()
492 if (!props->sglen || props->databytelen < NX_PAGE_SIZE) { in nx_check_prop()
663 nx_ctx->kmem_len = (5 * NX_PAGE_SIZE) + in nx_crypto_ctx_init()
666 nx_ctx->kmem_len = (4 * NX_PAGE_SIZE) + in nx_crypto_ctx_init()
675 (u64)NX_PAGE_SIZE)); in nx_crypto_ctx_init()
676 nx_ctx->in_sg = (struct nx_sg *)((u8 *)nx_ctx->csbcpb + NX_PAGE_SIZE); in nx_crypto_ctx_init()
677 nx_ctx->out_sg = (struct nx_sg *)((u8 *)nx_ctx->in_sg + NX_PAGE_SIZE); in nx_crypto_ctx_init()
682 NX_PAGE_SIZE); in nx_crypto_ctx_init()
[all...]
H A Dnx.h19 #define NX_PAGE_SIZE (4096) macro
20 #define NX_MAX_SG_ENTRIES (NX_PAGE_SIZE/(sizeof(struct nx_sg)))
H A Dnx-sha512.c90 nx_ctx->ap->databytelen/NX_PAGE_SIZE); in nx_sha512_update()
123 * In ideal case, we could allow NX_PAGE_SIZE * max_sg_len, in nx_sha512_update()
127 (max_sg_len - 1 - used_sgs) * NX_PAGE_SIZE); in nx_sha512_update()
196 nx_ctx->ap->databytelen/NX_PAGE_SIZE); in nx_sha512_final()
H A Dnx-sha256.c90 nx_ctx->ap->databytelen/NX_PAGE_SIZE); in nx_sha256_update()
124 * In ideal case, we could allow NX_PAGE_SIZE * max_sg_len, in nx_sha256_update()
128 (max_sg_len - 1 - used_sgs) * NX_PAGE_SIZE); in nx_sha256_update()
192 nx_ctx->ap->databytelen/NX_PAGE_SIZE); in nx_sha256_final()
H A Dnx-aes-gcm.c125 nx_ctx->ap->databytelen/NX_PAGE_SIZE); in nx_gca()
135 NX_PAGE_SIZE * (max_sg_len - 1)); in nx_gca()
189 nx_ctx->ap->databytelen/NX_PAGE_SIZE); in gmac()
202 NX_PAGE_SIZE * (max_sg_len - 1)); in gmac()
H A Dnx-aes-xcbc.c199 nx_ctx->ap->databytelen/NX_PAGE_SIZE); in nx_xcbc_update()
H A Dnx-aes-ccm.c279 nx_ctx->ap->databytelen/NX_PAGE_SIZE); in generate_pat()
/kernel/linux/linux-6.6/drivers/crypto/nx/
H A Dnx.c112 sg_addr = min_t(u64, NX_PAGE_NUM(sg_addr + NX_PAGE_SIZE), in nx_build_sg_list()
276 nx_ctx->ap->databytelen/NX_PAGE_SIZE); in nx_build_sg_lists()
390 if (!trip->sglen || trip->databytelen < NX_PAGE_SIZE) { in nx_of_update_msc()
493 if (!props->sglen || props->databytelen < NX_PAGE_SIZE) { in nx_check_prop()
664 nx_ctx->kmem_len = (5 * NX_PAGE_SIZE) + in nx_crypto_ctx_init()
667 nx_ctx->kmem_len = (4 * NX_PAGE_SIZE) + in nx_crypto_ctx_init()
676 (u64)NX_PAGE_SIZE)); in nx_crypto_ctx_init()
677 nx_ctx->in_sg = (struct nx_sg *)((u8 *)nx_ctx->csbcpb + NX_PAGE_SIZE); in nx_crypto_ctx_init()
678 nx_ctx->out_sg = (struct nx_sg *)((u8 *)nx_ctx->in_sg + NX_PAGE_SIZE); in nx_crypto_ctx_init()
683 NX_PAGE_SIZE); in nx_crypto_ctx_init()
[all...]
H A Dnx.h19 #define NX_PAGE_SIZE (4096) macro
20 #define NX_MAX_SG_ENTRIES (NX_PAGE_SIZE/(sizeof(struct nx_sg)))
H A Dnx-sha512.c95 nx_ctx->ap->databytelen/NX_PAGE_SIZE); in nx_sha512_update()
128 * In ideal case, we could allow NX_PAGE_SIZE * max_sg_len, in nx_sha512_update()
132 (max_sg_len - 1 - used_sgs) * NX_PAGE_SIZE); in nx_sha512_update()
201 nx_ctx->ap->databytelen/NX_PAGE_SIZE); in nx_sha512_final()
H A Dnx-sha256.c95 nx_ctx->ap->databytelen/NX_PAGE_SIZE); in nx_sha256_update()
129 * In ideal case, we could allow NX_PAGE_SIZE * max_sg_len, in nx_sha256_update()
133 (max_sg_len - 1 - used_sgs) * NX_PAGE_SIZE); in nx_sha256_update()
197 nx_ctx->ap->databytelen/NX_PAGE_SIZE); in nx_sha256_final()
H A Dnx-aes-gcm.c125 nx_ctx->ap->databytelen/NX_PAGE_SIZE); in nx_gca()
135 NX_PAGE_SIZE * (max_sg_len - 1)); in nx_gca()
189 nx_ctx->ap->databytelen/NX_PAGE_SIZE); in gmac()
202 NX_PAGE_SIZE * (max_sg_len - 1)); in gmac()
H A Dnx-aes-xcbc.c199 nx_ctx->ap->databytelen/NX_PAGE_SIZE); in nx_xcbc_update()
H A Dnx-aes-ccm.c276 nx_ctx->ap->databytelen/NX_PAGE_SIZE); in generate_pat()

Completed in 9 milliseconds