Home
last modified time | relevance | path

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

123

/Linux-v4.19/drivers/base/regmap/
Dregcache-lzo.c26 size_t dst_len; member
53 if (ret != LZO_E_OK || compress_size > lzo_ctx->dst_len) in regcache_lzo_compress()
55 lzo_ctx->dst_len = compress_size; in regcache_lzo_compress()
61 size_t dst_len; in regcache_lzo_decompress() local
64 dst_len = lzo_ctx->dst_len; in regcache_lzo_decompress()
66 lzo_ctx->dst, &dst_len); in regcache_lzo_decompress()
67 if (ret != LZO_E_OK || dst_len != lzo_ctx->dst_len) in regcache_lzo_decompress()
77 lzo_ctx->dst_len = lzo1x_worst_compress(PAGE_SIZE); in regcache_lzo_compress_cache_block()
78 lzo_ctx->dst = kmalloc(lzo_ctx->dst_len, GFP_KERNEL); in regcache_lzo_compress_cache_block()
80 lzo_ctx->dst_len = 0; in regcache_lzo_compress_cache_block()
[all …]
/Linux-v4.19/crypto/
Drsa-pkcs1pad.c188 len = req_ctx->child_req.dst_len; in pkcs1pad_encrypt_sign_complete()
208 req->dst_len = ctx->key_size; in pkcs1pad_encrypt_sign_complete()
245 if (req->dst_len < ctx->key_size) { in pkcs1pad_encrypt()
246 req->dst_len = ctx->key_size; in pkcs1pad_encrypt()
279 req->dst, ctx->key_size - 1, req->dst_len); in pkcs1pad_encrypt()
293 unsigned int dst_len; in pkcs1pad_decrypt_complete() local
301 dst_len = req_ctx->child_req.dst_len; in pkcs1pad_decrypt_complete()
302 if (dst_len < ctx->key_size - 1) in pkcs1pad_decrypt_complete()
306 if (dst_len == ctx->key_size) { in pkcs1pad_decrypt_complete()
311 dst_len--; in pkcs1pad_decrypt_complete()
[all …]
Drsa.c111 ret = mpi_write_to_sgl(c, req->dst, req->dst_len, &sign); in rsa_enc()
150 ret = mpi_write_to_sgl(m, req->dst, req->dst_len, &sign); in rsa_dec()
188 ret = mpi_write_to_sgl(s, req->dst, req->dst_len, &sign); in rsa_sign()
228 ret = mpi_write_to_sgl(m, req->dst, req->dst_len, &sign); in rsa_verify()
/Linux-v4.19/lib/
Ddecompress_unlzo.c120 u32 src_len, dst_len; in unlzo() local
196 dst_len = get_unaligned_be32(in_buf); in unlzo()
201 if (dst_len == 0) { in unlzo()
207 if (dst_len > LZO_BLOCK_SIZE) { in unlzo()
226 if (src_len <= 0 || src_len > dst_len) { in unlzo()
241 tmp = dst_len; in unlzo()
246 if (unlikely(dst_len == src_len)) in unlzo()
252 if (r != LZO_E_OK || dst_len != tmp) { in unlzo()
258 if (flush && flush(out_buf, dst_len) != dst_len) in unlzo()
261 out_buf += dst_len; in unlzo()
/Linux-v4.19/net/decnet/
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()
/Linux-v4.19/net/smc/
Dsmc_tx.c317 size_t dst_off, size_t dst_len) in smcr_tx_rdma_writes() argument
322 int src_len_sum = src_len, dst_len_sum = dst_len; in smcr_tx_rdma_writes()
341 if (src_len_sum == dst_len) in smcr_tx_rdma_writes()
344 src_len = dst_len - src_len; /* remainder */ in smcr_tx_rdma_writes()
354 dst_len = len - dst_len; /* remainder */ in smcr_tx_rdma_writes()
355 dst_len_sum += dst_len; in smcr_tx_rdma_writes()
356 src_len = min_t(int, dst_len, conn->sndbuf_desc->len - in smcr_tx_rdma_writes()
366 size_t dst_off, size_t dst_len) in smcd_tx_rdma_writes() argument
368 int src_len_sum = src_len, dst_len_sum = dst_len; in smcd_tx_rdma_writes()
385 if (src_len_sum == dst_len) in smcd_tx_rdma_writes()
[all …]
/Linux-v4.19/net/ipv4/
Dfib_rules.c38 u8 dst_len; member
54 if (r->dst_len || r->src_len || r->tos) in fib4_rule_matchall()
250 if (frh->dst_len) in fib4_rule_configure()
266 rule4->dst_len = frh->dst_len; in fib4_rule_configure()
267 rule4->dstmask = inet_make_mask(rule4->dst_len); in fib4_rule_configure()
308 if (frh->dst_len && (rule4->dst_len != frh->dst_len)) in fib4_rule_compare()
322 if (frh->dst_len && (rule4->dst != nla_get_in_addr(tb[FRA_DST]))) in fib4_rule_compare()
333 frh->dst_len = rule4->dst_len; in fib4_rule_fill()
337 if ((rule4->dst_len && in fib4_rule_fill()
Dfib_lookup.h38 u8 type, __be32 dst, int dst_len, u8 tos, struct fib_info *fi,
40 void rtmsg_fib(int event, __be32 key, struct fib_alias *fa, int dst_len,
/Linux-v4.19/drivers/block/zram/
Dzcomp.c128 const void *src, unsigned int *dst_len) in zcomp_compress() argument
144 *dst_len = PAGE_SIZE * 2; in zcomp_compress()
148 zstrm->buffer, dst_len); in zcomp_compress()
154 unsigned int dst_len = PAGE_SIZE; in zcomp_decompress() local
158 dst, &dst_len); in zcomp_decompress()
Dzcomp.h38 const void *src, unsigned int *dst_len);
/Linux-v4.19/include/crypto/
Dakcipher.h37 unsigned int dst_len; member
249 unsigned int dst_len) in akcipher_request_set_crypt() argument
254 req->dst_len = dst_len; in akcipher_request_set_crypt()
Dkpp.h37 unsigned int dst_len; member
250 req->dst_len = output_len; in kpp_request_set_output()
/Linux-v4.19/include/linux/
Dlzo.h25 unsigned char *dst, size_t *dst_len, void *wrkmem);
29 unsigned char *dst, size_t *dst_len);
/Linux-v4.19/drivers/staging/rtl8723bs/include/
Dosdep_service_linux.h132 static inline void rtw_merge_string(char *dst, int dst_len, char *src1, char *src2) in rtw_merge_string() argument
135 len += snprintf(dst+len, dst_len - len, "%s", src1); in rtw_merge_string()
136 len += snprintf(dst+len, dst_len - len, "%s", src2); in rtw_merge_string()
/Linux-v4.19/security/keys/
Ddh.c385 if (copy_from_user(outbuf + req->dst_len, kdfcopy->otherinfo, in __keyctl_dh_compute()
392 req->dst_len + kdfcopy->otherinfolen, in __keyctl_dh_compute()
393 outlen - req->dst_len); in __keyctl_dh_compute()
394 } else if (copy_to_user(buffer, outbuf, req->dst_len) == 0) { in __keyctl_dh_compute()
395 ret = req->dst_len; in __keyctl_dh_compute()
/Linux-v4.19/drivers/crypto/qat/qat_common/
Dqat_asym_algs.c204 areq->dst_len = req->ctx.dh->p_size; in qat_dh_cb()
207 areq->dst_len, 1); in qat_dh_cb()
272 if (req->dst_len < ctx->p_size) { in qat_dh_compute_value()
273 req->dst_len = ctx->p_size; in qat_dh_compute_value()
353 if (sg_is_last(req->dst) && req->dst_len == ctx->p_size) { in qat_dh_compute_value()
356 req->dst_len, in qat_dh_compute_value()
570 areq->dst_len = req->ctx.rsa->key_sz; in qat_rsa_cb()
573 areq->dst_len, 1); in qat_rsa_cb()
700 if (req->dst_len < ctx->key_sz) { in qat_rsa_enc()
701 req->dst_len = ctx->key_sz; in qat_rsa_enc()
[all …]
/Linux-v4.19/net/ipv6/
Dfib6_rules.c362 if (frh->dst_len) in fib6_rule_configure()
366 rule6->dst.plen = frh->dst_len; in fib6_rule_configure()
397 if (frh->dst_len && (rule6->dst.plen != frh->dst_len)) in fib6_rule_compare()
407 if (frh->dst_len && in fib6_rule_compare()
419 frh->dst_len = rule6->dst.plen; in fib6_rule_fill()
/Linux-v4.19/drivers/crypto/virtio/
Dvirtio_crypto_algs.c373 u64 dst_len; in __virtio_crypto_ablkcipher_do_req() local
417 dst_len = virtio_crypto_alg_sg_nents_length(req->dst); in __virtio_crypto_ablkcipher_do_req()
418 if (unlikely(dst_len > U32_MAX)) { in __virtio_crypto_ablkcipher_do_req()
425 req->nbytes, dst_len); in __virtio_crypto_ablkcipher_do_req()
427 if (unlikely(req->nbytes + dst_len + ivsize + in __virtio_crypto_ablkcipher_do_req()
435 cpu_to_le32((uint32_t)dst_len); in __virtio_crypto_ablkcipher_do_req()
/Linux-v4.19/drivers/crypto/ccp/
Dccp-dmaengine.c365 unsigned int dst_offset, dst_len; in ccp_create_desc() local
385 dst_len = sg_dma_len(dst_sg); in ccp_create_desc()
403 if (!dst_len) { in ccp_create_desc()
412 dst_len = sg_dma_len(dst_sg); in ccp_create_desc()
417 len = min(dst_len, src_len); in ccp_create_desc()
450 dst_len -= len; in ccp_create_desc()
/Linux-v4.19/net/sched/
Dact_tunnel_key.c71 tunnel_key_copy_geneve_opt(const struct nlattr *nla, void *dst, int dst_len, in tunnel_key_copy_geneve_opt() argument
105 WARN_ON(dst_len < opt_len); in tunnel_key_copy_geneve_opt()
122 int dst_len, struct netlink_ext_ack *extack) in tunnel_key_copy_opts() argument
136 dst_len, extack); in tunnel_key_copy_opts()
141 dst_len -= opt_len; in tunnel_key_copy_opts()
/Linux-v4.19/drivers/media/usb/msi2500/
Dmsi2500.c261 unsigned int i, j, transactions, dst_len = 0; in msi2500_convert_stream() local
297 dst_len += 1008; in msi2500_convert_stream()
319 dst_len += 1008; in msi2500_convert_stream()
329 dst_len += 984; in msi2500_convert_stream()
336 dst_len += 1008; in msi2500_convert_stream()
343 dst_len += 1008; in msi2500_convert_stream()
350 dst_len += 1008; in msi2500_convert_stream()
372 return dst_len; in msi2500_convert_stream()
/Linux-v4.19/samples/bpf/
Dxdp_router_ipv4_user.c116 int dst_len, iface, metric; in read_route() member
175 route.dst_len = atoi(dsts_len); in read_route()
203 prefix_key->prefixlen = route.dst_len; in read_route()
208 if (route.dst_len == 32) { in read_route()
225 route.gw, route.dst_len, in read_route()
/Linux-v4.19/include/uapi/linux/
Dfib_rules.h21 __u8 dst_len; member
/Linux-v4.19/fs/ntfs/
Drunlist.h91 const int dst_len, const runlist_element *rl,
/Linux-v4.19/arch/sh/kernel/
Dio_trapped.c184 unsigned long dst_addr, int dst_len) in copy_word() argument
203 switch (dst_len) { in copy_word()

123