Home
last modified time | relevance | path

Searched refs:max_sg_len (Results 1 – 8 of 8) sorted by relevance

/openbmc/linux/drivers/crypto/nx/
H A Dnx-sha256.c72 u32 max_sg_len; in nx_sha256_update() local
92 max_sg_len = min_t(u64, nx_ctx->ap->sglen, in nx_sha256_update()
94 max_sg_len = min_t(u64, max_sg_len, in nx_sha256_update()
99 &data_len, max_sg_len); in nx_sha256_update()
116 max_sg_len); in nx_sha256_update()
133 (max_sg_len - 1 - used_sgs) * NX_PAGE_SIZE); in nx_sha256_update()
138 &data_len, max_sg_len); in nx_sha256_update()
188 u32 max_sg_len; in nx_sha256_final() local
194 max_sg_len = min_t(u64, nx_ctx->ap->sglen, in nx_sha256_final()
196 max_sg_len = min_t(u64, max_sg_len, in nx_sha256_final()
[all …]
H A Dnx-sha512.c72 u32 max_sg_len; in nx_sha512_update() local
92 max_sg_len = min_t(u64, nx_ctx->ap->sglen, in nx_sha512_update()
94 max_sg_len = min_t(u64, max_sg_len, in nx_sha512_update()
99 &data_len, max_sg_len); in nx_sha512_update()
115 &data_len, max_sg_len); in nx_sha512_update()
137 &data_len, max_sg_len); in nx_sha512_update()
190 u32 max_sg_len; in nx_sha512_final() local
198 max_sg_len = min_t(u64, nx_ctx->ap->sglen, in nx_sha512_final()
200 max_sg_len = min_t(u64, max_sg_len, in nx_sha512_final()
225 max_sg_len); in nx_sha512_final()
[all …]
H A Dnx-aes-gcm.c110 unsigned int max_sg_len; in nx_gca() local
122 max_sg_len = min_t(u64, nx_driver.of.max_sg_len/sizeof(struct nx_sg), in nx_gca()
124 max_sg_len = min_t(u64, max_sg_len, in nx_gca()
135 NX_PAGE_SIZE * (max_sg_len - 1)); in nx_gca()
137 nx_sg = nx_walk_and_build(nx_ctx->in_sg, max_sg_len, in nx_gca()
178 unsigned int max_sg_len; in gmac() local
186 max_sg_len = min_t(u64, nx_driver.of.max_sg_len/sizeof(struct nx_sg), in gmac()
188 max_sg_len = min_t(u64, max_sg_len, in gmac()
202 NX_PAGE_SIZE * (max_sg_len - 1)); in gmac()
204 nx_sg = nx_walk_and_build(nx_ctx->in_sg, max_sg_len, in gmac()
H A Dnx-aes-xcbc.c175 unsigned int max_sg_len; in nx_xcbc_update() local
196 max_sg_len = min_t(u64, nx_driver.of.max_sg_len/sizeof(struct nx_sg), in nx_xcbc_update()
198 max_sg_len = min_t(u64, max_sg_len, in nx_xcbc_update()
233 max_sg_len); in nx_xcbc_update()
244 max_sg_len); in nx_xcbc_update()
H A Dnx.c271 unsigned int max_sg_len; in nx_build_sg_lists() local
273 max_sg_len = min_t(u64, nx_ctx->ap->sglen, in nx_build_sg_lists()
274 nx_driver.of.max_sg_len/sizeof(struct nx_sg)); in nx_build_sg_lists()
275 max_sg_len = min_t(u64, max_sg_len, in nx_build_sg_lists()
283 nx_outsg = nx_walk_and_build(nx_outsg, max_sg_len, dst, in nx_build_sg_lists()
285 nx_insg = nx_walk_and_build(nx_insg, max_sg_len, src, in nx_build_sg_lists()
344 if (p->length != sizeof(props->max_sg_len)) { in nx_of_update_sglen()
349 p->length, sizeof(props->max_sg_len)); in nx_of_update_sglen()
353 props->max_sg_len = *(u32 *)p->value; in nx_of_update_sglen()
H A Dnx-aes-ccm.c166 unsigned int max_sg_len; in generate_pat() local
273 max_sg_len = min_t(u64, nx_ctx->ap->sglen, in generate_pat()
274 nx_driver.of.max_sg_len/sizeof(struct nx_sg)); in generate_pat()
275 max_sg_len = min_t(u64, max_sg_len, in generate_pat()
H A Dnx-common-pseries.c130 unsigned int max_sg_len; member
554 devdata->max_sg_len = 0; in nx842_OF_set_defaults()
621 devdata->max_sg_len = min_t(unsigned int, in nx842_OF_upd_maxsglen()
809 __func__, new_devdata->max_sg_len, in nx842_OF_upd()
810 old_devdata->max_sg_len); in nx842_OF_upd()
H A Dnx.h56 u32 max_sg_len; member