Home
last modified time | relevance | path

Searched refs:dst_len (Results 1 – 25 of 123) sorted by relevance

12345

/OK3568_Linux_fs/kernel/crypto/
H A Drsa-pkcs1pad.c186 len = req_ctx->child_req.dst_len; in pkcs1pad_encrypt_sign_complete()
206 req->dst_len = ctx->key_size; in pkcs1pad_encrypt_sign_complete()
243 if (req->dst_len < ctx->key_size) { in pkcs1pad_encrypt()
244 req->dst_len = ctx->key_size; in pkcs1pad_encrypt()
268 req->dst, ctx->key_size - 1, req->dst_len); in pkcs1pad_encrypt()
282 unsigned int dst_len; in pkcs1pad_decrypt_complete() local
290 dst_len = req_ctx->child_req.dst_len; in pkcs1pad_decrypt_complete()
291 if (dst_len < ctx->key_size - 1) in pkcs1pad_decrypt_complete()
295 if (dst_len == ctx->key_size) { in pkcs1pad_decrypt_complete()
300 dst_len--; in pkcs1pad_decrypt_complete()
[all …]
H A Decrdsa.c77 unsigned int ndigits = req->dst_len / sizeof(u64); in ecrdsa_verify()
96 req->dst_len != ctx->digest_len || in ecrdsa_verify()
97 req->dst_len != ctx->curve->g.ndigits * sizeof(u64) || in ecrdsa_verify()
99 req->dst_len * 2 != req->src_len || in ecrdsa_verify()
101 WARN_ON(req->dst_len > sizeof(digest))) in ecrdsa_verify()
108 req->src_len + req->dst_len), in ecrdsa_verify()
109 digest, req->dst_len, req->src_len); in ecrdsa_verify()
/OK3568_Linux_fs/kernel/drivers/base/regmap/
H A Dregcache-lzo.c22 size_t dst_len; member
49 if (ret != LZO_E_OK || compress_size > lzo_ctx->dst_len) in regcache_lzo_compress()
51 lzo_ctx->dst_len = compress_size; in regcache_lzo_compress()
57 size_t dst_len; in regcache_lzo_decompress() local
60 dst_len = lzo_ctx->dst_len; in regcache_lzo_decompress()
62 lzo_ctx->dst, &dst_len); in regcache_lzo_decompress()
63 if (ret != LZO_E_OK || dst_len != lzo_ctx->dst_len) in regcache_lzo_decompress()
73 lzo_ctx->dst_len = lzo1x_worst_compress(PAGE_SIZE); in regcache_lzo_compress_cache_block()
74 lzo_ctx->dst = kmalloc(lzo_ctx->dst_len, GFP_KERNEL); in regcache_lzo_compress_cache_block()
76 lzo_ctx->dst_len = 0; in regcache_lzo_compress_cache_block()
[all …]
/OK3568_Linux_fs/kernel/lib/
H A Ddecompress_unlzo.c106 u32 src_len, dst_len; in unlzo() local
182 dst_len = get_unaligned_be32(in_buf); in unlzo()
187 if (dst_len == 0) { in unlzo()
193 if (dst_len > LZO_BLOCK_SIZE) { in unlzo()
212 if (src_len <= 0 || src_len > dst_len) { in unlzo()
227 tmp = dst_len; in unlzo()
232 if (unlikely(dst_len == src_len)) in unlzo()
238 if (r != LZO_E_OK || dst_len != tmp) { in unlzo()
244 if (flush && flush(out_buf, dst_len) != dst_len) in unlzo()
247 out_buf += dst_len; in unlzo()
/OK3568_Linux_fs/kernel/net/decnet/
H A Ddn_rules.c43 unsigned char dst_len; member
152 if (frh->dst_len) in dn_fib_rule_configure()
157 r->dst_len = frh->dst_len; in dn_fib_rule_configure()
158 r->dstmask = dnet_make_mask(r->dst_len); in dn_fib_rule_configure()
172 if (frh->dst_len && (r->dst_len != frh->dst_len)) in dn_fib_rule_compare()
178 if (frh->dst_len && (r->dst != nla_get_le16(tb[FRA_DST]))) in dn_fib_rule_compare()
207 frh->dst_len = r->dst_len; in dn_fib_rule_fill()
211 if ((r->dst_len && in dn_fib_rule_fill()
/OK3568_Linux_fs/u-boot/cmd/
H A Dzip.c14 unsigned long src_len, dst_len = ~0UL; in do_zip() local
18 dst_len = simple_strtoul(argv[4], NULL, 16); in do_zip()
29 if (gzip((void *) dst, &dst_len, (void *) src, src_len) != 0) in do_zip()
32 printf("Compressed size: %ld = 0x%lX\n", dst_len, dst_len); in do_zip()
33 env_set_hex("filesize", dst_len); in do_zip()
H A Dlzmadec.c23 SizeT src_len = ~0UL, dst_len = ~0UL; in do_lzmadec() local
28 dst_len = simple_strtoul(argv[3], NULL, 16); in do_lzmadec()
38 ret = lzmaBuffToBuffDecompress(map_sysmem(dst, dst_len), &src_len, in do_lzmadec()
39 map_sysmem(src, 0), dst_len); in do_lzmadec()
H A Dunzip.c14 unsigned long src_len = ~0UL, dst_len = ~0UL; in do_unzip() local
18 dst_len = simple_strtoul(argv[3], NULL, 16); in do_unzip()
28 if (gunzip((void *) dst, dst_len, (void *) src, &src_len) != 0) in do_unzip()
/OK3568_Linux_fs/kernel/net/smc/
H A Dsmc_tx.c309 size_t dst_off, size_t dst_len, in smcr_tx_rdma_writes() argument
316 int src_len_sum = src_len, dst_len_sum = dst_len; in smcr_tx_rdma_writes()
336 if (src_len_sum == dst_len) in smcr_tx_rdma_writes()
339 src_len = dst_len - src_len; /* remainder */ in smcr_tx_rdma_writes()
350 dst_len = len - dst_len; /* remainder */ in smcr_tx_rdma_writes()
351 dst_len_sum += dst_len; in smcr_tx_rdma_writes()
352 src_len = min_t(int, dst_len, conn->sndbuf_desc->len - in smcr_tx_rdma_writes()
362 size_t dst_off, size_t dst_len) in smcd_tx_rdma_writes() argument
364 int src_len_sum = src_len, dst_len_sum = dst_len; in smcd_tx_rdma_writes()
381 if (src_len_sum == dst_len) in smcd_tx_rdma_writes()
[all …]
/OK3568_Linux_fs/kernel/net/ipv4/
H A Dfib_rules.c36 u8 dst_len; member
52 if (r->dst_len || r->src_len || r->tos) in fib4_rule_matchall()
260 if (frh->dst_len) in fib4_rule_configure()
276 rule4->dst_len = frh->dst_len; in fib4_rule_configure()
277 rule4->dstmask = inet_make_mask(rule4->dst_len); in fib4_rule_configure()
318 if (frh->dst_len && (rule4->dst_len != frh->dst_len)) in fib4_rule_compare()
332 if (frh->dst_len && (rule4->dst != nla_get_in_addr(tb[FRA_DST]))) in fib4_rule_compare()
343 frh->dst_len = rule4->dst_len; in fib4_rule_fill()
347 if ((rule4->dst_len && in fib4_rule_fill()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/
H A Ddrm_format_helper.c175 size_t dst_len = linepixels * sizeof(u16); in drm_fb_xrgb8888_to_rgb565() local
192 dst += dst_len; in drm_fb_xrgb8888_to_rgb565()
219 size_t dst_len = linepixels * sizeof(u16); in drm_fb_xrgb8888_to_rgb565_dstclip() local
223 dbuf = kmalloc(dst_len, GFP_KERNEL); in drm_fb_xrgb8888_to_rgb565_dstclip()
231 memcpy_toio(dst, dbuf, dst_len); in drm_fb_xrgb8888_to_rgb565_dstclip()
233 dst += dst_len; in drm_fb_xrgb8888_to_rgb565_dstclip()
271 size_t dst_len = linepixels * 3; in drm_fb_xrgb8888_to_rgb888_dstclip() local
275 dbuf = kmalloc(dst_len, GFP_KERNEL); in drm_fb_xrgb8888_to_rgb888_dstclip()
283 memcpy_toio(dst, dbuf, dst_len); in drm_fb_xrgb8888_to_rgb888_dstclip()
285 dst += dst_len; in drm_fb_xrgb8888_to_rgb888_dstclip()
/OK3568_Linux_fs/kernel/drivers/crypto/rockchip/cryptodev_linux/
H A Dzc.c160 void *__user dst, unsigned int dst_len, in cryptodev_get_userbuf() argument
175 if (!dst && dst_len) in cryptodev_get_userbuf()
176 dst_len = 0; in cryptodev_get_userbuf()
179 dst_pagecount = PAGECOUNT(dst, dst_len); in cryptodev_get_userbuf()
195 if (src_len < dst_len) in cryptodev_get_userbuf()
196 src_len = dst_len; in cryptodev_get_userbuf()
226 rc = __cryptodev_get_userbuf(dst, dst_len, 1, writable_pages, in cryptodev_get_userbuf()
H A Dauthenc.c69 if (kcaop->dst_len == 0) { in get_userbuf_tls()
74 pagecount = PAGECOUNT(caop->dst, kcaop->dst_len); in get_userbuf_tls()
83 rc = __cryptodev_get_userbuf(caop->dst, kcaop->dst_len, 1, pagecount, in get_userbuf_tls()
126 if (unlikely(kcaop->dst_len == 0 || caop->auth_len == 0)) { in get_userbuf_srtp()
194 int dst_len = caop->len; in cryptodev_get_dst_len() local
196 return dst_len; in cryptodev_get_dst_len()
199 return dst_len; in cryptodev_get_dst_len()
201 dst_len += caop->tag_len; in cryptodev_get_dst_len()
207 dst_len += bs - (dst_len % bs); in cryptodev_get_dst_len()
210 return dst_len; in cryptodev_get_dst_len()
[all …]
/OK3568_Linux_fs/external/mpp/mpp/codec/dec/h263/
H A Dh263d_parser.c316 size_t dst_len = mpp_packet_get_length(dst); in mpp_h263_parser_split() local
329 if (dst_len) { in mpp_h263_parser_split()
330 mpp_assert(dst_len >= 4); in mpp_h263_parser_split()
331 state = ((RK_U32)(dst_buf[dst_len - 1]) << 0) | in mpp_h263_parser_split()
332 ((RK_U32)(dst_buf[dst_len - 2]) << 8) | in mpp_h263_parser_split()
333 ((RK_U32)(dst_buf[dst_len - 3]) << 16) | in mpp_h263_parser_split()
334 ((RK_U32)(dst_buf[dst_len - 4]) << 24); in mpp_h263_parser_split()
372 memcpy(dst_buf + dst_len, src_buf, src_len); in mpp_h263_parser_split()
374 mpp_packet_set_length(dst, dst_len + src_len); in mpp_h263_parser_split()
379 memcpy(dst_buf + dst_len, src_buf, pos_frm_end); in mpp_h263_parser_split()
[all …]
/OK3568_Linux_fs/kernel/drivers/block/zram/
H A Dzcomp.c116 const void *src, unsigned int *dst_len) in zcomp_compress() argument
132 *dst_len = PAGE_SIZE * 2; in zcomp_compress()
136 zstrm->buffer, dst_len); in zcomp_compress()
142 unsigned int dst_len = PAGE_SIZE; in zcomp_decompress() local
146 dst, &dst_len); in zcomp_decompress()
/OK3568_Linux_fs/u-boot/include/linux/
H A Dlzo.h24 unsigned char *dst, size_t *dst_len, void *wrkmem);
28 unsigned char *dst, size_t *dst_len);
32 unsigned char *dst, size_t *dst_len);
/OK3568_Linux_fs/kernel/include/linux/
H A Dlzo.h25 unsigned char *dst, size_t *dst_len, void *wrkmem);
29 unsigned char *dst, size_t *dst_len, void *wrkmem);
33 unsigned char *dst, size_t *dst_len);
/OK3568_Linux_fs/kernel/lib/crypto/
H A Dchacha20poly1305.c130 size_t dst_len; in __chacha20poly1305_decrypt() local
148 dst_len = src_len - POLY1305_DIGEST_SIZE; in __chacha20poly1305_decrypt()
149 poly1305_update(&poly1305_state, src, dst_len); in __chacha20poly1305_decrypt()
150 if (dst_len & 0xf) in __chacha20poly1305_decrypt()
151 poly1305_update(&poly1305_state, pad0, 0x10 - (dst_len & 0xf)); in __chacha20poly1305_decrypt()
154 b.lens[1] = cpu_to_le64(dst_len); in __chacha20poly1305_decrypt()
159 ret = crypto_memneq(b.mac, src + dst_len, POLY1305_DIGEST_SIZE); in __chacha20poly1305_decrypt()
161 chacha20_crypt(chacha_state, dst, src, dst_len); in __chacha20poly1305_decrypt()
/OK3568_Linux_fs/kernel/include/crypto/
H A Dakcipher.h38 unsigned int dst_len; member
252 unsigned int dst_len) in akcipher_request_set_crypt() argument
257 req->dst_len = dst_len; in akcipher_request_set_crypt()
/OK3568_Linux_fs/kernel/drivers/crypto/virtio/
H A Dvirtio_crypto_algs.c353 u64 dst_len; in __virtio_crypto_skcipher_do_req() local
403 dst_len = virtio_crypto_alg_sg_nents_length(req->dst); in __virtio_crypto_skcipher_do_req()
404 if (unlikely(dst_len > U32_MAX)) { in __virtio_crypto_skcipher_do_req()
410 dst_len = min_t(unsigned int, req->cryptlen, dst_len); in __virtio_crypto_skcipher_do_req()
412 req->cryptlen, dst_len); in __virtio_crypto_skcipher_do_req()
414 if (unlikely(req->cryptlen + dst_len + ivsize + in __virtio_crypto_skcipher_do_req()
422 cpu_to_le32((uint32_t)dst_len); in __virtio_crypto_skcipher_do_req()
/OK3568_Linux_fs/kernel/drivers/crypto/qat/qat_common/
H A Dqat_asym_algs.c159 areq->dst_len = req->ctx.dh->p_size; in qat_dh_cb()
162 areq->dst_len, 1); in qat_dh_cb()
227 if (req->dst_len < ctx->p_size) { in qat_dh_compute_value()
228 req->dst_len = ctx->p_size; in qat_dh_compute_value()
308 if (sg_is_last(req->dst) && req->dst_len == ctx->p_size) { in qat_dh_compute_value()
311 req->dst_len, in qat_dh_compute_value()
525 areq->dst_len = req->ctx.rsa->key_sz; in qat_rsa_cb()
528 areq->dst_len, 1); in qat_rsa_cb()
655 if (req->dst_len < ctx->key_sz) { in qat_rsa_enc()
656 req->dst_len = ctx->key_sz; in qat_rsa_enc()
[all …]
/OK3568_Linux_fs/kernel/net/sched/
H A Dact_tunnel_key.c87 tunnel_key_copy_geneve_opt(const struct nlattr *nla, void *dst, int dst_len, in tunnel_key_copy_geneve_opt() argument
122 WARN_ON(dst_len < opt_len); in tunnel_key_copy_geneve_opt()
139 tunnel_key_copy_vxlan_opt(const struct nlattr *nla, void *dst, int dst_len, in tunnel_key_copy_vxlan_opt() argument
166 tunnel_key_copy_erspan_opt(const struct nlattr *nla, void *dst, int dst_len, in tunnel_key_copy_erspan_opt() argument
219 int dst_len, struct netlink_ext_ack *extack) in tunnel_key_copy_opts() argument
237 dst_len, extack); in tunnel_key_copy_opts()
246 dst_len -= opt_len; in tunnel_key_copy_opts()
257 dst_len, extack); in tunnel_key_copy_opts()
269 dst_len, extack); in tunnel_key_copy_opts()
/OK3568_Linux_fs/kernel/security/keys/
H A Ddh.c380 if (copy_from_user(outbuf + req->dst_len, kdfcopy->otherinfo, in __keyctl_dh_compute()
387 req->dst_len + kdfcopy->otherinfolen, in __keyctl_dh_compute()
388 outlen - req->dst_len); in __keyctl_dh_compute()
389 } else if (copy_to_user(buffer, outbuf, req->dst_len) == 0) { in __keyctl_dh_compute()
390 ret = req->dst_len; in __keyctl_dh_compute()
/OK3568_Linux_fs/u-boot/lib/lzo/
H A Dlzo1x_decompress.c79 unsigned char *dst, size_t *dst_len) in lzop_decompress() argument
91 remaining = *dst_len; in lzop_decompress()
99 *dst_len = dst - start; in lzop_decompress()
125 *dst_len = dst - start; in lzop_decompress()
/OK3568_Linux_fs/kernel/net/ipv6/
H A Dfib6_rules.c371 if (frh->dst_len) in fib6_rule_configure()
375 rule6->dst.plen = frh->dst_len; in fib6_rule_configure()
406 if (frh->dst_len && (rule6->dst.plen != frh->dst_len)) in fib6_rule_compare()
416 if (frh->dst_len && in fib6_rule_compare()
428 frh->dst_len = rule6->dst.plen; in fib6_rule_fill()

12345