Home
last modified time | relevance | path

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

1234

/Linux-v6.1/drivers/base/regmap/
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 …]
/Linux-v6.1/crypto/
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 …]
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()
Decdsa.c154 buffer = kmalloc(req->src_len + req->dst_len, GFP_KERNEL); in ecdsa_verify()
159 sg_nents_for_len(req->src, req->src_len + req->dst_len), in ecdsa_verify()
160 buffer, req->src_len + req->dst_len, 0); in ecdsa_verify()
168 diff = keylen - req->dst_len; in ecdsa_verify()
172 memcpy(&rawhash[diff], buffer + req->src_len, req->dst_len); in ecdsa_verify()
Dsm2.c360 buffer = kmalloc(req->src_len + req->dst_len, GFP_KERNEL); in sm2_verify()
365 sg_nents_for_len(req->src, req->src_len + req->dst_len), in sm2_verify()
366 buffer, req->src_len + req->dst_len, 0); in sm2_verify()
376 hash = mpi_read_raw_data(buffer + req->src_len, req->dst_len); in sm2_verify()
/Linux-v6.1/lib/
Ddecompress_unlzo.c105 u32 src_len, dst_len; in unlzo() local
181 dst_len = get_unaligned_be32(in_buf); in unlzo()
186 if (dst_len == 0) { in unlzo()
192 if (dst_len > LZO_BLOCK_SIZE) { in unlzo()
211 if (src_len <= 0 || src_len > dst_len) { in unlzo()
226 tmp = dst_len; in unlzo()
231 if (unlikely(dst_len == src_len)) in unlzo()
237 if (r != LZO_E_OK || dst_len != tmp) { in unlzo()
243 if (flush && flush(out_buf, dst_len) != dst_len) in unlzo()
246 out_buf += dst_len; in unlzo()
/Linux-v6.1/net/ipv4/
Dfib_rules.c37 u8 dst_len; member
53 if (r->dst_len || r->src_len || r->dscp) in fib4_rule_matchall()
263 if (frh->dst_len) in fib4_rule_configure()
279 rule4->dst_len = frh->dst_len; in fib4_rule_configure()
280 rule4->dstmask = inet_make_mask(rule4->dst_len); in fib4_rule_configure()
320 if (frh->dst_len && (rule4->dst_len != frh->dst_len)) in fib4_rule_compare()
334 if (frh->dst_len && (rule4->dst != nla_get_in_addr(tb[FRA_DST]))) in fib4_rule_compare()
345 frh->dst_len = rule4->dst_len; in fib4_rule_fill()
349 if ((rule4->dst_len && in fib4_rule_fill()
/Linux-v6.1/net/smc/
Dsmc_tx.c375 size_t dst_off, size_t dst_len, in smcr_tx_rdma_writes() argument
383 int src_len_sum = src_len, dst_len_sum = dst_len; in smcr_tx_rdma_writes()
394 if (dst_len < link->qp_attr.cap.max_inline_data) { in smcr_tx_rdma_writes()
415 if (src_len_sum == dst_len) in smcr_tx_rdma_writes()
418 src_len = dst_len - src_len; /* remainder */ in smcr_tx_rdma_writes()
428 dst_len = len - dst_len; /* remainder */ in smcr_tx_rdma_writes()
429 dst_len_sum += dst_len; in smcr_tx_rdma_writes()
430 src_len = min_t(int, dst_len, conn->sndbuf_desc->len - in smcr_tx_rdma_writes()
440 size_t dst_off, size_t dst_len) in smcd_tx_rdma_writes() argument
442 int src_len_sum = src_len, dst_len_sum = dst_len; in smcd_tx_rdma_writes()
[all …]
/Linux-v6.1/include/linux/
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);
/Linux-v6.1/drivers/block/zram/
Dzcomp.c118 const void *src, unsigned int *dst_len) in zcomp_compress() argument
134 *dst_len = PAGE_SIZE * 2; in zcomp_compress()
138 zstrm->buffer, dst_len); in zcomp_compress()
144 unsigned int dst_len = PAGE_SIZE; in zcomp_decompress() local
148 dst, &dst_len); in zcomp_decompress()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/lag/
Dmp.c103 static void mlx5_lag_fib_set(struct lag_mp *mp, struct fib_info *fi, u32 dst, int dst_len) in mlx5_lag_fib_set() argument
108 mp->fib.dst_len = dst_len; in mlx5_lag_fib_set()
139 (mp->fib.dst != fen_info->dst || mp->fib.dst_len != fen_info->dst_len) && in mlx5_lag_fib_route_event()
156 mlx5_lag_fib_set(mp, fi, fen_info->dst, fen_info->dst_len); in mlx5_lag_fib_route_event()
186 mlx5_lag_fib_set(mp, fi, fen_info->dst, fen_info->dst_len); in mlx5_lag_fib_route_event()
Dmp.h22 int dst_len; member
/Linux-v6.1/lib/crypto/
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()
/Linux-v6.1/include/crypto/
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()
Dkpp.h32 unsigned int dst_len; member
249 req->dst_len = output_len; in kpp_request_set_output()
/Linux-v6.1/drivers/crypto/virtio/
Dvirtio_crypto_skcipher_algs.c339 u64 dst_len; in __virtio_crypto_skcipher_do_req() local
389 dst_len = virtio_crypto_alg_sg_nents_length(req->dst); in __virtio_crypto_skcipher_do_req()
390 if (unlikely(dst_len > U32_MAX)) { in __virtio_crypto_skcipher_do_req()
396 dst_len = min_t(unsigned int, req->cryptlen, dst_len); in __virtio_crypto_skcipher_do_req()
398 req->cryptlen, dst_len); in __virtio_crypto_skcipher_do_req()
400 if (unlikely(req->cryptlen + dst_len + ivsize + in __virtio_crypto_skcipher_do_req()
408 cpu_to_le32((uint32_t)dst_len); in __virtio_crypto_skcipher_do_req()
Dvirtio_crypto_akcipher_algs.c99 akcipher_req->dst_len = len - sizeof(vc_req->status); in virtio_crypto_dataq_akcipher_callback()
101 vc_akcipher_req->dst_buf, akcipher_req->dst_len); in virtio_crypto_dataq_akcipher_callback()
233 unsigned int src_len = verify ? req->src_len + req->dst_len : req->src_len; in __virtio_crypto_akcipher_do_req()
255 dst_buf = kcalloc_node(req->dst_len, 1, GFP_KERNEL, node); in __virtio_crypto_akcipher_do_req()
259 sg_init_one(&dstdata_sg, dst_buf, req->dst_len); in __virtio_crypto_akcipher_do_req()
313 akcipher_req->para.dst_data_len = cpu_to_le32(req->dst_len); in virtio_crypto_rsa_do_req()
/Linux-v6.1/net/sched/
Dact_tunnel_key.c86 tunnel_key_copy_geneve_opt(const struct nlattr *nla, void *dst, int dst_len, in tunnel_key_copy_geneve_opt() argument
121 WARN_ON(dst_len < opt_len); in tunnel_key_copy_geneve_opt()
138 tunnel_key_copy_vxlan_opt(const struct nlattr *nla, void *dst, int dst_len, in tunnel_key_copy_vxlan_opt() argument
165 tunnel_key_copy_erspan_opt(const struct nlattr *nla, void *dst, int dst_len, in tunnel_key_copy_erspan_opt() argument
218 int dst_len, struct netlink_ext_ack *extack) in tunnel_key_copy_opts() argument
236 dst_len, extack); in tunnel_key_copy_opts()
245 dst_len -= opt_len; in tunnel_key_copy_opts()
256 dst_len, extack); in tunnel_key_copy_opts()
268 dst_len, extack); in tunnel_key_copy_opts()
/Linux-v6.1/security/keys/
Ddh.c291 if (copy_from_user(outbuf + req->dst_len, kdfcopy->otherinfo, in __keyctl_dh_compute()
298 req->dst_len + kdfcopy->otherinfolen); in __keyctl_dh_compute()
299 } else if (copy_to_user(buffer, outbuf, req->dst_len) == 0) { in __keyctl_dh_compute()
300 ret = req->dst_len; in __keyctl_dh_compute()
/Linux-v6.1/net/ipv6/
Dfib6_rules.c375 if (frh->dst_len) in fib6_rule_configure()
379 rule6->dst.plen = frh->dst_len; in fib6_rule_configure()
409 if (frh->dst_len && (rule6->dst.plen != frh->dst_len)) in fib6_rule_compare()
419 if (frh->dst_len && in fib6_rule_compare()
431 frh->dst_len = rule6->dst.plen; in fib6_rule_fill()
/Linux-v6.1/drivers/crypto/qat/qat_common/
Dqat_asym_algs.c172 areq->dst_len = req->ctx.dh->p_size; in qat_dh_cb()
175 areq->dst_len, 1); in qat_dh_cb()
235 if (req->dst_len < ctx->p_size) { in qat_dh_compute_value()
236 req->dst_len = ctx->p_size; in qat_dh_compute_value()
317 if (sg_is_last(req->dst) && req->dst_len == ctx->p_size) { in qat_dh_compute_value()
527 areq->dst_len = req->ctx.rsa->key_sz; in qat_rsa_cb()
530 areq->dst_len, 1); in qat_rsa_cb()
661 if (req->dst_len < ctx->key_sz) { in qat_rsa_enc()
662 req->dst_len = ctx->key_sz; in qat_rsa_enc()
715 if (sg_is_last(req->dst) && req->dst_len == ctx->key_sz) { in qat_rsa_enc()
[all …]
/Linux-v6.1/drivers/crypto/hisilicon/hpre/
Dhpre_crypto.c432 areq->dst_len = ctx->key_sz; in hpre_dh_cb()
458 areq->dst_len = ctx->key_sz; in hpre_rsa_cb()
514 if (akreq->dst_len < ctx->key_sz) { in hpre_msg_request_set()
515 akreq->dst_len = ctx->key_sz; in hpre_msg_request_set()
528 if (kreq->dst_len < ctx->key_sz) { in hpre_msg_request_set()
529 kreq->dst_len = ctx->key_sz; in hpre_msg_request_set()
601 ret = hpre_hw_data_init(hpre_req, req->dst, req->dst_len, 0, 1); in hpre_dh_compute_value()
813 ret = hpre_hw_data_init(hpre_req, req->dst, req->dst_len, 0, 0); in hpre_rsa_enc()
868 ret = hpre_hw_data_init(hpre_req, req->dst, req->dst_len, 0, 0); in hpre_rsa_dec()
1458 areq->dst_len = ctx->key_sz << 1; in hpre_ecdh_cb()
[all …]
/Linux-v6.1/drivers/crypto/ccp/
Dccp-dmaengine.c367 unsigned int dst_offset, dst_len; in ccp_create_desc() local
387 dst_len = sg_dma_len(dst_sg); in ccp_create_desc()
405 if (!dst_len) { in ccp_create_desc()
414 dst_len = sg_dma_len(dst_sg); in ccp_create_desc()
419 len = min(dst_len, src_len); in ccp_create_desc()
452 dst_len -= len; in ccp_create_desc()
/Linux-v6.1/kernel/
Dkcov.c930 u64 dst_len, src_len; in kcov_move_area() local
939 dst_len = READ_ONCE(*(unsigned long *)dst_area); in kcov_move_area()
945 dst_len = READ_ONCE(*(u64 *)dst_area); in kcov_move_area()
957 if (dst_len > ((dst_area_size * word_size - count_size) >> in kcov_move_area()
960 dst_occupied = count_size + (dst_len << entry_size_log); in kcov_move_area()
970 WRITE_ONCE(*(unsigned long *)dst_area, dst_len + entries_moved); in kcov_move_area()
973 WRITE_ONCE(*(u64 *)dst_area, dst_len + entries_moved); in kcov_move_area()
/Linux-v6.1/drivers/media/usb/msi2500/
Dmsi2500.c245 unsigned int i, j, transactions, dst_len = 0; in msi2500_convert_stream() local
281 dst_len += 1008; in msi2500_convert_stream()
303 dst_len += 1008; in msi2500_convert_stream()
313 dst_len += 984; in msi2500_convert_stream()
320 dst_len += 1008; in msi2500_convert_stream()
327 dst_len += 1008; in msi2500_convert_stream()
334 dst_len += 1008; in msi2500_convert_stream()
356 return dst_len; in msi2500_convert_stream()

1234