| /linux/lib/ |
| H A D | decompress_unlzo.c | 105 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/drivers/block/zram/ |
| H A D | backend_842.c | 35 unsigned int dlen = req->dst_len; in compress_842() 41 req->dst_len = dlen; in compress_842() 48 unsigned int dlen = req->dst_len; in decompress_842()
|
| H A D | zcomp.c | 138 const void *src, unsigned int *dst_len) in zcomp_compress() argument 144 .dst_len = 2 * PAGE_SIZE, in zcomp_compress() 151 *dst_len = req.dst_len; in zcomp_compress() 162 .dst_len = PAGE_SIZE, in zcomp_decompress()
|
| H A D | backend_lzorle.c | 37 &req->dst_len, ctx->context); in lzorle_compress() 47 req->dst, &req->dst_len); in lzorle_decompress()
|
| H A D | backend_lzo.c | 37 &req->dst_len, ctx->context); in lzo_compress() 47 req->dst, &req->dst_len); in lzo_decompress()
|
| H A D | zcomp.h | 54 size_t dst_len; member 92 const void *src, unsigned int *dst_len);
|
| /linux/lib/crypto/ |
| H A D | chacha20poly1305.c | 132 size_t dst_len; in __chacha20poly1305_decrypt() local 150 dst_len = src_len - POLY1305_DIGEST_SIZE; in __chacha20poly1305_decrypt() 151 poly1305_update(&poly1305_state, src, dst_len); in __chacha20poly1305_decrypt() 152 if (dst_len & 0xf) in __chacha20poly1305_decrypt() 153 poly1305_update(&poly1305_state, pad0, 0x10 - (dst_len & 0xf)); in __chacha20poly1305_decrypt() 156 b.lens[1] = cpu_to_le64(dst_len); in __chacha20poly1305_decrypt() 161 ret = crypto_memneq(b.mac, src + dst_len, POLY1305_DIGEST_SIZE); in __chacha20poly1305_decrypt() 163 chacha20_crypt(chacha_state, dst, src, dst_len); in __chacha20poly1305_decrypt()
|
| /linux/kernel/bpf/ |
| H A D | crypto.c | 270 u32 src_len, dst_len, siv_len; in bpf_crypto_crypt() local 280 dst_len = __bpf_dynptr_size(dst); in bpf_crypto_crypt() 281 if (!src_len || !dst_len || src_len > dst_len) in bpf_crypto_crypt() 290 pdst = __bpf_dynptr_data_rw(dst, dst_len); in bpf_crypto_crypt()
|
| /linux/security/keys/ |
| H A D | dh.c | 271 if (copy_from_user(outbuf + req->dst_len, kdfcopy->otherinfo, in __keyctl_dh_compute() 278 req->dst_len + kdfcopy->otherinfolen); in __keyctl_dh_compute() 279 } else if (copy_to_user(buffer, outbuf, req->dst_len) == 0) { in __keyctl_dh_compute() 280 ret = req->dst_len; in __keyctl_dh_compute()
|
| /linux/drivers/misc/mei/ |
| H A D | vsc-tp.c | 168 int ret, offset = 0, cpy_len, src_len, dst_len = sizeof(struct vsc_tp_packet_hdr); in vsc_tp_xfer_helper() local 196 cpy_len = min(src_len, dst_len); in vsc_tp_xfer_helper() 202 dst_len -= cpy_len; in vsc_tp_xfer_helper() 213 dst_len = min(ilen, le16_to_cpu(ack.len)); in vsc_tp_xfer_helper() 216 dst_len = sizeof(recv_crc); in vsc_tp_xfer_helper() 232 dst_len = sizeof(recv_crc); in vsc_tp_xfer_helper()
|
| /linux/crypto/ |
| H A D | jitterentropy-kcapi.c | 174 int jent_read_random_block(void *hash_state, char *dst, unsigned int dst_len) in jent_read_random_block() argument 184 if (!ret && dst_len) in jent_read_random_block() 185 memcpy(dst, jent_block, dst_len); in jent_read_random_block()
|
| /linux/net/ipv6/ |
| H A D | fib6_rules.c | 465 if (frh->dst_len) in fib6_rule_configure() 469 rule6->dst.plen = frh->dst_len; in fib6_rule_configure() 499 if (frh->dst_len && (rule6->dst.plen != frh->dst_len)) in fib6_rule_compare() 535 if (frh->dst_len && in fib6_rule_compare() 547 frh->dst_len = rule6->dst.plen; in fib6_rule_fill()
|
| /linux/drivers/crypto/intel/qat/qat_common/ |
| H A D | qat_asym_algs.c | 174 areq->dst_len = req->ctx.dh->p_size; in qat_dh_cb() 179 areq->dst_len, 1); in qat_dh_cb() 236 if (req->dst_len < ctx->p_size) { in qat_dh_compute_value() 237 req->dst_len = ctx->p_size; in qat_dh_compute_value() 318 if (sg_is_last(req->dst) && req->dst_len == ctx->p_size) { in qat_dh_compute_value() 581 areq->dst_len = req->ctx.rsa->key_sz; in qat_rsa_cb() 586 areq->dst_len, 1); in qat_rsa_cb() 714 if (req->dst_len < ctx->key_sz) { in qat_rsa_enc() 715 req->dst_len = ctx->key_sz; in qat_rsa_enc() 768 if (sg_is_last(req->dst) && req->dst_len == ctx->key_sz) { in qat_rsa_enc() [all …]
|
| /linux/drivers/crypto/ccp/ |
| H A D | ccp-dmaengine.c | 367 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/drivers/crypto/hisilicon/hpre/ |
| H A D | hpre_crypto.c | 436 areq->dst_len = ctx->key_sz; in hpre_dh_cb() 462 areq->dst_len = ctx->key_sz; in hpre_rsa_cb() 518 if (akreq->dst_len < ctx->key_sz) { in hpre_msg_request_set() 519 akreq->dst_len = ctx->key_sz; in hpre_msg_request_set() 532 if (kreq->dst_len < ctx->key_sz) { in hpre_msg_request_set() 533 kreq->dst_len = ctx->key_sz; in hpre_msg_request_set() 607 ret = hpre_hw_data_init(hpre_req, req->dst, req->dst_len, 0, 1); in hpre_dh_compute_value() 821 ret = hpre_hw_data_init(hpre_req, req->dst, req->dst_len, 0, 0); in hpre_rsa_enc() 876 ret = hpre_hw_data_init(hpre_req, req->dst, req->dst_len, 0, 0); in hpre_rsa_dec() 1468 areq->dst_len = ctx->key_sz << 1; in hpre_ecdh_cb() [all …]
|
| /linux/kernel/ |
| H A D | kcov.c | 943 u64 dst_len, src_len; in kcov_move_area() local 952 dst_len = READ_ONCE(*(unsigned long *)dst_area); in kcov_move_area() 958 dst_len = READ_ONCE(*(u64 *)dst_area); in kcov_move_area() 970 if (dst_len > ((dst_area_size * word_size - count_size) >> in kcov_move_area() 973 dst_occupied = count_size + (dst_len << entry_size_log); in kcov_move_area() 992 WRITE_ONCE(*(unsigned long *)dst_area, dst_len + entries_moved); in kcov_move_area() 995 WRITE_ONCE(*(u64 *)dst_area, dst_len + entries_moved); in kcov_move_area()
|
| /linux/include/crypto/ |
| H A D | kpp.h | 36 unsigned int dst_len; member 254 req->dst_len = output_len; in kpp_request_set_output()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/lag/ |
| H A D | mp.h | 22 int dst_len; member
|
| /linux/arch/sh/kernel/ |
| H A D | io_trapped.c | 184 unsigned long dst_addr, int dst_len) in copy_word() argument 203 switch (dst_len) { in copy_word()
|
| /linux/include/uapi/linux/ |
| H A D | fib_rules.h | 21 __u8 dst_len; member
|
| /linux/samples/bpf/ |
| H A D | xdp_router_ipv4_user.c | 101 int dst_len, iface, metric; in read_route() member 149 route.dst_len = atoi(dsts_len); in read_route() 169 prefix_key->prefixlen = route.dst_len; in read_route() 174 if (route.dst_len == 32) { in read_route()
|
| /linux/net/ipv4/ |
| H A D | fib_lookup.h | 44 void rtmsg_fib(int event, __be32 key, struct fib_alias *fa, int dst_len,
|
| /linux/drivers/net/netdevsim/ |
| H A D | fib.c | 285 fen_info->dst_len, AF_INET, fen_info->tb_id); in nsim_fib4_rt_create() 309 fen_info->dst_len, AF_INET, in nsim_fib4_rt_lookup() 327 fri.dst_len = fen_info->dst_len; in nsim_fib4_rt_offload_failed_flag_set() 341 int dst_len = fib4_rt->common.key.prefix_len; in nsim_fib4_rt_hw_flags_set() local 347 fri.dst_len = dst_len; in nsim_fib4_rt_hw_flags_set()
|
| /linux/drivers/net/ethernet/marvell/prestera/ |
| H A D | prestera_hw.h | 266 __be32 dst, u32 dst_len, u32 grp_id); 268 __be32 dst, u32 dst_len);
|
| /linux/drivers/crypto/aspeed/ |
| H A D | aspeed-acry.c | 331 result_nbytes, req->dst_len); in aspeed_acry_rsa_transfer() 333 if (result_nbytes <= req->dst_len) { in aspeed_acry_rsa_transfer() 336 req->dst_len = result_nbytes; in aspeed_acry_rsa_transfer()
|